222
schangxiang@126.com
2025-05-08 06a0e112b1b865f8a9a53b0f8e8279774348fcac
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
using MiniExcelLibs.Attributes; 
using System.ComponentModel.DataAnnotations; 
using System; 
using System.ComponentModel; 
using CMS.Plugin.HIAWms.Domain.Shared.Enums; 
namespace CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsMaterial; 
 
/// <summary> 
/// 物料基础信息表导出模型 
/// </summary> 
public  class WmsMaterialExportModel 
            /// <summary>
        /// 物料编码(唯一标识)
        /// </summary>
        [ExcelColumn(Name = "物料编码(唯一标识)", Width = 25)]
        public string MaterialCode { get; set; }
 
        /// <summary>
        /// 物料名称
        /// </summary>
        [ExcelColumn(Name = "物料名称", Width = 25)]
        public string MaterialName { get; set; }
 
        /// <summary>
        /// 采购类型(枚举值)
        /// </summary>
        [ExcelColumn(Name = "采购类型(枚举值)", Width = 25)]
        public PurchaseTypeEnum PurchaseType { get; set; }
 
        /// <summary>
        /// 物料类型(枚举值)
        /// </summary>
        [ExcelColumn(Name = "物料类型(枚举值)", Width = 25)]
        public MaterialTypeEnum MaterialType { get; set; }
 
        /// <summary>
        /// 主单位(如:kg、m、个)
        /// </summary>
        [ExcelColumn(Name = "主单位(如:kg、m、个)", Width = 25)]
        public string PrimaryUnit { get; set; }
 
        /// <summary>
        /// 规格/标准(如:GB/T 8163-2018)
        /// </summary>
        [ExcelColumn(Name = "规格/标准(如:GB/T 8163-2018)", Width = 25)]
        public string Standard { get; set; }
 
        /// <summary>
        /// 外径(单位:mm)
        /// </summary>
        [ExcelColumn(Name = "外径(单位:mm)", Width = 25)]
        public decimal OuterDiameter { get; set; }
 
        /// <summary>
        /// 壁厚(单位:mm)
        /// </summary>
        [ExcelColumn(Name = "壁厚(单位:mm)", Width = 25)]
        public decimal WallThickness { get; set; }
 
        /// <summary>
        /// 材质(如:304不锈钢)
        /// </summary>
        [ExcelColumn(Name = "材质(如:304不锈钢)", Width = 25)]
        public string MaterialQuality { get; set; }
 
        /// <summary>
        /// 长度(单位:m)
        /// </summary>
        [ExcelColumn(Name = "长度(单位:m)", Width = 25)]
        public decimal Length { get; set; }
 
        /// <summary>
        /// 是否为主支管
        /// </summary>
        [ExcelColumn(Name = "是否为主支管", Width = 25)]
        public YesNoEnum IsMainBranch { get; set; }
 
        /// <summary>
        /// 生产工厂
        /// </summary>
        [ExcelColumn(Name = "生产工厂", Width = 25)]
        public string Factory { get; set; }
 
        /// <summary>
        /// 证书编号
        /// </summary>
        [ExcelColumn(Name = "证书编号", Width = 25)]
        public string Certification { get; set; }
 
        /// <summary>
        /// 冗余字段1 - 预留扩展用途
        /// </summary>
        [ExcelColumn(Name = "冗余字段1 - 预留扩展用途", Width = 25)]
        public string RedundantField1 { get; set; }
 
        /// <summary>
        /// 冗余字段2 - 预留扩展用途
        /// </summary>
        [ExcelColumn(Name = "冗余字段2 - 预留扩展用途", Width = 25)]
        public string RedundantField2 { get; set; }
 
        /// <summary>
        /// 冗余字段3 - 预留扩展用途
        /// </summary>
        [ExcelColumn(Name = "冗余字段3 - 预留扩展用途", Width = 25)]
        public string RedundantField3 { get; set; }
 
        /// <summary>
        /// 创建人
        /// </summary>
        [ExcelColumn(Name = "创建人", Width = 25)]
        public string CreatorName { get; set; }
 
        /// <summary>
        /// 修改人
        /// </summary>
        [ExcelColumn(Name = "修改人", Width = 25)]
        public string LastModifierName { get; set; }
 
        /// <summary>
        /// 排序
        /// </summary>
        [ExcelColumn(Name = "排序", Width = 25)]
        public int Sort { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [ExcelColumn(Name = "备注", Width = 25)]
        public string Remark { get; set; }
 
        /// <summary>
        /// 是否禁用
        /// </summary>
        [ExcelColumn(Name = "是否禁用", Width = 25)]
        public bool? IsDisabled { get; set; }
 
        /// <summary>
        /// 扩展字段1
        /// </summary>
        [ExcelColumn(Name = "扩展字段1", Width = 25)]
        public string ExtraField1 { get; set; }
 
        /// <summary>
        /// 扩展字段2
        /// </summary>
        [ExcelColumn(Name = "扩展字段2", Width = 25)]
        public string ExtraField2 { get; set; }
 
        /// <summary>
        /// 扩展字段3
        /// </summary>
        [ExcelColumn(Name = "扩展字段3", Width = 25)]
        public string ExtraField3 { get; set; }
 
        /// <summary>
        /// 数量
        /// </summary>
        [ExcelColumn(Name = "数量", Width = 25)]
        public bool? IsSelfMade { get; set; }
 
        /// <summary>
        /// 是否有效物料
        /// </summary>
        [ExcelColumn(Name = "是否有效物料", Width = 25)]
        public bool IsValid { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        [ExcelColumn(Name = "", Width = 25)]
        public decimal? NullLength { get; set; }
 
        /// <summary>
        /// 是否有效物料
        /// </summary>
        [ExcelColumn(Name = "是否有效物料", Width = 25)]
        public int Num { get; set; }
 
        /// <summary>
        /// 自有数量
        /// </summary>
        [ExcelColumn(Name = "自有数量", Width = 25)]
        public int? SelfNum { get; set; }
 
 
 
    public Dictionary<string, object> GetExportData() 
        { 
            var exportData = new Dictionary<string, object>(); 
            foreach (var property in this.GetType().GetProperties()) 
            { 
                exportData.Add(property.Name, property.GetValue(this)); 
            } 
 
            return exportData; 
        }