Exemple #1
0
 public override List <IApprovalRoleBase> GetSupportedApprovalRolesForRework()
 {
     return(ApprovalRoleBases.GetAll().Where(r => r.Type != Docflow.ApprovalRole.Type.Initiator &&
                                             r.Type != Docflow.ApprovalRole.Type.Approvers &&
                                             r.Type != Docflow.ApprovalRole.Type.Addressee &&
                                             r.Type != Docflow.ApprovalRole.Type.AddrAssistant &&
                                             r.Type != Docflow.ApprovalRole.Type.Signatory &&
                                             r.Type != Docflow.ApprovalRole.Type.SignAssistant)
            .ToList());
 }
Exemple #2
0
        /// <summary>
        /// Получить роли согласования, допустимые в качестве ответственных за доработку.
        /// </summary>
        /// <param name="withoutContractRoles">Исключить договорные роли.</param>
        /// <returns>Список ролей согласования.</returns>
        public virtual List <IApprovalRoleBase> GetSupportedApprovalRolesForRework(bool withoutContractRoles)
        {
            var roles = ApprovalRoleBases.GetAll().Where(r => r.Type != Docflow.ApprovalRole.Type.Initiator &&
                                                         r.Type != Docflow.ApprovalRole.Type.Approvers &&
                                                         r.Type != Docflow.ApprovalRole.Type.Addressee &&
                                                         r.Type != Docflow.ApprovalRole.Type.AddrAssistant &&
                                                         r.Type != Docflow.ApprovalRole.Type.Signatory &&
                                                         r.Type != Docflow.ApprovalRole.Type.SignAssistant);

            if (withoutContractRoles)
            {
                roles = roles.Where(r => r.Type != Docflow.ApprovalRole.Type.ContractResp &&
                                    r.Type != Docflow.ApprovalRole.Type.ContRespManager);
            }
            return(roles.ToList());
        }