HumanResources_Descriptors.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [Caption("Change Timesheet Start/Finish Times")]
  5. public class CanChangeStartFinishTimes : DisabledSecurityDescriptor<HumanResourcesLicense, TimeSheet>
  6. {
  7. }
  8. [Caption("Approve Timesheets")]
  9. public class CanApproveTimesheets : EnabledSecurityDescriptor<HumanResourcesLicense, TimeSheet>
  10. {
  11. }
  12. [Caption("Archive Timesheets")]
  13. public class CanArchiveTimesheets : DisabledSecurityDescriptor<HumanResourcesLicense, TimeSheet>
  14. {
  15. }
  16. [Caption("Approve Leave Requests")]
  17. public class CanApproveLeaveRequests : EnabledSecurityDescriptor<HumanResourcesLicense, LeaveRequest>
  18. {
  19. }
  20. [Caption("View Org Charts (Employee)")]
  21. [SecurityDescriptorScope(SecurityDescriptorScope.Global)]
  22. public class CanViewOrgChartByEmployee : EnabledSecurityDescriptor<HumanResourcesLicense, Employee>
  23. {
  24. }
  25. [Caption("View Org Charts (Position)")]
  26. [SecurityDescriptorScope(SecurityDescriptorScope.Global)]
  27. public class CanViewOrgChartByPosition : EnabledSecurityDescriptor<HumanResourcesLicense, Employee, EmployeePosition>
  28. {
  29. }
  30. [Caption("View Org Charts (Job Role)")]
  31. [SecurityDescriptorScope(SecurityDescriptorScope.Global)]
  32. public class CanViewOrgChartByRole : EnabledSecurityDescriptor<HumanResourcesLicense, Employee, EmployeeRole>
  33. {
  34. }
  35. [Caption("Edit Org Chart Structure")]
  36. public class CanEditOrgChart : EnabledSecurityDescriptor<HumanResourcesLicense, Employee>
  37. {
  38. }
  39. [Caption("View User Passwords")]
  40. public class CanViewPasswords : DisabledSecurityDescriptor<HumanResourcesLicense, User>
  41. {
  42. }
  43. [Caption("Allow Timesheet Midnight Rollover")]
  44. public class AllowTimeSheetRollover : DisabledSecurityDescriptor<HumanResourcesLicense, TimeSheet>
  45. {
  46. }
  47. [SecurityDescriptorScope(SecurityDescriptorScope.Global)]
  48. [Caption("Allow Split Shifts in Employee Rosters")]
  49. public class AllowEmployeeRosterSplitShifts : DisabledSecurityDescriptor<HumanResourcesLicense, Employee>
  50. {
  51. }
  52. [Caption("View Public Holidays On Mobile")]
  53. public class CanViewPublicHolidaysOnMobile : DisabledSecurityDescriptor<HumanResourcesLicense, StandardLeave>
  54. {
  55. }
  56. [Caption("Send Mobile Phone Credentials")]
  57. public class CanCreateMobilePhoneCredentialLinks : DisabledSecurityDescriptor<HumanResourcesLicense, User>
  58. {
  59. }
  60. [Caption("View Mobile In Out Board Details")]
  61. public class CanViewMobileInOutBoardDetails : DisabledSecurityDescriptor<HumanResourcesLicense, User>
  62. {
  63. }
  64. [Caption("Is Job-Only Employee")]
  65. public class IsJobOnlyEmployee : DisabledSecurityDescriptor<HumanResourcesLicense, User>
  66. {
  67. }
  68. }