Pm_TaskRelevanceUser.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using OASystem.Domain.Enums;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Entities.PersonnelModule
  8. {
  9. /// <summary>
  10. /// 人事 任务单
  11. /// 任务分配关联人员(完成者)
  12. /// </summary>
  13. [SugarTable("Pm_TaskRelevanceUser")]
  14. public class Pm_TaskRelevanceUser: EntityBase
  15. {
  16. /// <summary>
  17. /// 任务表外键 Id
  18. /// </summary>
  19. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  20. public int TAId { get; set; }
  21. /// <summary>
  22. /// 接受任务人员 Id
  23. /// </summary>
  24. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  25. public int UserId { get; set; }
  26. /// <summary>
  27. /// 实际开始时间
  28. /// </summary>
  29. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  30. public string? BeginTime { get; set; } = "";
  31. /// <summary>
  32. /// 实际结束时间
  33. /// 大于任务分配的预计结束时间 默认未完成 其他原因
  34. /// 大于任务分配的预计结束时间且未开始 默认未完成 原因 未开始
  35. /// </summary>
  36. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  37. public string? OverTime { get; set; } = "";
  38. /// <summary>
  39. /// 任务状态
  40. /// -1 未开始 0 已知晓 1 进行中 2 待审核 3 未完成 4 已完成 5任务中止
  41. /// </summary>
  42. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  43. public TaskerEnum TaskStatus { get; set; } = TaskerEnum.NotStarted;
  44. /// <summary>
  45. /// 未完成原因
  46. /// </summary>
  47. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
  48. public string? Cause { get; set; } = "";
  49. /// <summary>
  50. /// 评分
  51. /// 0 未评分 1 不合格(0-5) 2 一般(5-6) 3 良好(7-9) 4 优秀(9-10)
  52. /// </summary>
  53. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  54. public int Score { get; set; } = 0;
  55. }
  56. }