Pm_TaskAllocation.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_TaskAllocation")]
  14. public class Pm_TaskAllocation: EntityBase
  15. {
  16. /// <summary>
  17. /// 团组ID(没有团组为-1)
  18. /// </summary>
  19. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  20. public int DiId { get; set; }
  21. /// <summary>
  22. /// 任务归属部门ID
  23. /// CompanyId = 2 的部门Id 为任务部门Id
  24. /// </summary>
  25. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  26. public int DepId { get; set; }
  27. /// <summary>
  28. /// 任务名称
  29. /// </summary>
  30. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  31. public string? TaskName { get; set; }
  32. /// <summary>
  33. /// 任务内容
  34. /// </summary>
  35. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  36. public string? TaskContent { get; set; }
  37. /// <summary>
  38. /// 任务优先级 1 2 3 4
  39. /// </summary>
  40. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  41. public int TaskPriority { get; set; }
  42. /// <summary>
  43. /// 任务预计开始时间(由发布者设置开始时间)
  44. /// </summary>
  45. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  46. public string? PredictBeginTime { get; set; }
  47. /// <summary>
  48. /// 任务预计结束时间(由发布者设置结束时间)
  49. /// </summary>
  50. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  51. public string? PredictEndTime { get; set; }
  52. /// <summary>
  53. /// 任务状态
  54. /// 0 未开始 1 进行中 2 待审核 3 未完成 4 已完成 5 任务终止
  55. /// </summary>
  56. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  57. public TaskEnum Status { get; set; } = TaskEnum.NotStarted;
  58. /// <summary>
  59. /// 0 否 1 是
  60. /// 发布者确认任务是否完成(员工任务完成时间小于或等于有效时间 默认完成)
  61. /// </summary>
  62. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  63. public int IsComplete { get; set; } = 0;
  64. /// <summary>
  65. /// 0 否 1 是
  66. /// 是否纳入绩效考核
  67. /// </summary>
  68. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  69. public int IsIntoPerformance { get; set; } = 0;
  70. }
  71. }