AdoS8Dtos.cs 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S8;
  2. public class AdoS8ExceptionQueryDto
  3. {
  4. public long TenantId { get; set; } = 1;
  5. public long FactoryId { get; set; } = 1;
  6. public string? Keyword { get; set; }
  7. public string? Status { get; set; }
  8. public string? StatusBucket { get; set; }
  9. public string? Severity { get; set; }
  10. public string? SceneCode { get; set; }
  11. /// <summary>模块码过滤(S1-S7),用于监控页下钻</summary>
  12. public string? ModuleCode { get; set; }
  13. public long? DeptId { get; set; }
  14. public bool? TimeoutFlag { get; set; }
  15. public string? ProcessNodeCode { get; set; }
  16. public string? RelatedObjectCode { get; set; }
  17. public DateTime? BeginTime { get; set; }
  18. public DateTime? EndTime { get; set; }
  19. public int Page { get; set; } = 1;
  20. public int PageSize { get; set; } = 20;
  21. }
  22. public class AdoS8ExceptionListItemDto
  23. {
  24. public long Id { get; set; }
  25. public long FactoryId { get; set; }
  26. public string ExceptionCode { get; set; } = string.Empty;
  27. public string Title { get; set; } = string.Empty;
  28. public string Status { get; set; } = string.Empty;
  29. public string? StatusLabel { get; set; }
  30. public string Severity { get; set; } = string.Empty;
  31. public string? SeverityLabel { get; set; }
  32. public decimal PriorityScore { get; set; }
  33. public string PriorityLevel { get; set; } = string.Empty;
  34. public string SceneCode { get; set; } = string.Empty;
  35. public string? SceneName { get; set; }
  36. public long ResponsibleDeptId { get; set; }
  37. public string? ResponsibleDeptName { get; set; }
  38. public long? AssigneeId { get; set; }
  39. public string? AssigneeName { get; set; }
  40. public DateTime? SlaDeadline { get; set; }
  41. public bool TimeoutFlag { get; set; }
  42. public DateTime CreatedAt { get; set; }
  43. public DateTime? ClosedAt { get; set; }
  44. }
  45. public class AdoS8ExceptionDetailDto : AdoS8ExceptionListItemDto
  46. {
  47. public string? Description { get; set; }
  48. public string SourceType { get; set; } = string.Empty;
  49. public long OccurrenceDeptId { get; set; }
  50. public string? OccurrenceDeptName { get; set; }
  51. public long? ResponsibleGroupId { get; set; }
  52. public long? ReporterId { get; set; }
  53. public string? ReporterName { get; set; }
  54. public DateTime? AssignedAt { get; set; }
  55. public DateTime? UpdatedAt { get; set; }
  56. public long? ActiveFlowInstanceId { get; set; }
  57. public string? ActiveFlowBizType { get; set; }
  58. public long? VerifierId { get; set; }
  59. public string? VerifierName { get; set; }
  60. public DateTime? VerificationAssignedAt { get; set; }
  61. public DateTime? VerifiedAt { get; set; }
  62. public string? VerificationResult { get; set; }
  63. public string? VerificationRemark { get; set; }
  64. public long? SourceRuleId { get; set; }
  65. public string? RelatedObjectCode { get; set; }
  66. }
  67. public class AdoS8ManualReportCreateDto
  68. {
  69. public long TenantId { get; set; } = 1;
  70. public long FactoryId { get; set; } = 1;
  71. public string Title { get; set; } = string.Empty;
  72. public string? Description { get; set; }
  73. public string SceneCode { get; set; } = string.Empty;
  74. public string Severity { get; set; } = "MEDIUM";
  75. public long OccurrenceDeptId { get; set; }
  76. public long ResponsibleDeptId { get; set; }
  77. public long? ReporterId { get; set; }
  78. }
  79. public class AdoS8ManualReportResultDto
  80. {
  81. public long ExceptionId { get; set; }
  82. public string ExceptionCode { get; set; } = string.Empty;
  83. public long TaskId { get; set; }
  84. }
  85. public class AdoS8TimelineItemDto
  86. {
  87. public long Id { get; set; }
  88. public string ActionCode { get; set; } = string.Empty;
  89. public string ActionLabel { get; set; } = string.Empty;
  90. public string? FromStatus { get; set; }
  91. public string? ToStatus { get; set; }
  92. public long? OperatorId { get; set; }
  93. public string? OperatorName { get; set; }
  94. public string? ActionRemark { get; set; }
  95. public DateTime CreatedAt { get; set; }
  96. }
  97. public class AdoS8DecisionItemDto
  98. {
  99. public long Id { get; set; }
  100. public string DecisionType { get; set; } = string.Empty;
  101. public long DecisionMakerId { get; set; }
  102. public string DecisionMakerName { get; set; } = string.Empty;
  103. public string? DecisionBasis { get; set; }
  104. public string? DecisionResult { get; set; }
  105. public string? DecisionRemark { get; set; }
  106. public DateTime DecisionTime { get; set; }
  107. }
  108. public class AdoS8EvidenceItemDto
  109. {
  110. public long Id { get; set; }
  111. public string EvidenceType { get; set; } = string.Empty;
  112. public string FileName { get; set; } = string.Empty;
  113. public string FileUrl { get; set; } = string.Empty;
  114. public string? SourceSystem { get; set; }
  115. public long? UploadedBy { get; set; }
  116. public DateTime UploadedAt { get; set; }
  117. }
  118. public class AdoS8CommentDto
  119. {
  120. public string? Remark { get; set; }
  121. }
  122. public class AdoS8TransferDto
  123. {
  124. public long AssigneeId { get; set; }
  125. public string? Remark { get; set; }
  126. }
  127. public class AdoS8AttachmentCreateDto
  128. {
  129. public string EvidenceType { get; set; } = "file";
  130. public string FileName { get; set; } = string.Empty;
  131. public string FileUrl { get; set; } = string.Empty;
  132. public string? SourceSystem { get; set; }
  133. public long? UploadedBy { get; set; }
  134. }
  135. // ── 监控汇总 DTO ─────────────────────────────────────────────────────────────
  136. public class AdoS8MonitoringSummaryQueryDto
  137. {
  138. public long TenantId { get; set; } = 1;
  139. public long FactoryId { get; set; } = 1;
  140. /// <summary>场景码过滤(不传 = 全部)</summary>
  141. public string? SceneCode { get; set; }
  142. /// <summary>模块码过滤(不传 = 全部)</summary>
  143. public string? ModuleCode { get; set; }
  144. public DateTime? BizDateFrom { get; set; }
  145. public DateTime? BizDateTo { get; set; }
  146. }
  147. /// <summary>单个模块的异常汇总行</summary>
  148. public class AdoS8ModuleSummaryItem
  149. {
  150. public string ModuleCode { get; set; } = string.Empty;
  151. public string ModuleLabel { get; set; } = string.Empty;
  152. public string SceneCode { get; set; } = string.Empty;
  153. public string SceneLabel { get; set; } = string.Empty;
  154. public int Total { get; set; }
  155. public int Red { get; set; }
  156. public int Yellow { get; set; }
  157. public int Green { get; set; }
  158. public int Timeout { get; set; }
  159. }
  160. /// <summary>监控汇总出参(综合全景页顶部 + 表格数据)</summary>
  161. public class AdoS8MonitoringSummaryDto
  162. {
  163. public int Total { get; set; }
  164. public int Red { get; set; }
  165. public int Yellow { get; set; }
  166. public int Green { get; set; }
  167. public int Timeout { get; set; }
  168. public List<AdoS8ModuleSummaryItem> ByModule { get; set; } = new();
  169. }
  170. // ── 9宫格 OrderGrid DTO ──────────────────────────────────────────────────────
  171. /// <summary>S1-S7 单个模块的订单健康分布(9宫格前7格)</summary>
  172. public class AdoS8ModuleOrderSummary
  173. {
  174. public string ModuleCode { get; set; } = string.Empty;
  175. public string ModuleLabel { get; set; } = string.Empty;
  176. /// <summary>绿色订单数(该阶段无未关闭异常)</summary>
  177. public int Green { get; set; }
  178. /// <summary>黄色订单数(有 MEDIUM 未关闭)</summary>
  179. public int Yellow { get; set; }
  180. /// <summary>红色订单数(有 CRITICAL/HIGH 未关闭,或黄色超时)</summary>
  181. public int Red { get; set; }
  182. public int Total { get; set; }
  183. /// <summary>异常发生频率(每百订单异常数)</summary>
  184. public double Frequency { get; set; }
  185. /// <summary>平均处理时效(小时)</summary>
  186. public double AvgProcessHours { get; set; }
  187. /// <summary>异常关闭百分比</summary>
  188. public double CloseRate { get; set; }
  189. }
  190. /// <summary>S8格:按业务类别汇总(第8格)</summary>
  191. public class AdoS8CategorySummary
  192. {
  193. public string Category { get; set; } = string.Empty;
  194. public int Total { get; set; }
  195. public double AvgProcessHours { get; set; }
  196. public double CloseRate { get; set; }
  197. }
  198. /// <summary>S9格:按责任部门汇总(第9格)</summary>
  199. public class AdoS8DeptSummary
  200. {
  201. public string DeptName { get; set; } = string.Empty;
  202. public int Total { get; set; }
  203. public double AvgProcessHours { get; set; }
  204. public double CloseRate { get; set; }
  205. }
  206. /// <summary>9宫格完整出参</summary>
  207. public class AdoS8OrderGridDto
  208. {
  209. public List<AdoS8ModuleOrderSummary> Modules { get; set; } = new();
  210. public List<AdoS8CategorySummary> ByCategory { get; set; } = new();
  211. public List<AdoS8DeptSummary> ByDept { get; set; } = new();
  212. }
  213. public class AdoS8SubmitVerificationDto
  214. {
  215. public long VerifierId { get; set; }
  216. public string? Remark { get; set; }
  217. }
  218. public class AdoS8ApproveVerificationDto
  219. {
  220. public string? Remark { get; set; }
  221. }
  222. public class AdoS8RejectVerificationDto
  223. {
  224. public string Remark { get; set; } = string.Empty;
  225. }