|
|
|
|
@ -55,6 +55,7 @@ import siprp.higiene.gestao.equipamentos.AdicionarEquipamentosPanel;
|
|
|
|
|
import siprp.higiene.relatorio.print.RelatorioPDFCreator;
|
|
|
|
|
import siprp.logic.HigieneSegurancaLogic;
|
|
|
|
|
import siprp.medicina.processo.mail.MailDialog;
|
|
|
|
|
import siprp.medicina.processo.mail.MailSender;
|
|
|
|
|
import siprp.planoactuacao.print.PlanoActuacaoPDFCreator;
|
|
|
|
|
|
|
|
|
|
import com.evolute.utils.ui.calendar.JCalendarPanel;
|
|
|
|
|
@ -374,6 +375,10 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
|
|
|
|
|
relatorio.save();
|
|
|
|
|
setRelatorio( relatorio, false );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
JOptionPane.showMessageDialog( this, "Erro ao enviar o email, o plano n"+atilde+"o ser"+aacute+" submetido." );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch( Exception e )
|
|
|
|
|
@ -537,7 +542,7 @@ public class PanelRelatorio extends JPanel implements CaretListener, ChangeListe
|
|
|
|
|
"<br>" +
|
|
|
|
|
"<br>" +
|
|
|
|
|
"Esta " + eacute + " uma mensagem gerada automaticamente pelo nosso sistema, por favor n" + atilde + "o responda.</font></p></html>";
|
|
|
|
|
MailDialog md = new MailDialog( getFrame(), to, bcc, subject, body, getRelatoriosTemp(relatorio) );
|
|
|
|
|
MailDialog md = new MailDialog( getFrame(), to, bcc, subject, body, getRelatoriosTemp(relatorio), MailSender.from );
|
|
|
|
|
result = md.wasSent();
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
|