pan
2025-11-06 42429ae61571ff9563c9e987cd52be2132e77775
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
 
namespace WIDESEA_DTO.Inbound
{
    [ModelValidate]
    public class InboundOrderAddDTO
    {
        /// <summary>
        /// 上游单据编号
        /// </summary>
        [PropertyValidate("上游单据编号", NotNullAndEmpty = true)]
        public string OrderNo { get; set; }
 
        /// <summary>
        /// 单据类型
        /// </summary>
        [PropertyValidate("单据类型", NotNullAndEmpty = true)]
        public int Type { get; set; }
 
        /// <summary>
        /// 操作类型
        /// </summary>
        [PropertyValidate("操作类型", Check = new object[] { 1, 2, 3, 4 })]
        public int OperateType { get; set; }
 
        /// <summary>
        /// 采购数量
        /// </summary>
        [PropertyValidate("采购数量", MinValue = 0, IsContainMinValue = false)]
        public decimal Amount { get; set; }
 
        /// <summary>
        /// 下单日期
        /// </summary>
        [PropertyValidate("下单日期", NotNullAndEmpty = true)]
        public string OrderDate { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }
 
        [PropertyValidate("单据明细信息", NotNullAndEmpty = true)]
        public List<InboundOrderDetailAddDTO> MList { get; set; }
    }
 
    [ModelValidate]
    public class InboundOrderDetailAddDTO
    {
        /// <summary>
        /// 物料编号
        /// </summary>
        [PropertyValidate("物料编号", NotNullAndEmpty = true)]
        public string MaterielCode { get; set; }
 
        /// <summary>
        /// 数量
        /// </summary>
        [PropertyValidate("数量", NotNullAndEmpty = true, MinValue = 0, IsContainMinValue = false)]
        public decimal Qty { get; set; }
 
        /// <summary>
        /// 仓库编号
        /// </summary>
        [PropertyValidate("仓库编号", NotNullAndEmpty = true)]
        public int WaId { get; set; }
 
        /// <summary>
        /// 单位
        /// </summary>
        [PropertyValidate("单位", NotNullAndEmpty = true)]
        public string Unit { get; set; }
    }
 
    /// <summary>
    /// 
    /// </summary>
    public class BarcodesModel
    {
        public string barcode { get; set; }
 
        public string outBoxbarcodes { get; set; }
 
        public decimal qty { get; set; }
 
        public string unit { get; set; }
 
    }
    /// <summary>
    /// 
    /// </summary>
    public class InBoundDetailsModel
    {
        public string materialCode { get; set; }
 
        public string supplyCode { get; set; }
 
        public string batchNo { get; set; }
 
        public string lineNo { get; set; }
 
        public decimal qty { get; set; }
 
        public string unit { get; set; }
 
        public string warehouseCode { get; set; }
 
        public List<BarcodesModel> barcodes { get; set; }
 
    }
    /// <summary>
    /// 
    /// </summary>
    public class InBoundsModel
    {
        /// <summary>
        /// 
        /// </summary>
        public string orderNo { get; set; }
 
        public string business_type { get; set; }
 
        public bool isBatch { get; set; }
 
        public string factoryArea { get; set; }
 
        public List<InBoundDetailsModel> details { get; set; }
 
    }
    /// <summary>
    /// 
    /// </summary>
    public class InboundRequestModel
    {
        public string reqCode { get; set; }
 
        public string reqTime { get; set; }
 
        public int operationType { get; set; }
 
        public List<InBoundsModel> inBounds { get; set; }
 
    }
 
    public class FeedbackInboundRequestModel
    {
        public string reqCode { get; set; }
 
        public string reqTime { get; set; }
 
        public int operationType { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public string orderNo { get; set; }
 
        public string business_type { get; set; }
 
        public int status { get; set; }
 
        public string factoryArea { get; set; }
 
        public List<FeedbackInboundDetailsModel> details { get; set; }
 
    }
    public class FeedbackInboundDetailsModel
    {
        public string materialCode { get; set; }
 
        public string supplyCode { get; set; }
 
        public string batchNo { get; set; }
 
        public string lineNo { get; set; }
 
        public decimal qty { get; set; }
 
        public string unit { get; set; }
 
        public string warehouseCode { get; set; }
 
        public List<FeedbackBarcodesModel> barcodes { get; set; }
    }
 
    public class FeedbackBarcodesModel
    {
        public string barcode { get; set; }       
 
        public decimal qty { get; set; } 
 
    }
}