public ManageViewData(Person currentPerson, Models.FirmaPage neptunePage) : base(currentPerson, neptunePage) { EntityName = "Attribute Type"; PageTitle = "All Attribute Types"; NewProjectCustomAttributeTypeUrl = SitkaRoute <ProjectCustomAttributeTypeController> .BuildUrlFromExpression(t => t.New()); GridSpec = new ProjectCustomAttributeTypeGridSpec { ObjectNameSingular = "Attribute Type", ObjectNamePlural = "Attribute Types", SaveFiltersInCookie = true }; GridName = "projectCustomAttributeTypeGrid"; GridDataUrl = SitkaRoute <ProjectCustomAttributeTypeController> .BuildUrlFromExpression(tc => tc.ProjectCustomAttributeTypeGridJsonData()); HasManagePermissions = new FirmaAdminFeature().HasPermissionByPerson(CurrentPerson); }
public ManageViewData(FirmaSession currentFirmaSession, ProjectFirmaModels.Models.FirmaPage neptunePage) : base(currentFirmaSession, neptunePage) { EntityName = "Attribute Type"; PageTitle = $"{FieldDefinitionEnum.ProjectCustomAttribute.ToType().GetFieldDefinitionLabelPluralized()}"; NewProjectCustomAttributeTypeUrl = SitkaRoute <ProjectCustomAttributeTypeController> .BuildUrlFromExpression(t => t.New()); GridSpec = new ProjectCustomAttributeTypeGridSpec() { ObjectNameSingular = "Attribute Type", ObjectNamePlural = "Attribute Types", SaveFiltersInCookie = true }; GridName = "projectCustomAttributeTypeGrid"; GridDataUrl = SitkaRoute <ProjectCustomAttributeTypeController> .BuildUrlFromExpression(tc => tc.ProjectCustomAttributeTypeGridJsonData()); EditSortOrderUrl = SitkaRoute <ProjectCustomAttributeTypeController> .BuildUrlFromExpression(x => x.EditSortOrder()); HasManagePermissions = new FirmaAdminFeature().HasPermissionByFirmaSession(currentFirmaSession); }