| | |
| | | )) |
| | | .Where((a, b) => a.DepotSectionCode == p_section_code) |
| | | .Select((a, b) => new |
| | | { a.DepotSectionName, b.DepotCode, b.DepotName }) |
| | | { a.DepotSectionName, b.DepotCode, b.DepotName }) |
| | | .Single(); |
| | | |
| | | // 如果库位代码不存在,则返回错误信息 |
| | |
| | | )) |
| | | .Where((a, b) => a.DepotSectionCode == p_section_code) |
| | | .Select((a, b) => new |
| | | { a.DepotSectionName, b.DepotCode, b.DepotName, b.DepotId,b.FSubsidiary }) |
| | | { a.DepotSectionName, b.DepotCode, b.DepotName, b.DepotId, b.FSubsidiary }) |
| | | .Single(); |
| | | |
| | | // 如果库位代码不存在,则返回错误信息 |
| | |
| | | billNo: "", // 根据实际单据号传值 |
| | | transactionNo: "601" // 事务类型与存储过程匹配 |
| | | ); |
| | | |
| | | if ( Convert.ToInt32(checkResult.result) < 1) |
| | | |
| | | if (Convert.ToInt32(checkResult.result) < 1) |
| | | throw new Exception($"入库校验失败:{checkResult.strMsg}"); |
| | | |
| | | UseTransaction(db => |
| | |
| | | WorkNo = c_mes_inv_item_barcodes.WorkNo, |
| | | WorkLine = c_mes_inv_item_barcodes.WorkLine, |
| | | SuppNo = c_mes_inv_item_barcodes.SuppNo, |
| | | ItemId = c_mes_inv_item_barcodes.ItemId |
| | | ItemId = c_mes_inv_item_barcodes.ItemId, |
| | | Description = "期初入库" |
| | | }).IgnoreColumns(true).ExecuteCommand(); |
| | | |
| | | // 插入库存信息 |
| | |
| | | ItemId = c_mes_inv_item_barcodes.ItemId, |
| | | IndepUserCode = c_user, |
| | | StockOrgId = depotSection.FSubsidiary, |
| | | OwnerId = depotSection.FSubsidiary, |
| | | OwnerType = "BD_OwnerOrg", |
| | | // Fsubsidiary = c_organize |
| | | }).IgnoreColumns(true).ExecuteCommand(); |
| | | |
| | |
| | | while (reader.Read()) |
| | | { |
| | | var barcode = reader.GetString(0); |
| | | |
| | | |
| | | // 构建符合方法签名的参数对象 |
| | | var scanQuery = new WarehouseQuery |
| | | var scanQuery = new WarehouseQuery |
| | | { |
| | | barcode = barcode, |
| | | DepotCode = query.sectionCode, // 从原始query获取库位编码 |
| | | userName = query.userName // 从原始query获取用户账号 |
| | | }; |
| | | |
| | | |
| | | try |
| | | { |
| | | // 调用正式签名方法 |
| | | ScanBarcode(scanQuery); |
| | | var printData = GetPrintBar(barcode); |
| | | var printData = GetPrintBar(barcode); |
| | | resultList.Add(printData); |
| | | } |
| | | catch (Exception ex) |