From 2d0c2c1c13b8b5f9d249e2ca52b745ece2b4e9cc Mon Sep 17 00:00:00 2001 From: gongxh Date: Wed, 19 May 2021 14:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.BLL/NX.ERP.BLL.csproj | 1 + NX.ERP.Model/NX.ERP.Model.csproj | 1 + NX.ERP.Model/Request/BinChange.cs | 38 ++++++++++++++----- NX.ERP.U8/NX.ERP.U8.csproj | 1 + NX.ERP.WebAPi/App_Start/SwaggerConfig.cs | 5 ++- .../Controllers/Base/CustomerController.cs | 7 +++- .../Controllers/Store/BinChangeController.cs | 8 ++++ NX.ERP.WebAPi/NX.ERP.WebAPi.csproj | 3 +- NX.ERP.WebAPi/Web.config | 10 ++--- 9 files changed, 56 insertions(+), 18 deletions(-) diff --git a/NX.ERP.BLL/NX.ERP.BLL.csproj b/NX.ERP.BLL/NX.ERP.BLL.csproj index df16ec1..b96dc8f 100644 --- a/NX.ERP.BLL/NX.ERP.BLL.csproj +++ b/NX.ERP.BLL/NX.ERP.BLL.csproj @@ -22,6 +22,7 @@ prompt 4 x86 + bin\Debug\NX.ERP.BLL.xml pdbonly diff --git a/NX.ERP.Model/NX.ERP.Model.csproj b/NX.ERP.Model/NX.ERP.Model.csproj index db7ebf5..4410b91 100644 --- a/NX.ERP.Model/NX.ERP.Model.csproj +++ b/NX.ERP.Model/NX.ERP.Model.csproj @@ -38,6 +38,7 @@ x86 7.3 prompt + bin\x86\Debug\NX.ERP.Model.xml bin\x86\Release\ diff --git a/NX.ERP.Model/Request/BinChange.cs b/NX.ERP.Model/Request/BinChange.cs index 88934eb..ef0964c 100644 --- a/NX.ERP.Model/Request/BinChange.cs +++ b/NX.ERP.Model/Request/BinChange.cs @@ -5,25 +5,45 @@ using System.Text; namespace NX.ERP.Model.Request { - + /// + /// + /// public class BinChangeDetail { - - public string InvCode; - public string SoucePositon; - public string DestPostion; - public float Qty; + /// + /// 存货编码 + /// + public string InvCode { get; set; } + /// + /// 源货位 + /// + public string SoucePositon { get; set; } + /// + /// 目标货位 + /// + public string DestPostion { get; set; } + /// + /// 数量 + /// + public float Qty { get; set; } } - + /// + /// 货位调整单 + /// public class BinChange { + /// + /// 仓库编码 + /// public string whCode { get; set; } - - public IList binChangeDetails = new List(); + /// + /// 调整明细 + /// + public IList binChangeDetails { get; set; } = new List(); } } diff --git a/NX.ERP.U8/NX.ERP.U8.csproj b/NX.ERP.U8/NX.ERP.U8.csproj index e41f733..20a4a28 100644 --- a/NX.ERP.U8/NX.ERP.U8.csproj +++ b/NX.ERP.U8/NX.ERP.U8.csproj @@ -23,6 +23,7 @@ prompt 4 x86 + bin\Debug\NX.ERP.U8.xml pdbonly diff --git a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs index 9942a40..85877f5 100644 --- a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs +++ b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs @@ -101,8 +101,9 @@ namespace NX.ERP.WebAPi // those comments into the generated docs and UI. You can enable this by providing the path to one or // more Xml comment files. // - // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); + c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); + c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory)); // Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types // exposed in your API. However, there may be occasions when more control of the output is needed. // This is supported through the "MapType" and "SchemaFilter" options: @@ -176,6 +177,8 @@ namespace NX.ERP.WebAPi // alternative implementation for ISwaggerProvider with the CustomProvider option. // //c.CustomProvider((defaultProvider) => new CachingSwaggerProvider(defaultProvider)); + + }) .EnableSwaggerUi(c => { diff --git a/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs b/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs index 4fabb77..8bf10ef 100644 --- a/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs @@ -28,9 +28,14 @@ namespace NX.ERP.WebAPi.Controllers var customerDAL = new CustomerDAL(); return customerDAL.GetList(); } - + /// + /// 查询 + /// + /// + /// [Route("api/Customer/Query")] [HttpPost] + public IEnumerable Query(NX.ERP.Model.Request.Customer Param) { var customerDAL = new CustomerDAL(); diff --git a/NX.ERP.WebAPi/Controllers/Store/BinChangeController.cs b/NX.ERP.WebAPi/Controllers/Store/BinChangeController.cs index 7d16e06..99eca1c 100644 --- a/NX.ERP.WebAPi/Controllers/Store/BinChangeController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/BinChangeController.cs @@ -6,9 +6,17 @@ using System.Web.Http; namespace NX.ERP.WebAPi.Controllers.Store { + /// + /// 货位调整单 + /// public class BinChangeController : ApiController { + /// + ///添加货位调整单 + /// + /// + /// [Route("api/BinChange/Add")] [HttpPost] diff --git a/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj b/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj index 0cc9ea0..eef99f5 100644 --- a/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj +++ b/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj @@ -37,8 +37,7 @@ 4 x86 false - - + bin\NX.ERP.WebAPi.xml true diff --git a/NX.ERP.WebAPi/Web.config b/NX.ERP.WebAPi/Web.config index 9e67996..7973503 100644 --- a/NX.ERP.WebAPi/Web.config +++ b/NX.ERP.WebAPi/Web.config @@ -5,11 +5,11 @@ --> - - - - - + + + + +