wangxinhui
2024-12-18 a44d4ac81a863fb3b93e1c8ad8526ef754c24615
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
using WIDESEA_DTO.Basic;
 
namespace WIDESEA_DTO.ERP
{
    /// <summary>
    /// 出库单
    /// </summary>
    [ModelValidate]
    public class ErpOutOrderDTO
    {
        /// <summary>
        /// 操作类型<br/>
        /// 1:新增<br/>
        /// 2:修改<br/>
        /// 3:删除(删除只要明细行号和领料单号)
        /// </summary>
        [PropertyValidate("操作类型", NotNullAndEmpty = true, Check = new object[] { 1, 2, 3 })]
        public int Way { get; set; }
 
        /// <summary>
        /// 明细行号
        /// </summary>
        [PropertyValidate("明细行号", NotNullAndEmpty = true)]
        public string RowNo { get; set; }
 
        /// <summary>
        /// 领料订单号
        /// </summary>
        [PropertyValidate("领料订单号", NotNullAndEmpty = true)]
        public string OrderNo { get; set; }
 
        /// <summary>
        /// 仓库编号
        /// </summary>
        [PropertyValidate("仓库编号", NotNullAndEmpty = true)]
        public string WaId { get; set; }
 
        /// <summary>
        /// 订单类型<br/>
        /// 1:标准生产领料<br/>
        /// 2:标准部门领料<br/>
        /// 3:研发项目领料<br/>
        /// 4:物料送检出仓<br/>
        /// 5:物料调出<br/>
        /// 6:维修发料<br/>
        /// 7:销售贸易<br/>
        /// 8:退货管理
        /// </summary>
        [PropertyValidate("订单类型", NotNullAndEmpty = true, Check = new object[] { 1, 2, 3, 4, 5, 6, 7, 8 })]
        public int OType { get; set; }
 
        /// <summary>
        /// 物料编码
        /// </summary>
        [PropertyValidate("物料编码", NotNullAndEmpty = true)]
        public string MCode { get; set; }
 
        /// <summary>
        /// 物料批次
        /// </summary>
        [PropertyValidate("物料批次")]
        public string MLot { get; set; }
 
        /// <summary>
        /// 数量
        /// </summary>
        [PropertyValidate("数量", NotNullAndEmpty = true, MinValue = 0, IsContainMinValue = false)]
        public float Qty { get; set; }
 
        /// <summary>
        /// 单位
        /// </summary>
        [PropertyValidate("单位", NotNullAndEmpty = true)]
        public string Unit { get; set; }
 
        /// <summary>
        /// 下单日期
        /// </summary>
        [PropertyValidate("下单日期", NotNullAndEmpty = true)]
        public string OrderData { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [PropertyValidate("备注")]
        public string Node { get; set; }
 
        /// <summary>
        /// 部门编号
        /// </summary>
        [PropertyValidate("部门编号")]
        public string DepartmentCode { get; set; }
 
        /// <summary>
        /// 部门名称
        /// </summary>
        [PropertyValidate("部门名称")]
        public string DepartmentName { get; set; }
    }
}