AdoS8Dtos.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. public long? DeptId { get; set; }
  12. public bool? TimeoutFlag { get; set; }
  13. public string? ProcessNodeCode { get; set; }
  14. public string? RelatedObjectCode { get; set; }
  15. public DateTime? BeginTime { get; set; }
  16. public DateTime? EndTime { get; set; }
  17. public int Page { get; set; } = 1;
  18. public int PageSize { get; set; } = 20;
  19. }
  20. public class AdoS8ExceptionListItemDto
  21. {
  22. public long Id { get; set; }
  23. public string ExceptionCode { get; set; } = string.Empty;
  24. public string Title { get; set; } = string.Empty;
  25. public string Status { get; set; } = string.Empty;
  26. public string? StatusLabel { get; set; }
  27. public string Severity { get; set; } = string.Empty;
  28. public string? SeverityLabel { get; set; }
  29. public decimal PriorityScore { get; set; }
  30. public string PriorityLevel { get; set; } = string.Empty;
  31. public string SceneCode { get; set; } = string.Empty;
  32. public string? SceneName { get; set; }
  33. public long ResponsibleDeptId { get; set; }
  34. public string? ResponsibleDeptName { get; set; }
  35. public long? AssigneeId { get; set; }
  36. public string? AssigneeName { get; set; }
  37. public DateTime? SlaDeadline { get; set; }
  38. public bool TimeoutFlag { get; set; }
  39. public DateTime CreatedAt { get; set; }
  40. public DateTime? ClosedAt { get; set; }
  41. }
  42. public class AdoS8ExceptionDetailDto : AdoS8ExceptionListItemDto
  43. {
  44. public string? Description { get; set; }
  45. public string SourceType { get; set; } = string.Empty;
  46. public long OccurrenceDeptId { get; set; }
  47. public string? OccurrenceDeptName { get; set; }
  48. public long? ResponsibleGroupId { get; set; }
  49. public long? ReporterId { get; set; }
  50. public string? ReporterName { get; set; }
  51. public DateTime? AssignedAt { get; set; }
  52. public DateTime? UpdatedAt { get; set; }
  53. }
  54. public class AdoS8ManualReportCreateDto
  55. {
  56. public long TenantId { get; set; } = 1;
  57. public long FactoryId { get; set; } = 1;
  58. public string Title { get; set; } = string.Empty;
  59. public string? Description { get; set; }
  60. public string SceneCode { get; set; } = string.Empty;
  61. public string Severity { get; set; } = "MEDIUM";
  62. public long OccurrenceDeptId { get; set; }
  63. public long ResponsibleDeptId { get; set; }
  64. public long? ReporterId { get; set; }
  65. }
  66. public class AdoS8ManualReportResultDto
  67. {
  68. public long ExceptionId { get; set; }
  69. public string ExceptionCode { get; set; } = string.Empty;
  70. public long TaskId { get; set; }
  71. }
  72. public class AdoS8TimelineItemDto
  73. {
  74. public long Id { get; set; }
  75. public string ActionCode { get; set; } = string.Empty;
  76. public string ActionLabel { get; set; } = string.Empty;
  77. public string? FromStatus { get; set; }
  78. public string? ToStatus { get; set; }
  79. public long? OperatorId { get; set; }
  80. public string? OperatorName { get; set; }
  81. public string? ActionRemark { get; set; }
  82. public DateTime CreatedAt { get; set; }
  83. }
  84. public class AdoS8DecisionItemDto
  85. {
  86. public long Id { get; set; }
  87. public string DecisionType { get; set; } = string.Empty;
  88. public long DecisionMakerId { get; set; }
  89. public string DecisionMakerName { get; set; } = string.Empty;
  90. public string? DecisionBasis { get; set; }
  91. public string? DecisionResult { get; set; }
  92. public string? DecisionRemark { get; set; }
  93. public DateTime DecisionTime { get; set; }
  94. }
  95. public class AdoS8EvidenceItemDto
  96. {
  97. public long Id { get; set; }
  98. public string EvidenceType { get; set; } = string.Empty;
  99. public string FileName { get; set; } = string.Empty;
  100. public string FileUrl { get; set; } = string.Empty;
  101. public string? SourceSystem { get; set; }
  102. public long? UploadedBy { get; set; }
  103. public DateTime UploadedAt { get; set; }
  104. }
  105. public class AdoS8CommentDto
  106. {
  107. public string? Remark { get; set; }
  108. }
  109. public class AdoS8TransferDto
  110. {
  111. public long AssigneeId { get; set; }
  112. public string? Remark { get; set; }
  113. }
  114. public class AdoS8AttachmentCreateDto
  115. {
  116. public string EvidenceType { get; set; } = "file";
  117. public string FileName { get; set; } = string.Empty;
  118. public string FileUrl { get; set; } = string.Empty;
  119. public string? SourceSystem { get; set; }
  120. public long? UploadedBy { get; set; }
  121. }