Rev 409 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 409 | Rev 412 | ||
|---|---|---|---|
| Line 24... | Line 24... | ||
| 24 | private String intervalo; |
24 | private String intervalo; |
| 25 | private String inicioPonto; |
25 | private String inicioPonto; |
| 26 | private String justificativas; |
26 | private String justificativas; |
| 27 | 27 | ||
| 28 | private List<FuncionarioEventoDTO> eventosDTO = new ArrayList<FuncionarioEventoDTO>(); |
28 | private List<FuncionarioEventoDTO> eventosDTO = new ArrayList<FuncionarioEventoDTO>(); |
| - | 29 | private List<BancoHorasDTO> bancoHorasDTO = new ArrayList<BancoHorasDTO>(); |
|
| 29 | 30 | ||
| 30 | public FuncionarioEscalaDTO() {} |
31 | public FuncionarioEscalaDTO() {} |
| 31 | 32 | ||
| 32 | public FuncionarioEscalaDTO(Long sequencialFuncionario, Date dataEscala, String tipoOcorrenciaEscala) { |
33 | public FuncionarioEscalaDTO(Long sequencialFuncionario, Date dataEscala, String tipoOcorrenciaEscala) { |
| 33 | this.sequencialFuncionario = sequencialFuncionario; |
34 | this.sequencialFuncionario = sequencialFuncionario; |
| Line 116... | Line 117... | ||
| 116 | public List<FuncionarioEventoDTO> getEventosDTO() { |
117 | public List<FuncionarioEventoDTO> getEventosDTO() { |
| 117 | return eventosDTO; |
118 | return eventosDTO; |
| 118 | }
|
119 | }
|
| 119 | public void setEventosDTO(List<FuncionarioEventoDTO> eventosDTO) { |
120 | public void setEventosDTO(List<FuncionarioEventoDTO> eventosDTO) { |
| 120 | this.eventosDTO = eventosDTO; |
121 | this.eventosDTO = eventosDTO; |
| - | 122 | }
|
|
| - | 123 | ||
| - | 124 | public List<BancoHorasDTO> getBancoHorasDTO() { |
|
| - | 125 | return bancoHorasDTO; |
|
| - | 126 | }
|
|
| - | 127 | public void setBancoHorasDTO(List<BancoHorasDTO> bancoHorasDTO) { |
|
| - | 128 | this.bancoHorasDTO = bancoHorasDTO; |
|
| 121 | }
|
129 | }
|
| 122 | 130 | ||
| 123 | public String diaVigencia() { |
131 | public String diaVigencia() { |
| 124 | if (VerificadorUtil.naoEstaNulo(getDataEscala())) { |
132 | if (VerificadorUtil.naoEstaNulo(getDataEscala())) { |
| 125 | return DataUtils.converterDataParaStringNoFormato(getDataEscala(), "dd"); |
133 | return DataUtils.converterDataParaStringNoFormato(getDataEscala(), "dd"); |
| Line 179... | Line 187... | ||
| 179 | for (FuncionarioEventoDTO eventoDTO : eventos) { |
187 | for (FuncionarioEventoDTO eventoDTO : eventos) { |
| 180 | if (DataUtils.dataEstaIgualOuEntrePeriodos(dataPonto, eventoDTO.getDataInicial(), eventoDTO.getDataFinal())) { |
188 | if (DataUtils.dataEstaIgualOuEntrePeriodos(dataPonto, eventoDTO.getDataInicial(), eventoDTO.getDataFinal())) { |
| 181 | getEventosDTO().add(eventoDTO); |
189 | getEventosDTO().add(eventoDTO); |
| 182 | }
|
190 | }
|
| 183 | }
|
191 | }
|
| - | 192 | }
|
|
| - | 193 | ||
| - | 194 | public String corEventosPendentes() { |
|
| - | 195 | for (FuncionarioEventoDTO eventoDTO : getEventosDTO()) { |
|
| - | 196 | if (VerificadorUtil.estaNulo(eventoDTO.getUsuarioDTOAuditor())) { |
|
| - | 197 | return "warning"; |
|
| - | 198 | }
|
|
| - | 199 | }
|
|
| - | 200 | return "success"; |
|
| 184 | }
|
201 | }
|
| 185 | 202 | ||
| 186 | }
|
203 | }
|