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); }
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); }