调整接口显示
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DocumentationFile>bin\Debug\NX.ERP.BLL.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<DocumentationFile>bin\x86\Debug\NX.ERP.Model.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
|
||||
@@ -5,25 +5,45 @@ using System.Text;
|
||||
|
||||
namespace NX.ERP.Model.Request
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class BinChangeDetail
|
||||
{
|
||||
|
||||
public string InvCode;
|
||||
public string SoucePositon;
|
||||
public string DestPostion;
|
||||
public float Qty;
|
||||
/// <summary>
|
||||
/// 存货编码
|
||||
/// </summary>
|
||||
public string InvCode { get; set; }
|
||||
/// <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
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库编码
|
||||
/// </summary>
|
||||
public string whCode { get; set; }
|
||||
|
||||
|
||||
public IList<BinChangeDetail> binChangeDetails = new List<BinChangeDetail>();
|
||||
/// <summary>
|
||||
/// 调整明细
|
||||
/// </summary>
|
||||
public IList<BinChangeDetail> binChangeDetails { get; set; } = new List<BinChangeDetail>();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DocumentationFile>bin\Debug\NX.ERP.U8.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
||||
@@ -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 =>
|
||||
{
|
||||
|
||||
@@ -28,9 +28,14 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
var customerDAL = new CustomerDAL();
|
||||
return customerDAL.GetList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="Param"></param>
|
||||
/// <returns></returns>
|
||||
[Route("api/Customer/Query")]
|
||||
[HttpPost]
|
||||
|
||||
public IEnumerable<Model.Customer> Query(NX.ERP.Model.Request.Customer Param)
|
||||
{
|
||||
var customerDAL = new CustomerDAL();
|
||||
|
||||
@@ -6,9 +6,17 @@ using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
/// <summary>
|
||||
/// 货位调整单
|
||||
/// </summary>
|
||||
public class BinChangeController : ApiController
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///添加货位调整单
|
||||
/// </summary>
|
||||
/// <param name="storeIn"></param>
|
||||
/// <returns></returns>
|
||||
[Route("api/BinChange/Add")]
|
||||
[HttpPost]
|
||||
|
||||
|
||||
@@ -37,8 +37,7 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DocumentationFile>bin\NX.ERP.WebAPi.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
-->
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="server" value="10.0.0.12" />
|
||||
<add key="AccId" value="u8-2@001" />
|
||||
<add key="UserId" value="wx994" />
|
||||
<add key="Password" value="1" />
|
||||
<add key="EaiPort" value="80" />
|
||||
<add key="server" value="192.168.1.14" />
|
||||
<add key="AccId" value="002" />
|
||||
<add key="UserId" value="0001" />
|
||||
<add key="Password" value="123456" />
|
||||
<add key="EaiPort" value="80" />
|
||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
|
||||
Reference in New Issue
Block a user