public static IEmployee GetResolutionAuthor(Sungero.Docflow.IPersonalSetting entity) { if (entity == null) { return(null); } if (entity.IsAutoCalcResolutionAuthor == true) { return(Functions.PersonalSetting.Remote.GetEmployeeResolutionAuthor(entity.Employee) ?? entity.Employee); } else { return(entity.ResolutionAuthor); } }
public static IEmployee GetSupervisor(Sungero.Docflow.IPersonalSetting entity) { if (entity == null) { return(null); } if (entity.IsAutoCalcSupervisor == true) { return(Functions.Module.GetSecretary(entity.Employee) ?? entity.Employee); } else { return(entity.Supervisor); } }