¶Ô±ÈÐÂÎļþ |
| | |
| | | using Rhea.Common; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Linq.Expressions; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using Tiger.Model; |
| | | using Tiger.IBusiness; |
| | | using Tiger.Model.Sharetronic.Shelf; |
| | | using Tiger.Business.WMS.Sharetronic.Shelf; |
| | | using Tiger.Model.Entitys.MES.U9C; |
| | | using Tiger.Model.Entitys.MES.Position; |
| | | |
| | | namespace Tiger.Business.WMS.Transaction |
| | | { |
| | | /// <summary> |
| | | /// (U9)æ¥ææå°ä¸æ¶äºå¡ |
| | | /// </summary> |
| | | public class Print_BIZ_U9_ASN : WmsTask, IPrint_BIZ_U9_ASN |
| | | { |
| | | public IPrint_BIZ_U9_ASN Init(string id, string userCode, string apiHost, string orgCode) |
| | | { |
| | | base.Init(id, userCode, apiHost, orgCode); |
| | | Logger.Console.Info($"Start {this.GetType().Name} Transaction[ID: {TransID}]"); |
| | | return this; |
| | | } |
| | | |
| | | #region Propertys & Variables |
| | | |
| | | #endregion |
| | | |
| | | #region Functions |
| | | /// <summary> |
| | | /// æ«æå
¥å£ |
| | | /// </summary> |
| | | public async Task<ApiAction<ScanOutput>> Scan(BaseInput input) |
| | | { |
| | | var action = new ApiAction<ScanOutput>(new ScanOutput()); |
| | | try |
| | | { |
| | | if (input.SN.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("æ¡ç ä¸è½ä¸ºç©º"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.SnEmptyFailure"); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | //å¤ææ«æçæ¯å¦è´§æ¶ |
| | | var whUnit = await MainDB.Queryable<V_WH_UNIT>().Where(t => (t.SHELF_CODE.ToUpper() == input.SN || t.LOCATION_CODE.ToUpper() == input.SN) && t.AUTH_ORG == OrgCode).IncludesAllFirstLayer().FirstAsync(); |
| | | //if (string.IsNullOrEmpty(CurScanShelf?.ShelfCode)) |
| | | if (!whUnit.IsNullOrEmpty() || string.IsNullOrEmpty(CurScanShelf?.ShelfCode)) |
| | | { |
| | | action = await ScanShelf(input.SN, whUnit); |
| | | } |
| | | else//æ«æç©æå¹¶å¤æ ¸ |
| | | { |
| | | action = await ScanItem(input); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //åæ¶å½åæä½ |
| | | ResetScan(); |
| | | //action.CatchExceptionWithLog(ex, $"æ«æ[{input.SN}]å¼å¸¸"); |
| | | action.CatchExceptionWithLog(ex, Biz.L("WMS.Default.Scan.ScanException", input.SN)); |
| | | } |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ«æç©æå¹¶å¤æ ¸ï¼å¦æç©æå·²ç»å®æç§»åºåè´§æ¶ä¸äº®ç¯æéå¨ä½ |
| | | /// </summary> |
| | | public async Task<ApiAction<ScanOutput>> ScanItem(BaseInput input) |
| | | { |
| | | var action = new ApiAction<ScanOutput>(new ScanOutput() { Command = Command }); |
| | | try |
| | | { |
| | | if (CurInvItem.IsNullOrEmpty()) |
| | | { |
| | | //è§£ææ¡ç |
| | | Result<IInventory> result = WMS_ITEM_Biz.WmsItem.Get(input.SN, input.AuthOption, true); |
| | | if (!result.IsSuccessed) |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = result.LocaleMsg; |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | var inv = result.Data as Inventory; |
| | | |
| | | //éªè¯æ¡ç æ¯å¦æ£ç¡® |
| | | if (!inv.isNormalStatus || inv.Status != WMS_ITEM.STATUSs.WaitIn) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("ç¶æ[{0}]å¼å¸¸ï¼è¯·éæ°æ«æ"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.StatusException", string.Join(',', inv.StatusList.Select(q => q.GetDesc()))); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | //ç©æéªè¯ |
| | | if (inv.ItemInfo.IsNullOrEmpty() || inv.ItemInfo.IS_ACTIVE == "N") |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("ç©æç¼ç [{0}]ä¸å卿è
è¯¥ç©ææªå¯ç¨"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.ItemCodeNotExistsOrNotActive", inv.ItemInfo.ITEM_CODE.IsNullOrEmpty(inv.Barcode.ItemCode)); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | CurInvItem = inv; |
| | | } |
| | | |
| | | var receipt = await Biz.Db.Queryable<BIZ_U9_RECEIPT>().Where(q => q.ORDER_NO == CurInvItem.Items.First().TRANS_NO).IncludesAllFirstLayer().FirstAsync(); |
| | | if (receipt.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("æ¶è´§å䏿¾ä¸å°æ¡ç æå±çåæ®[{0}]ä¿¡æ¯ï¼è¯·éæ°æ«ææ¶è´§åçæ¡ç æéæ©æ£ç¡®çåè½ä¸æ¶"); |
| | | action.LocaleMsg = Biz.L("WMS.Print_BIZ_U9_ASN.ScanItem.ReceiptNotExists", CurInvItem.Items.First().TRANS_NO); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | var receiptDtl = receipt.Details.First(q => q.LINE_NO == CurInvItem.Items.First().TRANS_LINE); |
| | | if (receiptDtl.STATUS > BIZ_U9_RECEIPT.STATUSs.Storing.GetValue()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("æ¶è´§åä¸è¡[{0}]ç¶æ[{1}]å¼å¸¸ï¼è¯·æ«ææ£ç¡®çæ¡ç "); |
| | | action.LocaleMsg = Biz.L("WMS.Print_BIZ_U9_ASN.ScanItem.ReceiptDtlStatusException", receiptDtl.LINE_NO, receiptDtl.STATUS.GetEnumDesc<BIZ_U9_RECEIPT.STATUSs>()); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | var receiptSn = receipt.SnList.Where(q => CurInvItem.Items.Any(i => i.SN == q.SN)).ToList(); |
| | | if (receiptSn.Any(q => q.STATUS != WMS_ITEM.STATUSs.WaitIn.GetValue())) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("æ¶è´§å䏿¡ç [{0}]ç¶æ[{1}]å¼å¸¸ï¼è¯·æ«ææ£ç¡®çæ¡ç "); |
| | | action.LocaleMsg = Biz.L("WMS.Print_BIZ_U9_ASN.ScanItem.ReceiptSnStatusException", CurInvItem.SN, receiptSn.First(q => q.STATUS != WMS_ITEM.STATUSs.WaitIn.GetValue()).STATUS.GetEnumDesc<WMS_ITEM.STATUSs>()); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | |
| | | var nLocation = new WMS_LOCATION(); |
| | | // 夿æ¯å¦æºè½è´§æ¶ |
| | | if (CurScanShelf.Shelf.IsLightShelf) |
| | | { |
| | | ShelfApiResult shelfApiResult = await Share.Shelf.PutOn(TransID, CurScanShelf.Shelf, CurInvItem.Items[0]); |
| | | if (!shelfApiResult.IsSuccess) |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = Biz.L(shelfApiResult.GetData<string>()); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | var reaultShelf = shelfApiResult.GetData<ShelfChangeModel>(); |
| | | |
| | | nLocation = reaultShelf.GetLocation(); |
| | | if (nLocation == null) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L($"è´§æ¶[{0}]ä¸ä¸åå¨id为[{1}]çå¨ä½ï¼è¯·å
ç»´æ¤è´§æ¶ä¿¡æ¯"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.LocationNotExistsInShelf", CurScanShelf.Shelf.SHELF_CODE, reaultShelf.ledAddr); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | var locationData = MainDB.Queryable<WMS_ITEM>().Where(q => q.LOCATION_ID == nLocation.ID).First(); |
| | | if (!locationData.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("å¨ä½[{0}]å·²åæç©æ[{1}]ï¼è¯·æ£æ¥ç³»ç»åºåä¿¡æ¯"); |
| | | action.LocaleMsg = Biz.L($"WMS.Default.ScanShelf.ItemAlreadyExistsInLocation", nLocation.LOCATION_CODE, locationData.SN); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | CurScanShelf.LocationCode = nLocation.LOCATION_CODE; |
| | | } |
| | | else |
| | | { |
| | | if (CurScanShelf.LocationCode.IsNullOrEmpty() || CurScanShelf.WarehouseCode.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("请è¾å
¥ææ«æææçè´§æ¶/å¨ä½ç "); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanShelf.ShelfCanNotEmpty"); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | |
| | | nLocation = await MainDB.Queryable<WMS_LOCATION>().Where(t => t.LOCATION_CODE == CurScanShelf.LocationCode && t.AUTH_ORG == OrgCode).FirstAsync(); |
| | | } |
| | | |
| | | //夿å¨ä½æ¯å¦åæ¾ |
| | | if (nLocation.IS_SINGLE == "Y" && CurInvItem.Items.Count > 1) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("å¨ä½[{0}]åªè½åæ¾ä¸ä¸ªç©æ"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.LocationSingleFailure", nLocation.LOCATION_CODE); |
| | | ResetScan(); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | |
| | | //æ§è¡ä¸æ¶æ°æ®å¤ç |
| | | foreach (var item in CurInvItem.Items) |
| | | { |
| | | item.IS_LOCKED = "Y"; |
| | | item.SOURCE_CODE = item.TRANS_CODE; |
| | | item.SOURCE_ORDER = item.TRANS_NO; |
| | | item.SOURCE_LINE = item.TRANS_LINE; |
| | | item.TRANS_CODE = nameof(BIZ_U9_RECEIPT); |
| | | item.TRANS_NO = receipt.ORDER_NO; |
| | | item.TRANS_LINE = receiptDtl.LINE_NO; |
| | | item.PROD_DATE = item.PROD_DATE < new DateTime(2000, 1, 1) ? DateTime.Now : item.PROD_DATE; |
| | | item.FIRST_IN_DATE = item.FIRST_IN_DATE < new DateTime(2000, 1, 1) ? DateTime.Now : item.FIRST_IN_DATE; |
| | | } |
| | | Result putonResult = PutOn(input.AuthOption, nLocation.LOCATION_CODE); |
| | | if (!putonResult.IsSuccessed) |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = putonResult.LocaleMsg; |
| | | ResetScan(); |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | |
| | | //æ´æ°åæ®ä¿¡æ¯ |
| | | foreach(var sn in receiptSn) |
| | | { |
| | | sn.STATUS = WMS_ITEM.STATUSs.InStore.GetValue(); |
| | | sn.IS_IN = "Y"; |
| | | } |
| | | //妿å½åè¡ä¸æ¶å®ææ 记为å¾
å®¡æ ¸ |
| | | receiptDtl.QTY_IN = receipt.SnList.Where(q => q.LINE_NO == receiptDtl.LINE_NO).Sum(q => q.QTY); |
| | | if (receiptDtl.QTY_IN == receiptDtl.QTY) |
| | | { |
| | | receiptDtl.STATUS = BIZ_U9_RECEIPT.STATUSs.Review.GetValue(); |
| | | //å½ååæ®æç»å·²ç»å
¨é¨ä¸æ¶å®æï¼å¯ä»¥è°ç¨U9è¡å®¡æ¥å£ |
| | | var iInput = new SubmitLineInput |
| | | { |
| | | userId = UserCode, |
| | | IsLogin = true, |
| | | param = new() |
| | | { |
| | | RcvLineID = receiptDtl.ID, |
| | | RcvDocNo = receiptDtl.ORDER_NO, |
| | | DocLineNo = receiptDtl.LINE_NO, |
| | | OrgCode = receiptDtl.AUTH_ORG, |
| | | } |
| | | }; |
| | | var result = await DI.Resolve<IWMS_U9C>().ReceivementApproveLine(iInput); |
| | | if (!result.IsSuccessed) |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = result.LocaleMsg; |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | receiptDtl.STATUS = BIZ_U9_RECEIPT.STATUSs.Storing.GetValue(); |
| | | } |
| | | var dtlStatus = receipt.Details.Select(q => q.STATUS).Distinct(); |
| | | if (dtlStatus.Count() == 1 && dtlStatus.First() == BIZ_U9_RECEIPT.STATUSs.Review.GetValue()) |
| | | { |
| | | receipt.STATUS = BIZ_U9_RECEIPT.STATUSs.Review.GetValue(); |
| | | } |
| | | else |
| | | { |
| | | receipt.STATUS = BIZ_U9_RECEIPT.STATUSs.Storing.GetValue(); |
| | | } |
| | | |
| | | //å建åéå
é对象ç¨äºä¼ å
¥DBSubmitActionä¸ä¿åå½åéè¦æåçæ°æ®å¼ |
| | | var _receipt = receipt.Clone(); |
| | | AddCommitAction("Receipt", () => |
| | | { |
| | | //使ç¨ç»ä¸çäºå¡DB对象 |
| | | var db = GetCommitDB(); |
| | | //æ°æ®ä¿åé»è¾ |
| | | db.Updateable(receipt, UserCode).UpdateColumns(q => new { q.STATUS, q.UPDATE_TIME, q.UPDATE_USER }).ExecuteCommand(); |
| | | db.Updateable(receiptDtl, UserCode).UpdateColumns(q => new { q.STATUS, q.QTY_IN, q.UPDATE_TIME, q.UPDATE_USER }).ExecuteCommand(); |
| | | db.Updateable(receiptSn, UserCode).UpdateColumns(q => new { q.STATUS, q.IS_IN, q.UPDATE_TIME, q.UPDATE_USER }).ExecuteCommand(); |
| | | }); |
| | | |
| | | //宿ææå¤çå使ç¨äºå¡ä¿åæ°æ® |
| | | action = DoIfFinish(action, input.Locale); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //åæ¶å½åæä½ |
| | | ResetScan(); |
| | | //action.CatchExceptionWithLog(ex, $"æ«ææ¡ç [{input.SN}]夿 ¸å¼å¸¸"); |
| | | action.CatchExceptionWithLog(ex, Biz.L("WMS.Default.ScanItem.ScanException", input.SN)); |
| | | } |
| | | return SetOutPutMqttMsg(action, input.Locale); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ«æè´§æ¶æè
å¨ä½ |
| | | /// </summary> |
| | | public async Task<ApiAction<ScanOutput>> ScanShelf(string Code, V_WH_UNIT whUnit) |
| | | { |
| | | var action = new ApiAction<ScanOutput>(new ScanOutput() { Command = Command }); |
| | | try |
| | | { |
| | | if (Code.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("请è¾å
¥ææ«æææçè´§æ¶/å¨ä½ç "); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanShelf.ShelfCanNotEmpty"); |
| | | return action; |
| | | } |
| | | |
| | | CurScanShelf = new ScanShelfInfo(); |
| | | |
| | | // æ¥è¯¢è´§æ¶ä¿¡æ¯ |
| | | whUnit = whUnit.IsNullOrEmpty(await MainDB.Queryable<V_WH_UNIT>().Where(t => (t.SHELF_CODE.ToUpper() == Code || t.LOCATION_CODE.ToUpper() == Code) && t.AUTH_ORG == OrgCode).IncludesAllFirstLayer().FirstAsync()); |
| | | |
| | | // æ«æè´§æ¶ä»£ç ï¼ä¸ä¸ºæºè½è´§æ¶ |
| | | if (!whUnit.IsNullOrEmpty() && whUnit.SHELF_CODE == Code) |
| | | { |
| | | CurScanShelf.Shelf = whUnit.Shelf; |
| | | CurScanShelf.WarehouseCode = whUnit.WH_CODE; |
| | | CurScanShelf.RegionCode = whUnit.REGION_CODE; |
| | | CurScanShelf.ShelfCode = whUnit.SHELF_CODE; |
| | | CurScanShelf.ShelfType = whUnit.SHELF_TYPE; |
| | | CurScanShelf.IsSmartRack = true; |
| | | } |
| | | // æ«æåºä½ä»£ç |
| | | else if (!whUnit.IsNullOrEmpty() && whUnit.LOCATION_CODE == Code) |
| | | { |
| | | //var nLocation = await MainDB.Queryable<V_WH_UNIT>().Where(t => t.LOCATION_CODE.ToUpper() == Code.ToUpper() && t.AUTH_ORG == OrgCode).IncludesAllFirstLayer().FirstAsync(); |
| | | //if (nLocation == null) |
| | | //{ |
| | | // action.IsSuccessed = false; |
| | | // //action.LocaleMsg = Biz.L("å¨ä½[{0}]ä¸åå¨"); |
| | | // action.LocaleMsg = Biz.L("WMS.Default.ScanShelf.LocationNotExist", Code); |
| | | // return action; |
| | | //} |
| | | if (whUnit.IS_ACTIVE == "N") |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("æ«æçå¨ä½[{0}]æªå¯ç¨"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanShelf.ShelfOrLocationDisabled", Code); |
| | | return action; |
| | | } |
| | | if (whUnit.Shelf.IsLightShelf || whUnit.Location.IS_SINGLE == "Y") |
| | | { |
| | | var locationData = MainDB.Queryable<WMS_ITEM>().Where(q => q.LOCATION_ID == whUnit.LOCATION_ID && q.AUTH_ORG == OrgCode).First(); |
| | | if (!locationData.IsNullOrEmpty()) |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("å¨ä½[{0}]å·²åæç©æ[{1}]ï¼è¯·æ£æ¥ç³»ç»åºåä¿¡æ¯"); |
| | | action.LocaleMsg = Biz.L($"WMS.Default.ScanShelf.ItemAlreadyExistsInLocation", Code, locationData.SN); |
| | | return action; |
| | | } |
| | | } |
| | | CurScanShelf.Shelf = whUnit.Shelf; |
| | | CurScanShelf.Location = whUnit.Location; |
| | | CurScanShelf.WarehouseCode = whUnit.WH_CODE; |
| | | CurScanShelf.RegionCode = whUnit.REGION_CODE; |
| | | CurScanShelf.ShelfCode = whUnit .SHELF_CODE; |
| | | CurScanShelf.LocationCode = whUnit.LOCATION_CODE; |
| | | CurScanShelf.IsSmartRack = false; |
| | | } |
| | | else |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("请è¾å
¥ææ«æææçè´§æ¶/å¨ä½ç "); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanShelf.ShelfCanNotEmpty"); |
| | | return action; |
| | | } |
| | | |
| | | CurScanShelf.IsScanShelf = true; |
| | | //action.LocaleMsg = Biz.L("æ«æè´§æ¶/å¨ä½[{0}]æå"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanShelf.ScanSucceeded", Code); |
| | | action.Data.Data = CurScanShelf; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //åæ¶å½åæä½ |
| | | ResetScan(); |
| | | //action.CatchExceptionWithLog(ex, $"æ«æè´§æ¶/å¨ä½[{0}]å¼å¸¸"); |
| | | action.CatchExceptionWithLog(ex, Biz.L("WMS.Default.ScanShelf.ScanException", Code)); |
| | | } |
| | | return action; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 宿ææå¤çå使ç¨äºå¡ä¿åæ°æ® |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | public ApiAction<ScanOutput> DoIfFinish(ApiAction<ScanOutput> action, string locale) |
| | | { |
| | | //ä¿åæ°æ®åº |
| | | SaveCommitListToDB(); |
| | | |
| | | // è¿åæ°æ® |
| | | action.Data.Data = new DefaultInStoreOutput |
| | | { |
| | | Barcode = CurInvItem.SN, |
| | | MaterialCode = CurInvItem.ItemInfo.ITEM_CODE, |
| | | MaterialName = CurInvItem.ItemInfo.ITEM_NAME, |
| | | CurrentQty = CurInvItem.Items[0].QTY, |
| | | Unit = CurInvItem.Items[0].UNIT, |
| | | DateCode = CurInvItem.Items[0].PROD_DATE, |
| | | WarehouseCode = CurInvItem.Warehouse.WH_CODE, |
| | | RegionCode = CurInvItem.Region.REGION_CODE, |
| | | ShelfCode = CurInvItem.Shelf.SHELF_CODE, |
| | | LocationCode = CurInvItem.Location.LOCATION_CODE, |
| | | }; |
| | | |
| | | //action.LocaleMsg = Biz.L($"æ«ææ¡ç [{0}]䏿¶å°å¨ä½[{1}]æå"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.PutOnSucceeded", CurInvItem.SN, CurInvItem.Location.LOCATION_CODE); |
| | | |
| | | //éç½®å·¥åº |
| | | ResetScanInfo(); |
| | | return SetOutPutMqttMsg(action, locale); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// éç½®å½åæä½ï¼æéè¦åéåæ¤æ¹æ³ |
| | | /// </summary> |
| | | public override void ResetScan() |
| | | { |
| | | base.ResetScan(); |
| | | ResetScanInfo(); |
| | | CurScanShelf = null; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éç½®æ«ç ä¿¡æ¯ |
| | | /// </summary> |
| | | public void ResetScanInfo() |
| | | { |
| | | Command = null; |
| | | CurInvItem = null; |
| | | } |
| | | |
| | | public override bool Close(bool needSaveHistoryLog = false) |
| | | { |
| | | this.IsFinished = true; |
| | | return IsFinished ? base.Close(needSaveHistoryLog) : IsFinished; |
| | | } |
| | | |
| | | }//endClass |
| | | } |