|
|
@ -15,7 +15,6 @@ import ( |
|
|
|
"os" |
|
|
|
"regexp" |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
) |
|
|
|
|
|
|
@ -743,7 +742,7 @@ func CreateXml(pkotablst []db.Jit_packorder, j int, session *xorm.Session) error |
|
|
|
Packorderid: info.Packorderid, |
|
|
|
Pos: common.ValueToString(info.Pos, ""), |
|
|
|
Poscode: info.Poscode, |
|
|
|
Oemseq: common.ValueToString(info.Oemseq, ""), |
|
|
|
Oemseq: common.ValueToString(common.ValueToInt(info.Oemseq, 0), ""), |
|
|
|
Checkseq: common.ValueToString(info.Seq, ""), |
|
|
|
Supplygroupid: info.Supplygroupid, |
|
|
|
Workordernr: info.Workordernr, |
|
|
@ -782,8 +781,13 @@ func CallOffXmlTick(XmlFolder string){ |
|
|
|
if err != nil { |
|
|
|
glog.InfoExtln("Calloff包装单", "Failed to create xml due to :",err) |
|
|
|
} |
|
|
|
timeS := time.Now().Format("20060102150405.999") |
|
|
|
fileName := strings.Trim(timeS,".") |
|
|
|
//timeS := time.Now().Format("20060102150405.000")
|
|
|
|
//fileName := strings.Trim(timeS,".")
|
|
|
|
//fileName, err := service.SN_SyncGetNextSnr2("Out")
|
|
|
|
//if err != nil {
|
|
|
|
// glog.InfoExtln("Calloff包装单", "Failed to create xml due to :",err)
|
|
|
|
//}
|
|
|
|
fileName := "Out" + xmlInfo.Msgid |
|
|
|
f, err := os.Create(XmlFolder+"/"+fileName +".xml") |
|
|
|
if err != nil { |
|
|
|
glog.InfoExtln("Calloff包装单", "Failed to create xml due to :",err) |
|
|
|