Admin
2025-12-02 9e42f0dafa019f5ecf6b0ff425ecb966b002171e
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
/*
 *所有关于Dt_outboundorder_head类的业务代码应在此处编写
*可使用repository.调用常用方法,获取EF/Dapper等信息
*如果需要事务请使用repository.DbContextBeginTransaction
*也可使用DBServerProvider.手动获取数据库相关信息
*用户信息、权限、角色等使用UserContext.Current操作
*Dt_outboundorder_headService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter
*/
 
using WIDESEA.Core.BaseProvider;
using WIDESEA.Core.Extensions.AutofacManager;
using WIDESEA.Entity.DomainModels;
using System.Linq;
using WIDESEA.Core.Utilities;
using System.Linq.Expressions;
using WIDESEA.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using WIDESEA.Services.IRepositories;
using System;
using WIDESEA.Services.Repositories;
using System.Collections.Generic;
using System.IO;
using Spire.Xls;
using WIDESEA.Core.Configuration;
using WIDESEA.Common;
using System.Threading;
using SqlSugar;
 
namespace WIDESEA.Services.Services
{
    public partial class Dt_outboundorder_headService
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        private readonly IDt_outboundorder_headRepository _repository;//访问数据库
 
        [ActivatorUtilitiesConstructor]
        public Dt_outboundorder_headService(
            IDt_outboundorder_headRepository dbRepository,
            IHttpContextAccessor httpContextAccessor
            )
        : base(dbRepository)
        {
            _httpContextAccessor = httpContextAccessor;
            _repository = dbRepository;
            //多租户会用到这init代码,其他情况可以不用
            //base.Init(dbRepository);
        }
 
        /// <summary>
        /// 获取产品配货单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetDistributionList(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取历史产品配货单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetDistributionListhty(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取产品配货清单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetDeliveryList(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取产品批次清单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetproductbatchList(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 历史中获取产品配货清单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetDeliveryListhty(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 历史中获取产品批次清单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetproductbatchListhty(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取出入库、库存汇总信息
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns> 
        public WebResponseContent GetInToOutToTalList(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取出库汇总信息
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetOutToTalList(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取入库汇总信息
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetInToTalList(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取库存汇总信息
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetConTalList()
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 出入库、库存汇明细表
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetInToOutToTalListDetail(SaveModel saveModel)
        {
            WebResponseContent responseContent = new WebResponseContent();
            
            return responseContent;
        }
 
        /// <summary>
        /// 入库汇清单表
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetInInToTalListDetail(SaveModel saveModel)
        {
            WebResponseContent responseContent = new WebResponseContent();
           
            return responseContent;
        }
 
        /// <summary>
        /// 出库汇清单表
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetInOutToTalListDetail(SaveModel saveModel)
        {
            WebResponseContent responseContent = new WebResponseContent();
            
            return responseContent;
        }
 
        /// <summary>
        /// 库存汇清单表
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetInConToTalListDetail(SaveModel saveModel)
        {
            WebResponseContent responseContent = new WebResponseContent();
            
            return responseContent;
        }
 
        /// <summary>
        /// 放行条
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetReleaseStrip(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        public WebResponseContent GetReleaseStripHty(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
 
        /// <summary>
        /// 获取入库计量单
        /// </summary>
        /// <param name="saveModel"></param>
        /// <returns></returns>
        public WebResponseContent GetMeasurementsheet(SaveModel saveModel)
        {
            WebResponseContent content = new WebResponseContent();
            
            return content;
        }
    }
 
    public class DistributionList
    {
        public string danhao { get; set; }
 
        public string dingdanid { get; set; }
 
        public string kehuName { get; set; }
 
        public string chanpinName { get; set; }
 
        public string chanpindaima { get; set; }
 
        public string changpinpaihao { get; set; }
 
        public string xiuqiuT { get; set; }
        public string baozhuang { get; set; }
        public string fasongdidian { get; set; }
 
        public List<infoData> info { get; set; }
    }
 
    public class infoData
    {
        public string cBatch { get; set; }
        public string cKunH { get; set; }
        public string cKunHCount { get; set; }
        public string weigth { get; set; }
        public string req { get; set; }
        public string customer { get; set; }
        public string dispatchertime { get; set; }
        public string createtime { get; set; }
    }
 
    public class DataInfo
    {
        public DateTime createTime { get; set; }
        public string kunH { get; set; }
        public string weigth { get; set; }
        public string customer { get; set; }
    }
 
    public class detail
    {
        public string batch { get; set; }
        public List<DataInfo> dataInfos { get; set; }
    }
}