TreeNode.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Dtos.PersonnelModule
  8. {
  9. public class TreeNode
  10. {
  11. public int Id { get; set; }
  12. public int ContentId { get; set; }
  13. public string Name { get; set; }
  14. /// <summary>
  15. /// 考核占比
  16. /// </summary>
  17. public decimal AssessmentProportion { get; set; }
  18. /// <summary>
  19. /// 评分标准
  20. /// </summary>
  21. public string AssessmentStandard { get; set; }
  22. /// <summary>
  23. /// 父编号
  24. /// </summary>
  25. public int ParentId { get; set; }
  26. /// <summary>
  27. /// 项目设置表id
  28. /// </summary>
  29. public int AssessmentSettingId { get; set; }
  30. /// <summary>
  31. /// 占比
  32. /// </summary>
  33. public decimal AssessmentProportionChi { get; set; }
  34. /// <summary>
  35. /// 目标值
  36. /// </summary>
  37. public string TargetValue { get; set; }
  38. /// <summary>
  39. /// 岗位id
  40. /// </summary>
  41. public int JobId { get; set; }
  42. /// <summary>
  43. /// 员工id
  44. /// </summary>
  45. public int UserId { get; set; }
  46. /// <summary>
  47. /// 固定标识 (1 是固定 2 是灵活)
  48. /// </summary>
  49. public int Fixed { get; set; }
  50. public List<TreeNode> Children { get; set; }
  51. public decimal AssessmentProportion_Percentage { get; set; }
  52. /// <summary>
  53. /// 年月份
  54. /// </summary>
  55. public DateTime YearMonth { get; set; }
  56. /// <summary>
  57. /// 达成情况
  58. /// </summary>
  59. public string Status { get; set; }
  60. /// <summary>
  61. /// 自评
  62. /// </summary>
  63. public decimal SelfAssessment { get; set; }
  64. /// <summary>
  65. /// 上级评分
  66. /// </summary>
  67. public decimal HigherUpAssessment { get; set; }
  68. /// <summary>
  69. /// 该项得分
  70. /// </summary>
  71. public decimal Score { get; set; }
  72. /// <summary>
  73. /// 绩效分
  74. /// </summary>
  75. public decimal ScoreTotal { get; set; }
  76. /// <summary>
  77. /// 上级确认
  78. /// </summary>
  79. public int HigherUpConfig { get; set; }
  80. /// <summary>
  81. /// 上级员工id
  82. /// </summary>
  83. public int HigherUpUserId { get; set; }
  84. /// <summary>
  85. /// 详细信息
  86. /// </summary>
  87. //public string Details { get; set; }
  88. }
  89. public class PerAssessmentSettingOperationDto
  90. {
  91. [Required(ErrorMessage = "项名称不能为空")]
  92. public string Name { get; set; }
  93. public decimal AssessmentProportion { get; set; }
  94. public string AssessmentStandard { get; set; }
  95. public int ParentId { get; set; }
  96. public int Id { get; set; }
  97. public int CreateId { get; set; }
  98. public string Remark { get; set; }
  99. }
  100. public class AssessmentSettingOperationContenDto
  101. {
  102. public int Id { get; set; }
  103. public int CreateUserId { get; set; }
  104. /// <summary>
  105. /// 项目设置表id
  106. /// </summary>
  107. public int AssessmentSettingId { get; set; }
  108. /// <summary>
  109. /// 占比
  110. /// </summary>
  111. public decimal AssessmentProportionChi { get; set; }
  112. /// <summary>
  113. /// 目标值
  114. /// </summary>
  115. public string TargetValue { get; set; }
  116. /// <summary>
  117. /// 岗位id
  118. /// </summary>
  119. public int JobId { get; set; }
  120. /// <summary>
  121. /// 员工id
  122. /// </summary>
  123. public int UserId { get; set; }
  124. /// <summary>
  125. /// 固定标识 (1 是固定 2 是灵活)
  126. /// </summary>
  127. public int Fixed { get; set; }
  128. public string Remark { get; set; }
  129. }
  130. public class QueryAssessmentSettingListOffsetAsyncDto
  131. {
  132. public int pageIndex { get; set; }
  133. public int pageSize { get; set; }
  134. public string SearchValue { get; set; }
  135. }
  136. public class QueryAssessmentByUser
  137. {
  138. public int UserId { get; set; }
  139. public string Start { get; set; }
  140. public string End { get; set; }
  141. }
  142. public class SaveUserAssessmenDto
  143. {
  144. /// <summary>
  145. /// 创建人id
  146. /// </summary>
  147. public int CreateUserId { get; set; }
  148. /// <summary>
  149. /// 绩效日期
  150. /// </summary>
  151. public string AssessmenData { get; set; }
  152. /// <summary>
  153. /// 绩效数据
  154. /// </summary>
  155. public List<itemScore> Data { get; set; }
  156. }
  157. public class itemScore
  158. {
  159. //public int ScoreId { get; set; }
  160. /// <summary>
  161. /// 内容项id
  162. /// </summary>
  163. public int AssessmentContentSettingId { get; set; }
  164. /// <summary>
  165. /// 自评分
  166. /// </summary>
  167. public decimal SelfAssessment { get; set; }
  168. /// <summary>
  169. /// 上级评分
  170. /// </summary>
  171. public decimal HigherUpAssessment { get; set; }
  172. /// <summary>
  173. /// 上级领导id
  174. /// </summary>
  175. public int LeadersId { get; set; }
  176. /// <summary>
  177. /// 评估标准
  178. /// </summary>
  179. public string Status { get; set; }
  180. }
  181. public class DeleteAssessmentSettingDto
  182. {
  183. public List<int> IdArr { get; set;}
  184. public int UserId { get; set;}
  185. }
  186. }