| | |
| | | /// </summary> |
| | | /// <example>MAT-2023-001</example> |
| | | [ExcelColumn(Name = "物料编码", Width = 25)] |
| | | public string MaterialCode { get; set; } |
| | | public string MaterialNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 物料名称 |
| | |
| | | public string MaterialQuality { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 型号 |
| | | /// </summary> |
| | | [ExcelColumn(Name = "型号", Width = 25)] |
| | | public string MaterialModel { get; set; } |
| | | /// <summary> |
| | | /// 长度(单位:米) |
| | | /// </summary> |
| | | /// <example>6.0</example> |
| | |
| | | /// <example>true</example> |
| | | [ExcelColumn(Name = "是否主支管", Width = 25)] |
| | | [Description("是/否")] |
| | | public bool IsMainBranch { get; set; } |
| | | public YesNoEnum IsMainBranch { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 生产工厂名称 |
| | |
| | | [ExcelColumn(Name = "扩展字段3", Width = 25)] |
| | | public string RedundantField3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | [ExcelColumn(Name = "备注",Width = 25)] |
| | | public string Remark { 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; |
| | | } |
| | | } |
| | | } |
| | | |