Subversion Repositories Integrator Subversion

Rev

Rev 706 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 706 Rev 708
Line 373... Line 373...
373
                        graficoDTO.setTitulo("VENDAS POR DIA");
373
                        graficoDTO.setTitulo("VENDAS POR DIA");
374
                        Calendar dataInicial = DataUtils.obterCalendario(DataUtils.obterData(1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getMes())-1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno())));
374
                        Calendar dataInicial = DataUtils.obterCalendario(DataUtils.obterData(1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getMes())-1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno())));
375
                        int qntMaximaDias = dataInicial.getActualMaximum(Calendar.DAY_OF_MONTH);
375
                        int qntMaximaDias = dataInicial.getActualMaximum(Calendar.DAY_OF_MONTH);
376
                        periodoInicial = DataUtils.obterData(1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getMes())-1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
376
                        periodoInicial = DataUtils.obterData(1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getMes())-1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
377
                        periodoFinal = DataUtils.obterData(qntMaximaDias, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getMes())-1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
377
                        periodoFinal = DataUtils.obterData(qntMaximaDias, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getMes())-1, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
378
                } if (parametrosConsulta.getParametrosPeriodoDTO().tipoPeriodoEhPorMes()) {
-
 
-
 
378
                } else if (parametrosConsulta.getParametrosPeriodoDTO().tipoPeriodoEhPorMes()) {
379
                        graficoDTO.setTitulo("VENDAS POR MÊS");
379
                        graficoDTO.setTitulo("VENDAS POR MÊS");
380
                        periodoInicial = DataUtils.obterData(1, 0, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
380
                        periodoInicial = DataUtils.obterData(1, 0, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
381
                        periodoFinal = DataUtils.obterData(31, 11, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
381
                        periodoFinal = DataUtils.obterData(31, 11, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
382
                } if (parametrosConsulta.getParametrosPeriodoDTO().tipoPeriodoEhPorAno()) {
-
 
-
 
382
                } else if (parametrosConsulta.getParametrosPeriodoDTO().tipoPeriodoEhPorAno()) {
383
                        graficoDTO.setTitulo("VENDAS POR ANO");
383
                        graficoDTO.setTitulo("VENDAS POR ANO");
384
                        periodoInicial = DataUtils.obterData(1, 0, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno())-10);
384
                        periodoInicial = DataUtils.obterData(1, 0, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno())-10);
385
                        periodoFinal = DataUtils.obterData(31, 11, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
385
                        periodoFinal = DataUtils.obterData(31, 11, new Integer(parametrosConsulta.getParametrosPeriodoDTO().getAno()));
386
                } else {
386
                } else {
387
                        return null;
387
                        return null;