Package ecar.pojo

Examples of ecar.pojo.ContatoMailCttm


     */
  public void enviarEmail(HttpServletRequest request, Long codCtta, String remetente, String msg) throws Exception {
    String assunto = "", destinatarioPara = "", destinatarioCc = "", destinatarioBcc = "";
   
    ContatoAreaCtta contatoAreaCtta = new ContatoAreaCtta();
    ContatoMailCttm contatoMailCttm = new ContatoMailCttm();
    ContatoAreaDao contatoAreaDao = new ContatoAreaDao(request);
    ContatoMailDao contatoMailDao = new ContatoMailDao(request);
   
    contatoAreaCtta = (ContatoAreaCtta)contatoAreaDao.buscar(ContatoAreaCtta.class, codCtta);
   
    request.setAttribute("contatoAreaCtta", codCtta);
    contatoMailDao.setContatoMail(contatoMailCttm, request, false);
       
    ContatoAreaCtta ctta = new ContatoAreaCtta();
    ctta.setCodCtta(codCtta);
    List list = contatoMailDao.getListContatoMailCttm(ctta);
   
    for (int i = 0; i < list.size(); i++) {     
      ContatoMailCttm cttm = (ContatoMailCttm) list.get(i);
     
      if (cttm.getContatoMailCategoriaCttm().getCodCttmc().intValue() == 1destinatarioPara += cttm.getEmailCttm() + ","
      if (cttm.getContatoMailCategoriaCttm().getCodCttmc().intValue() == 2destinatarioCc += cttm.getEmailCttm() + ","
      if (cttm.getContatoMailCategoriaCttm().getCodCttmc().intValue() == 3destinatarioBcc += cttm.getEmailCttm() + ",";     
    }
       
   
    if (contatoAreaCtta.getAssuntoRetornoCtta()!=null) assunto = contatoAreaCtta.getAssuntoRetornoCtta();
     
View Full Code Here


     * @return list de contatos
     * @throws ECARException
     */
    public List getListContatoMailCttm(ContatoAreaCtta ctta) throws ECARException{
     
      ContatoMailCttm cttm = new ContatoMailCttm();
      cttm.setContatoAreaCtta(ctta);     
     
      return this.pesquisar(cttm, null);
    }
View Full Code Here

TOP

Related Classes of ecar.pojo.ContatoMailCttm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.