public void CreateRepack(Resolver resolver) { IList <RepackDetail> repackDetailList = executeMgr.ConvertTransformerListToRepackDetail(resolver.Transformers); if (repackDetailList.Count == 0) { throw new BusinessErrorException("MasterData.Inventory.Repack.Error.RepackDetailEmpty"); } Repack repack = repackMgr.CreateRepack(repackDetailList, userMgr.LoadUser(resolver.UserCode, false, true)); resolver.Code = repack.RepackNo; resolver.Transformers = null; resolver.Command = BusinessConstants.CS_BIND_VALUE_TRANSFORMERDETAIL; resolver.Result = languageMgr.TranslateMessage("MasterData.Inventory.Repack.Successfully", resolver.UserCode); #region 打印 if (resolver.IsCSClient) { IList <Hu> huList = new List <Hu>(); repack = repackMgr.LoadRepack(resolver.Code, true); foreach (RepackDetail repackDet in repack.RepackDetails) { if (repackDet.IOType == BusinessConstants.IO_TYPE_OUT && repackDet.LocationLotDetail.Hu != null && repackDet.LocationLotDetail.Hu.PrintCount == 0) { huList.Add(repackDet.LocationLotDetail.Hu); } } resolver.PrintUrl = PrintHu(huList, resolver.UserCode); } #endregion }
public void CreateDevanning(Resolver resolver) { IList <RepackDetail> repackDetailList = executeMgr.ConvertTransformerListToRepackDetail(resolver.Transformers); if (repackDetailList.Count == 0) { throw new BusinessErrorException("MasterData.Inventory.Repack.Error.RepackDetailEmpty"); } //KSS 客户化需求, 拆箱并上架 foreach (RepackDetail repackDetail in repackDetailList) { repackDetail.StorageBinCode = resolver.BinCode; } Repack repack = repackMgr.CreateDevanning(repackDetailList, this.userMgr.LoadUser(resolver.UserCode, false, true)); resolver.Code = repack.RepackNo; resolver.Result = languageMgr.TranslateMessage("MasterData.Inventory.Devanning.Successfully", resolver.UserCode, resolver.Transformers[0].TransformerDetails[0].HuId); resolver.Transformers = null; }