yangpeixing
10 小时以前 027b75833ae1bc3bd1bb597b18c65c9177fa62d4
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Order/InboundOrderController.cs
@@ -6,6 +6,7 @@
using WIDESEA_Model.Models;
using WIDESEA_Model.Models.Basic;
using WIDESEA_Model.Models.Order;
using WIDESEA_StorageTaskServices;
using WIDESEAWCS_BasicInfoService;
namespace WIDESEA_WMSServer.Controllers
@@ -15,9 +16,13 @@
    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)
@@ -46,5 +51,24 @@
        {
            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";
            }
        }
    }
}