using System.ComponentModel.DataAnnotations; using ZR.Model.Business; namespace ZR.Model.Dto { /// /// 质量GP12统计报表业务模块查询对象 /// public class QcGp12ServiceStatisticsQueryDto : 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; } /// /// 查询排序字段(1-工单号 2-零件号 3-合格率 4-开始时间) /// 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; } } /// /// 质量GP12统计报表业务模块输入输出对象 /// public class QcGp12ServiceStatisticsDto { 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 DynamicProperties { get; set; } = new Dictionary(); } public static class QcGp12ServiceStatisticsDtoExtensions { public static void AddDynamicProperty(this QcGp12ServiceStatisticsDto dto, string propertyName, object value) { if (!dto.DynamicProperties.ContainsKey(propertyName)) { dto.DynamicProperties[propertyName] = value; } } } }