2025-12-19 09:47:32 +08:00

92 lines
2.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using MiniExcelLibs.Attributes;
using System.ComponentModel.DataAnnotations;
namespace MDM.Model.Process.Dto
{
/// <summary>
/// 工艺参数表(如温度、压力、时间等,关联工艺路线与工序)查询对象
/// </summary>
public class ProcessParameterQueryDto : PagerInfo
{
public string? FkRoutingCode { get; set; }
public string? FkOperationCode { get; set; }
public string? ParameterCode { get; set; }
public string? ParameterName { get; set; }
public string? WorkOrderCode { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
}
/// <summary>
/// 工艺参数表(如温度、压力、时间等,关联工艺路线与工序)输入输出对象
/// </summary>
public class ProcessParameterDto
{
public ProcessParameterDto() { }
//工艺参数ID主键不能为空
public int Id { get; set; }
[ExcelColumn(Name = "工单编码")]
public string WorkOrderCode { get; set; }
//所属工艺路线code不能为空
[ExcelColumn(Name = "工艺编码")]
public string FkRoutingCode { get; set; }
//所属工序code不能为空
[ExcelColumn(Name = "工序编码")]
public string FkOperationCode { get; set; }
//参数名称,如:温度、压力、时间不能为空
[ExcelColumn(Name = "参数编码")]
public string ParameterCode { get; set; }
[ExcelColumn(Name = "参数名称")]
public string ParameterName { get; set; }
[ExcelColumn(Name = "参数描述")]
public string Description { get; set; }
//数据类型FLOAT, INT, STRING, BOOL, AI模拟量输入等不能为空
[ExcelColumn(Name = "数据类型")]
public string DataType { get; set; }
[ExcelColumn(Name = "单位")]
public string Unit { get; set; }
[ExcelColumn(Name = "标准值")]
public decimal StandardValue { get; set; }
[ExcelColumn(Name = "最小值")]
public decimal MinValue { get; set; }
[ExcelColumn(Name = "最大值")]
public decimal MaxValue { get; set; }
[ExcelColumn(Name = "是否为控制参数")]
public string IsControlled { get; set; }
[ExcelColumn(Name = "是否为监控参数")]
public string IsMonitored { get; set; }
[ExcelColumn(Name = "控制类型")]
public string ControlType { get; set; }
public decimal DefaultValue { get; set; }
public string IsRequired { get; set; }
public int? Sequence { get; set; }
public DateTime? CreatedTime { get; set; }
public string CreatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
public string UpdatedBy { get; set; }
[ExcelColumn(Name = "采集值")]
public string CollectedValue { get; set; }
}
}