yangpeixing
4 小时以前 027b75833ae1bc3bd1bb597b18c65c9177fa62d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using Microsoft.AspNetCore.Mvc;
using WIDESEA_BusinessServices;
using WIDESEA_Core.BaseController;
using WIDESEA_IBusinessServices;
using WIDESEA_IOrderServices;
using WIDESEA_Model.Models;
using WIDESEA_Model.Models.Basic;
using WIDESEA_Model.Models.Order;
using WIDESEA_StorageTaskServices;
using WIDESEAWCS_BasicInfoService;
 
namespace WIDESEA_WMSServer.Controllers
{
    [Route("api/InboundOrder")]
    [ApiController]
    public class InboundOrderController : ApiBaseController<IDt_InboundOrderService, Dt_InboundOrder>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        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.GetInboundOrderInfo(orderNo);
        }
 
        [HttpGet, HttpPost, Route("PrintPalletCode"), AllowAnonymous]
        public WebResponseContent PrintPalletCode(int num)
        {
            return Service.PrintPalletCode(num);
        }
 
        [HttpGet, HttpPost, Route("PrintOrder"), AllowAnonymous]
        public WebResponseContent PrintOrder([FromBody] int[] keys)
        {
            return Service.PrintOrder(keys);
        }
        [HttpGet, HttpPost, Route("SplitOrder"), AllowAnonymous]
        public WebResponseContent SplitOrder(int id, int num)
        {
            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";
            }
        }
    }
}