git-svn-id: https://svn.coded.pt/svn/SIPRP@721 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
Tiago Simão 18 years ago
parent a26bae6600
commit 535c9f6838

@ -25,4 +25,5 @@ public class LeafGradientPanel extends JPanel
// g2d.setPaint( gradientOut ); // g2d.setPaint( gradientOut );
// g2d.fillRect( getWidth()/2, 0, getWidth(), getHeight() ); // g2d.fillRect( getWidth()/2, 0, getWidth(), getHeight() );
// } // }
} }

@ -3,6 +3,7 @@ package siprp.medicina.processo.mail;
import java.util.Date; import java.util.Date;
import java.util.Properties; import java.util.Properties;
import javax.mail.Address;
import javax.mail.Authenticator; import javax.mail.Authenticator;
import javax.mail.Message; import javax.mail.Message;
import javax.mail.PasswordAuthentication; import javax.mail.PasswordAuthentication;
@ -37,6 +38,7 @@ public class MailSender
Message msg = new MimeMessage( session ); Message msg = new MimeMessage( session );
msg.setFrom( new InternetAddress( from ) ); msg.setFrom( new InternetAddress( from ) );
msg.setReplyTo( new Address[]{ new InternetAddress(from)} );
msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to, true ) ); msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to, true ) );
msg.setRecipients( Message.RecipientType.BCC, InternetAddress.parse( bcc, true ) ); msg.setRecipients( Message.RecipientType.BCC, InternetAddress.parse( bcc, true ) );
msg.setSubject( subject ); msg.setSubject( subject );

@ -600,12 +600,12 @@ public class ProcessoDadosPanel extends JPanel
String subject = ""; String subject = "";
String body = ""; String body = "";
subject = ( String ) Singleton.getInstance( subject ); subject = ( String ) Singleton.getInstance( subjectName );
if( subject == null) if( subject == null)
{ {
subject = ""; subject = "";
} }
subject = subject.replaceAll( CompanyDataLoader.NOME, estabelecimento.getNome() ); subject = subject.replaceAll( CompanyDataLoader.NOME, trabalhador.getNome() );
body = ( String ) Singleton.getInstance( letterName ); body = ( String ) Singleton.getInstance( letterName );
if( body == null) if( body == null)

@ -163,8 +163,16 @@ public class ProcessoTreePanel extends JPanel
{ {
if( processo != null ) if( processo != null )
{ {
ProcessoMutableTreeNode node = new ProcessoMutableTreeNode( processo ); for(int i = 0; i< rootNode.getChildCount(); ++i)
{
DefaultMutableTreeNode node = (DefaultMutableTreeNode) rootNode.getChildAt( i );
if(processo.equals( node.getUserObject()))
{
removeNode( node ); removeNode( node );
break;
}
}
} }
} }

Loading…
Cancel
Save