using iWare.Wms.Core.Util.LowCode.Dto; using Microsoft.EntityFrameworkCore; using OfficeOpenXml.FormulaParsing.Excel.Functions.Math; using System; using System.ComponentModel; namespace iWare.Wms.Application { /// /// 设备基础信息管理输出参数 /// public class EquipmentBaseInfoOutput { /// /// 设备编号 /// public string EquipmentId { get; set; } /// /// 设备名称 /// public string EquipmentName { get; set; } /// /// 设备所属工序 /// public string WorkingProcedure { get; set; } /// /// 设备型号 /// public string EquipmentModel { get; set; } /// /// 设备IP地址 /// public string EquipmentIP { get; set; } /// /// 功能 /// public string EquipmentFunction { get; set; } /// /// 设备品牌 /// public string EquipmentBrand { get; set; } /// /// 设备制造商 /// public string EquipmentManufacturer { get; set; } /// /// 清洗液更换时间 /// public DateTime? Detergentchangetime { get; set; } /// /// 清洗液更换预警阈值 /// public int DetergentChangeAlertThreshold { get; set; } /// /// 清洗液更换周期 /// public int DetergentChangeCycle { get; set; } /// /// 切削液更换时间 /// public DateTime? CuttingFluidChangeTime { get; set; } /// /// 切削液预警阈值 /// public int CuttingFluidChangeAlertThreshold { get; set; } /// /// 计划生产节拍 /// public int TactTime { get; set; } /// /// 刀具更换时间 /// public DateTime? KnifeToolChangeTime { get; set; } /// /// 刀具更换预警阈值 /// public int KnifeToolChangeAlertThreshold { get; set; } /// /// 备注 /// public string Remarks { get; set; } /// /// Id主键 /// public long Id { get; set; } /// /// 创建时间 /// public DateTimeOffset? CreatedTime { get; set; } } /// /// 设备告警输出参数 /// public class EquipmentAlertInfoOutput { /// /// 设备编号 /// public string EquipmentId { get; set; } /// /// 设备名称 /// public string EquipmentName { get; set; } /// /// 设备所属工序 /// public string WorkingProcedure { get; set; } /// /// 设备型号 /// public string EquipmentModel { get; set; } /// /// 设备IP地址 /// public string EquipmentIP { get; set; } /// /// 功能 /// public string EquipmentFunction { get; set; } /// /// 设备品牌 /// public string EquipmentBrand { get; set; } /// /// 设备制造商 /// public string EquipmentManufacturer { get; set; } /// /// 清洗液更换时间 /// public DateTime? Detergentchangetime { get; set; } /// /// 清洗液更换预警阈值 /// public int DetergentChangeAlertThreshold { get; set; } /// /// 清洗液更换周期 /// public int DetergentChangeCycle { get; set; } /// /// 刀具更换时间 /// public DateTime? KnifeToolChangeTime { get; set; } /// /// 刀具更换预警阈值 /// public int KnifeToolChangeAlertThreshold { get; set; } /// /// 切削液更换时间 /// [Comment("切削液更换时间")] public DateTime? CuttingFluidChangeTime { get; set; } /// /// 切削液预警阈值 /// [Comment("切削液预警阈值")] public int CuttingFluidChangeAlertThreshold { get; set; } /// /// 备注 /// public string Remarks { get; set; } /// /// Id主键 /// public long Id { get; set; } /// /// 报警时间 /// [Comment("报警时间")] public DateTime? AlertTime { get; set; } /// /// 故障代码 /// [Comment("故障代码")] public string FailureType { get; set; } /// /// 报警信息 /// [Comment("报警信息")] public string Alertmsg { get; set; } /// /// 清洗液更换告警 /// public bool IsAlertDetergent { get; set; } /// /// 刀具更换告警 /// public bool IsAlertKnifeTool { get; set; } /// /// 切削液是否告警 /// public bool IsAlertCuttingFluid { get; set; } /// /// 设备是否告警 /// public bool IsAlert { get; set; } /// /// 清洗液描述 /// public string DetergentDesc { get; set; } /// /// 刀具更换描述 /// public string KnifeToolDesc { get; set; } /// /// 切削液更换描述 /// public string CuttingFluidDesc { get; set; } /// /// 告警描述 /// public string AlertDesc { get; set; } } /// /// 导出Excel文件中字段 /// [Description("设备基础信息")] public class EquipmentBaseInfoExcelOutput { /// /// 设备所属工序 /// [Description("工序")] public string WorkingProcedure { get; set; } /// /// 设备编号 /// [Description("设备编号")] public string EquipmentId { get; set; } /// /// 设备名称 /// [Description("设备名称")] public string EquipmentName { get; set; } /// /// 设备型号 /// [Description("机床数控系统型号")] public string EquipmentModel { get; set; } /// /// 功能 /// [Description("产品数据信息")] public string EquipmentFunction { get; set; } /// /// 设备IP地址 /// [Description("IP")] public string EquipmentIP { get; set; } /// /// 设备制造商 /// [Description("原制造商")] public string EquipmentManufacturer { get; set; } /// /// 清洗液更换时间 /// [Description("清洗液更换时间")] public DateTime? Detergentchangetime { get; set; } /// /// 清洗液更换预警阈值 /// [Description("清洗液更换预警阈值")] public int DetergentChangeAlertThreshold { get; set; } ///// ///// 清洗液更换周期 ///// //[Description("清洗液更换周期")] //public int DetergentChangeCycle { get; set; } /// /// 切削液更换时间 /// [Description("切削液更换时间")] public DateTime? CuttingFluidChangeTime { get; set; } /// /// 切削液预警阈值 /// [Description("切削液预警阈值")] public int CuttingFluidChangeAlertThreshold { get; set; } /// /// 计划生产节拍 /// [Description("计划生产节拍")] public int TactTime { get; set; } /// /// 创建时间 /// [Description("创建时间")] public DateTime? CreatedTime { get; set; } /// /// 最新更新时间 /// [Description("最新更新时间")] public DateTime? UpdatedTime { get; set; } /// /// Id主键 /// public long Id { get; set; } } }