| | |
| | | result.LocaleMsg = new($"工单[{input.Wo.ORDER_NO}]已经存在工单批次[{_batch.BATCH_NO}]在线体[{input.WoBatch.ACT_LINE}]中状态为[{_batch.STATUS.GetEnumDesc<BIZ_MES_WO.STATUSs>()}],不能下发!"); |
| | | return result; |
| | | } |
| | | WoContext.RemoveBatch(input.WoBatch.BATCH_NO); |
| | | //WoContext.RemoveBatch(input.WoBatch.BATCH_NO); |
| | | input.Wo.ACT_LINE = input.WoBatch.ACT_LINE; |
| | | input.Wo.RELEASE_TIME = DateTime.Now; |
| | | input.Wo.RELEASE_USER = input.WoBatch.UPDATE_USER; |
| | |
| | | _woBatch.STATUS = input.Status < 0 ? _woBatch.STATUS : input.Status; |
| | | if (input.Status == BIZ_MES_WO_BATCH.STATUSs.Paused.GetValue()) |
| | | { |
| | | WoContext.RemoveBatch(input.WoBatch); |
| | | //WoContext.RemoveBatch(input.WoBatch); |
| | | } |
| | | //如果是下发 |
| | | if (input.Status == BIZ_MES_WO_BATCH.STATUSs.Release.GetValue()) |