Exemplo n.º 1
0
 private static HtmlString MakeDeleteIconAndLinkBootstrapIfAvailable(FirmaSession currentFirmaSession, ProjectFirmaModels.Models.Evaluation evaluation)
 {
     if (EvaluationManageFeature.HasEvaluationManagePermission(currentFirmaSession, evaluation))
     {
         return(DhtmlxGridHtmlHelpers.MakeDeleteIconAndLinkBootstrap(evaluation.GetDeleteUrl(), true, evaluation.CanDelete()));
     }
     return(new HtmlString(string.Empty));
 }
Exemplo n.º 2
0
 private static HtmlString MakeNameLinkToDetailIfAvailable(FirmaSession currentFirmaSession, ProjectFirmaModels.Models.Evaluation evaluation)
 {
     if (EvaluationManageFeature.HasEvaluationManagePermission(currentFirmaSession, evaluation))
     {
         return(UrlTemplate.MakeHrefString(evaluation.GetDetailUrl(), evaluation.EvaluationName));
     }
     return(new HtmlString(evaluation.EvaluationName));
 }
 private static HtmlString MakeEditIconAndLinkBootstrapIfAvailable(FirmaSession currentFirmaSession, EvaluationCriteria evaluationCriteria)
 {
     if (EvaluationManageFeature.HasEvaluationManagePermission(currentFirmaSession, evaluationCriteria.Evaluation))
     {
         string linkTitleText = $"Edit {FieldDefinitionEnum.EvaluationCriteria.ToType().GetFieldDefinitionLabel()} '{evaluationCriteria.EvaluationCriteriaName}'";
         string editDialogUrl = evaluationCriteria.GetEditUrl();
         return(DhtmlxGridHtmlHelpers.MakeEditIconAsModalDialogLinkBootstrap(editDialogUrl, linkTitleText));
     }
     return(new HtmlString(string.Empty));
 }
        private static HtmlString MakeEditIconAndLinkBootstrapIfAvailable(FirmaSession currentFirmaSession, ProjectEvaluation projectEvaluation)
        {
            if (EvaluationManageFeature.HasEvaluationManagePermission(currentFirmaSession, projectEvaluation.Evaluation))
            {
                if (projectEvaluation.Evaluation.EvaluationStatusID == (int)EvaluationStatusEnum.InProgress)
                {
                    return(DhtmlxGridHtmlHelpers.MakeEditIconAsModalDialogLinkBootstrap(projectEvaluation.GetEditUrl(), $"Evaluate {FieldDefinitionEnum.Project.ToType().GetFieldDefinitionLabel()} '{projectEvaluation.Project.GetDisplayName()}'"));
                }

                return(DhtmlxGridHtmlHelpers.MakeEditIconAsModalDialogLinkBootstrap(projectEvaluation.GetEditUrl(), $"Evaluate {FieldDefinitionEnum.Project.ToType().GetFieldDefinitionLabel()} '{projectEvaluation.Project.GetDisplayName()}'", false));
            }
            return(new HtmlString(string.Empty));
        }