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.
		
		
		
		
		
			
		
			
				
					
					
						
							105 lines
						
					
					
						
							1.6 KiB
						
					
					
				
			
		
		
	
	
							105 lines
						
					
					
						
							1.6 KiB
						
					
					
				| /*
 | |
|  * Presenca.java
 | |
|  *
 | |
|  * Created on February 1, 2007, 4:54 PM
 | |
|  *
 | |
|  * To change this template, choose Tools | Template Manager
 | |
|  * and open the template in the editor.
 | |
|  */
 | |
| 
 | |
| package siprp.medicina.presencas;
 | |
| 
 | |
| import com.evolute.utils.data.IDObject;
 | |
| import siprp.data.Marcacao;
 | |
| 
 | |
| /**
 | |
|  *
 | |
|  * @author fpalma
 | |
|  */
 | |
| public class Presenca 
 | |
| 		implements IDObject, Comparable
 | |
| {
 | |
| 	protected Integer id;
 | |
| 	protected String nome;
 | |
| 	protected String nomePlain;
 | |
| 	protected String nomeEmpresa;
 | |
| 	protected Integer tipo;
 | |
| 	
 | |
| 	/** Creates a new instance of Presenca */
 | |
| 	public Presenca( Integer id, String nome, String nomePlain, String nomeEmpresa,
 | |
| 						Integer tipo )
 | |
| 	{
 | |
| 		this.setId(id);
 | |
| 		this.setNome(nome);
 | |
| 		this.setNomePlain(nomePlain);
 | |
| 		this.setNomeEmpresa(nomeEmpresa);
 | |
| 		this.setTipo(tipo);
 | |
| 	}
 | |
| 	
 | |
| 	public Integer getID()
 | |
| 	{
 | |
| 		return getId();
 | |
| 	}
 | |
| 	
 | |
| 	public int compareTo( Object other )
 | |
| 	{
 | |
| 		return getNomePlain().compareTo( ( ( Presenca ) other ).getNomePlain() );
 | |
| 	}
 | |
| 	
 | |
| 	public String toString()
 | |
| 	{
 | |
| 		return getNome();
 | |
| 	}
 | |
| 
 | |
| 	public Integer getId()
 | |
| 	{
 | |
| 		return id;
 | |
| 	}
 | |
| 
 | |
| 	public void setId(Integer id)
 | |
| 	{
 | |
| 		this.id = id;
 | |
| 	}
 | |
| 
 | |
| 	public String getNome()
 | |
| 	{
 | |
| 		return nome;
 | |
| 	}
 | |
| 
 | |
| 	public void setNome(String nome)
 | |
| 	{
 | |
| 		this.nome = nome;
 | |
| 	}
 | |
| 
 | |
| 	public String getNomePlain()
 | |
| 	{
 | |
| 		return nomePlain;
 | |
| 	}
 | |
| 
 | |
| 	public void setNomePlain(String nomePlain)
 | |
| 	{
 | |
| 		this.nomePlain = nomePlain;
 | |
| 	}
 | |
| 
 | |
| 	public String getNomeEmpresa()
 | |
| 	{
 | |
| 		return nomeEmpresa;
 | |
| 	}
 | |
| 
 | |
| 	public void setNomeEmpresa(String nomeEmpresa)
 | |
| 	{
 | |
| 		this.nomeEmpresa = nomeEmpresa;
 | |
| 	}
 | |
| 
 | |
| 	public Integer getTipo()
 | |
| 	{
 | |
| 		return tipo;
 | |
| 	}
 | |
| 
 | |
| 	public void setTipo(Integer tipo)
 | |
| 	{
 | |
| 		this.tipo = tipo;
 | |
| 	}
 | |
| 	
 | |
| }
 |