Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- id: 'columnsManager1',
- text: 'Manager 1',
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- children: [
- {
- enableCellContextMenu: false,
- editor: false,
- text: 'First name',
- field: 'manager1_first_name',
- id: 'columnManager1FirstName',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
- {
- enableCellContextMenu: false,
- editor: false,
- text: 'Last name',
- field: 'manager1_last_name',
- id: 'columnManager1LastName',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
- {
- enableCellContextMenu: false,
- editor: false,
- text: 'Company nr',
- field: 'manager1_company_nr',
- id: 'columnManager1CompanyNr',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
- ]
- },
- {
- id: 'columnsManager2',
- text: 'Manager 2',
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- children: [
- enableCellContextMenu: false,
- editor: false,
- text: 'First name',
- field: 'manager2_first_name',
- id: 'columnManager2FirstName',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
- {
- enableCellContextMenu: false,
- editor: false,
- text: 'Last name',
- field: 'manager2_last_name',
- id: 'columnManager2LastName',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
- {
- enableCellContextMenu: false,
- editor: false,
- text: 'Company nr',
- field: 'manager2_company_nr',
- id: 'columnManager2CompanyNr',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
- ]
- },
- {
- enableCellContextMenu: false,
- type: 'date',
- format: 'DD/MM/YYYY',
- editor: false,
- text: 'Last medical visit date',
- field: 'person_last_med_visit_date',
- id: 'columnLastMedVisitDate',
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- groupable: false,
- htmlEncode: false,
- filterable: {
- filterField: {
- type: 'date',
- format: 'DD/MM/YYYY',
- placeholder: 'dd/mm/yyyy',
- autoComplete: 'new-password'
- }
- }
- },
- {
- enableCellContextMenu: false,
- type: 'date',
- format: 'DD/MM/YYYY',
- editor: false,
- text: 'Last security briefing date',
- field: 'last_security_briefing_date',
- id: 'columnLastSecBriefDate',
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- groupable: false,
- htmlEncode: false,
- filterable: {
- filterField: {
- type: 'date',
- format: 'DD/MM/YYYY',
- placeholder: 'dd/mm/yyyy',
- autoComplete: 'new-password'
- }
- }
- },
- {
- {
- enableCellContextMenu: false,
- editor: false,
- text: 'Last security briefing WBS',
- field: 'last_security_briefing_wbs',
- id: 'columnLastSecBriefWbs',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
- {
- enableCellContextMenu: false,
- editor: false,
- text: 'Last medical visit status',
- field: 'person_last_med_visit_status',
- id: 'columnLastMedVisitStatus',
- renderer: (text) => {
- return text.value ? `${text.value}` : '';
- },
- hidden: !(
- this.dataBaseService.roleValidationStatusId >=
- this.dataBaseService.vo
- .min_validation_status_id_to_see_confidential_person_fields ||
- localStorage.userAdminRight === 'SO'
- ),
- htmlEncode: false,
- groupable: false,
- sortable: true,
- filterable: {
- filterField: {
- autoComplete: 'new-password'
- }
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement