| | |
| | | } |
| | | 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; |
| | | //绑定条码到工单 |
| | |
| | | IS_MIN_PKG = max.PkgType.IS_MIN_PKG, |
| | | PKG_LEVEL = max.PKG_LEVEL, |
| | | PKG_QTY = max.PKG_QTY, |
| | | LABEL_CODE = LabelDic.Count >= max.PKG_LEVEL ? LabelDic[max.PKG_LEVEL]?.LABEL_CODE : null, |
| | | LABEL_CODE = LabelDic?.GetValueOrDefault(max.PKG_LEVEL, null)?.LABEL_CODE,//LabelDic.Count >= max.PKG_LEVEL ? LabelDic[max.PKG_LEVEL]?.LABEL_CODE : null, |
| | | SN = CurPosition.GenerateSN(max.SN_RULE, this), |
| | | } |
| | | }; |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Autofac" Version="8.1.0" /> |
| | | <PackageReference Include="Autofac" Version="8.1.1" /> |
| | | <PackageReference Include="Autofac.Configuration" Version="7.0.0" /> |
| | | <PackageReference Include="Autofac.Extensions.DependencyInjection" Version="10.0.0" /> |
| | | <PackageReference Include="FluentScheduler" Version="5.5.1" /> |
| | | <PackageReference Include="MailKit" Version="4.7.1.1" /> |
| | | <PackageReference Include="MailKit" Version="4.8.0" /> |
| | | <PackageReference Include="NLog" Version="5.3.4" /> |
| | | <PackageReference Include="NLog.Database" Version="5.3.4" /> |
| | | <PackageReference Include="Rhea.Common" Version="6.1.7.1359" /> |
| | | <PackageReference Include="Rhea.Common" Version="6.1.7.1360" /> |
| | | <PackageReference Include="SharpZipLib" Version="1.4.2" /> |
| | | <PackageReference Include="Sundial" Version="2.64.0" /> |
| | | <PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.0" /> |
| | | <PackageReference Include="Swashbuckle.AspNetCore" Version="7.1.0" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |