| | |
| | | //如果是手工创建的调拨单 |
| | | isManual = req.STATUS == BIZ_WMS_TRANSFER.STATUSs.MANUAL.GetValue(); |
| | | |
| | | Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand(); |
| | | //如果上一次推荐有数据,则先灭掉亮的灯 |
| | | if (Suggests.Any()) |
| | | { |
| | |
| | | Suggests.RemoveAll(q => q.poolItem.IsNullOrEmpty()); |
| | | |
| | | //保存物料池到数据库 |
| | | var db = Biz.Db; |
| | | var dbTran = db.UseTran(() => |
| | | { |
| | | db.Insertable(CurPoolList).ExecuteCommand(); |
| | | }); |
| | | if (!dbTran.IsSuccess) |
| | | { |
| | | Logger.Default.Fatal(dbTran.ErrorException, "Database transaction save exception"); |
| | | this.Close(!dbTran.IsSuccess); |
| | | throw dbTran.ErrorException; |
| | | } |
| | | Biz.Db.Insertable(CurPoolList).ExecuteCommand(); |
| | | action = await LightAll(new() { AuthOption = input.AuthOption, ReqType = CurReqType, Color = LedColor.Blue }); |
| | | } |
| | | catch (Exception ex) |