| | |
| | | action.LocaleMsg = new("MES.Transaction.Position.SelectOrder.BatchStatusException", input.OrderNo, batch.BATCH_NO, batch.STATUS.GetEnumDesc<BIZ_MES_WO_BATCH.STATUSs>()); |
| | | return action; |
| | | } |
| | | var wb = new WorkBatch(input.OrderNo).Init(CurLine.LINE_CODE); |
| | | WoContext.WoBatchDic.Add(wb.Batch.BATCH_NO, wb); |
| | | var wb = WoContext.Add(input.OrderNo, CurLine.LINE_CODE); |
| | | batchNo = wb.Batch.BATCH_NO; |
| | | } |
| | | CurBatch = WoContext.GetBatch(input.OrderNo, CurLine.LINE_CODE, batchNo); |
| | |
| | | return list; |
| | | } |
| | | #endregion |
| | | #region 提交前通用方法 |
| | | public async Task<ApiAction> CheckCode(string code) { |
| | | var action = new ApiAction(); |
| | | try |
| | | { |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, $"检查条码{code}异常"); |
| | | } |
| | | return action; |
| | | } |
| | | #endregion |
| | | #endregion Functions |
| | | |
| | | public override bool Close(bool needSaveHistoryLog = false) |