| | |
| | | { |
| | | public IIn_Default Init(string id, string userCode, string apiHost, string orgCode) |
| | | { |
| | | base.Init(id, apiHost, userCode, orgCode); |
| | | base.Init(id, userCode, apiHost, orgCode); |
| | | Logger.Console.Info($"Start {this.GetType().Name} Transaction[ID: {TransID}]"); |
| | | return this; |
| | | } |
| | |
| | | { |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = Biz.L("物料编码[{0}]不存在或者该物料未启用"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.ItemCodeNotExistsOrNotActive", inv.ItemInfo.ITEM_CODE.IsNullOrEmpty(inv.Barcode.ItemCode)); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.ItemCodeNotExistsOrNotActive", inv.ItemInfo?.ITEM_CODE.IsNullOrEmpty(inv.Barcode.ItemCode)); |
| | | return action; |
| | | } |
| | | |
| | |
| | | CurInvItem = inv; |
| | | |
| | | //检查物料数量,如果没有则查询雅达条码主档,把数量返回前端确认 |
| | | if (CurInvItem.Items.Any(q => q.QTY <= 0)) |
| | | //if (CurInvItem.Items.Any(q => q.QTY <= 0)) |
| | | { |
| | | var qtyList = Biz.DataSource["YadaU9C"].Client.Queryable<mes_MaterialBarCode>().Where(q => CurInvItem.Items.Select(q => q.SN).Contains(q.Code)).ToList(); |
| | | foreach (var qty in qtyList) |
| | |
| | | //action.LocaleMsg = Biz.L($"扫描条码[{0}]上架到储位[{1}]成功"); |
| | | action.LocaleMsg = Biz.L("WMS.Default.ScanItem.PutOnSucceeded", CurInvItem.SN, CurInvItem.Location.LOCATION_CODE); |
| | | |
| | | //重置工序 |
| | | ResetScan(); |
| | | //重置扫码信息 |
| | | ResetScanInfo(); |
| | | return action; |
| | | } |
| | | |
| | |
| | | public override void ResetScan() |
| | | { |
| | | base.ResetScan(); |
| | | ResetScanInfo(); |
| | | CurScanShelf = null; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 重置扫码信息 |
| | | /// </summary> |
| | | public void ResetScanInfo() |
| | | { |
| | | Command = null; |
| | | CurInvItem = null; |
| | | CurScanShelf = null; |
| | | } |
| | | |
| | | public override bool Close(bool needSaveHistoryLog = false) |