| | |
| | | { |
| | | throw new Exception("未查询到该出库单的信息"); |
| | | } |
| | | if (notice.Status != "3") |
| | | var type1 = new List<string>() { "0", "4" }; //拣货不可多出 |
| | | var type2 = new List<string>() { "1", "2", "3", "5", "6", "7", "8" };//拣货可多出 |
| | | if (type1.Contains(notice.Type)) |
| | | { |
| | | throw new Exception("出库单的状态不是正在执行,不能拣货"); |
| | | if (notice.Status != "3") |
| | | { |
| | | throw new Exception("出库单的状态不是正在执行,不能拣货"); |
| | | } |
| | | } |
| | | if (type2.Contains(notice.Type)) |
| | | { |
| | | if (notice.Status != "3" && notice.Status != "4") |
| | | { |
| | | throw new Exception("出库单的状态不是正在执行或执行完成,不能拣货"); |
| | | } |
| | | } |
| | | //出库单明细 |
| | | var noticeDetail = Db.Queryable<BllExportNoticeDetail>() |