Browse Source

替换打印模板文件名.XLXS 为 .rldx

feature_print_new
DESKTOP-4672LME\Xu Tengfei 3 years ago
parent
commit
2d2fe897c7
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      service/Ordmsg.go

+ 4
- 0
service/Ordmsg.go View File

@ -303,6 +303,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForPickOrder(session *xorm.Session,
slaveprintheadtab.Printfiletype = "ACTIVE"
slaveprintheadtab.Printobjid = pickordtab.Pickorderid
slaveprintheadtab.Templatefile = bl_picktmp.Picktemplatetab.Templatefile
strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 )
slaveprintheadtab.Orientation = bl_picktmp.Picktemplatetab.Orientation
slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bl_picktmp.Picktemplatetab.Printqty, 1)
slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss")
@ -737,6 +738,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForPackOrder(session *xorm.Session,
} else {
slaveprintheadtab.Templatefile = packordtab.Templatefile
}
strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 )
slaveprintheadtab.Orientation = bl_packtmp.Paktmpltab.Orientation
slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bl_packtmp.Paktmpltab.Printqty, 1)
slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss")
@ -1004,6 +1006,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForPackOrderToJson(session *xorm.Se
} else {
slaveprintheadtab.Templatefile = packordtab.Templatefile
}
strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 )
slaveprintheadtab.Orientation = bl_packtmp.Paktmpltab.Orientation
slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bl_packtmp.Paktmpltab.Printqty, 1)
slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss")
@ -1392,6 +1395,7 @@ func (bl_ordmsg *BL_Ordmsg) GeneratePrintDataForBbaasn(session *xorm.Session, sl
} else {
slaveprintheadtab.Templatefile = bbaasntmptab.Templatefile
}
strings.Replace(slaveprintheadtab.Templatefile, ".XLSX", ".rdlx", 1 )
slaveprintheadtab.Orientation = bbaasntmptab.Orientation
slaveprintheadtab.Printcopies = common.Max(bl_ordmsg.Ordmsgtab.Printcopies, bbaasntmptab.Printqty, 1)
slaveprintheadtab.Credatuz = common.Date(time.Now().Unix(), "YYYYMMDDHHmmss")


Loading…
Cancel
Save