From 2a4d6e8ff51ba28be3a0cd808a544023d346bba7 Mon Sep 17 00:00:00 2001 From: majian <780924089@qq.com> Date: Thu, 1 Aug 2024 10:47:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8B=A8=E5=87=BA=E5=BA=93=E5=8D=95?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dto/ErpInputs/TransferOutstockInput.cs | 12 +++++++++++- .../Entity/WmsRawmatTransferinstockH.cs | 10 ++++++++++ WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs | 4 +++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/ErpInputs/TransferOutstockInput.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/ErpInputs/TransferOutstockInput.cs index 51b84b39..4eea13b3 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/ErpInputs/TransferOutstockInput.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Dto/ErpInputs/TransferOutstockInput.cs @@ -11,7 +11,7 @@ namespace Tnb.WarehouseMgr.Entities.Dto.ErpInputs /// /// 单号 /// - public string? outsource_order { get; set; } + public string? transfer_order { get; set; } /// /// 联系人 @@ -23,6 +23,16 @@ namespace Tnb.WarehouseMgr.Entities.Dto.ErpInputs /// public string? tel { get; set; } + /// + /// 部门编码 + /// + public string? dept_code { get; set; } + + /// + /// 业务员编码 + /// + public string? biller { get; set; } + /// /// 出库组织编号 /// diff --git a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsRawmatTransferinstockH.cs b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsRawmatTransferinstockH.cs index f53d0e64..c5c735cd 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsRawmatTransferinstockH.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr.Entities/Entity/WmsRawmatTransferinstockH.cs @@ -109,4 +109,14 @@ public partial class WmsRawmatTransferinstockH : BaseEntity /// public string? erp_bill_code { get; set; } + /// + /// 部门编码 + /// + public string? dept_code { get; set; } + + /// + /// 业务员编码 + /// + public string? biller { get; set; } + } diff --git a/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs b/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs index fc3fe93a..029d0687 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/ErpToWmsService.cs @@ -849,13 +849,15 @@ namespace Tnb.WarehouseMgr Code = await _billRuleService.GetBillNumber("WmsRawMatTransferInstock"); wmsRawmatTransferinstockH.bill_code = Code; - wmsRawmatTransferinstockH.erp_bill_code = input.outsource_order; + wmsRawmatTransferinstockH.erp_bill_code = input.transfer_order; wmsRawmatTransferinstockH.contact_person = input.contact_person; wmsRawmatTransferinstockH.tel = input.tel; wmsRawmatTransferinstockH.outstockorg_code = input.outstockorg_code; wmsRawmatTransferinstockH.erp_pk = input.erp_pk; wmsRawmatTransferinstockH.create_id = WmsWareHouseConst.ErpUserId; wmsRawmatTransferinstockH.create_time = DateTime.Now; + wmsRawmatTransferinstockH.dept_code = input.dept_code; + wmsRawmatTransferinstockH.biller = input.biller; await db.Insertable(wmsRawmatTransferinstockH).ExecuteCommandAsync();