Ejemplo n.º 1
0
 public string GetNotifyUser()
 {
     if (NotifyUserType == (int)ApproverType.PredefinedRole)
     {
         return("Predefined Role");
     }
     if (NotifyUserType == (int)ApproverType.RoleCriteria)
     {
         return(string.Join(" ", "Grade", CriteriaGradeOperator, CriteriaGrade?.ToString()));
     }
     if (NotifyUserType == (int)ApproverType.PredefinedReportingLine)
     {
         return("Predefined Reporting Line");
     }
     return(UserNo);
 }
Ejemplo n.º 2
0
 public string GetApprover()
 {
     //if ((StepStatus == StepStatus.Abort || StepStatus == StepStatus.Approved || StepStatus == StepStatus.Rejected) && !string.IsNullOrWhiteSpace(OperationUser))
     //{
     //    return OperationUser;
     //}
     if (ApproverType == (int)DTO.ApproverType.PredefinedRole)
     {
         return("Predefined Role");
     }
     if (ApproverType == (int)DTO.ApproverType.RoleCriteria)
     {
         return(string.Join(" ", "Grade", CriteriaGradeOperator, CriteriaGrade?.ToString()));
     }
     if (ApproverType == (int)DTO.ApproverType.PredefinedReportingLine)
     {
         return("Predefined Reporting Line");
     }
     return(Approver);
 }