质检单查询
This commit is contained in:
36
NX.ERP.WebAPi/Controllers/Qmcheck/QmcheckController.cs
Normal file
36
NX.ERP.WebAPi/Controllers/Qmcheck/QmcheckController.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using NX.ERP.U8.Qmcheck;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class QmcheckController : ApiController
|
||||
{
|
||||
|
||||
[Route("api/Qmcheck/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Qmcheck.Qmcheckvoucher> List()
|
||||
{
|
||||
var Qmcheck = new QmcheckDAL();
|
||||
return Qmcheck.GetList("");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
[Route("api/Qmcheck/{Code}")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Qmcheck.Qmcheckvoucher> GetListByCcheckcode(string Code)
|
||||
{
|
||||
var Qmcheck = new QmcheckDAL();
|
||||
return Qmcheck.GetListByCcheckcode(Code);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -174,6 +174,7 @@
|
||||
<Compile Include="Controllers\Base\SupplierController.cs" />
|
||||
<Compile Include="Controllers\Base\UnitController.cs" />
|
||||
<Compile Include="Controllers\Base\WarehouseController.cs" />
|
||||
<Compile Include="Controllers\Qmcheck\QmcheckController.cs" />
|
||||
<Compile Include="Controllers\Sale\DispatchController.cs" />
|
||||
<Compile Include="Controllers\Store\BinChangeController.cs" />
|
||||
<Compile Include="Controllers\Store\MaterialAppController.cs" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<appSettings>
|
||||
<add key="ApiDbName" value="MES_SUBMIT" />
|
||||
<add key="server" value="10.0.0.12" />
|
||||
<add key="AccId" value="u8-2@001" />
|
||||
<add key="AccId" value="u8-2@007" />
|
||||
<add key="UserId" value="wx995" />
|
||||
<add key="Password" value="1" />
|
||||
<add key="EaiPort" value="80" />
|
||||
|
||||
Reference in New Issue
Block a user