赫荣康:增加MES提交SN列表的接口
This commit is contained in:
21
NX.ERP.WebAPi/Controllers/MES/MESController.cs
Normal file
21
NX.ERP.WebAPi/Controllers/MES/MESController.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.MES
|
||||
{
|
||||
[RoutePrefix("api/MES")]
|
||||
public class MESController : ApiController
|
||||
{
|
||||
[Route("ReportSnList")]
|
||||
[HttpPost]
|
||||
public bool ReportSnList(Model.Request.ProductOrderReportSn info)
|
||||
{
|
||||
var logic = new NX.ERP.U8.MES.MesLogic();
|
||||
return logic.ReportSnList(info);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,8 +8,8 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
{
|
||||
public class MomOrderController : ApiController
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
[Route("api/MomOrder/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.MOM.MomOrder> List(long Pubufts = 0)
|
||||
@@ -62,8 +62,5 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||
return customerDAL.QueryDetails(momOrder);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -18,9 +18,5 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
var FinanceQuery = new NX.ERP.U8.Finance.WarehouseQuery();
|
||||
return FinanceQuery.ArrivalGet(info);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -158,6 +158,7 @@
|
||||
<Compile Include="App_Start\SwaggerConfig.cs" />
|
||||
<Compile Include="App_Start\WebApiConfig.cs" />
|
||||
<Compile Include="Controllers\AP\ApVouchController.cs" />
|
||||
<Compile Include="Controllers\MES\MESController.cs" />
|
||||
<Compile Include="Controllers\MOM\BomController.cs" />
|
||||
<Compile Include="Controllers\MOM\MomOrderController.cs" />
|
||||
<Compile Include="Controllers\Pmc\WhreportController.cs" />
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
https://go.microsoft.com/fwlink/?LinkId=301879
|
||||
-->
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name="MES_SUBMIT" connectionString="server=10.0.0.12;uid=sa;pwd=1qaz@WSX;database=MES_SUBMIT"/>
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
<add key="server" value="10.0.0.12" />
|
||||
<add key="AccId" value="u8-2@003" />
|
||||
|
||||
Reference in New Issue
Block a user