TaskAllocationView.cs 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. using OASystem.Domain.Entities.PersonnelModule;
  2. using OASystem.Domain.Enums;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.ViewModels.PersonnelModule
  9. {
  10. /// <summary>
  11. /// 任务分配View
  12. /// </summary>
  13. public class TaskAllocationView: Pm_TaskAllocation
  14. {
  15. }
  16. /// <summary>
  17. /// 任务分配
  18. /// 基础数据 View
  19. /// </summary>
  20. public class InitView
  21. {
  22. /// <summary>
  23. /// 任务操作权限
  24. /// </summary>
  25. public TaskOperationAudit TaskOperationAudit { get; set; }
  26. /// <summary>
  27. /// 任务名称 Items
  28. /// </summary>
  29. public List<string>? TaskNameInfos { get; set; }
  30. /// <summary>
  31. /// 执行任务人员信息 Items
  32. /// </summary>
  33. public List<ExecuteTaskUserInfo>? ExecuteTaskUserInfos { get; set; }
  34. public List<ValueInfo>? GroupNameInfos { get; set; }
  35. public ValueInfo? DepartmentNameInfo { get; set; }
  36. }
  37. /// <summary>
  38. /// 预览信息
  39. /// </summary>
  40. public class ValueInfo
  41. {
  42. public int Id { get; set; }
  43. public string Name { get; set; }
  44. }
  45. /// <summary>
  46. /// 执行任务人员信息
  47. /// </summary>
  48. public class ExecuteTaskUserInfo
  49. {
  50. public int Id { get; set; }
  51. /// <summary>
  52. /// 姓名
  53. /// </summary>
  54. public string? Name { get; set; }
  55. /// <summary>
  56. /// 公司名称
  57. /// </summary>
  58. public string? CompanyName { get; set; }
  59. /// <summary>
  60. /// 部门名称
  61. /// </summary>
  62. public string? DepartmentName { get; set; }
  63. /// <summary>
  64. /// 职位名称
  65. /// </summary>
  66. public string? JobName { get; set; }
  67. }
  68. /// <summary>
  69. /// 任务操作权限
  70. /// </summary>
  71. public class TaskOperationAudit
  72. {
  73. /// <summary>
  74. /// 任务添权限
  75. /// 0 否 1 是
  76. /// </summary>
  77. public int TaskAddAudit { get; set; } = 0;
  78. /// <summary>
  79. /// 任务删除权限
  80. /// 0 否 1 是
  81. /// </summary>
  82. public int TaskDelAudit { get; set; } = 0;
  83. /// <summary>
  84. /// 任务终止权限
  85. /// 0 否 1 是
  86. /// </summary>
  87. public int TasStopAudit { get; set; } = 0;
  88. /// <summary>
  89. /// 任务确认权限
  90. /// 0 否 1 是
  91. /// </summary>
  92. public int TaskComfirmAudit { get; set; } = 0;
  93. /// <summary>
  94. /// 任务评分权限
  95. /// 0 否 1 是
  96. /// </summary>
  97. public int TaskScoreAudit { get; set; } = 0;
  98. }
  99. /// <summary>
  100. /// 任务指派
  101. /// Item View
  102. /// </summary>
  103. public class TaskListView
  104. {
  105. public int RowNumber { get; set; }
  106. public int Id { get; set; }
  107. /// <summary>
  108. /// 任务名称
  109. /// </summary>
  110. public string? TaskName { get; set; }
  111. /// <summary>
  112. /// 任务等级
  113. /// </summary>
  114. public int TaskPriority { get; set; }
  115. /// <summary>
  116. /// 归属部门
  117. /// </summary>
  118. public string? DepName { get; set; }
  119. /// <summary>
  120. /// 归属团组
  121. /// </summary>
  122. public string? TeamName { get; set; }
  123. /// <summary>
  124. /// 任务状态
  125. /// </summary>
  126. public int Status { get; set; }
  127. /// <summary>
  128. /// 任务发布人
  129. /// </summary>
  130. public string? CreateUserName { get; set; }
  131. /// <summary>
  132. /// 任务发布时间
  133. /// </summary>
  134. public DateTime? CreateTime { get; set; }
  135. /// <summary>
  136. /// 预计开始时间
  137. /// </summary>
  138. public string? PredictBeginTime { get; set; }
  139. /// <summary>
  140. /// 预计开始时间
  141. /// </summary>
  142. public string? PredictEndTime { get; set; }
  143. /// <summary>
  144. /// 任务参与者
  145. /// </summary>
  146. public string? Participant { get; set; }
  147. /// <summary>
  148. /// 任务完成者
  149. /// </summary>
  150. public string? Consummator { get; set; }
  151. public List<TaskerDetailsView>? TaskerDetails { get; set; }
  152. }
  153. /// <summary>
  154. /// 详情
  155. /// </summary>
  156. public class TaskDetailsView
  157. {
  158. public int Id { get; set; }
  159. public int DiId { get; set; }
  160. //public string TeamName { get; set; }
  161. /// <summary>
  162. /// 任务部门Id
  163. /// </summary>
  164. public int DepId { get; set; }
  165. //public string DepName { get; set; }
  166. public int CreateUserId { get; set; }
  167. //public string CreateUserName { get; set; }
  168. public DateTime? CreateTime { get; set; }
  169. /// <summary>
  170. /// 任务名称
  171. /// </summary>
  172. public string? TaskName { get; set; }
  173. /// <summary>
  174. /// 任务内容
  175. /// </summary>
  176. public string? TaskContent { get; set; }
  177. /// <summary>
  178. /// 优先级
  179. /// 1 2 3 4
  180. /// </summary>
  181. public int TaskPriority { get; set; }
  182. /// <summary>
  183. /// 任务预计开始时间(由发布者设置开始时间)
  184. /// </summary>
  185. public string? PredictBeginTime { get; set; }
  186. /// <summary>
  187. /// 任务预计结束时间(由发布者设置结束时间)
  188. /// </summary>
  189. public string? PredictEndTime { get; set; }
  190. /// <summary>
  191. /// 0 否 1 是
  192. /// 是否纳入绩效考核
  193. /// </summary>
  194. public int IsIntoPerformance { get; set; }
  195. /// <summary>
  196. /// 人员任务
  197. /// </summary>
  198. public List<TaskUserDetailsView>? UserTaskInfos { get; set; }
  199. public string Remark { get; set; }
  200. }
  201. /// <summary>
  202. /// 任务者-详情
  203. /// </summary>
  204. public class TaskerDetailsView
  205. {
  206. public int TAId { get; set; }
  207. public int TaskCreateUserId { get; set; }
  208. public int Id { get; set; }
  209. public int UserId { get; set; }
  210. public string UserName { get; set; }
  211. /// <summary>
  212. /// 实际开始时间
  213. /// </summary>
  214. public string BeginTime { get; set; }
  215. public string OverTime { get; set; }
  216. /// <summary>
  217. /// -1 未开始 0 已知晓 1 进行中 2 待审核 3 未完成 4 已完成 5任务中止
  218. /// </summary>
  219. public int TaskStatus { get; set; }
  220. /// <summary>
  221. /// 未完成原因
  222. /// </summary>
  223. public string Cause { get; set; }
  224. /// <summary>
  225. /// 评分
  226. /// </summary>
  227. public int Score { get; set; }
  228. /// <summary>
  229. /// 评分备注
  230. /// </summary>
  231. public string ScoreRemark { get; set; }
  232. }
  233. /// <summary>
  234. /// 任务参与人
  235. /// </summary>
  236. public class TaskUserDetailsView
  237. {
  238. public int Id { get; set; }
  239. public int TAId { get; set; }
  240. public int UserId { get; set; }
  241. //public string UserName { get; set; }
  242. /// <summary>
  243. /// 实际开始时间
  244. /// </summary>
  245. public string BeginTime { get; set; }
  246. /// <summary>
  247. /// 实际完成时间
  248. /// </summary>
  249. public string OverTime { get; set; }
  250. /// <summary>
  251. /// 任务状态
  252. /// </summary>
  253. public TaskerEnum TaskStatus { get; set; }
  254. /// <summary>
  255. /// 未完成原因
  256. /// </summary>
  257. public string Cause { get; set; }
  258. /// <summary>
  259. /// 评分备注
  260. /// </summary>
  261. public string Remark { get; set; }
  262. }
  263. }