This commit is contained in:
2025-05-07 08:20:08 +08:00
parent 99a74fa5db
commit 4d1ec06430
99 changed files with 4397 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12基础缺陷项查询对象
/// </summary>
public class QcGp12BaseDefectQueryDto : PagerInfo
{
}
/// <summary>
/// 质量GP12基础缺陷项输入输出对象
/// </summary>
public class QcGp12BaseDefectDto
{
[Required(ErrorMessage = "序号不能为空")]
public int Id { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public string Group { 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 class QcGp12AlterationDefectDto
{
/// <summary>
/// 缺陷项组别
/// </summary>
public string GroupName { get; set; }
public List<QcGp12ChildrenDefectDto> Children { get; set; }
}
public class QcGp12ChildrenDefectDto
{
/// <summary>
/// 缺陷项名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 缺陷项编号
/// </summary>
public string Code { get; set; }
/// <summary>
/// 缺陷项类别 1-抛光 2-打磨 3-报废
/// </summary>
public string Type { get; set; }
/// <summary>
/// 缺陷项数量
/// </summary>
public int Num { get; set; } = 0;
}
}

View File

@@ -0,0 +1,41 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12班组查询对象
/// </summary>
public class QcGp12BaseGroupQueryDto : PagerInfo
{
}
/// <summary>
/// 质量GP12班组输入输出对象
/// </summary>
public class QcGp12BaseGroupDto
{
[Required(ErrorMessage = "主键不能为空")]
public int Id { get; set; }
public string Name { get; set; }
public string Code { 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; }
}
}

View File

@@ -0,0 +1,96 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12基础标签解析查询对象
/// </summary>
public class QcGp12BaseLabelAnalysisQueryDto : PagerInfo { }
/// <summary>
/// 质量GP12基础标签解析输入输出对象
/// </summary>
public class QcGp12BaseLabelAnalysisDto
{
[Required(ErrorMessage = "序号不能为空")]
public int Id { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public string Expression { get; set; }
public int? Sort { 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; }
}
/// <summary>
/// GP12标签解析标准模板
/// </summary>
public class QcGp12LabelAnalysisDto
{
/// <summary>
/// 解析是否成功
/// </summary>
public bool IsOk { get; set; }
/// <summary>
/// 解析结果
/// </summary>
public string Msg { get; set; }
/// <summary>
/// 标签类型 1- 外箱标签 2-内标签
/// </summary>
public string LabelType { get; set; }
/// <summary>
/// 标签内容
/// </summary>
public string LabelCode { get; set; }
/// <summary>
/// 工单号
/// </summary>
public string Workorder { get; set; }
/// <summary>
/// 零件号
/// </summary>
public string Partnumber { get; set; }
/// <summary>
/// 规格
/// </summary>
public string Specification { get; set; }
/// <summary>
/// 颜色
/// </summary>
public string Color { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 零件数
/// </summary>
public int Number { get; set; }
}
}

View File

@@ -0,0 +1,41 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12基础站点查询对象
/// </summary>
public class QcGp12BaseSiteQueryDto : PagerInfo
{
}
/// <summary>
/// 质量GP12基础站点输入输出对象
/// </summary>
public class QcGp12BaseSiteDto
{
[Required(ErrorMessage = "序号不能为空")]
public int Id { get; set; }
public string Name { get; set; }
public string Code { 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; }
}
}

View File

@@ -0,0 +1,41 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12工单操作日志查询对象
/// </summary>
public class QcGp12LogWorkorderQueryDto : PagerInfo
{
}
/// <summary>
/// 质量GP12工单操作日志输入输出对象
/// </summary>
public class QcGp12LogWorkorderDto
{
[Required(ErrorMessage = "序号不能为空")]
public string Id { get; set; }
public string Name { get; set; }
public string Content { 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; }
}
}

View File

@@ -0,0 +1,85 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12扫码标签记录查询对象
/// </summary>
public class QcGp12RecordLabelScanQueryDto : PagerInfo { }
/// <summary>
/// 质量GP12扫码标签记录输入输出对象
/// </summary>
public class QcGp12RecordLabelScanDto
{
[Required(ErrorMessage = "序号不能为空")]
public string Id { get; set; }
public string WorkOrder { get; set; }
public string PartNumber { get; set; }
public string Team { get; set; }
public string SiteNo { get; set; }
public string ComNo { get; set; }
[Required(ErrorMessage = "标签内容不能为空")]
public string Label { get; set; }
public int? LabelType { get; set; }
public int? LabelSort { get; set; }
public string ScanTime { 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 class QcGp12LabelScanDto
{
public string WorkOrder { get; set; }
public string PartNumber { get; set; }
public string Team { get; set; }
public string SiteNo { get; set; }
public string ComNo { get; set; }
public string Label { get; set; }
public int? LabelType { get; set; }
public int? LabelSort { get; set; }
public string ScanTime { 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; }
}
}

View File

@@ -0,0 +1,93 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12工单缺陷项记录查询对象
/// </summary>
public class QcGp12RecordWorkorderDefectQueryDto : PagerInfo
{
}
/// <summary>
/// 质量GP12工单缺陷项记录输入输出对象
/// </summary>
public class QcGp12RecordWorkorderDefectDto
{
[Required(ErrorMessage = "序号不能为空")]
public string Id { get; set; }
public string WorkOrder { get; set; }
public string PartNumber { get; set; }
public string Team { get; set; }
public string SiteNo { get; set; }
public string ComNo { get; set; }
public string DefectCode { get; set; }
public string DefectName { get; set; }
public string DefectType { get; set; }
public int? DefectNum { get; set; }
public string ClickTime { 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 class QcGp12WorkorderDefectDto
{
public string Id { get; set; }
public string WorkOrder { get; set; }
public string PartNumber { get; set; }
public string Team { get; set; }
public string SiteNo { get; set; }
public string ComNo { get; set; }
public string DefectCode { get; set; }
public string DefectName { get; set; }
public string DefectType { get; set; }
public int? DefectNum { get; set; }
public string ClickTime { 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; }
}
}

View File

@@ -0,0 +1,124 @@
using System.ComponentModel.DataAnnotations;
using ZR.Model.Business;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12统计报表业务模块查询对象
/// </summary>
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>
/// 质量GP12统计报表业务模块输入输出对象
/// </summary>
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<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;
}
}
}
}

View File

@@ -0,0 +1,137 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 质量GP12工单业务模块查询对象
/// </summary>
public class QcGp12ServiceWorkorderQueryDto : PagerInfo
{
}
/// <summary>
/// 质量GP12工单业务模块输入输出对象
/// </summary>
public class QcGp12ServiceWorkorderDto
{
[Required(ErrorMessage = "序号不能为空")]
public string Id { get; set; }
public string WorkOrder { get; set; }
public int SerialNumber { 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 int? PolishNumber { get; set; }
public int? DamoNumber { get; set; }
public int? BaofeiNumber { 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 class QcGp12WorkorderDetailDto
{
public string Id { get; set; }
public string WorkOrder { get; set; }
public int SerialNumber { 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 int? PolishNumber { get; set; }
public int? DamoNumber { get; set; }
public int? BaofeiNumber { 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; }
}
}