HumanResources_Descriptors.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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, EmployeeRoster>
  50. {
  51. }
  52. [Caption("View Public Holidays On Mobile")]
  53. public class CanViewPublicHolidaysOnMobile : DisabledSecurityDescriptor<HumanResourcesLicense, StandardLeave>
  54. {
  55. }
  56. [Caption("Create Mobile Phone Credential Links")]
  57. public class CanCreateMobilePhoneCredentialLinks : DisabledSecurityDescriptor<HumanResourcesLicense, User>
  58. {
  59. }
  60. }