forked from Coded/SIPRP
				
			no message
	
		
	
				
					
				
			git-svn-id: https://svn.coded.pt/svn/SIPRP@345 bb69d46d-e84e-40c8-a05a-06db0d6337410'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
							parent
							
								
									5c3c45d9f4
								
							
						
					
					
						commit
						63b1669d8c
					
				| @ -0,0 +1,73 @@ | ||||
| /* | ||||
|  * 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 ] }; | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
| @ -0,0 +1,19 @@ | ||||
| /* | ||||
|  * ProcessoListener.java | ||||
|  * | ||||
|  * Created on 25 de Abril de 2007, 10:55 | ||||
|  * | ||||
|  * To change this template, choose Tools | Template Manager | ||||
|  * and open the template in the editor. | ||||
|  */ | ||||
| 
 | ||||
| package siprp.medicina.processo; | ||||
| 
 | ||||
| /** | ||||
|  * | ||||
|  * @author Frederico | ||||
|  */ | ||||
| public interface ProcessoListener | ||||
| { | ||||
| 	public void processoStateChenged( ProcessoEvent e ); | ||||
| } | ||||
					Loading…
					
					
				
		Reference in new issue