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.
		
		
		
		
		
			
		
			
				
					
					
						
							74 lines
						
					
					
						
							2.0 KiB
						
					
					
				
			
		
		
	
	
							74 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;
 | |
| 
 | |
| /**
 | |
|  *
 | |
|  * @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_TIPO = 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 int OBJECTO_ANY = 0;
 | |
| 	public static final int OBJECTO_CONSULTA = 1;
 | |
| 	public static final int OBJECTO_ECDS = 2;
 | |
| 	public static final int OBJECTO_DATA = 3;
 | |
| 	public static final int OBJECTO_OBSERVACOES = 4;
 | |
| 	public static final int OBJECTO_MAIL = 5;
 | |
| 	
 | |
| 	protected final int accao;
 | |
| 	protected final int tiposObjectos[];
 | |
| 	protected final int idsObjectos[];
 | |
| 	
 | |
| 	/** Creates a new instance of ProcessoEvent */
 | |
| 	public ProcessoEvent( int accao, int tiposObjectos[], int idsObjectos[] )
 | |
| 	{
 | |
| 		this.accao = accao;
 | |
| 		this.tiposObjectos = tiposObjectos;
 | |
| 		this.idsObjectos = idsObjectos;
 | |
| 	}
 | |
| 	
 | |
| 	public int getAccao()
 | |
| 	{
 | |
| 		return accao;
 | |
| 	}
 | |
| 	
 | |
| 	public int[] getUltimoObjecto()
 | |
| 	{
 | |
| 		return new int[]{ tiposObjectos[ tiposObjectos.length - 1 ], idsObjectos[ idsObjectos.length - 1 ] };
 | |
| 	}
 | |
| 	
 | |
| 	public int[] getObjecto( int nivel )
 | |
| 	{
 | |
| 		if( nivel >= tiposObjectos.length )
 | |
| 		{
 | |
| 			return null;
 | |
| 		}
 | |
| 		return new int[]{ tiposObjectos[ nivel ], idsObjectos[ nivel ] };
 | |
| 	}
 | |
| 	
 | |
| }
 |