using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_BusinessServices;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO.Order;
|
using WIDESEA_DTO.Stock;
|
using WIDESEA_IBusinessServices;
|
using WIDESEA_IOrderServices;
|
using WIDESEA_Model.Models;
|
using WIDESEA_Model.Models.Basic;
|
using WIDESEA_Model.Models.Order;
|
using WIDESEAWCS_BasicInfoService;
|
|
namespace WIDESEA_WMSServer.Controllers
|
{
|
[Route("api/ProductionOutboundOrder")]
|
[ApiController]
|
public class ProductionOutboundOrderController : ApiBaseController<IDt_ProductionOutboundOrderService, Dt_ProductionOutboundOrder>
|
{
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
public ProductionOutboundOrderController(IDt_ProductionOutboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service)
|
{
|
_httpContextAccessor = httpContextAccessor;
|
}
|
/// <summary>
|
/// 获取出库单据信息
|
/// </summary>
|
/// <param name="outboundOrderGetDTO"></param>
|
/// <returns></returns>
|
[HttpPost, AllowAnonymous, Route("GetProductOutboundOrder")]
|
public WebResponseContent GetProductOutboundOrder([FromBody] OutboundOrderGetDTO outboundOrderGetDTO)
|
{
|
return Service.GetProductOutboundOrder(outboundOrderGetDTO);
|
}
|
|
[HttpPost, HttpGet, AllowAnonymous, Route("GettProductOutboundOrderDetail")]
|
public WebResponseContent GettProductOutboundOrderDetail([FromBody] OutboundOrderGetDTO outboundOrderGetDTO)
|
{
|
return Service.GettProductOutboundOrderDetail(outboundOrderGetDTO);
|
}
|
/// <summary>
|
/// 根据请求出库任务
|
/// </summary>
|
/// <param name="requestOut"></param>
|
/// <returns></returns>
|
[HttpPost, HttpGet, Route("GeneratetProductOutboundTask"), AllowAnonymous]
|
public Task<WebResponseContent> GeneratetProductOutboundTask([FromBody] GenerateOutTaskDto requestOut)
|
{
|
return Service.GeneratetProductOutboundTask(requestOut);
|
}
|
}
|
}
|