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 string OrgMaterialCode { 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 WorkpieceName { 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 DataIdentifier { get; set; }
///
/// 管规格码
///
[ExcelColumn(Name = "管规格码", Width = 25)]
public string PipeSpecCode { get; set; }
///
/// 管段名称
///
[ExcelColumn(Name = "管段名称", Width = 25)]
public string PipeSectionName { get; set; }
///
/// 外径
///
[ExcelColumn(Name = "外径", Width = 25)]
public string OuterDiameter { get; set; }
///
/// 坡口
///
[ExcelColumn(Name = "坡口", Width = 25)]
public string Bevel { get; set; }
///
/// 材质
///
[ExcelColumn(Name = "材质", Width = 25)]
public string Material { get; set; }
///
/// 长度
///
[ExcelColumn(Name = "长度", Width = 25)]
public string Length { get; set; }
///
/// 打孔位
///
[ExcelColumn(Name = "打孔位", Width = 25)]
public string DrillingPosition { get; set; }
///
/// 相贯
///
[ExcelColumn(Name = "相贯", Width = 25)]
public string Intersecting { get; set; }
///
/// 接口要求
///
[ExcelColumn(Name = "接口要求", Width = 25)]
public string InterfaceRequirement { get; set; }
///
/// 是否有主签
///
[ExcelColumn(Name = "是否有主签", Width = 25)]
public bool HasMainSignature { get; set; }
///
/// 包括数量
///
[ExcelColumn(Name = "包括数量", Width = 25)]
public int Quantity { get; set; }
///
/// 打码内容
///
[ExcelColumn(Name = "打码内容", Width = 25)]
public string MarkingContent { get; set; }
///
/// 切割文件
///
[ExcelColumn(Name = "切割文件", Width = 25)]
public string CuttingFile { get; set; }
///
/// 支外径
///
[ExcelColumn(Name = "支外径", Width = 25)]
public string BranchOuterDiameter { get; set; }
///
/// 支管壁厚
///
[ExcelColumn(Name = "支管壁厚", Width = 25)]
public string BranchWallThickness { get; set; }
///
/// 支管材质
///
[ExcelColumn(Name = "支管材质", Width = 25)]
public string BranchMaterial { get; set; }
///
/// 支管端口曲率半径
///
[ExcelColumn(Name = "支管端口曲率半径", Width = 25)]
public string BranchPortRadius { get; set; }
///
/// 支管端口角度
///
[ExcelColumn(Name = "支管端口角度", Width = 25)]
public string BranchPortAngle { get; set; }
///
/// 支管端口要求
///
[ExcelColumn(Name = "支管端口要求", Width = 25)]
public string BranchPortRequirement { get; set; }
///
/// 相贯线类型
///
[ExcelColumn(Name = "相贯线类型", Width = 25)]
public string IntersectingLineType { get; set; }
///
/// 相贯线类别
///
[ExcelColumn(Name = "相贯线类别", Width = 25)]
public string IntersectingLineCategory { get; set; }
///
/// 成品图幅
///
[ExcelColumn(Name = "成品图幅", Width = 25)]
public string FinishedProductScale { get; set; }
///
/// 法兰厚度
///
[ExcelColumn(Name = "法兰厚度", Width = 25)]
public string FlangeThickness { get; set; }
///
/// 法兰内径
///
[ExcelColumn(Name = "法兰内径", Width = 25)]
public string FlangeInnerDiameter { get; set; }
///
/// 焊接热输入
///
[ExcelColumn(Name = "焊接热输入", Width = 25)]
public string WeldingHeatInput { get; set; }
///
/// 管道允许应力
///
[ExcelColumn(Name = "管道允许应力", Width = 25)]
public string PipeAllowableStress { get; set; }
///
/// 管径
///
[ExcelColumn(Name = "管径", Width = 25)]
public string PipeDiameter { get; set; }
///
/// 管道壁厚
///
[ExcelColumn(Name = "管道壁厚", Width = 25)]
public string PipeWallThickness { get; set; }
///
/// VR数据
///
[ExcelColumn(Name = "VR数据", Width = 25)]
public string VRData { 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 TimeInfo { get; set; }
///
///
///
[ExcelColumn(Name = "", Width = 25)]
public string RedundantField1 { get; set; }
///
///
///
[ExcelColumn(Name = "", Width = 25)]
public string RedundantField2 { get; set; }
///
///
///
[ExcelColumn(Name = "", Width = 25)]
public string RedundantField3 { get; set; }
///
/// 排序
///
[ExcelColumn(Name = "排序", Width = 25)]
public int Sort { get; set; }
///
/// 备注
///
[ExcelColumn(Name = "备注", Width = 25)]
public string Remark { get; set; }
///
/// 是否禁用
///
[ExcelColumn(Name = "是否禁用", Width = 25)]
public bool? IsDisabled { 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;
}
}