Advertisement
psi_mmobile

Untitled

Mar 30th, 2023
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.48 KB | None | 0 0
  1. {
  2. id: 'columnsManager1',
  3. text: 'Manager 1',
  4. hidden: !(
  5. this.dataBaseService.roleValidationStatusId >=
  6. this.dataBaseService.vo
  7. .min_validation_status_id_to_see_confidential_person_fields ||
  8. localStorage.userAdminRight === 'SO'
  9. ),
  10. children: [
  11. {
  12. enableCellContextMenu: false,
  13. editor: false,
  14. text: 'First name',
  15. field: 'manager1_first_name',
  16. id: 'columnManager1FirstName',
  17. renderer: (text) => {
  18. return text.value ? `${text.value}` : '';
  19. },
  20. hidden: !(
  21. this.dataBaseService.roleValidationStatusId >=
  22. this.dataBaseService.vo
  23. .min_validation_status_id_to_see_confidential_person_fields ||
  24. localStorage.userAdminRight === 'SO'
  25. ),
  26. htmlEncode: false,
  27. groupable: false,
  28. sortable: true,
  29. filterable: {
  30. filterField: {
  31. autoComplete: 'new-password'
  32. }
  33. }
  34. },
  35. {
  36. enableCellContextMenu: false,
  37. editor: false,
  38. text: 'Last name',
  39. field: 'manager1_last_name',
  40. id: 'columnManager1LastName',
  41. renderer: (text) => {
  42. return text.value ? `${text.value}` : '';
  43. },
  44. hidden: !(
  45. this.dataBaseService.roleValidationStatusId >=
  46. this.dataBaseService.vo
  47. .min_validation_status_id_to_see_confidential_person_fields ||
  48. localStorage.userAdminRight === 'SO'
  49. ),
  50. htmlEncode: false,
  51. groupable: false,
  52. sortable: true,
  53. filterable: {
  54. filterField: {
  55. autoComplete: 'new-password'
  56. }
  57. }
  58. },
  59. {
  60. enableCellContextMenu: false,
  61. editor: false,
  62. text: 'Company nr',
  63. field: 'manager1_company_nr',
  64. id: 'columnManager1CompanyNr',
  65. renderer: (text) => {
  66. return text.value ? `${text.value}` : '';
  67. },
  68. hidden: !(
  69. this.dataBaseService.roleValidationStatusId >=
  70. this.dataBaseService.vo
  71. .min_validation_status_id_to_see_confidential_person_fields ||
  72. localStorage.userAdminRight === 'SO'
  73. ),
  74. htmlEncode: false,
  75. groupable: false,
  76. sortable: true,
  77. filterable: {
  78. filterField: {
  79. autoComplete: 'new-password'
  80. }
  81. }
  82. },
  83. ]
  84. },
  85.  
  86. {
  87. id: 'columnsManager2',
  88. text: 'Manager 2',
  89. hidden: !(
  90. this.dataBaseService.roleValidationStatusId >=
  91. this.dataBaseService.vo
  92. .min_validation_status_id_to_see_confidential_person_fields ||
  93. localStorage.userAdminRight === 'SO'
  94. ),
  95. children: [
  96.  
  97. enableCellContextMenu: false,
  98. editor: false,
  99. text: 'First name',
  100. field: 'manager2_first_name',
  101. id: 'columnManager2FirstName',
  102. renderer: (text) => {
  103. return text.value ? `${text.value}` : '';
  104. },
  105. hidden: !(
  106. this.dataBaseService.roleValidationStatusId >=
  107. this.dataBaseService.vo
  108. .min_validation_status_id_to_see_confidential_person_fields ||
  109. localStorage.userAdminRight === 'SO'
  110. ),
  111. htmlEncode: false,
  112. groupable: false,
  113. sortable: true,
  114. filterable: {
  115. filterField: {
  116. autoComplete: 'new-password'
  117. }
  118. }
  119. },
  120. {
  121. enableCellContextMenu: false,
  122. editor: false,
  123. text: 'Last name',
  124. field: 'manager2_last_name',
  125. id: 'columnManager2LastName',
  126. renderer: (text) => {
  127. return text.value ? `${text.value}` : '';
  128. },
  129. hidden: !(
  130. this.dataBaseService.roleValidationStatusId >=
  131. this.dataBaseService.vo
  132. .min_validation_status_id_to_see_confidential_person_fields ||
  133. localStorage.userAdminRight === 'SO'
  134. ),
  135. htmlEncode: false,
  136. groupable: false,
  137. sortable: true,
  138. filterable: {
  139. filterField: {
  140. autoComplete: 'new-password'
  141. }
  142. }
  143. },
  144. {
  145. enableCellContextMenu: false,
  146. editor: false,
  147. text: 'Company nr',
  148. field: 'manager2_company_nr',
  149. id: 'columnManager2CompanyNr',
  150. renderer: (text) => {
  151. return text.value ? `${text.value}` : '';
  152. },
  153. hidden: !(
  154. this.dataBaseService.roleValidationStatusId >=
  155. this.dataBaseService.vo
  156. .min_validation_status_id_to_see_confidential_person_fields ||
  157. localStorage.userAdminRight === 'SO'
  158. ),
  159. htmlEncode: false,
  160. groupable: false,
  161. sortable: true,
  162. filterable: {
  163. filterField: {
  164. autoComplete: 'new-password'
  165. }
  166. }
  167. },
  168. ]
  169. },
  170. {
  171. enableCellContextMenu: false,
  172. type: 'date',
  173. format: 'DD/MM/YYYY',
  174. editor: false,
  175. text: 'Last medical visit date',
  176. field: 'person_last_med_visit_date',
  177. id: 'columnLastMedVisitDate',
  178. hidden: !(
  179. this.dataBaseService.roleValidationStatusId >=
  180. this.dataBaseService.vo
  181. .min_validation_status_id_to_see_confidential_person_fields ||
  182. localStorage.userAdminRight === 'SO'
  183. ),
  184. groupable: false,
  185. htmlEncode: false,
  186. filterable: {
  187. filterField: {
  188. type: 'date',
  189. format: 'DD/MM/YYYY',
  190. placeholder: 'dd/mm/yyyy',
  191. autoComplete: 'new-password'
  192. }
  193. }
  194. },
  195. {
  196. enableCellContextMenu: false,
  197. type: 'date',
  198. format: 'DD/MM/YYYY',
  199. editor: false,
  200. text: 'Last security briefing date',
  201. field: 'last_security_briefing_date',
  202. id: 'columnLastSecBriefDate',
  203. hidden: !(
  204. this.dataBaseService.roleValidationStatusId >=
  205. this.dataBaseService.vo
  206. .min_validation_status_id_to_see_confidential_person_fields ||
  207. localStorage.userAdminRight === 'SO'
  208. ),
  209. groupable: false,
  210. htmlEncode: false,
  211. filterable: {
  212. filterField: {
  213. type: 'date',
  214. format: 'DD/MM/YYYY',
  215. placeholder: 'dd/mm/yyyy',
  216. autoComplete: 'new-password'
  217. }
  218. }
  219. },
  220.  
  221.  
  222. {
  223.  
  224. {
  225. enableCellContextMenu: false,
  226. editor: false,
  227. text: 'Last security briefing WBS',
  228. field: 'last_security_briefing_wbs',
  229. id: 'columnLastSecBriefWbs',
  230. renderer: (text) => {
  231. return text.value ? `${text.value}` : '';
  232. },
  233. hidden: !(
  234. this.dataBaseService.roleValidationStatusId >=
  235. this.dataBaseService.vo
  236. .min_validation_status_id_to_see_confidential_person_fields ||
  237. localStorage.userAdminRight === 'SO'
  238. ),
  239. htmlEncode: false,
  240. groupable: false,
  241. sortable: true,
  242. filterable: {
  243. filterField: {
  244. autoComplete: 'new-password'
  245. }
  246. }
  247. },
  248.  
  249. {
  250. enableCellContextMenu: false,
  251. editor: false,
  252. text: 'Last medical visit status',
  253. field: 'person_last_med_visit_status',
  254. id: 'columnLastMedVisitStatus',
  255. renderer: (text) => {
  256. return text.value ? `${text.value}` : '';
  257. },
  258. hidden: !(
  259. this.dataBaseService.roleValidationStatusId >=
  260. this.dataBaseService.vo
  261. .min_validation_status_id_to_see_confidential_person_fields ||
  262. localStorage.userAdminRight === 'SO'
  263. ),
  264. htmlEncode: false,
  265. groupable: false,
  266. sortable: true,
  267. filterable: {
  268. filterField: {
  269. autoComplete: 'new-password'
  270. }
  271. }
  272. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement