forked from Coded/SIPRP
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							67 lines
						
					
					
						
							2.0 KiB
						
					
					
				
			
		
		
	
	
							67 lines
						
					
					
						
							2.0 KiB
						
					
					
				| /*
 | |
|  * ProcessoEvent.java
 | |
|  *
 | |
|  * Created on 25 de Abril de 2007, 10:53
 | |
|  *
 | |
|  * To change this template, choose Tools | Template Manager
 | |
|  * and open the template in the editor.
 | |
|  */
 | |
| 
 | |
| package siprp.medicina.processo;
 | |
| 
 | |
| import java.util.HashMap;
 | |
| 
 | |
| /**
 | |
|  *
 | |
|  * @author Frederico
 | |
|  */
 | |
| public class ProcessoEvent
 | |
| {
 | |
| 	public static final int ACCAO_RECARREGAR_TRABALHADOR = 0;
 | |
| 	public static final int ACCAO_ESCOLHER_PROCESSO = 1;
 | |
| 	public static final int ACCAO_ESCOLHER_CONSULTA = 2;
 | |
| 	public static final int ACCAO_ESCOLHER_ECDS = 3;
 | |
| 	public static final int ACCAO_ESCOLHER_FA = 4;
 | |
| 	public static final int ACCAO_ESCOLHER_DATA = 5;
 | |
| 	public static final int ACCAO_ESCOLHER_OBSERVACOES = 6;
 | |
| 	public static final int ACCAO_ESCOLHER_MAIL = 7;
 | |
| 	public static final int ACCAO_ESCOLHER_MOTIVO = 8;
 | |
| 	public static final int ACCAO_MARCAR_CONSULTA = 9;
 | |
| 	public static final int ACCAO_MARCAR_ECDS = 10;
 | |
| 	public static final int ACCAO_EMITIR_FA = 11;
 | |
| 	public static final int ACCAO_FECHAR = 12;
 | |
| 	public static final int ACCAO_MUDAR_ESTADO_MARCACAO = 13;
 | |
| 	public static final int ACCAO_ESCREVER_OBSERVACOES = 14;
 | |
| 	public static final int ACCAO_ESCREVER_MAIL = 15;
 | |
| 	
 | |
| 	public static final Integer TIPO_ANY = new Integer( 0 );
 | |
| 	public static final Integer TIPO_PROCESSO = new Integer( 1 );
 | |
| 	public static final Integer TIPO_CONSULTA = new Integer( 2 );
 | |
| 	public static final Integer TIPO_ECDS = new Integer( 3 );
 | |
| 	public static final Integer TIPO_DATA = new Integer( 4 );
 | |
| 	public static final Integer TIPO_OBSERVACOES = new Integer( 5 );
 | |
| 	public static final Integer TIPO_MAIL = new Integer( 6 );
 | |
| 	public static final Integer TIPO_FICHA_APTIDAO = new Integer( 7 );
 | |
| 	
 | |
| 	protected final int accao;
 | |
| 	protected final HashMap<Integer,Integer> idsObjectos;
 | |
| 	
 | |
| 	/** Creates a new instance of ProcessoEvent */
 | |
| 	public ProcessoEvent( int accao, HashMap<Integer,Integer> idsObjectos )
 | |
| 	{
 | |
| 		this.accao = accao;
 | |
| 		this.idsObjectos = idsObjectos;
 | |
| 	}
 | |
| 	
 | |
| 	public int getAccao()
 | |
| 	{
 | |
| 		return accao;
 | |
| 	}
 | |
| 	
 | |
| 	public Integer getObjecto( Integer tipo )
 | |
| 	{
 | |
| 		return idsObjectos.get( tipo );
 | |
| 	}
 | |
| 	
 | |
| }
 |