Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | package br.gov.al.saude.srv.model.dto; |
| 2 | |||
| 3 | import java.io.Serializable; |
||
| 4 | import java.util.Date; |
||
| 5 | |||
| 6 | import br.gov.al.saude.framework.core.util.VerificadorUtil; |
||
| 7 | import br.gov.al.saude.srv.model.enums.TipoSituacaoEvento; |
||
| 8 | |||
| 9 | public class EventoServidorDTO implements Serializable { |
||
| 10 | |||
| 11 | private static final long serialVersionUID = 1L; |
||
| 12 | |||
| 13 | private Long sequencial; |
||
| 14 | private String numeroCPfServidor; |
||
| 15 | private String nomeServidor; |
||
| 16 | private String descricaoFormaIngresso; |
||
| 17 | private Long sequencialDadoFuncional; |
||
| 18 | private Long numeroMatriculaServidor; |
||
| 19 | private Integer digitoMatriculaServidor; |
||
| 20 | private String descricaoUnidadeExercicio; |
||
| 21 | private String descricaoUnidadeLotacao; |
||
| 22 | private String descricaoEvento; |
||
| 23 | private Date dataEvento; |
||
| 24 | private String tipoSituacaoEvento; |
||
| 25 | private Boolean indicadorRetroativo; |
||
| 26 | |||
| 27 | public Long getSequencial() { |
||
| 28 | return sequencial; |
||
| 29 | } |
||
| 30 | |||
| 31 | public void setSequencial(Long sequencial) { |
||
| 32 | this.sequencial = sequencial; |
||
| 33 | } |
||
| 34 | |||
| 35 | public String getNumeroCPfServidor() { |
||
| 36 | return numeroCPfServidor; |
||
| 37 | } |
||
| 38 | |||
| 39 | public void setNumeroCPfServidor(String numeroCPfServidor) { |
||
| 40 | this.numeroCPfServidor = numeroCPfServidor; |
||
| 41 | } |
||
| 42 | |||
| 43 | public String getNomeServidor() { |
||
| 44 | return nomeServidor; |
||
| 45 | } |
||
| 46 | |||
| 47 | public void setNomeServidor(String nomeServidor) { |
||
| 48 | this.nomeServidor = nomeServidor; |
||
| 49 | } |
||
| 50 | |||
| 51 | public String getDescricaoFormaIngresso() { |
||
| 52 | return descricaoFormaIngresso; |
||
| 53 | } |
||
| 54 | |||
| 55 | public void setDescricaoFormaIngresso(String descricaoFormaIngresso) { |
||
| 56 | this.descricaoFormaIngresso = descricaoFormaIngresso; |
||
| 57 | } |
||
| 58 | |||
| 59 | public Long getSequencialDadoFuncional() { |
||
| 60 | return sequencialDadoFuncional; |
||
| 61 | } |
||
| 62 | |||
| 63 | public void setSequencialDadoFuncional(Long sequencialDadoFuncional) { |
||
| 64 | this.sequencialDadoFuncional = sequencialDadoFuncional; |
||
| 65 | } |
||
| 66 | |||
| 67 | public Long getNumeroMatriculaServidor() { |
||
| 68 | return numeroMatriculaServidor; |
||
| 69 | } |
||
| 70 | |||
| 71 | public void setNumeroMatriculaServidor(Long matriculaServidor) { |
||
| 72 | this.numeroMatriculaServidor = matriculaServidor; |
||
| 73 | } |
||
| 74 | |||
| 75 | public Integer getDigitoMatriculaServidor() { |
||
| 76 | return digitoMatriculaServidor; |
||
| 77 | } |
||
| 78 | |||
| 79 | public void setDigitoMatriculaServidor(Integer digitoMatricula) { |
||
| 80 | this.digitoMatriculaServidor = digitoMatricula; |
||
| 81 | } |
||
| 82 | |||
| 83 | public String getMatriculaServidor() { |
||
| 84 | return numeroMatriculaServidor.toString() + "-" + digitoMatriculaServidor.toString(); |
||
| 85 | } |
||
| 86 | |||
| 87 | public String getDescricaoUnidadeExercicio() { |
||
| 88 | return descricaoUnidadeExercicio; |
||
| 89 | } |
||
| 90 | |||
| 91 | public void setDescricaoUnidadeExercicio(String descricaoUnidadeExercicio) { |
||
| 92 | this.descricaoUnidadeExercicio = descricaoUnidadeExercicio; |
||
| 93 | } |
||
| 94 | |||
| 95 | public String getDescricaoUnidadeLotacao() { |
||
| 96 | return descricaoUnidadeLotacao; |
||
| 97 | } |
||
| 98 | |||
| 99 | public void setDescricaoUnidadeLotacao(String descricaoUnidadeLotacao) { |
||
| 100 | this.descricaoUnidadeLotacao = descricaoUnidadeLotacao; |
||
| 101 | } |
||
| 102 | |||
| 103 | public String getDescricaoUnidade() { |
||
| 104 | return VerificadorUtil.naoEstaNuloOuVazio(descricaoUnidadeExercicio) ? descricaoUnidadeExercicio : descricaoUnidadeLotacao; |
||
| 105 | } |
||
| 106 | |||
| 107 | public String getDescricaoEvento() { |
||
| 108 | return descricaoEvento; |
||
| 109 | } |
||
| 110 | |||
| 111 | public void setDescricaoEvento(String descricaoEvento) { |
||
| 112 | this.descricaoEvento = descricaoEvento; |
||
| 113 | } |
||
| 114 | |||
| 115 | public Date getDataEvento() { |
||
| 116 | return dataEvento; |
||
| 117 | } |
||
| 118 | |||
| 119 | public void setDataEvento(Date dataEvento) { |
||
| 120 | this.dataEvento = dataEvento; |
||
| 121 | } |
||
| 122 | |||
| 123 | public String getTipoSituacaoEvento() { |
||
| 124 | return tipoSituacaoEvento; |
||
| 125 | } |
||
| 126 | |||
| 127 | public void setTipoSituacaoEvento(String tipoSituacaoEvento) { |
||
| 128 | this.tipoSituacaoEvento = tipoSituacaoEvento; |
||
| 129 | } |
||
| 130 | |||
| 131 | public String getDescricaoSituacaoEvento() { |
||
| 132 | return VerificadorUtil.naoEstaNuloOuVazio(tipoSituacaoEvento) ? TipoSituacaoEvento.parse(tipoSituacaoEvento).getDescricao() : null; |
||
| 133 | } |
||
| 134 | |||
| 135 | public Boolean getIndicadorRetroativo() { |
||
| 136 | return indicadorRetroativo; |
||
| 137 | } |
||
| 138 | |||
| 139 | public void setIndicadorRetroativo(Boolean indicadorRetroativo) { |
||
| 140 | this.indicadorRetroativo = indicadorRetroativo; |
||
| 141 | } |
||
| 142 | |||
| 143 | @Override |
||
| 144 | public int hashCode() { |
||
| 145 | final int prime = 31; |
||
| 146 | int result = 1; |
||
| 147 | result = prime * result |
||
| 148 | + ((sequencial == null) ? 0 : sequencial.hashCode()); |
||
| 149 | return result; |
||
| 150 | } |
||
| 151 | |||
| 152 | @Override |
||
| 153 | public boolean equals(Object obj) { |
||
| 154 | if (this == obj) |
||
| 155 | return true; |
||
| 156 | if (obj == null) |
||
| 157 | return false; |
||
| 158 | if (!(obj instanceof EventoServidorDTO)) |
||
| 159 | return false; |
||
| 160 | EventoServidorDTO other = (EventoServidorDTO) obj; |
||
| 161 | if (sequencial == null) { |
||
| 162 | if (other.sequencial != null) |
||
| 163 | return false; |
||
| 164 | } else if (!sequencial.equals(other.sequencial)) |
||
| 165 | return false; |
||
| 166 | return true; |
||
| 167 | } |
||
| 168 | |||
| 169 | } |