From 59294dc06b9d83ea7447c6fa84543e940332b228 Mon Sep 17 00:00:00 2001 From: gongxh Date: Mon, 7 Jun 2021 11:09:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.Model/Request/MomOrder.cs | 2 +- NX.ERP.Model/Request/OtherStoreIn.cs | 1 + NX.ERP.U8/Mom/MomOrderDAL.cs | 18 +++++++++--------- NX.ERP.U8/Store/BinChangeDAL.cs | 1 - NX.ERP.U8/Store/OtherStoreOutDAL.cs | 3 +-- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/NX.ERP.Model/Request/MomOrder.cs b/NX.ERP.Model/Request/MomOrder.cs index 2048e75..0e73427 100644 --- a/NX.ERP.Model/Request/MomOrder.cs +++ b/NX.ERP.Model/Request/MomOrder.cs @@ -8,7 +8,7 @@ namespace NX.ERP.Model.Request public class MomOrder: BaseModel { - public string ProductOrderNo { get; set; } + public IEnumerable ProductOrderNo { get; set; } public string ProductCode { get; set; } diff --git a/NX.ERP.Model/Request/OtherStoreIn.cs b/NX.ERP.Model/Request/OtherStoreIn.cs index 8b282de..33edd3f 100644 --- a/NX.ERP.Model/Request/OtherStoreIn.cs +++ b/NX.ERP.Model/Request/OtherStoreIn.cs @@ -7,6 +7,7 @@ namespace NX.ERP.Model.Request { public class OtherStoreInOut { + public int Id { get; set; } public string Code { get; set; } public DateTime Date { get; set; } diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs index ddf3d6f..77f0a9a 100644 --- a/NX.ERP.U8/Mom/MomOrderDAL.cs +++ b/NX.ERP.U8/Mom/MomOrderDAL.cs @@ -101,9 +101,9 @@ namespace NX.ERP.U8.Mom { where.Add(" b.InvCode like @ProductCode"); } - if (!string.IsNullOrEmpty(Params.ProductOrderNo)) + if (Params.ProductOrderNo!=null) { - where.Add(" a.moCode like @ProductOrderNo "); + where.Add(" a.moCode in @ProductOrderNo "); } if (!string.IsNullOrEmpty(Params.ProductOrderendID)) { @@ -132,7 +132,7 @@ namespace NX.ERP.U8.Mom return this.GetList(string.Join(" and ", where.ToArray()), new { ProductCode = $"%{Params.ProductCode}%", - ProductOrderNo = $"{Params.ProductOrderNo}", + ProductOrderNo =Params.ProductOrderNo, Params.ProductOrderendID, Params.ModifyDate, Params.Pubufts, @@ -160,9 +160,9 @@ namespace NX.ERP.U8.Mom { where.Add(" a.InvCode like @ProductCode"); } - if (!string.IsNullOrEmpty(Params.ProductOrderNo)) + if (Params.ProductOrderNo!=null) { - where.Add(" a.moCode like @ProductOrderNo "); + where.Add(" a.moCode in @ProductOrderNo "); } if (!string.IsNullOrEmpty(Params.ProductOrderendID)) { @@ -171,7 +171,7 @@ namespace NX.ERP.U8.Mom return this.GetOrders(string.Join(" and ", where.ToArray()), new { ProductCode = $"%{Params.ProductCode}%", - ProductOrderNo = $"{Params.ProductOrderNo}", + ProductOrderNo = Params.ProductOrderNo, ProductOrderendID = $"{Params.ProductOrderendID}" }); } @@ -234,9 +234,9 @@ namespace NX.ERP.U8.Mom { where.Add(" b.InvCode like @ProductCode"); } - if (!string.IsNullOrEmpty(Params.ProductOrderNo)) + if (Params.ProductOrderNo!=null) { - where.Add(" b.moCode like @ProductOrderNo "); + where.Add(" b.moCode in @ProductOrderNo "); } if (!string.IsNullOrEmpty(Params.ProductOrderendID)) { @@ -245,7 +245,7 @@ namespace NX.ERP.U8.Mom return this.GetDetails(string.Join(" and ", where.ToArray()), new { ProductCode = $"%{Params.ProductCode}%", - ProductOrderNo = $"{Params.ProductOrderNo}", + ProductOrderNo =Params.ProductOrderNo, ProductOrderendID = $"{Params.ProductOrderendID}" }); } diff --git a/NX.ERP.U8/Store/BinChangeDAL.cs b/NX.ERP.U8/Store/BinChangeDAL.cs index 3ee2ac0..fc12005 100644 --- a/NX.ERP.U8/Store/BinChangeDAL.cs +++ b/NX.ERP.U8/Store/BinChangeDAL.cs @@ -40,7 +40,6 @@ namespace NX.ERP.U8.Store bodyXml.setAttribute("caposcode", item.DestPostion); bodyXml.setAttribute("iquantity", item.Qty); domBody.selectSingleNode("//rs:data").appendChild(bodyXml); - } domHead.selectSingleNode("//rs:data").appendChild(headXml); diff --git a/NX.ERP.U8/Store/OtherStoreOutDAL.cs b/NX.ERP.U8/Store/OtherStoreOutDAL.cs index bc6de17..2cb4eab 100644 --- a/NX.ERP.U8/Store/OtherStoreOutDAL.cs +++ b/NX.ERP.U8/Store/OtherStoreOutDAL.cs @@ -81,8 +81,7 @@ namespace NX.ERP.U8.Store } domHead.selectSingleNode("//rs:data").appendChild(headXml); - var str = voucherParameter.DomBody.xml; - Console.WriteLine(str); + try { return AddRdVoucher(voucherParameter);