huanghongfeng
2025-01-16 77864cf547c716d4dca35e735636013dbc4dc033
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Common;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Stock;
using WIDESEA_ITaskInfoService;
using WIDESEA_Model.Models;
using static WIDESEA_ITaskInfoService.ITaskService;
 
namespace WIDESEA_WMSServer.Controllers.TaskInfo
{
    [Route("api/Task")]
    [ApiController]
    public class TaskController : ApiBaseController<ITaskService, Dt_Task>
    {
        public TaskController(ITaskService service) : base(service)
        {
        }
 
        [HttpPost, Route("GenerateInboundTask")]
        public WebResponseContent GenerateInboundTask(string stationCode, int inboundType, string palletCode)
        {
            return Service.GenerateInboundTask(stationCode, inboundType, palletCode);
        }
 
        [HttpGet, Route("TaskCompleted"), AllowAnonymous]
        public WebResponseContent TaskCompleted(int taskNum)
        {
            return Service.TaskCompleted(taskNum);
        }
 
        [HttpPost, Route("GenerateOutboundTask"), AllowAnonymous]
        public WebResponseContent GenerateOutboundTask(int id, [FromBody] List<StockSelectViewDTO> stockSelectViews)
        {
            return Service.GenerateOutboundTask(id, stockSelectViews);
        }
 
        //[HttpPost, Route("GenerateOutboundTasks")]
        //public WebResponseContent GenerateOutboundTasks([FromBody] int[] keys)
        //{
        //    return Service.GenerateOutboundTask(keys);
        //}
        [HttpPost, Route("PalletOutboundTask")]
        public WebResponseContent PalletOutboundTask(string roadwayNo, string endStation)
        {
            return Service.PalletOutboundTask(roadwayNo, endStation);
        }
        [HttpPost, Route("InboundRequest"),AllowAnonymous]
        public WebResponseContent InboundRequest([FromBody] SaveModel saveModel)
        {
            return Service.InboundRequest(saveModel);
        }
 
        [HttpGet, Route("IsRelocations"), AllowAnonymous]
        public WebResponseContent IsRelocations(int TaskNum, string SourceAddress)
        {
            return Service.IsRelocations(TaskNum, SourceAddress);
        }
 
        //[HttpPost, Route("GenerateInventoryInformation"), AllowAnonymous]
        //public WebResponseContent GenerateInventoryInformation([FromBody] GenerateInv generate)
        //{
        //    return Service.GenerateInventoryInformation(generate);
        //}
 
        [HttpPost, Route("ManualOutbound"), AllowAnonymous]
        public WebResponseContent ManualOutbound([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutbound(saveModel);
        }
        [HttpPost, Route("ManualOutbound2"), AllowAnonymous]
        public WebResponseContent ManualOutbound2([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutbound2(saveModel);
        }
        [HttpPost, Route("ManualOutbound3"), AllowAnonymous]
        public WebResponseContent ManualOutbound3([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutbound3(saveModel);
        }
        [HttpPost, Route("ManualOutbound4"), AllowAnonymous]
        public WebResponseContent ManualOutbound4([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutbound4(saveModel);
        }
        [HttpPost, Route("ManualOutboundDeleteinventory"), AllowAnonymous]
        public WebResponseContent ManualOutboundDeleteinventory([FromBody] SaveModel saveModel)
        {
            return Service.ManualOutboundDeleteinventory(saveModel);
        }
        //[HttpPost, Route("Empty_outbound"), AllowAnonymous]
        //public WebResponseContent Empty_outbound([FromBody] GenerateInv generate)
        //{
        //    return Service.Empty_outbound(generate);
        //}
        //[HttpPost, Route("Queryinventory"), AllowAnonymous]
        //public WebResponseContent Queryinventory([FromBody] GenerateInv generate)
        //{
        //    return Service.Queryinventory(generate); 
        //}
        [HttpGet, Route("PalletQueryinventory"), AllowAnonymous]
        public WebResponseContent PalletQueryinventory()
        {
            return Service.PalletQueryinventory();
        }
        //[HttpPost, Route("RelocationTaskCompleted"), AllowAnonymous]
        //public WebResponseContent RelocationTaskCompleted([FromBody] GenerateInv2 generate)
        //{
        //    return Service.RelocationTaskCompleted(generate);
        //}
 
        //[HttpPost, Route("Rawmaterialout"), AllowAnonymous]
        //public WebResponseContent Rawmaterialout([FromBody]GenerateInv3 generate)
        //{
        //    return Service.Rawmaterialout(generate);
        //}
 
        [HttpGet, Route("Cancelinventory"), AllowAnonymous]
        public WebResponseContent Cancelinventory(int taskNum)
        {
            return Service.Cancelinventory(taskNum);
        }
        [HttpPost, Route("InboundTaskCompleted"), AllowAnonymous]
        public WebResponseContent InboundTaskCompleted(int taskNum)
        {
            return Service.InboundTaskCompleted(taskNum);
        }
        [HttpPost, Route("OutboundTaskCompleted"), AllowAnonymous]
        public WebResponseContent OutboundTaskCompleted(int taskNum)
        {
            return Service.OutboundTaskCompleted(taskNum);
        }
        [HttpPost, Route("AddOutboundOrders"), AllowAnonymous]
        public WebResponseContent AddOutboundOrders([FromBody] Houseounbound orderAddDTO)
        {
            return Service.AddOutboundOrders(orderAddDTO);
        }
        [HttpPost, Route("InventoryOut"), AllowAnonymous]
        public WebResponseContent InventoryOut([FromBody] HouseCancelOut houseInventoryOut)
        {
            return Service.InventoryOut(houseInventoryOut);
        }
        [HttpPost, Route("InventoryIn"), AllowAnonymous]
        public WebResponseContent InventoryIn([FromBody] string name)
        {
            return Service.InventoryIn(name);
        }
        
 
    }
}