添加过帐单
This commit is contained in:
22
NX.ERP.WebAPi/Controllers/AP/APController.cs
Normal file
22
NX.ERP.WebAPi/Controllers/AP/APController.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.AP
|
||||
{
|
||||
public class APController : ApiController
|
||||
{
|
||||
|
||||
[Route("api/ap/add")]
|
||||
[HttpPost]
|
||||
public string AddVoucher(NX.ERP.Model.Request.ApVouch ApVouch)
|
||||
{
|
||||
var dal = new NX.ERP.U8.AP.APVouch();
|
||||
return dal.AddVocher(ApVouch);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,11 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
<HintPath>..\NX.ERP.U8\lib\ADODB.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>
|
||||
@@ -152,6 +157,7 @@
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="App_Start\SwaggerConfig.cs" />
|
||||
<Compile Include="App_Start\WebApiConfig.cs" />
|
||||
<Compile Include="Controllers\AP\APController.cs" />
|
||||
<Compile Include="Controllers\MOM\BomController.cs" />
|
||||
<Compile Include="Controllers\MOM\MomOrderController.cs" />
|
||||
<Compile Include="Controllers\Pmc\FinanceController.cs" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<appSettings>
|
||||
<add key="server" value="10.0.0.12" />
|
||||
<add key="AccId" value="u8-2@001" />
|
||||
<add key="UserId" value="wx997" />
|
||||
<add key="UserId" value="wx996" />
|
||||
<add key="Password" value="1" />
|
||||
<add key="EaiPort" value="80" />
|
||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||
|
||||
Reference in New Issue
Block a user