shgx_tz_mom/ZR.Model/MES/qc/DTO/backend/QcBackEndServiceStatisticsDto.cs

125 lines
3.1 KiB
C#
Raw Normal View History

2025-04-29 16:48:28 +08:00
using System.ComponentModel.DataAnnotations;
using ZR.Model.Business;
namespace ZR.Model.Dto
{
/// <summary>
/// 后道统计报表业务模块查询对象
/// </summary>
public class QcBackEndServiceStatisticsQueryDto : PagerInfo
{
public string WorkOrder { get; set; }
public string PartNumber { get; set; }
public string Description { get; set; }
public string Team { get; set; }
public string SiteNo { get; set; }
public string ComNo { get; set; }
/// <summary>
/// 查询排序字段1-工单号 2-零件号 3-合格率 4-开始时间)
/// </summary>
public int StatisticsOrderType { get; set; }
public int? IsOnetime { get; set; }
public int? IsBack { get; set; }
public int? IsPolish { get; set; }
public int? IsOut { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
}
/// <summary>
/// 后道统计报表业务模块输入输出对象
/// </summary>
public class QcBackEndServiceStatisticsDto
{
public string Id { get; set; }
public string WorkOrder { get; set; }
public string PartNumber { get; set; }
public string Description { get; set; }
public string Specification { get; set; }
public string Color { get; set; }
public string Team { get; set; }
public string SiteNo { get; set; }
public string ComNo { get; set; }
public int? IsOnetime { get; set; }
public int? IsBack { get; set; }
public int? IsPolish { get; set; }
public int? IsOut { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public string Label { get; set; }
public int? RequireNumber { get; set; }
public int? QualifiedNumber { get; set; }
public string QualifiedRate { get; set; }
public int? PolishNumber { get; set; }
public int? DamoNumber { get; set; }
public int? BaofeiNumber { get; set; }
public string GroupCode { get; set; }
public int? GroupSort { get; set; }
public string GroupDefectJson { get; set; }
public string Type { get; set; }
public string Status { get; set; }
public string Remark { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
// 动态属性存储
public Dictionary<string, object> DynamicProperties { get; set; } = new Dictionary<string, object>();
}
public static class QcBackEndServiceStatisticsDtoExtensions
{
public static void AddDynamicProperty(this QcBackEndServiceStatisticsDto dto, string propertyName, object value)
{
if (!dto.DynamicProperties.ContainsKey(propertyName))
{
dto.DynamicProperties[propertyName] = value;
}
}
}
}