| | |
| | | var location = Biz.Db.Queryable<V_WH_UNIT>().Where(q => q.LOCATION_CODE == targetLocation && q.AUTH_ORG == option.CurOrg).IncludesAllFirstLayer().First(); |
| | | if (!location.IsNullOrEmpty()) |
| | | { |
| | | var isTransfer = CurInvItem.Location?.LOCATION_CODE != location.LOCATION_CODE; |
| | | var isTransfer = CurInvItem?.Location?.LOCATION_CODE != location.LOCATION_CODE; |
| | | foreach (var item in CurInvItem.Items) |
| | | { |
| | | item.STATUS = WMS_ITEM.STATUSs.InStore.GetValue(); |
| | |
| | | //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) |