public void CreateInspectOrder(Resolver resolver) { IList<LocationLotDetail> locationLotDetailList = executeMgr.ConvertTransformersToLocationLotDetails(resolver.Transformers, false); if (locationLotDetailList.Count == 0) { throw new BusinessErrorException("MasterData.Inventory.Repack.Error.RepackDetailEmpty"); } User user = userMgr.LoadUser(resolver.UserCode, false, true); InspectOrder inspectOrder = inspectOrderMgr.CreateInspectOrder(locationLotDetailList, user); resolver.Result = languageMgr.TranslateMessage("MasterData.InspectOrder.Create.Successfully", resolver.UserCode, inspectOrder.InspectNo); resolver.Transformers = null; resolver.Code = inspectOrder.InspectNo; resolver.Command = BusinessConstants.CS_BIND_VALUE_TRANSFORMER; }
protected override void ExecuteSubmit(Resolver resolver) { if (resolver.Transformers == null || resolver.Transformers.Count < 1) { throw new BusinessErrorException("PickUp.Error.HuDetailEmpty"); } IList <LocationLotDetail> locationLotDetailList = executeMgr.ConvertTransformersToLocationLotDetails(resolver.Transformers, false); locationMgr.InventoryPick(locationLotDetailList, resolver.UserCode); resolver.Result = languageMgr.TranslateMessage("Warehouse.PickUp.Successfully", resolver.UserCode); resolver.Transformers = null; resolver.Command = BusinessConstants.CS_BIND_VALUE_TRANSFORMERDETAIL; }