Task_Descriptors.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System.Linq;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class CanViewTasks : AutoSecurityDescriptor<Kanban, CanView<Kanban>>
  6. {
  7. public override string Code => GetType().EntityName().Split('.').Last();
  8. }
  9. public class CanViewTaskTypes : AutoSecurityDescriptor<KanbanType, CanView<KanbanType>>
  10. {
  11. public override string Code => GetType().EntityName().Split('.').Last();
  12. }
  13. [Caption("View Tasks for Other Employees")]
  14. public class CanViewOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  15. {
  16. }
  17. [Caption("Close Tasks for Other Employees")]
  18. public class CanCloseOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  19. {
  20. }
  21. [Caption("Change all Task Information for Other Employees")]
  22. public class CanChangeOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  23. {
  24. }
  25. [Caption("Allow Task Completed Column to be Hidden")]
  26. public class CanHideTaskCompletedColumn : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  27. {
  28. }
  29. [Caption("Can Set Task Completed Date")]
  30. public class CanSetKanbanCompletedDate : DisabledSecurityDescriptor<TaskManagementLicense, Kanban>
  31. {
  32. }
  33. [Caption("Can Share Task Details With Others")]
  34. public class CanShareTaskDetails : DisabledSecurityDescriptor<TaskManagementLicense, Kanban>
  35. {
  36. }
  37. }