TaskAllocationDto.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.Dtos.PersonnelModule
  7. {
  8. public class TaskAllocationDto
  9. {
  10. }
  11. /// <summary>
  12. /// 任务分配 Init Dto
  13. /// </summary>
  14. public class TaskAllocationInitDto : UserPageFuncDtoBase
  15. {
  16. /// <summary>
  17. /// 用户Id
  18. /// </summary>
  19. public int UserId { get; set; }
  20. }
  21. /// <summary>
  22. /// 任务分配 Page
  23. /// </summary>
  24. public class TaskAllocationPageDto : UserPageFuncDtoBase
  25. {
  26. public int PageIndex { get; set; } = 1;
  27. public int PageSize { get; set; } = 10;
  28. /// <summary>
  29. /// 数据类型
  30. /// 0 全部 1 由我指派 2 指派给我
  31. /// </summary>
  32. public int Type { get; set; }
  33. /// <summary>
  34. /// 任务状态
  35. /// </summary>
  36. public int Status { get; set; }
  37. /// <summary>
  38. /// 任务名称
  39. /// </summary>
  40. public string? TaskName { get; set; }
  41. }
  42. /// <summary>
  43. /// 任务分配 Details Dto
  44. /// </summary>
  45. public class TaskAllocationDetailsDto : UserPageFuncDtoBase
  46. {
  47. /// <summary>
  48. /// Id
  49. /// </summary>
  50. public int Id { get; set; }
  51. }
  52. /// <summary>
  53. /// 任务分配 AddOrEdit Dto
  54. /// </summary>
  55. public class TaskAllocationAddOrEditDto : UserPageFuncDtoBase
  56. {
  57. /// <summary>
  58. /// Id
  59. /// Id == 0 添加
  60. /// Id > 0 修改
  61. /// </summary>
  62. public int Id { get; set; }
  63. /// <summary>
  64. /// 部门Id
  65. /// </summary>
  66. public int DepId { get; set; }
  67. /// <summary>
  68. /// 团组Id
  69. /// </summary>
  70. public int DiId { get; set; }
  71. /// <summary>
  72. /// 优先级
  73. /// 1 2 3 4
  74. /// </summary>
  75. public int TaskPriority { get; set; }
  76. /// <summary>
  77. /// 任务名称
  78. /// </summary>
  79. public string? TaskName { get; set; }
  80. /// <summary>
  81. /// 任务内容
  82. /// </summary>
  83. public string? TaskContent { get; set; }
  84. /// <summary>
  85. /// 指派人员
  86. /// </summary>
  87. public List<int>? UserIds { get; set; }
  88. /// <summary>
  89. /// 任务预计开始时间(由发布者设置开始时间)
  90. /// </summary>
  91. public string? PredictBeginTime { get; set; }
  92. /// <summary>
  93. /// 任务预计结束时间(由发布者设置结束时间)
  94. /// </summary>
  95. public string? PredictEndTime { get; set; }
  96. /// <summary>
  97. /// 0 否 1 是
  98. /// 是否纳入绩效考核
  99. /// </summary>
  100. public int IsIntoPerformance { get; set; } = 0;
  101. }
  102. //
  103. /// <summary>
  104. /// 任务分配
  105. /// 任务归属人 状态操作
  106. /// </summary>
  107. public class TaskerDetailsDto
  108. {
  109. public int Id { get; set; }
  110. }
  111. /// <summary>
  112. /// 任务分配
  113. /// 任务归属人 状态操作
  114. /// </summary>
  115. public class TaskerStatusDto
  116. {
  117. public int UserId { get; set; }
  118. public int Id { get; set; }
  119. }
  120. /// <summary>
  121. /// 任务分配
  122. /// 任务确认完成
  123. /// </summary>
  124. public class TaskAllocationConfirmCompletionDto : UserPageFuncDtoBase
  125. {
  126. /// <summary>
  127. /// Id
  128. /// </summary>
  129. public int Id { get; set; }
  130. }
  131. /// <summary>
  132. /// 任务分配
  133. /// 任务状态更改
  134. /// </summary>
  135. public class TaskAllocationStatusDto
  136. {
  137. /// <summary>
  138. /// Id
  139. /// </summary>
  140. public int SubId { get; set; }
  141. }
  142. /// <summary>
  143. /// 任务分配
  144. /// 任务状态更改
  145. /// </summary>
  146. public class TaskAllocationSetUnFinishedStatusDto: TaskAllocationStatusDto
  147. {
  148. /// <summary>
  149. /// 未完成原因
  150. /// </summary>
  151. public string Cause { get; set; }
  152. }
  153. /// <summary>
  154. /// 任务分配
  155. /// 任务评分
  156. /// </summary>
  157. public class TaskAllocationScoreDto : UserPageFuncDtoBase
  158. {
  159. public int SubId { get; set; }
  160. public int Score { get; set; }
  161. public string ScoreRemark { get; set; }
  162. }
  163. public class ScoreInfo
  164. {
  165. }
  166. }