This commit is contained in:
gongxh
2021-04-29 13:58:35 +08:00
9 changed files with 317 additions and 5 deletions

View File

@@ -0,0 +1,33 @@
using NX.ERP.U8.Purchase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers
{
public class PmcController : ApiController
{
[HttpPost]
[Route("api/Pmc/Inventoryall")]
public IEnumerable<NX.ERP.Model.PmcInventoryallRes> Post1(NX.ERP.Model.Request.Inventoryall info)
{
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
return PmcQuery.Post1(info);
}
[HttpPost]
[Route("api/Pmc/Inventorymom")]
public IEnumerable<object> Post2([FromBody] List<string> info1)
{
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
return PmcQuery.Post2(info1);
}
}
}

View File

@@ -56,6 +56,9 @@
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Dapper, Version=1.40.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Dapper.1.40\lib\net45\Dapper.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.Owin, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.4.1.1\lib\net45\Microsoft.Owin.dll</HintPath>
@@ -157,6 +160,7 @@
<Compile Include="App_Start\SwaggerConfig.cs" />
<Compile Include="App_Start\WebApiConfig.cs" />
<Compile Include="Controllers\MOM\MomOrderController.cs" />
<Compile Include="Controllers\Pmc\PmcController.cs" />
<Compile Include="Controllers\Purchase\ArrivalController.cs" />
<Compile Include="Controllers\Base\HomeController.cs" />
<Compile Include="Controllers\Base\CustomerController.cs" />

View File

@@ -10,6 +10,11 @@
<add key="UserId" value="wx997" />
<add key="Password" value="1" />
<add key="EaiPort" value="80" />
<add key="server" value="192.168.0.250" />
<add key="AccId" value="u8@001" />
<add key="UserId" value="wxapi" />
<add key="Password" value="1" />
<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" />

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Antlr" version="3.5.0.2" targetFramework="net45" />
<package id="Dapper" version="1.40" targetFramework="net45" />
<package id="jQuery" version="3.4.1" targetFramework="net45" />
<package id="Microsoft.AspNet.Cors" version="5.2.7" targetFramework="net45" />
<package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net45" />