调整接口显示

This commit is contained in:
gongxh
2021-05-19 14:31:23 +08:00
parent a1b40b8c05
commit 2d0c2c1c13
9 changed files with 56 additions and 18 deletions

View File

@@ -22,6 +22,7 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>x86</PlatformTarget>
<DocumentationFile>bin\Debug\NX.ERP.BLL.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>

View File

@@ -38,6 +38,7 @@
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<DocumentationFile>bin\x86\Debug\NX.ERP.Model.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath> <OutputPath>bin\x86\Release\</OutputPath>

View File

@@ -5,25 +5,45 @@ using System.Text;
namespace NX.ERP.Model.Request namespace NX.ERP.Model.Request
{ {
/// <summary>
///
/// </summary>
public class BinChangeDetail public class BinChangeDetail
{ {
/// <summary>
public string InvCode; /// 存货编码
public string SoucePositon; /// </summary>
public string DestPostion; public string InvCode { get; set; }
public float Qty; /// <summary>
/// 源货位
/// </summary>
public string SoucePositon { get; set; }
/// <summary>
/// 目标货位
/// </summary>
public string DestPostion { get; set; }
/// <summary>
/// 数量
/// </summary>
public float Qty { get; set; }
} }
/// <summary>
/// 货位调整单
/// </summary>
public class BinChange public class BinChange
{ {
/// <summary>
/// 仓库编码
/// </summary>
public string whCode { get; set; } public string whCode { get; set; }
/// <summary>
public IList<BinChangeDetail> binChangeDetails = new List<BinChangeDetail>(); /// 调整明细
/// </summary>
public IList<BinChangeDetail> binChangeDetails { get; set; } = new List<BinChangeDetail>();
} }
} }

View File

@@ -23,6 +23,7 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>x86</PlatformTarget>
<DocumentationFile>bin\Debug\NX.ERP.U8.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>

View File

@@ -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 // those comments into the generated docs and UI. You can enable this by providing the path to one or
// more Xml comment files. // 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 // 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. // 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: // 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. // alternative implementation for ISwaggerProvider with the CustomProvider option.
// //
//c.CustomProvider((defaultProvider) => new CachingSwaggerProvider(defaultProvider)); //c.CustomProvider((defaultProvider) => new CachingSwaggerProvider(defaultProvider));
}) })
.EnableSwaggerUi(c => .EnableSwaggerUi(c =>
{ {

View File

@@ -28,9 +28,14 @@ namespace NX.ERP.WebAPi.Controllers
var customerDAL = new CustomerDAL(); var customerDAL = new CustomerDAL();
return customerDAL.GetList(); return customerDAL.GetList();
} }
/// <summary>
/// 查询
/// </summary>
/// <param name="Param"></param>
/// <returns></returns>
[Route("api/Customer/Query")] [Route("api/Customer/Query")]
[HttpPost] [HttpPost]
public IEnumerable<Model.Customer> Query(NX.ERP.Model.Request.Customer Param) public IEnumerable<Model.Customer> Query(NX.ERP.Model.Request.Customer Param)
{ {
var customerDAL = new CustomerDAL(); var customerDAL = new CustomerDAL();

View File

@@ -6,9 +6,17 @@ using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers.Store namespace NX.ERP.WebAPi.Controllers.Store
{ {
/// <summary>
/// 货位调整单
/// </summary>
public class BinChangeController : ApiController public class BinChangeController : ApiController
{ {
/// <summary>
///添加货位调整单
/// </summary>
/// <param name="storeIn"></param>
/// <returns></returns>
[Route("api/BinChange/Add")] [Route("api/BinChange/Add")]
[HttpPost] [HttpPost]

View File

@@ -37,8 +37,7 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget> <PlatformTarget>x86</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
<DocumentationFile> <DocumentationFile>bin\NX.ERP.WebAPi.xml</DocumentationFile>
</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>

View File

@@ -5,10 +5,10 @@
--> -->
<configuration> <configuration>
<appSettings> <appSettings>
<add key="server" value="10.0.0.12" /> <add key="server" value="192.168.1.14" />
<add key="AccId" value="u8-2@001" /> <add key="AccId" value="002" />
<add key="UserId" value="wx994" /> <add key="UserId" value="0001" />
<add key="Password" value="1" /> <add key="Password" value="123456" />
<add key="EaiPort" value="80" /> <add key="EaiPort" value="80" />
<add key="EaiPath" value="U8EAI/import.asp" /> <add key="EaiPath" value="U8EAI/import.asp" />
<add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Version" value="3.0.0.0" />