public List <UserResultItem> GetStatsInBox(string account, string utente, string datainizio, string datafine)
 {
     using (IBackendUserDao dao = getDaoContext().DaoImpl.BackendUserDao)
     {
         return(dao.GetStatsInBox(account, utente, datainizio, datafine));
     }
 }
 public void RemoveAbilitazioneEmail(Decimal UserId, Decimal idSender)
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         dao.RemoveAbilitazioneEmail(UserId, idSender);
     }
 }
 public void UpdateAbilitazioneEmail(decimal userId, decimal idsender, int level)
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         dao.UpdateAbilitazioneEmail(userId, idsender, level);
     }
 }
 public List <BackendUser> GetDipendentiDipartimentoAbilitati(Decimal idSender)
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         return(dao.GetDipendentiDipartimentoAbilitati(idSender));
     }
 }
 public void InsertAbilitazioneEmail(Decimal UserId, Decimal idSender, int role)
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         dao.InsertAbilitazioneEmail(UserId, idSender, role);
     }
 }
 public List <BackendUser> GetAllDipartimenti()
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         return(dao.GetAllDipartimenti());
     }
 }
 public List <BackendUser> GetAllDipartimentiByMailAdmin(string UserName)
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         return(dao.GetAllDipartimentiByMailAdmin(UserName));
     }
 }
 public List <BackEndUserMailUserMapping> GetMailUserByUserId(long userId, int userRole)
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         return(dao.GetMailUserByUserId(userId, userRole));
     }
 }
 public BackendUser GetByUserName(String UserName)
 {
     using (IBackendUserDao dao = this.getDaoContext().DaoImpl.BackendUserDao)
     {
         return(dao.GetByUserName(UserName));
     }
 }
Example #10
0
 public string GetTotalePeriodoAccount(string account, string datainizio, string datafine)
 {
     using (IBackendUserDao dao = getDaoContext().DaoImpl.BackendUserDao)
     {
         return(dao.GetTotalePeriodoAccount(account, datainizio, datafine));
     }
 }
        public IList <MailUser> GetManagedAccountByUser(string username)
        {
            SendMail.Model.BackendUser us = null;
            using (IBackendUserDao dao = getDaoContext().DaoImpl.BackendUserDao)
            {
                us = dao.GetByUserName(username);
            }
            IList <MailUser> l = null;

            if (us != null && us.MappedMails != null)
            {
                l = us.MappedMails.Select(x => (MailUser)x).OrderBy(u => u.EmailAddress, new MailComparer()).ToList();
            }
            return(l);
        }