| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- namespace Admin.NET.Plugin.AiDOP.Dto.S8;
- public class AdoS8ExceptionQueryDto
- {
- public long TenantId { get; set; } = 1;
- public long FactoryId { get; set; } = 1;
- public string? Keyword { get; set; }
- public string? Status { get; set; }
- public string? StatusBucket { get; set; }
- public string? Severity { get; set; }
- public string? SceneCode { get; set; }
- /// <summary>模块码过滤(S1-S7),用于监控页下钻</summary>
- public string? ModuleCode { get; set; }
- public long? DeptId { get; set; }
- public bool? TimeoutFlag { get; set; }
- public string? ProcessNodeCode { get; set; }
- public string? RelatedObjectCode { get; set; }
- public DateTime? BeginTime { get; set; }
- public DateTime? EndTime { get; set; }
- public int Page { get; set; } = 1;
- public int PageSize { get; set; } = 20;
- }
- public class AdoS8ExceptionListItemDto
- {
- public long Id { get; set; }
- public long FactoryId { get; set; }
- public string ExceptionCode { get; set; } = string.Empty;
- public string Title { get; set; } = string.Empty;
- public string Status { get; set; } = string.Empty;
- public string? StatusLabel { get; set; }
- public string Severity { get; set; } = string.Empty;
- public string? SeverityLabel { get; set; }
- public decimal PriorityScore { get; set; }
- public string PriorityLevel { get; set; } = string.Empty;
- public string SceneCode { get; set; } = string.Empty;
- public string? SceneName { get; set; }
- public long ResponsibleDeptId { get; set; }
- public string? ResponsibleDeptName { get; set; }
- public long? AssigneeId { get; set; }
- public string? AssigneeName { get; set; }
- public DateTime? SlaDeadline { get; set; }
- public bool TimeoutFlag { get; set; }
- public DateTime CreatedAt { get; set; }
- public DateTime? ClosedAt { get; set; }
- }
- public class AdoS8ExceptionDetailDto : AdoS8ExceptionListItemDto
- {
- public string? Description { get; set; }
- public string SourceType { get; set; } = string.Empty;
- public long OccurrenceDeptId { get; set; }
- public string? OccurrenceDeptName { get; set; }
- public long? ResponsibleGroupId { get; set; }
- public long? ReporterId { get; set; }
- public string? ReporterName { get; set; }
- public DateTime? AssignedAt { get; set; }
- public DateTime? UpdatedAt { get; set; }
- public long? ActiveFlowInstanceId { get; set; }
- public string? ActiveFlowBizType { get; set; }
- public long? VerifierId { get; set; }
- public string? VerifierName { get; set; }
- public DateTime? VerificationAssignedAt { get; set; }
- public DateTime? VerifiedAt { get; set; }
- public string? VerificationResult { get; set; }
- public string? VerificationRemark { get; set; }
- }
- public class AdoS8ManualReportCreateDto
- {
- public long TenantId { get; set; } = 1;
- public long FactoryId { get; set; } = 1;
- public string Title { get; set; } = string.Empty;
- public string? Description { get; set; }
- public string SceneCode { get; set; } = string.Empty;
- public string Severity { get; set; } = "MEDIUM";
- public long OccurrenceDeptId { get; set; }
- public long ResponsibleDeptId { get; set; }
- public long? ReporterId { get; set; }
- }
- public class AdoS8ManualReportResultDto
- {
- public long ExceptionId { get; set; }
- public string ExceptionCode { get; set; } = string.Empty;
- public long TaskId { get; set; }
- }
- public class AdoS8TimelineItemDto
- {
- public long Id { get; set; }
- public string ActionCode { get; set; } = string.Empty;
- public string ActionLabel { get; set; } = string.Empty;
- public string? FromStatus { get; set; }
- public string? ToStatus { get; set; }
- public long? OperatorId { get; set; }
- public string? OperatorName { get; set; }
- public string? ActionRemark { get; set; }
- public DateTime CreatedAt { get; set; }
- }
- public class AdoS8DecisionItemDto
- {
- public long Id { get; set; }
- public string DecisionType { get; set; } = string.Empty;
- public long DecisionMakerId { get; set; }
- public string DecisionMakerName { get; set; } = string.Empty;
- public string? DecisionBasis { get; set; }
- public string? DecisionResult { get; set; }
- public string? DecisionRemark { get; set; }
- public DateTime DecisionTime { get; set; }
- }
- public class AdoS8EvidenceItemDto
- {
- public long Id { get; set; }
- public string EvidenceType { get; set; } = string.Empty;
- public string FileName { get; set; } = string.Empty;
- public string FileUrl { get; set; } = string.Empty;
- public string? SourceSystem { get; set; }
- public long? UploadedBy { get; set; }
- public DateTime UploadedAt { get; set; }
- }
- public class AdoS8CommentDto
- {
- public string? Remark { get; set; }
- }
- public class AdoS8TransferDto
- {
- public long AssigneeId { get; set; }
- public string? Remark { get; set; }
- }
- public class AdoS8AttachmentCreateDto
- {
- public string EvidenceType { get; set; } = "file";
- public string FileName { get; set; } = string.Empty;
- public string FileUrl { get; set; } = string.Empty;
- public string? SourceSystem { get; set; }
- public long? UploadedBy { get; set; }
- }
- // ── 监控汇总 DTO ─────────────────────────────────────────────────────────────
- public class AdoS8MonitoringSummaryQueryDto
- {
- public long TenantId { get; set; } = 1;
- public long FactoryId { get; set; } = 1;
- /// <summary>场景码过滤(不传 = 全部)</summary>
- public string? SceneCode { get; set; }
- /// <summary>模块码过滤(不传 = 全部)</summary>
- public string? ModuleCode { get; set; }
- public DateTime? BizDateFrom { get; set; }
- public DateTime? BizDateTo { get; set; }
- }
- /// <summary>单个模块的异常汇总行</summary>
- public class AdoS8ModuleSummaryItem
- {
- public string ModuleCode { get; set; } = string.Empty;
- public string ModuleLabel { get; set; } = string.Empty;
- public string SceneCode { get; set; } = string.Empty;
- public string SceneLabel { get; set; } = string.Empty;
- public int Total { get; set; }
- public int Red { get; set; }
- public int Yellow { get; set; }
- public int Green { get; set; }
- public int Timeout { get; set; }
- }
- /// <summary>监控汇总出参(综合全景页顶部 + 表格数据)</summary>
- public class AdoS8MonitoringSummaryDto
- {
- public int Total { get; set; }
- public int Red { get; set; }
- public int Yellow { get; set; }
- public int Green { get; set; }
- public int Timeout { get; set; }
- public List<AdoS8ModuleSummaryItem> ByModule { get; set; } = new();
- }
- // ── 9宫格 OrderGrid DTO ──────────────────────────────────────────────────────
- /// <summary>S1-S7 单个模块的订单健康分布(9宫格前7格)</summary>
- public class AdoS8ModuleOrderSummary
- {
- public string ModuleCode { get; set; } = string.Empty;
- public string ModuleLabel { get; set; } = string.Empty;
- /// <summary>绿色订单数(该阶段无未关闭异常)</summary>
- public int Green { get; set; }
- /// <summary>黄色订单数(有 MEDIUM 未关闭)</summary>
- public int Yellow { get; set; }
- /// <summary>红色订单数(有 CRITICAL/HIGH 未关闭,或黄色超时)</summary>
- public int Red { get; set; }
- public int Total { get; set; }
- /// <summary>异常发生频率(每百订单异常数)</summary>
- public double Frequency { get; set; }
- /// <summary>平均处理时效(小时)</summary>
- public double AvgProcessHours { get; set; }
- /// <summary>异常关闭百分比</summary>
- public double CloseRate { get; set; }
- }
- /// <summary>S8格:按业务类别汇总(第8格)</summary>
- public class AdoS8CategorySummary
- {
- public string Category { get; set; } = string.Empty;
- public int Total { get; set; }
- public double AvgProcessHours { get; set; }
- public double CloseRate { get; set; }
- }
- /// <summary>S9格:按责任部门汇总(第9格)</summary>
- public class AdoS8DeptSummary
- {
- public string DeptName { get; set; } = string.Empty;
- public int Total { get; set; }
- public double AvgProcessHours { get; set; }
- public double CloseRate { get; set; }
- }
- /// <summary>9宫格完整出参</summary>
- public class AdoS8OrderGridDto
- {
- public List<AdoS8ModuleOrderSummary> Modules { get; set; } = new();
- public List<AdoS8CategorySummary> ByCategory { get; set; } = new();
- public List<AdoS8DeptSummary> ByDept { get; set; } = new();
- }
- public class AdoS8SubmitVerificationDto
- {
- public long VerifierId { get; set; }
- public string? Remark { get; set; }
- }
- public class AdoS8ApproveVerificationDto
- {
- public string? Remark { get; set; }
- }
- public class AdoS8RejectVerificationDto
- {
- public string Remark { get; set; } = string.Empty;
- }
|