|  |  |  | @ -147,10 +147,13 @@ public class EstruturaProcessoPanel extends JPanel | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 		processoNode.removeAllChildren(); | 
			
		
	
		
			
				
					|  |  |  |  | 		MarcacaoMutableTreeNode marcacoes[] = loadMarcacoes( id ); | 
			
		
	
		
			
				
					|  |  |  |  | 		processoNode.add( new ECDsMutableTreeNode( new Integer( 35 ), "ECDS de 2006/01/01 : Realizado" ) ); | 
			
		
	
		
			
				
					|  |  |  |  | 		for( int n = 0; n < marcacoes.length; n++ ) | 
			
		
	
		
			
				
					|  |  |  |  | 		{ | 
			
		
	
		
			
				
					|  |  |  |  | 			processoNode.add( marcacoes[ n ] ); | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 		 | 
			
		
	
		
			
				
					|  |  |  |  | 		processoNode.add( new FichaAptidaoMutableTreeNode( new Integer( 35 ), "Ficha de Aptid\u00e3o de  2006/01/01 : Apto" ) ); | 
			
		
	
		
			
				
					|  |  |  |  | 		( ( DefaultTreeModel ) mainTree.getModel() ).nodeStructureChanged( processoNode ); | 
			
		
	
		
			
				
					|  |  |  |  | 		return processoNode; | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
	
		
			
				
					|  |  |  | @ -186,12 +189,18 @@ public class EstruturaProcessoPanel extends JPanel | 
			
		
	
		
			
				
					|  |  |  |  | 		String estadoStr = MedicinaConstants.ESTADOS_CONSULTA_STR[ estado != null ? estado.intValue() : 0 ]; | 
			
		
	
		
			
				
					|  |  |  |  | 		 | 
			
		
	
		
			
				
					|  |  |  |  | 		String desc = "Consulta de " + ( data != null ? D_F.format( data ) : "--" ); | 
			
		
	
		
			
				
					|  |  |  |  | 		desc += ": " + estado; | 
			
		
	
		
			
				
					|  |  |  |  | 		desc += ": " + estadoStr; | 
			
		
	
		
			
				
					|  |  |  |  | 		ConsultaMutableTreeNode consultaNode; | 
			
		
	
		
			
				
					|  |  |  |  | 		if( node == null ) | 
			
		
	
		
			
				
					|  |  |  |  | 		{ | 
			
		
	
		
			
				
					|  |  |  |  | 			consultaNode = new ConsultaMutableTreeNode( id, desc ); | 
			
		
	
		
			
				
					|  |  |  |  | 			consultaNode.setData( data ); | 
			
		
	
		
			
				
					|  |  |  |  | 			DataMutableTreeNode dataNode = new DataMutableTreeNode( new Integer( 1 ), "2006/01/01 - Desmarcado pelo trabalhador" ); | 
			
		
	
		
			
				
					|  |  |  |  | 			dataNode.add( new ObservacoesMutableTreeNode( new Integer( 25 ), "N\u00e3o podia vir neste dia" ) ); | 
			
		
	
		
			
				
					|  |  |  |  | 			dataNode.add( new MailMutableTreeNode( new Integer( 25 ), "2006/01/01 - fpalma@evolute.pt - Aviso de MArca\u00e7\u00e3o" ) ); | 
			
		
	
		
			
				
					|  |  |  |  | 			consultaNode.add( dataNode ); | 
			
		
	
		
			
				
					|  |  |  |  | 			dataNode = new DataMutableTreeNode( new Integer( 1 ), "2006/01/01 - Realizado" ); | 
			
		
	
		
			
				
					|  |  |  |  | 			consultaNode.add( dataNode ); | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 		else | 
			
		
	
		
			
				
					|  |  |  |  | 		{ | 
			
		
	
	
		
			
				
					|  |  |  | @ -330,9 +339,13 @@ public class EstruturaProcessoPanel extends JPanel | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 	 | 
			
		
	
		
			
				
					|  |  |  |  | 	public void actualizarMarcacaoEscolhida( Integer id ) | 
			
		
	
		
			
				
					|  |  |  |  | 	public void actualizarMarcacaoEscolhida( Integer processoID, Integer marcacaoID ) | 
			
		
	
		
			
				
					|  |  |  |  | 		throws Exception | 
			
		
	
		
			
				
					|  |  |  |  | 	{ | 
			
		
	
		
			
				
					|  |  |  |  | 		actualizarProcessoEscolhido( processoID ); | 
			
		
	
		
			
				
					|  |  |  |  | 		TreePath path = mainTree.getSelectionPath(); | 
			
		
	
		
			
				
					|  |  |  |  | 		ProcessoMutableTreeNode processoNode = ( ProcessoMutableTreeNode ) path.getPathComponent( 1 ); | 
			
		
	
		
			
				
					|  |  |  |  | 		( ( DefaultTreeModel ) mainTree.getModel() ).nodeStructureChanged( processoNode ) ; | 
			
		
	
		
			
				
					|  |  |  |  | //		TreePath path = mainTree.getSelectionPath();
 | 
			
		
	
		
			
				
					|  |  |  |  | //		MarcacaoMutableTreeNode processoNode = ( ProcessoMutableTreeNode ) path.getPathComponent( 1 );
 | 
			
		
	
		
			
				
					|  |  |  |  | //		boolean vazio = processoNode.getID().intValue() == -1;
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |