diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEncerramentoCheckin.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEncerramentoCheckin.java new file mode 100644 index 000000000..96cfe0ca8 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEncerramentoCheckin.java @@ -0,0 +1,160 @@ +package com.rjconsultores.ventaboletos.relatorios.impl; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioEncerramentoCheckinBean; +import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; + +import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; + +public class RelatorioEncerramentoCheckin extends Relatorio { + + public static final String DATA_INICIO_SERVICO = "DATA_INICIO_SERVICO"; + public static final String DATA_FIM_SERVICO = "DATA_FIM_SERVICO"; + public static final String DATA_INICIO_ENCERRAMENTO = "DATA_INICIO_ENCERRAMENTO"; + public static final String DATA_FIM_ENCERRAMENTO = "DATA_FIM_ENCERRAMENTO"; + private List lsDadosRelatorio; + + public RelatorioEncerramentoCheckin(Map parametros, Connection conexao) throws Exception { + super(parametros, conexao); + + this.setCustomDataSource(new DataSource(this) { + @Override + public void initDados() throws Exception { + + Connection conexao = this.relatorio.getConexao(); + + Map parametros = this.relatorio.getParametros(); + + String dataInicioServico = null; + if (parametros.containsKey(DATA_INICIO_SERVICO)) { + dataInicioServico = parametros.get(DATA_INICIO_SERVICO).toString() + " 00:00"; + } + + String dataFimServico = null; + if (parametros.containsKey(DATA_FIM_SERVICO)) { + dataFimServico = parametros.get(DATA_FIM_SERVICO).toString() + " 23:59"; + } + + String dataInicioEncerramento = null; + if (parametros.containsKey(DATA_INICIO_ENCERRAMENTO)) { + dataInicioEncerramento = parametros.get(DATA_INICIO_ENCERRAMENTO).toString() + " 00:00"; + } + + String dataFimEncerramento = null; + if (parametros.containsKey(DATA_FIM_ENCERRAMENTO)) { + dataFimEncerramento = parametros.get(DATA_FIM_ENCERRAMENTO).toString() + " 23:59"; + } + + Integer empresa_id = (Integer) parametros.get("empresa_id"); + Integer localidade_id = (Integer) parametros.get("localidade_id"); + + String sql = getSql(dataInicioServico, dataFimServico, dataInicioEncerramento, dataFimEncerramento, empresa_id, localidade_id); + + NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); + + if (dataInicioServico != null && dataFimServico != null) { + stmt.setString("dataInicioServico", dataInicioServico); + stmt.setString("dataFimServico", dataFimServico); + } + + if (dataInicioEncerramento != null && dataFimEncerramento != null) { + stmt.setString("dataInicioEncerramento", dataInicioEncerramento); + stmt.setString("dataFimEncerramento", dataFimEncerramento); + } + + if (empresa_id != null) { + stmt.setInt("empresa_id", empresa_id); + } + + if (localidade_id != null) { + stmt.setInt("localidade_id", localidade_id); + } + + ResultSet rs = stmt.executeQuery(); + + lsDadosRelatorio = new ArrayList(); + + SimpleDateFormat formatadorData = new SimpleDateFormat("dd/MM/yyyy"); + SimpleDateFormat formatadorDataHora = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); + + while (rs.next()) { + RelatorioEncerramentoCheckinBean bean = new RelatorioEncerramentoCheckinBean(); + bean.setServico(rs.getInt("servico")); + bean.setDataServico(formatadorData.format(rs.getDate("data_servico"))); + bean.setLocalidade(rs.getString("localidade")); + bean.setDataEncerramento(formatadorDataHora.format(rs.getDate("data_encerramento"))); + bean.setUsuario(rs.getString("usuario")); + + lsDadosRelatorio.add(bean); + } + + if (lsDadosRelatorio.size() > 0) { + setLsDadosRelatorio(lsDadosRelatorio); + } + } + }); + } + + @Override + protected void processaParametros() throws Exception { + if (parametros.containsKey(DATA_INICIO_SERVICO) && parametros.containsKey(DATA_FIM_SERVICO)) { + this.parametros.put("PERIODO_SERVICO", parametros.get(DATA_INICIO_SERVICO) + " à " + parametros.get(DATA_FIM_SERVICO)); + } + + if (parametros.containsKey(DATA_INICIO_ENCERRAMENTO) && parametros.containsKey(DATA_FIM_ENCERRAMENTO)) { + this.parametros.put("PERIODO_ENCERRAMENTO", parametros.get(DATA_INICIO_ENCERRAMENTO) + " à " + parametros.get(DATA_FIM_ENCERRAMENTO)); + } + } + + private void setLsDadosRelatorio(List lsDadosRelatorio) { + this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio)); + this.lsDadosRelatorio = lsDadosRelatorio; + } + + private String getSql(String dataInicioServico, String dataFimServico, String dataInicioEncerramento, String dataFimEncerramento, Integer empresa_id, Integer localidade_id) { + StringBuilder sb = new StringBuilder(); + sb.append("select c.corrida_id as servico, "); + sb.append("cc.feccorrida as data_servico, "); + sb.append("p.cveparada || ' - ' || p.descparada as localidade, "); + sb.append("cc.fechorcerrado as data_encerramento, "); + sb.append("u.nombusuario as usuario "); + sb.append("from checkin_cerrado cc "); + sb.append("join corrida c on c.corrida_id = cc.corrida_id "); + sb.append("join parada p on p.parada_id = cc.origen_id "); + sb.append("join usuario u on u.usuario_id = cc.usuario_id "); + + if (empresa_id!=null) { + sb.append("join marca m on m.marca_id = c.marca_id "); + } + + sb.append("where cc.activo = 1 "); + + if (dataInicioServico != null && dataFimServico != null) { + sb.append("and cc.feccorrida between to_date(:dataInicioServico, 'dd/mm/yyyy hh24:mi') and to_date(:dataFimServico, 'dd/mm/yyyy hh24:mi') "); + } + + if (dataInicioEncerramento != null && dataFimEncerramento != null) { + sb.append("and cc.fechorcerrado between to_date(:dataInicioEncerramento, 'dd/mm/yyyy hh24:mi') and to_date(:dataFimEncerramento, 'dd/mm/yyyy hh24:mi') "); + } + + if (empresa_id != null) { + sb.append("and m.empresa_id = :empresa_id "); + } + + if (localidade_id != null) { + sb.append("and p.parada_id = :localidade_id "); + } + + sb.append("order by 2, 1, 4, 3, 5"); + + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioEncerramentoCheckin_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioEncerramentoCheckin_es.properties new file mode 100644 index 000000000..0e6b93c1a --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioEncerramentoCheckin_es.properties @@ -0,0 +1,17 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. +msg.a=à + +#Labels header +header.data.hora=Data/Hora\: +header.pagina=Página\: +header.periodo.servico=Período Serviço\: +header.periodo.encerramento=Período Encerramento\: +header.empresa=Empresa\: + +#Labels detail +detail.servico=Serviço +detail.data.servico=Data Serviço +detail.localidade=Localidade +detail.data.encerramento=Data Encerramento +detail.usuario.operacao=Usuário da Operação \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioEncerramentoCheckin_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioEncerramentoCheckin_pt_BR.properties new file mode 100644 index 000000000..0e6b93c1a --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioEncerramentoCheckin_pt_BR.properties @@ -0,0 +1,17 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. +msg.a=à + +#Labels header +header.data.hora=Data/Hora\: +header.pagina=Página\: +header.periodo.servico=Período Serviço\: +header.periodo.encerramento=Período Encerramento\: +header.empresa=Empresa\: + +#Labels detail +detail.servico=Serviço +detail.data.servico=Data Serviço +detail.localidade=Localidade +detail.data.encerramento=Data Encerramento +detail.usuario.operacao=Usuário da Operação \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEncerramentoCheckin.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEncerramentoCheckin.jasper new file mode 100644 index 000000000..94405bf01 Binary files /dev/null and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEncerramentoCheckin.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEncerramentoCheckin.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEncerramentoCheckin.jrxml new file mode 100644 index 000000000..56b648111 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEncerramentoCheckin.jrxml @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + <band height="82" splitType="Stretch"> + <textField isBlankWhenNull="true"> + <reportElement uuid="63ce47a3-7e94-42a2-8325-eceef777fbe2" x="111" y="40" width="221" height="15"/> + <textElement verticalAlignment="Middle"> + <font size="9"/> + </textElement> + <textFieldExpression><![CDATA[$P{PERIODO_ENCERRAMENTO}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy" isBlankWhenNull="true"> + <reportElement uuid="7f5ee01d-f86d-49a4-a2a1-f1c671621ef0" x="111" y="24" width="221" height="15"/> + <textElement textAlignment="Left" verticalAlignment="Middle"> + <font size="9"/> + </textElement> + <textFieldExpression><![CDATA[$P{PERIODO_SERVICO}]]></textFieldExpression> + </textField> + <line> + <reportElement uuid="481b2107-ee62-4815-8a89-8435d34384c8" x="0" y="76" width="555" height="1"/> + </line> + <textField pattern="dd/MM/yyyy"> + <reportElement uuid="4a51f623-fe84-4f71-8bfe-271f36619eb1" x="0" y="24" width="111" height="15"/> + <textElement textAlignment="Left" verticalAlignment="Middle"/> + <textFieldExpression><![CDATA[$R{header.periodo.servico}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy"> + <reportElement uuid="46ecd1c0-ef3e-4274-9094-1b2dbed2fc43" x="0" y="40" width="111" height="15"/> + <textElement textAlignment="Left" verticalAlignment="Middle"/> + <textFieldExpression><![CDATA[$R{header.periodo.encerramento}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy"> + <reportElement uuid="17a5536e-1cf6-48d8-91ad-53d8148af1d6" x="0" y="56" width="111" height="15"/> + <textElement textAlignment="Left" verticalAlignment="Middle"/> + <textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy" isBlankWhenNull="true"> + <reportElement uuid="48f1a994-4bbe-4b8e-948f-81542fa792c3" x="111" y="56" width="433" height="15"/> + <textElement textAlignment="Left" verticalAlignment="Middle"> + <font size="9"/> + </textElement> + <textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy"> + <reportElement uuid="9bc31956-04ad-43d0-bcee-08f7b5bf1145" x="0" y="0" width="343" height="20"/> + <textElement textAlignment="Left" verticalAlignment="Top"> + <font size="14" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression> + </textField> + </band> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jasper index 051bb4235..4b634b196 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jrxml index 0db1d6bc9..b3bcb7e2d 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioMovimentacaoBilhete.jrxml @@ -1,8 +1,8 @@ - - - + + + @@ -95,36 +95,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - @@ -787,6 +762,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioEncerramentoCheckinBean.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioEncerramentoCheckinBean.java new file mode 100644 index 000000000..98cf4b40a --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioEncerramentoCheckinBean.java @@ -0,0 +1,50 @@ +package com.rjconsultores.ventaboletos.relatorios.utilitarios; + +public class RelatorioEncerramentoCheckinBean { + + private Integer servico; + private String dataServico; + private String localidade; + private String dataEncerramento; + private String usuario; + + public Integer getServico() { + return servico; + } + + public void setServico(Integer servico) { + this.servico = servico; + } + + public String getDataServico() { + return dataServico; + } + + public void setDataServico(String dataServico) { + this.dataServico = dataServico; + } + + public String getLocalidade() { + return localidade; + } + + public void setLocalidade(String localidade) { + this.localidade = localidade; + } + + public String getDataEncerramento() { + return dataEncerramento; + } + + public void setDataEncerramento(String dataEncerramento) { + this.dataEncerramento = dataEncerramento; + } + + public String getUsuario() { + return usuario; + } + + public void setUsuario(String usuario) { + this.usuario = usuario; + } +} \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioEncerramentoCheckinController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioEncerramentoCheckinController.java new file mode 100644 index 000000000..ad5bf9ca5 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioEncerramentoCheckinController.java @@ -0,0 +1,123 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.sql.DataSource; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Scope; +import org.springframework.stereotype.Controller; +import org.zkoss.util.resource.Labels; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zul.Datebox; + +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.entidad.Parada; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioEncerramentoCheckin; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.service.EmpresaService; +import com.rjconsultores.ventaboletos.web.utilerias.MensagensUtils; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada; +import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; + +//Mantis 15199 + +@Controller("relatorioEncerramentoCheckinController") +@Scope("prototype") +@SuppressWarnings("serial") +public class RelatorioEncerramentoCheckinController extends MyGenericForwardComposer { + + @Autowired + private DataSource dataSourceRead; + + @Autowired + private EmpresaService empresaService; + + private Datebox dataInicioServico; + private Datebox dataFimServico; + private Datebox dataInicioEncerramento; + private Datebox dataFimEncerramento; + private MyComboboxEstandar cmbEmpresa; + private MyComboboxParada cmbLocalidade; + private List lsEmpresas; + + @Override + public void doAfterCompose(Component comp) throws Exception { + super.doAfterCompose(comp); + lsEmpresas = empresaService.obtenerTodos(); + } + + public void onClick$btnExecutarRelatorio(Event ev) throws Exception { + executarRelatorio(); + } + + private void executarRelatorio() throws Exception { + Map parametros = new HashMap(); + parametros.put("TITULO", Labels.getLabel("relatorioEncerramentoCheckinController.window.title")); + + // Datas + putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO, this.dataInicioServico.getValue()); + putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_FIM_SERVICO, this.dataFimServico.getValue()); + putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO, this.dataInicioEncerramento.getValue()); + putParametrosDate(parametros, RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO, this.dataFimEncerramento.getValue()); + + // Validação datas + if (parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_SERVICO) || !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO) && parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_SERVICO)) { + MensagensUtils.showMessageInformation(Labels.getLabel("relatorioEncerramentoCheckinController.data.servico.obrigatoria"), Labels.getLabel("relatorioEncerramentoCheckinController.window.title")); + return; + } + + if (parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO) || !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO) && parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO)) { + MensagensUtils.showMessageInformation(Labels.getLabel("relatorioEncerramentoCheckinController.data.encerramento.obrigatoria"), Labels.getLabel("relatorioEncerramentoCheckinController.window.title")); + return; + } + + if (!parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_SERVICO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_SERVICO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_INICIO_ENCERRAMENTO) && !parametros.containsKey(RelatorioEncerramentoCheckin.DATA_FIM_ENCERRAMENTO)) { + MensagensUtils.showMessageInformation(Labels.getLabel("relatorioEncerramentoCheckinController.data.obrigatoria"), Labels.getLabel("relatorioEncerramentoCheckinController.window.title")); + return; + } + + // Empresa + if (cmbEmpresa.getSelectedIndex() != -1) { + Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue(); + parametros.put("empresa_id", empresa.getEmpresaId()); + parametros.put("EMPRESA", empresa.getNombempresa()); + } else { + parametros.put("EMPRESA", "TODAS"); + } + + // Localidade + if (cmbLocalidade.getSelectedIndex() != -1) { + parametros.put("localidade_id", ((Parada) cmbLocalidade.getSelectedItem().getValue()).getParadaId()); + } + + Relatorio relatorio = new RelatorioEncerramentoCheckin(parametros, dataSourceRead.getConnection()); + + Map args = new HashMap(); + args.put("relatorio", relatorio); + + openWindow("/component/reportView.zul", Labels.getLabel("relatorioEncerramentoCheckinController.window.title"), args, MODAL); + } + + private void putParametrosDate(Map parametros, String nomeParametro, Date data) { + if (data != null) { + SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + parametros.put(nomeParametro, sdf.format(data)); + } + } + + // gets/sets + public List getLsEmpresas() { + return lsEmpresas; + } + + public void setLsEmpresas(List lsEmpresas) { + this.lsEmpresas = lsEmpresas; + } +} \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioEncerramentoCheckin.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioEncerramentoCheckin.java new file mode 100644 index 000000000..f80c8c1d5 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioEncerramentoCheckin.java @@ -0,0 +1,24 @@ +package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios; + +import org.zkoss.util.resource.Labels; + +import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria; +import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; + +public class ItemMenuRelatorioEncerramentoCheckin extends DefaultItemMenuSistema { + + public ItemMenuRelatorioEncerramentoCheckin() { + super("indexController.mniRelatorioEncerramentoCheckin.label"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOENCERRAMENTOCHECKIN"; + } + + @Override + public void ejecutar() { + PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioEncerramentoCheckin.zul", + Labels.getLabel("relatorioEncerramentoCheckinController.window.title"), getArgs(), desktop); + } +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties index 2a8aeac2a..45acbe6e8 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties @@ -175,6 +175,7 @@ analitico.gerenciais.estatisticos.checkin=com.rjconsultores.ventaboletos.web.uti analitico.gerenciais.estatisticos.relatorioBaixasVendasInternet=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBaixasVendasInternet analitico.gerenciais.estatisticos.relatorioVendaEmbarcada=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendaEmbarcada analitico.gerenciais.estatisticos.movimentacaobilhete=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioMovimentacaoBilhete +analitico.gerenciais.estatisticos.encerramentocheckin=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioEncerramentoCheckin analitico.gerenciais.financeiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.financeiro.SubMenuRelatorioFinanceiro analitico.gerenciais.financeiro.receitaDiariaAgencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioReceitaDiariaAgencia analitico.gerenciais.financeiro.taxas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioTaxasLinha diff --git a/web/WEB-INF/i3-label_es_MX.label b/web/WEB-INF/i3-label_es_MX.label index 694775d15..0276eb30c 100644 --- a/web/WEB-INF/i3-label_es_MX.label +++ b/web/WEB-INF/i3-label_es_MX.label @@ -281,6 +281,7 @@ indexController.mniRelatorioEmpresaCorrida.label = Reporte de la empresa corrida indexController.mniRelatorioEmpresaOnibus.label = Reporte de la empresa autobús indexController.mniRelatorioOCD.label = Reporte de OCD indexController.mniRelatorioMovimentacaoBilhete.label = Movimentações de Bilhetes +indexController.mniRelatorioEncerramentoCheckin.label = Encerramento do Checkin indexController.mniRelatorioGratuidade.label = Gratuidades indexController.mniRelatorioGratuidadeANTT.label = Gratuidades ANTT indexController.mniRelatorioExportacaoIdosoARTESP.label = Reporte Exportación Ancianos ARTESP @@ -8297,4 +8298,16 @@ relatorioMovimentacaoBilheteController.lbOrgaoConcedente.value = Orgão Conceden relatorioMovimentacaoBilheteController.lbStatus = Status relatorioMovimentacaoBilheteController.lbTipoGratuidade.value = Tipos de Passagens relatorioMovimentacaoBilheteController.lbRemoverLinha.value = Remover Linha -relatorioMovimentacaoBilheteController.lbAdicionarLinha.value = Adicionar Linha \ No newline at end of file +relatorioMovimentacaoBilheteController.lbAdicionarLinha.value = Adicionar Linha + +# Relatório Encerramento do Checkin +relatorioEncerramentoCheckinController.window.title = Relatório Encerramento do Checkin +relatorioEncerramentoCheckinController.data.servico.obrigatoria = É necessário preencher a data inicial e final do serviço +relatorioEncerramentoCheckinController.data.encerramento.obrigatoria = É necessário preencher a data inicial e final do encerramento +relatorioEncerramentoCheckinController.data.obrigatoria = Data do Serviço ou Data do Encerramento são obrigatórias +relatorioEncerramentoCheckinController.lbServico.value = Serviço +relatorioEncerramentoCheckinController.lbEncerramento.value = Encerramento +relatorioEncerramentoCheckinController.lbDataInicio.value = Data Início +relatorioEncerramentoCheckinController.lbDataFim.value = Data Final +relatorioEncerramentoCheckinController.lbEmpresa.value = Empresa +relatorioEncerramentoCheckinController.lbLocalidade.value = Localidade \ No newline at end of file diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 6868c52ba..30b910911 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -288,6 +288,7 @@ indexController.mniRelatorioEmpresaCorrida.label = Empresa Corrida indexController.mniRelatorioEmpresaOnibus.label = Empresa Ônibus indexController.mniRelatorioOCD.label = Relatório de OCD indexController.mniRelatorioMovimentacaoBilhete.label = Movimentações de Bilhetes +indexController.mniRelatorioEncerramentoCheckin.label = Encerramento do Checkin indexController.mniRelatorioGratuidade.label = Relatório Tipo Passagem indexController.mniRelatorioGratuidadeANTT.label = Relatório Gratuidades ANTT indexController.mniRelatorioGratuidadeARTESP.label = Relatório Gratuidade ARTESP @@ -8803,4 +8804,16 @@ relatorioMovimentacaoBilheteController.lbOrgaoConcedente.value = Orgão Conceden relatorioMovimentacaoBilheteController.lbStatus = Status relatorioMovimentacaoBilheteController.lbTipoGratuidade.value = Tipos de Passagens relatorioMovimentacaoBilheteController.lbRemoverLinha.value = Remover Linha -relatorioMovimentacaoBilheteController.lbAdicionarLinha.value = Adicionar Linha \ No newline at end of file +relatorioMovimentacaoBilheteController.lbAdicionarLinha.value = Adicionar Linha + +# Relatório Encerramento do Checkin +relatorioEncerramentoCheckinController.window.title = Relatório Encerramento do Checkin +relatorioEncerramentoCheckinController.data.servico.obrigatoria = É necessário preencher a data inicial e final do serviço +relatorioEncerramentoCheckinController.data.encerramento.obrigatoria = É necessário preencher a data inicial e final do encerramento +relatorioEncerramentoCheckinController.data.obrigatoria = Data do Serviço ou Data do Encerramento são obrigatórias +relatorioEncerramentoCheckinController.lbServico.value = Serviço +relatorioEncerramentoCheckinController.lbEncerramento.value = Encerramento +relatorioEncerramentoCheckinController.lbDataInicio.value = Data Início +relatorioEncerramentoCheckinController.lbDataFim.value = Data Final +relatorioEncerramentoCheckinController.lbEmpresa.value = Empresa +relatorioEncerramentoCheckinController.lbLocalidade.value = Localidade \ No newline at end of file diff --git a/web/gui/relatorios/filtroRelatorioEncerramentoCheckin.zul b/web/gui/relatorios/filtroRelatorioEncerramentoCheckin.zul new file mode 100644 index 000000000..9b9887fd7 --- /dev/null +++ b/web/gui/relatorios/filtroRelatorioEncerramentoCheckin.zul @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +