| | |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Model.Models.Basic; |
| | | using WIDESEA_Model.Models.Order; |
| | | using WIDESEA_StorageTaskServices; |
| | | using WIDESEAWCS_BasicInfoService; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers |
| | |
| | | public class InboundOrderController : ApiBaseController<IDt_InboundOrderService, Dt_InboundOrder> |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | public InboundOrderController(IDt_InboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service) |
| | | private readonly PrintStatusContainer _printStatusContainer; |
| | | |
| | | |
| | | public InboundOrderController(IDt_InboundOrderService service, IHttpContextAccessor httpContextAccessor, PrintStatusContainer printStatusContainer) : base(service) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _printStatusContainer=printStatusContainer; |
| | | } |
| | | [HttpGet,HttpPost,Route("GetInboundOrderInfo"),AllowAnonymous] |
| | | public WebResponseContent GetInboundOrderInfo(string orderNo) |
| | |
| | | { |
| | | return Service.SplitOrder(id, num); |
| | | } |
| | | [HttpGet, HttpPost, Route("MultiplePrintOrder"), AllowAnonymous] |
| | | public WebResponseContent MultiplePrintOrder(int id, int num) |
| | | { |
| | | return Service.MultiplePrintOrder(id, num); |
| | | } |
| | | |
| | | [HttpGet, Route("AutomaticPrint"), AllowAnonymous] |
| | | public void AutomaticPrint(string AutomaticPrintStatus) |
| | | { |
| | | Service.AutomaticPrint(AutomaticPrintStatus); |
| | | } |
| | | |
| | | [HttpGet, Route("GetAutomaticPrint"), AllowAnonymous] |
| | | public string GetAutomaticPrint() |
| | | { |
| | | if (_printStatusContainer.AutomaticPrint) |
| | | { |
| | | return "true"; |
| | | } |
| | | else |
| | | { |
| | | return "false"; |
| | | } |
| | | } |
| | | } |
| | | } |