22
schangxiang@126.com
2025-05-16 cfc40ec33d286b9bf6106d32f20ee3e9533ed026
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
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.WmsInOutStockOrderDetail; 
 
/// <summary> 
/// 出入库单据详情导出模型 
/// </summary> 
public  class WmsInOutStockOrderDetailExportModel 
            /// <summary>
        /// 单据编号
        /// </summary>
        [ExcelColumn(Name = "单据编号", Width = 25)]
        public string OrderNo { get; set; }
 
        /// <summary>
        /// 物料唯一码
        /// </summary>
        [ExcelColumn(Name = "物料唯一码", Width = 25)]
        public string MaterialId { get; set; }
 
        /// <summary>
        /// 单据类型(枚举值)
        /// </summary>
        [ExcelColumn(Name = "单据类型(枚举值)", Width = 25)]
        public OrderTypeEnum OrderType { get; set; }
 
        /// <summary>
        /// 物料件号
        /// </summary>
        [ExcelColumn(Name = "物料件号", Width = 25)]
        public string MaterialNo { get; set; }
 
        /// <summary>
        /// 物料名称
        /// </summary>
        [ExcelColumn(Name = "物料名称", Width = 25)]
        public string MaterialName { get; set; }
 
        /// <summary>
        /// 容器编号
        /// </summary>
        [ExcelColumn(Name = "容器编号", Width = 25)]
        public string ContainerNo { get; set; }
 
        /// <summary>
        /// 机型
        /// </summary>
        [ExcelColumn(Name = "机型", Width = 25)]
        public string MaterialModel { get; set; }
 
        /// <summary>
        /// 物料批次
        /// </summary>
        [ExcelColumn(Name = "物料批次", Width = 25)]
        public string? MaterialBatch { get; set; }
 
        /// <summary>
        /// 是否禁用
        /// </summary>
        [ExcelColumn(Name = "是否禁用", Width = 25)]
        public bool? IsDisabled { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [ExcelColumn(Name = "备注", Width = 25)]
        public string Remark { get; set; }
 
        /// <summary>
        /// 排序
        /// </summary>
        [ExcelColumn(Name = "排序", Width = 25)]
        public int Sort { 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; 
        }