Rev 259 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 259 | Rev 462 | ||
|---|---|---|---|
| Line 60... | Line 60... | ||
| 60 | Integer ultimoDiaDoMes = DataUtils.getUltimoDiaDoMesAtual().getDate(); |
60 | Integer ultimoDiaDoMes = DataUtils.getUltimoDiaDoMesAtual().getDate(); |
| 61 | Integer diaAtual = DataUtils.getDataAtual().getDate(); |
61 | Integer diaAtual = DataUtils.getDataAtual().getDate(); |
| 62 | return new Double(100*diaAtual/ultimoDiaDoMes); |
62 | return new Double(100*diaAtual/ultimoDiaDoMes); |
| 63 | }
|
63 | }
|
| 64 | 64 | ||
| 65 | - | ||
| 66 | /*
|
- | |
| 67 | - | ||
| 68 | public static String padraoCodigoProduto(String codigoProduto) {
|
65 | public static String padraoCodigoProduto(String codigoProduto) { |
| 69 | try {
|
66 | try { |
| 70 | return !codigoProduto.isEmpty() ? String.format("%06d", new Long(codigoProduto)) : "";
|
67 | return !codigoProduto.isEmpty() ? String.format("%06d", new Long(codigoProduto)) : ""; |
| 71 | } catch (Exception e) {
|
68 | } catch (Exception e) { |
| 72 | return "";
|
69 | return ""; |
| 73 | }
|
70 | }
|
| 74 | }
|
71 | }
|
| 75 |
|
72 | |
| - | 73 | /*
|
|
| - | 74 | ||
| 76 | public static String statusContagem(Date dataVerificar, Date dataContagemSolicitada) {
|
75 | public static String statusContagem(Date dataVerificar, Date dataContagemSolicitada) {
|
| 77 | if (dataVerificar != null) {
|
76 | if (dataVerificar != null) {
|
| 78 | if (VerificadorUtil.naoEstaNulo(dataContagemSolicitada)) {
|
77 | if (VerificadorUtil.naoEstaNulo(dataContagemSolicitada)) {
|
| 79 | if (dataContagemSolicitada.before(dataVerificar)) {
|
78 | if (dataContagemSolicitada.before(dataVerificar)) {
|
| 80 | return "green";
|
79 | return "green";
|