Admin
6 天以前 bd6818fc9d40f343547bafca0743658f3c0379dc
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*
 *接口编写处...
*如果接口需要做Action的权限验证,请在Action上使用属性
*如: [ApiActionPermission("Dt_outboundorder_head",Enums.ActionPermissionOptions.Search)]
 */
 
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.IServices;
using WIDESEA.Core.Utilities;
using Microsoft.AspNetCore.Authorization;
 
namespace WIDESEA.Services.Controllers
{
    public partial class Dt_outboundorder_headController
    {
        private readonly IDt_outboundorder_headService _service;//访问业务代码
        private readonly IHttpContextAccessor _httpContextAccessor;
 
        [ActivatorUtilitiesConstructor]
        public Dt_outboundorder_headController(
            IDt_outboundorder_headService service,
            IHttpContextAccessor httpContextAccessor
        )
        : base(service)
        {
            _service = service;
            _httpContextAccessor = httpContextAccessor;
        }
 
        //by rover
        //根据创建的出库订单,获取所有分配的出库铜剁
        [HttpPost, Route("GetDistributionList")]
        public WebResponseContent GetDistributionList([FromBody] SaveModel saveModel)
        {
            return Service.GetDistributionList(saveModel);
        }
 
        /// <summary>
        /// 获取历史产品配货单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        [HttpPost, Route("GetDistributionListhty")]
        public WebResponseContent GetDistributionListhty([FromBody] SaveModel saveModel)
        {
            return Service.GetDistributionListhty(saveModel);
        }
 
        //获取产品配货清单
        [HttpPost, Route("GetDeliveryList")]
        public WebResponseContent GetDeliveryList([FromBody] SaveModel saveModel)
        {
            return Service.GetDeliveryList(saveModel);
        }
 
        //获取产品批次清单
        [HttpPost, Route("GetproductbatchList")]
        public WebResponseContent GetproductbatchList([FromBody] SaveModel saveModel)
        {
            return Service.GetproductbatchList(saveModel);
        }
 
        //历史中获取产品批次清单
        [HttpPost, Route("GetproductbatchListhty")]
        public WebResponseContent GetproductbatchListhty([FromBody] SaveModel saveModel)
        {
            return Service.GetproductbatchListhty(saveModel);
        }
 
        //历史中获取产品配货清单
        [HttpPost, Route("GetDeliveryListhty")]
        public WebResponseContent GetDeliveryListhty([FromBody] SaveModel saveModel)
        {
            return Service.GetDeliveryListhty(saveModel);
        }
        
 
 
        //获取获取出入库、库存汇总信息
        [HttpPost, Route("GetInToOutToTalList")]
        public WebResponseContent GetInToOutToTalList([FromBody] SaveModel saveModel)
        {
            return Service.GetInToOutToTalList(saveModel);
        }
        
        //获取出库汇总信息
        [HttpPost, Route("GetOutToTalList")]
        public WebResponseContent GetOutToTalList([FromBody] SaveModel saveModel)
        {
            return Service.GetOutToTalList(saveModel);
        }
        //获取入库汇总信息
        [HttpPost, Route("GetInToTalList")]
        public WebResponseContent GetInToTalList([FromBody] SaveModel saveModel)
        {
            return Service.GetInToTalList(saveModel);
        }
 
        //获取库存汇总信息
        [HttpPost, Route("GetConTalList")]
        public WebResponseContent GetConTalList()
        {
            return Service.GetConTalList();
        }
 
        //获取获取出入库、库存明细清单
        [HttpPost, Route("GetInToOutToTalListDetail")]
        public WebResponseContent GetInToOutToTalListDetail([FromBody] SaveModel saveModel)
        {
            return Service.GetInToOutToTalListDetail(saveModel);
        }
 
        //获取获取出入库、库存明细清单
        [HttpPost, Route("GetReleaseStrip")]
        public WebResponseContent GetReleaseStrip([FromBody] SaveModel saveModel)
        {
            return Service.GetReleaseStrip(saveModel);
        }
 
        //获取入库明细清单
        [HttpPost, Route("GetInInToTalListDetail")]
        public WebResponseContent GetInInToTalListDetail([FromBody] SaveModel saveModel)
        {
            return Service.GetInInToTalListDetail(saveModel);
        }
 
        //获取出库明细清单
        [HttpPost, Route("GetInOutToTalListDetail")]
        public WebResponseContent GetInOutToTalListDetail([FromBody] SaveModel saveModel)
        {
            return Service.GetInOutToTalListDetail(saveModel);
        }
 
        //获取库存明细清单
        [HttpPost, Route("GetInConToTalListDetail")]
        public WebResponseContent GetInConToTalListDetail([FromBody] SaveModel saveModel)
        {
            return Service.GetInConToTalListDetail(saveModel);
        }
 
        /// <summary>
        /// 获取入库计量单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        [HttpPost, Route("GetMeasurementsheet")]
        public WebResponseContent GetMeasurementsheet([FromBody] SaveModel saveModel) {
            return Service.GetMeasurementsheet(saveModel);
        }
 
        /// <summary>
        /// 获取入库计量单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        [HttpPost, Route("GetReleaseStripHty")]
        public WebResponseContent GetReleaseStripHty([FromBody] SaveModel saveModel)
        {
            return Service.GetReleaseStripHty(saveModel);
        }
    }
}