예제 #1
0
 public string Busca_Anexos(decimal ID_MESSAGE, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             return(mail.Busca_Anexos(ID_MESSAGE));
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #2
0
 public void Deleta_Pasta(decimal ID_PASTA, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             mail.Deleta_Pasta(ID_PASTA);
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #3
0
 public Dictionary <string, object> Busca_Mensagem_para_Encaminhar(decimal ID_MESSAGE, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             return(mail.Busca_Mensagem_para_Encaminhar(ID_MESSAGE));
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #4
0
 public void Grava_Desmarca_SPAM(string EMAIL_SPAM, decimal SPAM, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             mail.Marca_Desmarca_SPAM(0, EMAIL_SPAM, SPAM);
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #5
0
 public void Altera_Nome_Anexo(decimal ID_ATTACHMENT, string NAME, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             mail.Altera_Nome_Anexo(ID_ATTACHMENT, NAME);
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #6
0
 public Dictionary <string, object> Busca_Sugestao_Contatos(decimal ID_USUARIO, string DIGITOS)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             return(mail.Busca_Sugestao_Contatos(DIGITOS));
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #7
0
 public List <string> Busca_Emails_do_Grupo(string NOME_GRUPO_EMAIL, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             return(mail.Busca_Emails_do_Grupo(NOME_GRUPO_EMAIL));
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #8
0
 public List <Doran_ERP_Servicos_Email.SUB_PASTAS> Busca_Sub_Pastas(decimal ID_PASTA, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             return(mail.Busca_Sub_Pastas(ID_PASTA));
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #9
0
 public string Carrega_PASTAS_NIVEL_SUPERIOR(decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             return(mail.Carrega_PASTAS_NIVEL_SUPERIOR());
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #10
0
 public string Lista_Pasta_Usuario_Mover(decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             return(mail.Lista_Pasta_Usuario_Mover());
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #11
0
 public void Marca_Desmarca_email_Favorito(decimal ID_MESSAGE, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             mail.Marca_Desmarca_email_Favorito(ID_MESSAGE);
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #12
0
 public string Lista_Emails_de_uma_Pasta(Dictionary <string, object> dados)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(Convert.ToDecimal(dados["ID_USUARIO"])))
         {
             return(mail.Lista_Emails_de_uma_Pasta(dados));
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, Convert.ToDecimal(dados["ID_USUARIO"]));
         throw ex;
     }
 }
예제 #13
0
 public void Deleta_emails(List <decimal> ID_MESSAGES, decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             mail.Deleta_emails(ID_MESSAGES);
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #14
0
 public Dictionary <string, object> Envia_Email_que_estava_gravado_como_rascunho(decimal ID_MESSAGE, decimal ID_CONTA_EMAIL,
                                                                                 decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO, ID_CONTA_EMAIL))
         {
             return(mail.Envia_Email_que_estava_gravado_como_rascunho(ID_MESSAGE));
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #15
0
 public void Move_emails_para_outra_pasta(decimal ID_PASTA, List <decimal> ID_MESSAGES, decimal PASTA_DEFINITIVA,
                                          decimal ID_USUARIO)
 {
     try
     {
         using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
         {
             mail.Move_emails_para_outra_pasta(ID_PASTA, ID_MESSAGES, PASTA_DEFINITIVA);
         }
     }
     catch (Exception ex)
     {
         Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
         throw ex;
     }
 }
예제 #16
0
        public decimal Salva_Mensagem_como_Rascunho(Dictionary <string, object> dados, List <string> TOs, List <string> CCs, List <string> BCCs,
                                                    List <string> Attachments, decimal ID_USUARIO)
        {
            try
            {
                using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
                {
                    TOs.Remove(string.Empty);
                    CCs.Remove(string.Empty);
                    BCCs.Remove(string.Empty);

                    return(mail.Salva_Mensagem_como_Rascunho(dados, TOs, CCs, BCCs, Attachments));
                }
            }
            catch (Exception ex)
            {
                Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
                throw ex;
            }
        }
예제 #17
0
        public Dictionary <string, object> Recebe_Mensagens(decimal ID_USUARIO, string EMAIL, string SENHA,
                                                            string SERVIDOR_POP, int PORTA, decimal SSL, int NUMERO_MENSAGEM)
        {
            try
            {
                using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
                {
                    mail._ID_USUARIO = ID_USUARIO;
                    mail._HOST       = SERVIDOR_POP;
                    mail._EMAIL      = EMAIL;
                    mail._SENHA      = SENHA;
                    mail._PORTA      = PORTA;
                    mail._SSL        = SSL == 1 ? true : false;

                    return(mail.Recebe_e_Grava_Email(NUMERO_MENSAGEM));
                }
            }
            catch (Exception ex)
            {
                Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
                throw ex;
            }
        }
예제 #18
0
        public int VerificaNovasMensagens(decimal ID_USUARIO, string EMAIL, string SENHA,
                                          string SERVIDOR_POP, int PORTA, decimal SSL)
        {
            try
            {
                using (Doran_ERP_Servicos_Email.PopMail mail = new Doran_ERP_Servicos_Email.PopMail(ID_USUARIO))
                {
                    mail._ID_USUARIO = ID_USUARIO;
                    mail._HOST       = SERVIDOR_POP;
                    mail._EMAIL      = EMAIL;
                    mail._SENHA      = SENHA;
                    mail._PORTA      = PORTA;
                    mail._SSL        = SSL == 1 ? true : false;

                    return(mail.VerificaNovasMensagens());
                }
            }
            catch (Exception ex)
            {
                Doran_Base.Auditoria_ERP_Servicos.Doran_Exception.GravaErro(ex, ID_USUARIO);
                throw ex;
            }
        }