修正
This commit is contained in:
@@ -6,8 +6,16 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.BLL.Store
|
namespace NX.ERP.BLL.Store
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
public class SotreOut
|
public class SotreOut
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 添加出库单据
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="outBound"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public StoreResult AddVoucher(Model.OutBound outBound)
|
public StoreResult AddVoucher(Model.OutBound outBound)
|
||||||
{
|
{
|
||||||
string ID = "";
|
string ID = "";
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<Compile Include="Sale\DispatchListDAL.cs" />
|
<Compile Include="Sale\DispatchListDAL.cs" />
|
||||||
<Compile Include="Store\BaseBill.cs" />
|
<Compile Include="Store\BaseBill.cs" />
|
||||||
<Compile Include="Store\BinChangeDAL.cs" />
|
<Compile Include="Store\BinChangeDAL.cs" />
|
||||||
<Compile Include="Store\MaterialAppVoucherDAL.cs" />
|
<Compile Include="Store\MaterialAppDAL.cs" />
|
||||||
<Compile Include="Store\MaterielStoreOutDAL.cs" />
|
<Compile Include="Store\MaterielStoreOutDAL.cs" />
|
||||||
<Compile Include="Store\OtherStoreInDAL.cs" />
|
<Compile Include="Store\OtherStoreInDAL.cs" />
|
||||||
<Compile Include="Store\OtherStoreOutDAL.cs" />
|
<Compile Include="Store\OtherStoreOutDAL.cs" />
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ namespace NX.ERP.U8.Store
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 领料申请
|
/// 领料申请
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MaterialAppVoucherDAL : VoucherBase
|
public class MaterialAppDAL : VoucherBase
|
||||||
{
|
{
|
||||||
public MaterialAppVoucherDAL() : base("64", "U8API/AppVouchs")
|
public MaterialAppDAL() : base("64", "U8API/AppVouchs")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ namespace NX.ERP.U8.Store
|
|||||||
/// <param name="domBody"></param>
|
/// <param name="domBody"></param>
|
||||||
private void ByMaterialApp(Model.Request.MaterialStoreOut storeOut, IXMLDOMElement headXml, DOMDocument domBody)
|
private void ByMaterialApp(Model.Request.MaterialStoreOut storeOut, IXMLDOMElement headXml, DOMDocument domBody)
|
||||||
{
|
{
|
||||||
var metailApp = new U8.Store.MaterialAppVoucherDAL().GetModel(storeOut.SourceCode);
|
var metailApp = new U8.Store.MaterialAppDAL().GetModel(storeOut.SourceCode);
|
||||||
if (metailApp == null)
|
if (metailApp == null)
|
||||||
{
|
{
|
||||||
throw new Exception("未知的领料申请单");
|
throw new Exception("未知的领料申请单");
|
||||||
|
|||||||
@@ -6,24 +6,24 @@ using System.Web.Http;
|
|||||||
|
|
||||||
namespace NX.ERP.WebAPi.Controllers.Store
|
namespace NX.ERP.WebAPi.Controllers.Store
|
||||||
{
|
{
|
||||||
public class MaterialAppVoucherController : ApiController
|
public class MaterialAppController : ApiController
|
||||||
{
|
{
|
||||||
[Route("api/MaterialAppVoucher/List")]
|
[Route("api/MaterialApp/List")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
||||||
public IEnumerable<Model.Response.Store.MaterialApp> Lsit()
|
public IEnumerable<Model.Response.Store.MaterialApp> Lsit()
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
var dal = new NX.ERP.U8.Store.MaterialAppDAL();
|
||||||
return dal.GetList();
|
return dal.GetList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[Route("api/MaterialAppVoucher/PendingList")]
|
[Route("api/MaterialApp/PendingList")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
||||||
public IEnumerable<Model.Response.Store.MaterialApp> GetPendingList()
|
public IEnumerable<Model.Response.Store.MaterialApp> GetPendingList()
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
var dal = new NX.ERP.U8.Store.MaterialAppDAL();
|
||||||
return dal.GetPendingList();
|
return dal.GetPendingList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,42 +31,42 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Route("api/MaterialAppVoucher/Model")]
|
[Route("api/MaterialApp/Model")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
||||||
public Model.Response.Store.MaterialApp GetModel(string Code)
|
public Model.Response.Store.MaterialApp GetModel(string Code)
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
var dal = new NX.ERP.U8.Store.MaterialAppDAL();
|
||||||
return dal.GetModel(Code);
|
return dal.GetModel(Code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Route("api/MaterialAppVoucher/ListByMoCode")]
|
[Route("api/MaterialApp/ListByMoCode")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
||||||
public IEnumerable<Model.Response.Store.MaterialApp> GetList(string MoCode, int MoDetailId)
|
public IEnumerable<Model.Response.Store.MaterialApp> GetList(string MoCode, int MoDetailId)
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
var dal = new NX.ERP.U8.Store.MaterialAppDAL();
|
||||||
return dal.GetListByMoCode(MoCode, MoDetailId);
|
return dal.GetListByMoCode(MoCode, MoDetailId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[Route("api/MaterialAppVoucher/DetailByMoCode")]
|
[Route("api/MaterialApp/DetailByMoCode")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
||||||
public IEnumerable<Model.Response.Store.MaterialAppDetail> GetDetail(string MoCode, int MoDetailId)
|
public IEnumerable<Model.Response.Store.MaterialAppDetail> GetDetail(string MoCode, int MoDetailId)
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
var dal = new NX.ERP.U8.Store.MaterialAppDAL();
|
||||||
return dal.GetDetailByMoCode(MoCode, MoDetailId);
|
return dal.GetDetailByMoCode(MoCode, MoDetailId);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("api/MaterialAppVoucher/Provide")]
|
[Route("api/MaterialApp/Provide")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
||||||
public bool Provide([FromBody]NX.ERP.Model.Request.MaterialAppProvide provide)
|
public bool Provide([FromBody]NX.ERP.Model.Request.MaterialAppProvide provide)
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucherDAL();
|
var dal = new NX.ERP.U8.Store.MaterialAppDAL();
|
||||||
dal.Provide(provide);
|
dal.Provide(provide);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
<Compile Include="Controllers\Base\WarehouseController.cs" />
|
<Compile Include="Controllers\Base\WarehouseController.cs" />
|
||||||
<Compile Include="Controllers\Sale\DispatchController.cs" />
|
<Compile Include="Controllers\Sale\DispatchController.cs" />
|
||||||
<Compile Include="Controllers\Store\BinChangeController.cs" />
|
<Compile Include="Controllers\Store\BinChangeController.cs" />
|
||||||
<Compile Include="Controllers\Store\MaterialAppVoucherController.cs" />
|
<Compile Include="Controllers\Store\MaterialAppController.cs" />
|
||||||
<Compile Include="Controllers\Store\MaterielStoreOutController.cs" />
|
<Compile Include="Controllers\Store\MaterielStoreOutController.cs" />
|
||||||
<Compile Include="Controllers\Store\OtherStoreInController.cs" />
|
<Compile Include="Controllers\Store\OtherStoreInController.cs" />
|
||||||
<Compile Include="Controllers\Store\OtherStoreOutController.cs" />
|
<Compile Include="Controllers\Store\OtherStoreOutController.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user