| | |
| | | using System.Security.Cryptography; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using static Hanhe.iWCS.JingmenGEMTwoProtocol.ApiHelper; |
| | | using static Hanhe.iWCS.JingmenGEMTwoProtocol.ERPService; |
| | | using static Hanhe.iWCS.JingmenGEMTwoProtocol.MESHelper; |
| | | using static System.Runtime.CompilerServices.RuntimeHelpers; |
| | |
| | | CMMLog.Info($"WMSIn-{startBit}:ItemCode不为空,获取信息!111!"); |
| | | CMMLog.Info($"{ItemCode}"); |
| | | |
| | | if (ItemCode == "time" || ItemCode == "拆盘变更" || ItemCode == "打包下线") |
| | | if (ItemCode == "电钴打包下线") |
| | | { |
| | | model.trayCode = trayCode; |
| | | model.endArea = endArea; |
| | | //将数据插入中间表 |
| | | if(!ERPService.senderpTaskDG(startBit, trayCode)) |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | else if (ItemCode == "time" || ItemCode == "拆盘变更" || ItemCode == "打包下线") |
| | | { |
| | | CMMLog.Info($"{trayCode}"); |
| | | var time = MongoDBSingleton.Instance.FindOne<TimeCuoInfoCom>(Query.EQ("timeStamp", int.Parse(trayCode)), "TimeCuoInfoCom"); |