1
This commit is contained in:
@@ -1,12 +1,41 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using ZR.Model.Business;
|
||||
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 质量GP12统计报表业务模块查询对象
|
||||
/// </summary>
|
||||
public class QcGp12ServiceStatisticsQueryDto : PagerInfo
|
||||
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; }
|
||||
|
||||
/// <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>
|
||||
@@ -14,7 +43,6 @@ namespace ZR.Model.Dto
|
||||
/// </summary>
|
||||
public class QcGp12ServiceStatisticsDto
|
||||
{
|
||||
[Required(ErrorMessage = "序号不能为空")]
|
||||
public string Id { get; set; }
|
||||
|
||||
public string WorkOrder { get; set; }
|
||||
@@ -79,7 +107,18 @@ namespace ZR.Model.Dto
|
||||
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
|
||||
|
||||
// 动态属性存储
|
||||
public Dictionary<string, object> DynamicProperties { get; set; } = new Dictionary<string, object>();
|
||||
}
|
||||
}
|
||||
|
||||
public static class QcGp12ServiceStatisticsDtoExtensions
|
||||
{
|
||||
public static void AddDynamicProperty(this QcGp12ServiceStatisticsDto dto, string propertyName, object value)
|
||||
{
|
||||
if (!dto.DynamicProperties.ContainsKey(propertyName))
|
||||
{
|
||||
dto.DynamicProperties[propertyName] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user