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/OtherOutboundOrder")] [ApiController] public class OtherOutboundOrderController : ApiBaseController { private readonly IHttpContextAccessor _httpContextAccessor; public OtherOutboundOrderController(IDt_OtherOutboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; } /// /// 获取出库单据信息 /// /// /// [HttpPost, AllowAnonymous, Route("GetOtherOutboundOrder")] public WebResponseContent GetOtherOutboundOrder([FromBody]OutboundOrderGetDTO outboundOrderGetDTO) { return Service.GetOtherOutboundOrder(outboundOrderGetDTO); } [HttpPost,HttpGet, AllowAnonymous, Route("GetOtherOutboundOrderDetail")] public WebResponseContent GetOtherOutboundOrderDetail([FromBody] OutboundOrderGetDTO outboundOrderGetDTO) { return Service.GetOtherOutboundOrderDetail(outboundOrderGetDTO); } /// /// 根据请求出库任务 /// /// /// [HttpPost, HttpGet, Route("GenerateOtherOutboundTask"), AllowAnonymous] public Task GenerateOtherOutboundTask(GenerateOutTaskDto requestOut) { return Service.GenerateOtherOutboundTask(requestOut); } } }