コード例 #1
0
        public int UpdateMailStatus(String account, List <String> idMails, MailStatus newStatus, string actionid, String utente, string parentFolder)
        {
            int i = 0;

            using (IMailHeaderDao dao = getDaoContext().DaoImpl.MailHeaderDao)
            {
                switch (parentFolder)
                {
                case "I":
                case "A":
                    i = dao.UpdateMailStatus(account, idMails, newStatus, actionid, utente);
                    break;

                case "O":
                case "AO":
                    i = dao.UpdateMailSentStatus(account, idMails, newStatus, utente, actionid, parentFolder);
                    break;

                case "C":
                    switch (actionid)
                    {
                    case "4":
                    case "14":
                        i = dao.UpdateMailStatus(account, idMails, newStatus, actionid, utente);
                        break;

                    case "6":
                        i = dao.UpdateMailSentStatus(account, idMails, newStatus, utente, actionid, parentFolder);
                        break;
                    }
                    break;
                }
            }
            return(i);
        }
コード例 #2
0
 public int UpdateMailSentStatus(string account, List <string> idMails, MailStatus newStatus, string utente, string action, string parentFolder)
 {
     using (IMailHeaderDao dao = getDaoContext().DaoImpl.MailHeaderDao)
     {
         return(dao.UpdateMailSentStatus(account, idMails, newStatus, utente, action, parentFolder));
     }
 }