| | |
| | | LineK3id = c_mes_inv_item_barcodes.LineK3id, |
| | | ItemId = c_mes_inv_item_barcodes.ItemId, |
| | | DepotCode = c_mes_depots.DepotCode, |
| | | DepotId = c_depot_code.ToString() |
| | | DepotId = c_depot_code.ToString(), |
| | | itemDabid = C_MES_ITEM_TBL_DETAIL.Tlid.ToString() |
| | | }).IgnoreColumns(true).ExecuteCommand(); |
| | | else |
| | | // 存在时更新数量 |
| | |
| | | throw new Exception( |
| | | $"关键数据插入失败,预期至少{minimumExpectedOperations}个操作,实际执行{totalResult}个操作"); |
| | | |
| | | // 创建 插入日志 |
| | | var logService = new LogService(); |
| | | var LogMsg = "[PDA]生产退料。条码【" + query.barcode + "】 退料单号【" + c_bill_no + "】"; |
| | | logService.CreateLog(db, query.userName, tbWOMDAA.Guid.ToString(), "WOMDAA", LogMsg, tbWOMDAA.Daa001); |
| | | |
| | | return totalResult; |
| | | }); |
| | | |