wangxinhui
2025-10-17 ce40df5daffae0d17b4e9fa7cb6d677afaa4d66f
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
 
namespace WIDESEA_DTO.Basic
{
    /// <summary>
    /// 二期ERP物料接收实体
    /// </summary>
    [ModelValidate]
    public class ERPMaterialDTO
    {
        /// <summary>
        /// 操作类型 1:新增、2:修改、3:删除
        /// </summary>
        [PropertyValidate("操作类型", NotNullAndEmpty = true, Check = new object[] { 1, 2, 3 })]
        public int OperateType { get; set; }
 
        /// <summary>
        /// 物料编号
        /// </summary>
        [PropertyValidate("物料编号", NotNullAndEmpty = true)]
        public string MaterielNo { get; set; }
 
        /// <summary>
        /// 物料名称
        /// </summary>
        [PropertyValidate("物料名称", NotNullAndEmpty = true)]
        public string MaterielName { get; set; }
 
        /// <summary>
        /// 规格
        /// </summary>
        [PropertyValidate("规格", NotNullAndEmpty = false)]
        public string MaterielSpec { get; set; }
 
        /// <summary>
        /// 物料类型 成品 = 1,半成品 = 2,原材料 = 3,辅料备件 = 4
        /// </summary>
        [PropertyValidate("物料类型 成品 = 1,半成品 = 2,原材料 = 3,辅料备件 = 4", NotNullAndEmpty = true)]
        public int MaterielType { get; set; }
 
        /// <summary>
        /// 物料宽
        /// </summary>
        [PropertyValidate("物料宽", NotNullAndEmpty = true)]
        public decimal MaterielWidth { get; set; }
 
        /// <summary>
        /// 物料厚度
        /// </summary>
        [PropertyValidate("物料厚度", NotNullAndEmpty = true)]
        public decimal MaterielThickness { get; set; }
 
        /// <summary>
        /// 物料长
        /// </summary>
        [PropertyValidate("物料长", NotNullAndEmpty = true)]
        public decimal MaterielLength { get; set; }
 
        /// <summary>
        /// 物料重
        /// </summary>
        [PropertyValidate("物料重", NotNullAndEmpty = true)]
        public decimal Weight { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [PropertyValidate("0:禁用、1:可用;默认为1", NotNullAndEmpty = true)]
        public int State { get; set; }
 
        /// <summary>
        /// 是否检验 1=是,0=否
        /// </summary>
        [PropertyValidate("是否检验 1=是,0=否", NotNullAndEmpty = true)]
        public int IsCheck { get; set; }
 
        /// <summary>
        /// 仓库代号
        /// </summary>
        [PropertyValidate("仓库代号", NotNullAndEmpty = true)]
        public string WarehouseCode { get; set; }
 
        /// <summary>
        /// 计量单位(Kg:千克)
        /// </summary>
        [PropertyValidate("计量单位:Kg:公斤、M:米、Pcs:个(只)", NotNullAndEmpty = true)]
        public string Unit { get; set; }
    }
}