Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }