| | |
| | | string sqlString = string.Empty; |
| | | string sqlDetailStr = string.Empty; |
| | | //0:成品入库 1:采购入库 2:中间品入库 3:退货入库 4:车间余料入库 5:其它入库 6:代储入库 7:寄存入库 |
| | | var TypeLot = "1, 5, 6, 7"; //批次可为空单据类型 |
| | | var TypeLot = "1, 6, 7"; //批次可为空单据类型 |
| | | |
| | | try |
| | | { |
| | |
| | | } |
| | | //判断是否为采购入库单据或车间余料退回入库 |
| | | // 0:成品入库 1:采购入库 2:中间品入库 3:退货入库 4:车间余料退回入库 5:其它入库 6:代储入库 7:寄存入库 |
| | | if (model.Type == "5" || model.Type == "6" || model.Type == "7")//model.Type == "1" || |
| | | if (model.Type == "6" || model.Type == "7")//model.Type == "1" || |
| | | { |
| | | if (!string.IsNullOrWhiteSpace(detailModel.LotNo)) |
| | | { |
| | |
| | | detailModel.LotNo = maxLotNo; |
| | | } |
| | | } |
| | | if (model.Type == "0" || model.Type == "2" || model.Type == "3" || model.Type == "4") |
| | | if (model.Type == "0" || model.Type == "2" || model.Type == "3" || model.Type == "4" || model.Type == "5") |
| | | { |
| | | if (string.IsNullOrWhiteSpace(detailModel.LotNo)) |
| | | { |