using MiniExcelLibs.Attributes;
using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel;
using CMS.Plugin.PipeLineLems.Domain.Shared.Enums;
namespace CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkPlan;
///
/// 作业计划表导出模型
///
public class WorkPlanExportModel
{
///
/// 任务编码
///
[ExcelColumn(Name = "任务编码", Width = 25)]
public string TaskCode { get; set; }
///
/// 计划状态
///
[ExcelColumn(Name = "计划状态", Width = 25)]
public WorkPlanStatusEnum WorkPlanStatus { get; set; }
///
/// 叫料状态
///
[ExcelColumn(Name = "叫料状态", Width = 25)]
public CallMaterialStatusEnum CallMaterialStatus { get; set; }
///
/// 原料标识
///
[ExcelColumn(Name = "原料标识", Width = 25)]
public string DataIdentifier { get; set; }
///
/// 原料型号
///
[ExcelColumn(Name = "原料型号", Width = 25)]
public string MaterialMode { get; set; }
///
/// 长度(mm)
///
[ExcelColumn(Name = "长度(mm)", Width = 25)]
public decimal Length { get; set; }
///
/// 打码内容
///
[ExcelColumn(Name = "打码内容", Width = 25)]
public string MarkingContent { get; set; }
///
/// 打码位置
///
[ExcelColumn(Name = "打码位置", Width = 25)]
public decimal MarkingPosition { get; set; }
///
/// 切割位置
///
[ExcelColumn(Name = "切割位置", Width = 25)]
public decimal CuttingPosition { get; set; }
///
/// 管段数量
///
[ExcelColumn(Name = "管段数量", Width = 25)]
public int Quantity { get; set; }
///
/// 法兰厚度(mm)
///
[ExcelColumn(Name = "法兰厚度(mm)", Width = 25)]
public decimal FlangeThickness { get; set; }
///
/// 法兰直径(mm)
///
[ExcelColumn(Name = "法兰直径(mm)", Width = 25)]
public decimal FlangeInnerDiameter { get; set; }
///
/// 法兰公称压力
///
[ExcelColumn(Name = "法兰公称压力", Width = 25)]
public string WeldingHeatInput { get; set; }
///
/// 法兰冲码内容
///
[ExcelColumn(Name = "法兰冲码内容", Width = 25)]
public string PipeAllowableStress { get; set; }
///
/// 套管长度(mm)
///
[ExcelColumn(Name = "套管长度(mm)", Width = 25)]
public decimal PipeDiameter { get; set; }
///
/// 套管直径(mm)
///
[ExcelColumn(Name = "套管直径(mm)", Width = 25)]
public decimal PipeWallThickness { get; set; }
///
/// 工厂代码
///
[ExcelColumn(Name = "工厂代码", Width = 25)]
public string FactoryCode { get; set; }
///
/// 产品代码
///
[ExcelColumn(Name = "产品代码", Width = 25)]
public string ProductCode { get; set; }
///
/// 工位代码
///
[ExcelColumn(Name = "工位代码", Width = 25)]
public string WorkstationCode { get; set; }
///
/// 设备代码
///
[ExcelColumn(Name = "设备代码", Width = 25)]
public string EquipmentCode { get; set; }
///
/// 产线编码
///
[ExcelColumn(Name = "产线编码", Width = 25)]
public string ProdLineCode { get; set; }
///
/// 船号
///
[ExcelColumn(Name = "船号", Width = 25)]
public string ShipNumber { get; set; }
///
/// 项目号
///
[ExcelColumn(Name = "项目号", Width = 25)]
public string ProjectNumber { get; set; }
///
/// 工序名称
///
[ExcelColumn(Name = "工序名称", Width = 25)]
public string ProcessName { get; set; }
///
/// 管件编码
///
[ExcelColumn(Name = "管件编码", Width = 25)]
public string PipeFittingCode { get; set; }
///
/// 顺序号
///
[ExcelColumn(Name = "顺序号", Width = 25)]
public string PreSerialNumber { get; set; }
///
/// 管段编码
///
[ExcelColumn(Name = "管段编码", Width = 25)]
public string PipeSpecCode { get; set; }
///
/// 管段名称
///
[ExcelColumn(Name = "管段名称", Width = 25)]
public string PipeSectionName { get; set; }
///
/// 外径(mm)
///
[ExcelColumn(Name = "外径(mm)", Width = 25)]
public decimal OuterDiameter { get; set; }
///
/// 壁厚(mm)
///
[ExcelColumn(Name = "壁厚(mm)", Width = 25)]
public decimal Thickness { get; set; }
///
/// 材质
///
[ExcelColumn(Name = "材质", Width = 25)]
public string Material { get; set; }
///
/// 工艺流向编号
///
[ExcelColumn(Name = "工艺流向编号", Width = 25)]
public string ProcessRouteNumber { get; set; }
///
/// 计划开始时间
///
[ExcelColumn(Name = "计划开始时间", Width = 25)]
public DateTime PlannedStartTime { get; set; }
///
/// 计划完成时间
///
[ExcelColumn(Name = "计划完成时间", Width = 25)]
public DateTime PlannedEndTime { get; set; }
///
/// 班组信息
///
[ExcelColumn(Name = "班组信息", Width = 25)]
public string TeamInfo { get; set; }
///
/// 时间戳
///
[ExcelColumn(Name = "时间戳", Width = 25)]
public string Timestamp { get; set; }
///
/// 创建时间
///
[ExcelColumn(Name = "创建时间", Width = 25)]
public DateTime CreationTime { get; set; }
///
/// 修改时间
///
[ExcelColumn(Name = "修改时间", Width = 25)]
public DateTime LastModificationTime { get; set; }
///
/// 创建人
///
[ExcelColumn(Name = "创建人", Width = 25)]
public string CreatorName { get; set; }
///
/// 修改人
///
[ExcelColumn(Name = "修改人", Width = 25)]
public string LastModifierName { get; set; }
///
/// 备注
///
[ExcelColumn(Name = "备注", Width = 25)]
public string Remark { get; set; }
public Dictionary GetExportData()
{
var exportData = new Dictionary();
foreach (var property in this.GetType().GetProperties())
{
exportData.Add(property.Name, property.GetValue(this));
}
return exportData;
}
}