Rev 650 | Rev 657 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 650 | Rev 656 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | 21 | ||
| 22 | import br.com.ec.core.exception.NegocioException; |
22 | import br.com.ec.core.exception.NegocioException; |
| 23 | import br.com.ec.core.generic.identidade.Identidade; |
23 | import br.com.ec.core.generic.identidade.Identidade; |
| 24 | import br.com.ec.core.util.StringUtil; |
24 | import br.com.ec.core.util.StringUtil; |
| 25 | import br.com.ec.core.util.VerificadorUtil; |
25 | import br.com.ec.core.util.VerificadorUtil; |
| - | 26 | import br.com.ec.domain.dto.AvaliacaoFuncionarioDTO; |
|
| 26 | import br.com.ec.domain.model.tipos.TipoComissionamento; |
27 | import br.com.ec.domain.model.tipos.TipoComissionamento; |
| 27 | 28 | ||
| 28 | @Entity |
29 | @Entity |
| 29 | @Table(name="sec_avaliacao_funcionario", schema="sc_sec") |
30 | @Table(name="sec_avaliacao_funcionario", schema="sc_sec") |
| 30 | public class AvaliacaoFuncionario implements Serializable, Identidade { |
31 | public class AvaliacaoFuncionario implements Serializable, Identidade { |
| Line 391... | Line 392... | ||
| 391 | 392 | ||
| 392 | @Transient |
393 | @Transient |
| 393 | public Double retornarPercentual(Double total, Double meta) { |
394 | public Double retornarPercentual(Double total, Double meta) { |
| 394 | return VerificadorUtil.naoEstaNulo(total) && VerificadorUtil.naoEstaNulo(meta)? meta > new Double(0.0) ? total / meta : new Double(0.0) : new Double(0.0); |
395 | return VerificadorUtil.naoEstaNulo(total) && VerificadorUtil.naoEstaNulo(meta)? meta > new Double(0.0) ? total / meta : new Double(0.0) : new Double(0.0); |
| 395 | }
|
396 | }
|
| 396 | - | ||
| - | 397 | ||
| 397 | }
|
398 | }
|