using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO.Stock;
|
using WIDESEA_IOutboundService;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_WMSServer.Controllers.Outbound
|
{
|
[Route("api/OutboundOrderDetail")]
|
[ApiController]
|
public class OutboundOrderDetailController : ApiBaseController<IOutboundOrderDetailService, Dt_OutboundOrderDetail>
|
{
|
public OutboundOrderDetailController(IOutboundOrderDetailService service) : base(service)
|
{
|
}
|
|
[HttpPost, Route("AutoLockOutboundStock")]
|
public WebResponseContent LockOutboundStock(int orderDetailId)
|
{
|
return Service.LockOutboundStock(orderDetailId);
|
}
|
|
[HttpPost, Route("LockOutboundStock")]
|
public WebResponseContent LockOutboundStock(int id, [FromBody] List<StockSelectViewDTO> stockSelectViews)
|
{
|
return Service.LockOutboundStock(id, stockSelectViews);
|
}
|
|
[HttpPost, Route("RevokeLockOutboundStock")]
|
public WebResponseContent RevokeLockOutboundStock(int id)
|
{
|
return Service.RevokeLockOutboundStock(id);
|
}
|
|
[HttpPost, Route("AssignStockOutbound")]
|
public (List<Dt_StockInfo>, Dt_OutboundOrderDetail, List<Dt_OutStockLockInfo>, List<Dt_LocationInfo>) AssignStockOutbound(int orderDetailId, [FromBody] List<StockSelectViewDTO> stockSelectViews)
|
{
|
return Service.AssignStockOutbound(orderDetailId, stockSelectViews);
|
}
|
}
|
}
|