服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2025-03-08 a259e40ee315f068bd9b96f857f1f80ea137e89d
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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Tiger.Model.Entitys.MES.U9C
{
    public class U9CBaseResult
    {
        public int ResCode { get; set; }
        public bool Success { get; set; }
        public string ResMsg { get; set; }
    }
    public class U9CResult : U9CBaseResult
    {
        public List<U9CReturnData> Data { get; set; }
    }
    public class U9CResult2 : U9CBaseResult
    {
        public List<U9CReturnData2> Data { get; set; }
    }
 
    public class U9CLoginResult : U9CBaseResult
    {
        public string Data { get; set; }
    }
 
    public class U9CReturnData
    {
        public string u9c_version { get; set; }
        public bool m_isSucess { get; set; }
        public string m_otherID { get; set; }
        public string m_iD { get; set; }
        public string m_code { get; set; }
        public string m_errorMsg { get; set; }
        public string m_datas { get; set; }
    }
    public class U9CReturnData2
    {
        public string U9CVersion { get; set; }
        public bool IsSucess { get; set; }
        public string OtherID { get; set; }
        public string ID { get; set; }
        public string Code { get; set; }
        public string ErrorMsg { get; set; }
    }
 
    public class U9CBaseInput
    {
        public string userId { get; set; }
        public string token { get; set; }
        public string Data { get; set; }
        public bool IsLogin { get; set; }
    }
 
    #region 入库单接口
    /// <summary>
    /// 入库单接口传入参数
    /// </summary>
    public class RcvRptDocCreateInput
    {
        public List<RcvRptDocBase> RcvRptDocBases { get; set; }
        public List<BIZ_ERP_PROD_IN_BTH> ErpProdInBths { get; set; } = new List<BIZ_ERP_PROD_IN_BTH>();
        public List<InStorePrintJson> PrintJsons { get; set; } = new List<InStorePrintJson>();
        public List<BAS_LABEL_TEMP> labels { get; set; }
        public string userId { get; set; }
    }
 
    public class InStorePrintJson
    {
        public string ID { get; set; }
        public List<BIZ_ERP_PROD_IN_BTH> Items { get; set; }
    }
 
    //public class ProdInBatch
    //{
    //    public string ORDER_NO { get; set; }
    //    public string SALES_ORDER { get; set; }
    //    public string STATUS { get; set; }
    //    public string BATCH_NO { get; set; }
    //    public string WORK_ORDER { get; set; }
    //    public string ITEM_CODE { get; set; }
    //    public string SapCode { get; set; }
    //    public string ITEM_NAME { get; set; }
    //    public double PLAN_QTY { get; set; }
    //    public double SCAN_QTY { get; set; }
    //}
 
    public class RcvRptDocBase
    {
        public string WorkOrder { get; set; }
        public string ItemCode { get; set; }
        public string WhCode { get; set; } = "10105";
        public double PkgQty { get; set; }
        public double CompleteQty { get; set; }
        public int OutputType { get; set; } = 0;
        public int StorageType { get; set; } = 4;
        public int DocState { get; set; } = 1;
        public string Status { get; set; }
    }
 
    public class RcvRptDocCreateParam
    {
       public List<CompleteList> CompleteList { get; set; }
        public string Remark { get; set; }
        public DateTime BusinessDate { get; set; }
    }
 
    public class CompleteList
    {
        public MOKey MOKey { get; set; }
        public Wh Wh { get; set; }
        public Item Item { get; set; }
        public DescFlexField DescFlexField { get; set; }
        public double CompleteQty { get; set; }
        public int OutputType { get; set; } = 0;
        public int StorageType { get; set; } = 4;
        public int DocState { get; set; } = 1;
    }
 
    public class BarcodeCreateInput: U9CBaseInput
    {
        public string RevDocId { get; set; }
        public string RevDocLineId { get; set; }
    }
 
    public class BarcodeCreateParam
    {
        public List<CreateEntityKeys> CreateEntityKeys { get; set; }
        public bool IsCreateHeadBarCode { get; set; }
        public string BarCodeRuleCode { get; set; }
        public int GenerateCount { get; set; }
        public int BCQty { get; set; }
    }
 
    public class CreateEntityKeys
    {
        public string ID { get; set; }
        public string EntityType { get; set; }
    }
    #endregion
 
    #region 半成品条码生成
    public class BarcodeCreateByAssignQtyInput: BarcodeCreateInput
    {
        /// <summary>
        /// 入库单行总数量
        /// </summary>
        public decimal CreateBarCodeItemQty { get; set; }
        /// <summary>
        /// 包装装箱数量
        /// </summary>
        public decimal LabelQty { get; set; }
    }
 
    public class BarcodeCreateByAssignQtyParam
    {
        public string BarCodeRuleID { get; set; }
        public List<CreateBarCodeEntitys> CreateBarCodeEntitys { get; set; }
        /// <summary>
        /// 入库单行总数量
        /// </summary>
        public decimal CreateBarCodeItemQty { get; set; }
        /// <summary>
        /// 包装装箱数量
        /// </summary>
        public decimal LabelQty { get; set; }
    }
 
    public class CreateBarCodeEntitys
    {
        public string EntityID { get; set; }
        public string EntityType { get; set; } = "UFIDA.U9.Complete.RCVRpt.RcvRptDocLine";
    }
 
    public class BarcodeCreateByAssignQtyResult : U9CBaseResult
    {
        public BarcodeCreateByAssignQtyData Data { get; set; }
    }
 
    public class BarcodeCreateByAssignQtyData     {
        public string ErrorMessage { get; set; }
        public string OtherID { get; set; }
        public string CreatedBarCodes { get; set; }
        public bool IsSuccess { get; set; }
        public List<string> Data { get; set; }
    }
 
    public class MOKey
    {
        public string DocNo { get; set; }
    }
    public class Wh
    {
        public string Code { get; set; }
    }
    public class Item
    {
        public string Code { get; set; }
    }
    public class DescFlexField
    {
        public string PrivateDescSeg1 { get; set; }
    }
    #endregion
 
    #region 新增收货单接口
    public class CreateRcvBySrcASNParam
    {
        public List<ASNToRcvTransDTO> aSNToRcvTransDTOs { get; set; }
        public string OtherID { get; set; } = "WMS";
    }
 
    public class ASNToRcvTransDTO {
        public TransQty TransQty { get; set; }
        public string ASNLineKey { get; set; }
    }
 
    public class TransQty
    {
        public string m_amount1 { get; set; }
        public m_uOM1 m_uOM1 { get; set; }
    }
 
    public class m_uOM1
    {
        public UOMMain_SKey UOMMain_SKey { get; set; }
        public string UOMMain { get; set; }
        public UOMSub_SKey UOMSub_SKey { get; set; }
    }
 
    public class UOMMain_SKey
    {
        public string ID { get; set; }
    }
 
    public class UOMSub_SKey
    {
        public string ID { get; set; }
    }
 
    /// <summary>
    /// 新增收货单接口-传入参数
    /// </summary>
    public class CreateRcvBySrcASNInput: U9CBaseInput
    {
        /// <summary>
        /// 当前收货数量 - m_amount1
        /// </summary>
        public string CurRevQty { get; set; } 
        /// <summary>
        /// ASN单行ID
        /// </summary>
        public string ASNLineKey { get; set; }
    }
 
    #region 无来源
    public class CreateReceivementParam
    {
        public RcvDTO rcvDTO { get; set; }
        public string OtherID { get; set; } = "WMS";
    }
 
    public class CreateReceivementInput : U9CBaseInput
    {
 
    }
 
    public class RcvDTO { 
        public DateTime BusinessDate { get; set; }
        public Supplier Supplier { get; set; }
        public RcvDocType RcvDocType { get; set; }
        public List<RcvLine> RcvLines { get; set; }
        public bool IsRcvByChangeable { get; set; }
        public bool IsPriceListChangeable { get; set; }
        public bool IsConfirmTermChangeable { get; set; }
        public bool IsPaymentTermChangeable { get; set; }
        public bool IsLineApprove { get; set; }
    }
    public class Supplier { 
        public string m_code { get; set; }
    }
    public class RcvDocType
    {
        public string m_code { get; set; }
    }
    public class RcvLine
    {
        public bool IsPresent { get; set; }
        public ItemInfo ItemInfo { get; set; }
        public Wh2 Wh { get; set; }
        public List<RcvLineLocation> RcvLineLocations { get; set; }
        public double ArriveQtyTU { get; set; }
        public double ArriveQtyPU { get; set; }
        public double RcvQtyTU { get; set; }
        public double RcvQtyPU { get; set; }
        public double EyeballingQtyTU { get; set; }
        public double RcvProcedure { get; set; }
        public double StorageType { get; set; }
        public string RcvLotCode { get; set; }
        public string InvLotCode { get; set; }
    }
 
    public class ItemInfo
    {
        public string m_itemCode { get; set; }
    }
    public class Wh2
    {
        public string m_code { get; set; }
    }
    public class Location
    {
        public string m_code { get; set; }
    }
 
    public class RcvLineLocation
    {
        public Location Location { get; set; }
        public double LocationQtyTU { get; set; }
    }
    #endregion
 
    #endregion
 
    #region 收货审核接口
 
    public class SubmitLineInput : U9CBaseInput
    {
        public SubmitLineInputParam param { get; set; }
    }
    public class SubmitLineInputParam
    {
        public string RcvLineID { get; set; }
        public string OtherID { get; set; } = "WMS";
        public string RcvDocNo { get; set; }
        public string DocLineNo { get; set; }
        public string OrgCode { get; set; }
    }
 
    #endregion
 
    #region 创建生产领料单接口
    public class CreateProdMaterialReqInput : U9CBaseInput
    {
        public List<CreateProdMaterialReqParam> CreateProdMaterialReqParam { get; set; }
    }
 
    public class CreateProdMaterialReqParam
    {
        public List<object> MOs { get; set; }
        public List<PickListDTOs> PickListDTOs { get; set; }
        public int BusinessType { get; set; }
        public int IssueType { get; set; }
        public int DocStatus { get; set; }
        public string OtherID { get; set; } = "WMS";
    }
 
    public class PickListDTOs
    {
        public List<object> MOs { get; set; }
        public List<object> Item { get; set; }
        public List<object> IssueWh { get; set; }
        public List<object> IssueBin { get; set; }
        public double IssuedQty { get; set; }
        public double IssueQty { get; set; }
        public List<object> IssueUOM { get; set; }
        public string MOPickList { get; set; }
        public List<object> Lot { get; set; }
        public int StorageType { get; set; }
    }
    #endregion
 
    #region 创建生产退料单-按行退料接口
    public class CreateProdReturnOrderInput : U9CBaseInput
    {
        public List<CreateProdReturnOrderParam> CreateProdReturnOrderParam { get; set; }
    }
 
    public class CreateProdReturnOrderParam
    {
        public List<RecedeItemAndSnDTOList> RecedeItemAndSnDTOList { get; set; }
        public bool IsAutoIssued { get; set; }
        public string OtherID { get; set; } = "WMS";
    }
 
    public class RecedeItemAndSnDTOList
    {
        public string ItemCode { get; set; }
        public string IssueDocNo { get; set; }
        public double RecedeQty { get; set; }
        public double IssueLineNum { get; set; }
    }
 
    #endregion
 
    #region 创建委外生产领料单
    public class CreateOutProdMaterialReqInput : U9CBaseInput
    {
        public List<CreateOutProdMaterialReqParam> CreateOutProdMaterialReqParam { get; set; }
    }
    public class CreateOutProdMaterialReqParam
    {
        public List<object> POLine { get; set; }
        public DateTime BusinessDate { get; set; }
        public List<PickListDTOs2> PickListDTOs { get; set; }
        public int BusinessType { get; set; }
        public string BusinessCreatedOn { get; set; }
        public int DocStatus { get; set; }
        public string OtherID { get; set; } = "WMS";
    }
 
    public class PickListDTOs2
    {
        public List<object> Item { get; set; }
        public List<object> IssueWh { get; set; }
        public List<object> IssueBin { get; set; }
        public double IssuedQty { get; set; }
        public double IssueQty { get; set; }
        public List<object> IssueUOM { get; set; }
        public string SCMOPickList { get; set; }
        public List<object> Lot { get; set; }
    }
    #endregion
 
    #region 创建委外生产退料单接口
    public class CreateOutProdReturnOrderInput : U9CBaseInput
    {
        public List<CreateOutProdReturnOrderParam> CreateOutProdReturnOrderParam { get; set; }
    }
    public class CreateOutProdReturnOrderParam
    {
        public List<object> POLine { get; set; }
        public DateTime BusinessDate { get; set; }
        public List<PickListDTOs2> PickListDTOs { get; set; }
        public int BusinessType { get; set; }
        public string BusinessCreatedOn { get; set; }
        public int DocStatus { get; set; }
        public string OtherID { get; set; } = "WMS";
    }
 
    #endregion
}