| | |
| | | } |
| | | ShippingOrder = IsPrintCustomerLabel ? ship?.ShipDoc ?? "" : ""; |
| | | //缓存出货数量 |
| | | if (Context.ContainsKey("CurShipQty")) |
| | | { |
| | | Context["CurShipQty"] = CurShipQty; |
| | | } |
| | | else |
| | | { |
| | | Context.Add("CurShipQty", CurShipQty); |
| | | } |
| | | Context.SetOrAdd("CurShipQty", CurShipQty); |
| | | //if (Context.ContainsKey("CurShipQty")) |
| | | //{ |
| | | // Context["CurShipQty"] = CurShipQty; |
| | | //} |
| | | //else |
| | | //{ |
| | | // Context.Add("CurShipQty", CurShipQty); |
| | | //} |
| | | //缓存出货箱数 |
| | | if (Context.ContainsKey("CurWaitShipmentCarton")) |
| | | { |
| | | Context["CurWaitShipmentCarton"] = WaitShipmentCarton; |
| | | } |
| | | else |
| | | { |
| | | Context.Add("CurWaitShipmentCarton", WaitShipmentCarton); |
| | | } |
| | | Context.SetOrAdd("CurWaitShipmentCarton", WaitShipmentCarton); |
| | | //if (Context.ContainsKey("CurWaitShipmentCarton")) |
| | | //{ |
| | | // Context["CurWaitShipmentCarton"] = WaitShipmentCarton; |
| | | //} |
| | | //else |
| | | //{ |
| | | // Context.Add("CurWaitShipmentCarton", WaitShipmentCarton); |
| | | //} |
| | | |
| | | curtime = DateTime.Now; Logger.Console.Info($"{CurSN} : ***** 12 : {(curtime - prevtime).TotalSeconds}s", ConsoleColor.Green); prevtime = curtime; |
| | | //绑定条码到工单 |