| | |
| | | )) |
| | | .Where((a, b) => a.DepotSectionCode == p_section_code) |
| | | .Select((a, b) => new |
| | | { a.DepotSectionName, b.DepotCode, b.DepotName, b.DepotId }) |
| | | { a.DepotSectionName, b.DepotCode, b.DepotName, b.DepotId,b.FSubsidiary }) |
| | | .Single(); |
| | | |
| | | // 如果库位代码不存在,则返回错误信息 |
| | |
| | | ? "1" |
| | | : "0", |
| | | CbillNo = c_mes_inv_item_barcodes.BillNo, |
| | | Fstatus = 0 |
| | | Fstatus = 0, |
| | | ReceiveOrgId = depotSection.FSubsidiary, |
| | | }; |
| | | db.Insertable(newMesInvItemIns) |
| | | .IgnoreColumns(true) |
| | |
| | | UrgentFlag = c_mes_inv_item_barcodes.UrgentFlag, |
| | | BoardStyle = c_mes_inv_item_barcodes.BoardStyle, |
| | | TaskNo = c_mes_inv_item_barcodes.TaskNo, |
| | | ItemId = c_mes_inv_item_barcodes.ItemId |
| | | ItemId = c_mes_inv_item_barcodes.ItemId, |
| | | ReceiveOrgId = depotSection.FSubsidiary, |
| | | }).IgnoreColumns(true).ExecuteCommand(); |
| | | |
| | | |
| | |
| | | // ItemUnit = c_mes_inv_item_barcodes.Unit, |
| | | SuppNo = c_mes_inv_item_barcodes.SuppNo, |
| | | ItemId = c_mes_inv_item_barcodes.ItemId, |
| | | IndepUserCode = c_user |
| | | IndepUserCode = c_user, |
| | | StockOrgId = depotSection.FSubsidiary, |
| | | // Fsubsidiary = c_organize |
| | | }).IgnoreColumns(true).ExecuteCommand(); |
| | | |