Fixes Bug #0009366
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@71605 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e943d6c0f7
commit
bec1c4af55
|
@ -0,0 +1,102 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
/**
|
||||
* @author Thiago
|
||||
*
|
||||
*/
|
||||
public class RelatorioFormaPagamentoAgencia extends RelatorioDemandas {
|
||||
public RelatorioFormaPagamentoAgencia(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
Date dataIncial = (Date) parametros.get("DATA_INICIAL");
|
||||
|
||||
Date dataFinal = (Date) parametros.get("DATA_FINAL");
|
||||
|
||||
Integer empresa = (Integer) parametros.get("EMPRESA");
|
||||
|
||||
Integer agencia = (Integer) parametros.get("AGENCIA");
|
||||
|
||||
StringBuilder where = new StringBuilder();
|
||||
where.append(" WHERE 1 = 1 ");
|
||||
|
||||
if (dataIncial != null) {
|
||||
where.append(" AND c.fechorventa >= '" + format.format(dataIncial) + "' ");
|
||||
}
|
||||
|
||||
if (dataFinal != null) {
|
||||
where.append(" AND c.fechorventa <= '" + format.format(dataFinal) + "' ");
|
||||
}
|
||||
|
||||
if (empresa != null) {
|
||||
where.append(" AND c.EMPRESAPUNTOVENTA_ID = " + empresa + " ");
|
||||
}
|
||||
|
||||
if (agencia != null) {
|
||||
where.append(" AND pv.PUNTOVENTA_ID = " + agencia + " ");
|
||||
}
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append(" select to_char(c.fechorventa, 'dd/mm/yyyy') as data, ");
|
||||
sql.append(" pv.PUNTOVENTA_ID as agencia, ");
|
||||
sql.append(" fp.DESCPAGO as forma_pagamento, ");
|
||||
sql.append(" sum(nvl(c.PRECIOPAGADO,0)) as tarifa, ");
|
||||
sql.append(" sum(nvl(c.IMPORTEPEDAGIO,0)) as pedagio, ");
|
||||
sql.append(" sum(nvl(c.IMPORTESEGURO,0)) as seguro, ");
|
||||
sql.append(" sum(nvl(c.IMPORTETAXAEMBARQUE,0)) as taxa, ");
|
||||
sql.append(" sum((c.PRECIOPAGADO + c.IMPORTEPEDAGIO + c.IMPORTESEGURO + c.IMPORTETAXAEMBARQUE)) as total, ");
|
||||
sql.append(" count(c.PRECIOPAGADO) as qtde ");
|
||||
sql.append(" from caja c ");
|
||||
sql.append(" join caja_formapago cfp on c.caja_id = cfp.caja_id ");
|
||||
sql.append(" join forma_pago fp on cfp.formapago_id = fp.formapago_id ");
|
||||
sql.append(" join punto_venta pv on pv.PUNTOVENTA_ID = c.PUNTOVENTA_ID ");
|
||||
sql.append(where);
|
||||
sql.append(" group by to_char(c.fechorventa, 'dd/mm/yyyy'), pv.PUNTOVENTA_ID, fp.DESCPAGO, c.EMPRESAPUNTOVENTA_ID ");
|
||||
sql.append(" order by data, agencia, forma_pagamento");
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("DATA", rset.getString("DATA"));
|
||||
dataResult.put("AGENCIA", rset.getString("AGENCIA"));
|
||||
dataResult.put("FORMA_PAGAMENTO", rset.getString("FORMA_PAGAMENTO"));
|
||||
dataResult.put("TARIFA", rset.getString("TARIFA"));
|
||||
dataResult.put("PEDAGIO", rset.getDouble("PEDAGIO"));
|
||||
dataResult.put("SEGURO", rset.getDouble("SEGURO"));
|
||||
dataResult.put("TAXA", rset.getDouble("TAXA"));
|
||||
dataResult.put("TOTAL", rset.getDouble("TOTAL"));
|
||||
dataResult.put("QTDE", rset.getInt("QTDE"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
Binary file not shown.
|
@ -0,0 +1,175 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="relatorioFormaPagamentoAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="832cc8a2-6330-4063-9b36-f96514ae8283">
|
||||
<property name="ireport.zoom" value="1.0"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<parameter name="DATA_INICIAL" class="java.util.Date"/>
|
||||
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||
<queryString language="SQL">
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="DATA" class="java.lang.String"/>
|
||||
<field name="FORMA_PAGAMENTO" class="java.lang.String"/>
|
||||
<field name="AGENCIA" class="java.lang.String"/>
|
||||
<field name="TARIFA" class="java.lang.String"/>
|
||||
<field name="PEDAGIO" class="java.lang.Double"/>
|
||||
<field name="SEGURO" class="java.lang.Double"/>
|
||||
<field name="TAXA" class="java.lang.Double"/>
|
||||
<field name="TOTAL" class="java.lang.Double"/>
|
||||
<field name="QTDE" class="java.lang.Integer"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="102" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement uuid="7f9cea32-d0e7-4c05-9efc-233cdd5137ab" x="1" y="39" width="51" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PERÍODO:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="a355fd56-2041-4ca0-b9bd-c3ed0173f704" x="1" y="82" width="66" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[DATA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="367cee8b-2874-4078-b9c4-90285e81ec06" x="30" y="0" width="802" height="20"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Relatório de Forma de Pagamento por Agência]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c45a1ecd-8b5e-4bd7-9139-56e0844cea7e" x="165" y="39" width="10" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[ - ]]></text>
|
||||
</staticText>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="07dfa225-148c-4de6-a428-3c91f83c4081" x="80" y="39" width="85" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="3948e59f-21d8-47c8-8077-a57af30605c5" x="175" y="39" width="100" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="70c670fb-e9a0-49b8-8332-1eb625b27fc6" x="66" y="82" width="132" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[AGÊNCIA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="1fee5538-4ea6-478e-b565-0733f1433db8" x="198" y="82" width="91" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[FORMA DE PAG.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="aec51c2e-ed8d-47aa-ab7c-77a1f5fc365a" x="594" y="82" width="83" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[TAXAS]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="6aa29773-39b4-4f17-a08d-e296df7df1b9" x="677" y="81" width="63" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[TOTAL]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="73e6808f-fb41-4017-b857-2a1611fd8006" x="289" y="81" width="91" height="20"/>
|
||||
<textElement/>
|
||||
<text><![CDATA[TARIFA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="d381d9e7-bb72-431f-af00-3584f9ca9f7b" x="487" y="82" width="107" height="20"/>
|
||||
<textElement/>
|
||||
<text><![CDATA[SEGURO]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="97055f24-9341-4ac3-8445-7f2d2ebc76e2" x="380" y="81" width="107" height="20"/>
|
||||
<textElement/>
|
||||
<text><![CDATA[PEDÁGIO]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="5a09d3e0-7464-4a7e-8378-544ecfd8d01e" x="740" y="81" width="63" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[QTDE]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</title>
|
||||
<detail>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="66455995-be07-4062-8234-ade8ccfd79c0" x="0" y="0" width="66" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="151a46f2-5c54-4a0e-91c2-a49986a08cff" x="198" y="0" width="91" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{FORMA_PAGAMENTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab" x="66" y="0" width="132" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="d2f490c1-e807-4243-a3e0-b86229a83c6b" x="289" y="0" width="91" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="a3119d26-2d10-40c5-98dc-bf0f6be3fc25" x="380" y="0" width="107" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="ccad4f84-243a-47cf-904a-15c4ba7feee4" x="487" y="0" width="107" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="d098d054-0eef-474a-91d3-c7ea9090ab74" x="594" y="0" width="83" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{TAXA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="dcb305f9-8649-4440-a485-4ada6876b066" x="677" y="0" width="63" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{TOTAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="acacd737-9c59-4893-ac3a-ab43c1909a69" x="740" y="0" width="63" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{QTDE}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<noData>
|
||||
<band height="45">
|
||||
<textField>
|
||||
<reportElement uuid="6c28de84-ceae-409b-bde5-04f66cb9a805" x="198" y="12" width="530" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -0,0 +1,147 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.financeiro;
|
||||
|
||||
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.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFormaPagamentoAgencia;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagamentoAgenciaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
@Controller("formaPagamentoAgenciaController")
|
||||
@Scope("prototype")
|
||||
public class FormaPagamentoAgenciaController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private FormaPagamentoAgenciaService financeiroService;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
private Datebox fecInicio;
|
||||
private Datebox fecFinal;
|
||||
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private List<Empresa> lsEmpresas;
|
||||
|
||||
private MyComboboxPuntoVenta cmbAgencia;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
}
|
||||
|
||||
|
||||
public MyComboboxPuntoVenta getCmbAgencia() {
|
||||
return cmbAgencia;
|
||||
}
|
||||
|
||||
|
||||
public void setCmbAgencia(MyComboboxPuntoVenta cmbAgencia) {
|
||||
this.cmbAgencia = cmbAgencia;
|
||||
}
|
||||
|
||||
|
||||
public FormaPagamentoAgenciaService getFinanceiroService() {
|
||||
return financeiroService;
|
||||
}
|
||||
|
||||
public void setFinanceiroService(FormaPagamentoAgenciaService financeiroService) {
|
||||
this.financeiroService = financeiroService;
|
||||
}
|
||||
|
||||
public DataSource getDataSourceRead() {
|
||||
return dataSourceRead;
|
||||
}
|
||||
|
||||
public void setDataSourceRead(DataSource dataSourceRead) {
|
||||
this.dataSourceRead = dataSourceRead;
|
||||
}
|
||||
|
||||
public MyComboboxEstandar getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresas() {
|
||||
return lsEmpresas;
|
||||
}
|
||||
|
||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
|
||||
public Datebox getFecFinal() {
|
||||
return fecFinal;
|
||||
}
|
||||
|
||||
public void setFecFinal(Datebox fecFinal) {
|
||||
this.fecFinal = fecFinal;
|
||||
}
|
||||
|
||||
public Datebox getFecInicio() {
|
||||
return fecInicio;
|
||||
}
|
||||
|
||||
public void setFecInicio(Datebox fecInicio) {
|
||||
this.fecInicio = fecInicio;
|
||||
}
|
||||
|
||||
public void onClick$btnInforme(Event e) throws Exception {
|
||||
Date dataInicio = fecInicio.getValue();
|
||||
Date dataFinal = fecFinal.getValue();
|
||||
|
||||
Map argsInforme = new HashMap();
|
||||
argsInforme.put("DATA_INICIAL", dataInicio);
|
||||
argsInforme.put("DATA_FINAL", dataFinal);
|
||||
|
||||
if (cmbEmpresa.isValid() && cmbEmpresa.getSelectedItem() != null) {
|
||||
Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId();
|
||||
argsInforme.put("EMPRESA", empresaId);
|
||||
}
|
||||
|
||||
if (cmbAgencia.getSelectedItem() != null) {
|
||||
Integer agencia = ((PuntoVenta) cmbAgencia.getSelectedItem().getValue()).getPuntoventaId();
|
||||
argsInforme.put("AGENCIA", agencia);
|
||||
}
|
||||
|
||||
RelatorioFormaPagamentoAgencia relatorio = new RelatorioFormaPagamentoAgencia(argsInforme, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("formaPagamentoAgenciaController.window.title"), args, MODAL);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
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 ItemMenuRelatorioFormaPagamentoAgencia extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioFormaPagamentoAgencia() {
|
||||
super("formaPagamentoAgenciaController.mniRelatorioFinanceiro.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOFORMAPAGAMENTOAGENCIACONTROLLER";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/informes/formaPagamentoAgencia/formaPagamentoAgencia.zul",
|
||||
Labels.getLabel("formaPagamentoAgenciaController.mniRelatorioFinanceiro.label"), getArgs(), desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -15,7 +15,7 @@ import org.zkoss.util.resource.Labels;
|
|||
public class ItemMenuSeguroKm extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuSeguroKm() {
|
||||
super("busquedaSeguroKmController.window.title");
|
||||
super("busquedaSeguroKmController.semTpp.window.title");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -26,7 +26,7 @@ public class ItemMenuSeguroKm extends DefaultItemMenuSistema {
|
|||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/tarifas/busquedaSeguroKm.zul",
|
||||
Labels.getLabel("busquedaSeguroKmController.window.title"), getArgs() ,desktop);
|
||||
Labels.getLabel("busquedaSeguroKmController.semTpp.window.title"), getArgs() ,desktop);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial;
|
||||
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
@ -15,7 +16,7 @@ import org.zkoss.util.resource.Labels;
|
|||
public class ItemMenuSeguroKm extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuSeguroKm() {
|
||||
super("busquedaSeguroKmController.window.title");
|
||||
super(ApplicationProperties.getInstance().exibeTpp() ? "busquedaSeguroKmController.window.title" : "busquedaSeguroKmController.semTpp.window.title");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -26,7 +27,7 @@ public class ItemMenuSeguroKm extends DefaultItemMenuSistema {
|
|||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/tarifas/busquedaSeguroKm.zul",
|
||||
Labels.getLabel("busquedaSeguroKmController.window.title"), getArgs() ,desktop);
|
||||
Labels.getLabel(ApplicationProperties.getInstance().exibeTpp() ? "busquedaSeguroKmController.window.title" : "busquedaSeguroKmController.semTpp.window.title"), getArgs() ,desktop);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -177,6 +177,7 @@ analitico.integracion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ana
|
|||
analitico.integracion.sisdap=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioSisdap
|
||||
analitico.integracion.aidf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAidf
|
||||
analitico.integracion.relatoriosAnaliticos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.impressaofiscal.relatorios.SubMenuRelatorioFiscalRelatorios
|
||||
analitico.gerenciais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFormaPagamentoAgencia
|
||||
analitico.integracion.relatoriosAnaliticos.financeiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.impressaofiscal.relatorios.ItemMenuFiscalRelatorioFinanceiro
|
||||
analitico.integracion.relatoriosAnaliticos.voucher=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.impressaofiscal.relatorios.ItemMenuFiscalRelatorioVoucher
|
||||
analitico.integracion.relatoriosAnaliticos.voucherCancelados=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.impressaofiscal.relatorios.ItemMenuFiscalRelatorioVoucherCancelados
|
||||
|
|
|
@ -348,10 +348,10 @@ indexController.mniRelatorioConferenciaFormularioFisico.label = Relatório Confe
|
|||
indexController.tipoConfComissao.label=Tipo Conf. Pend. Comissao
|
||||
|
||||
# Relatorio Financeiro
|
||||
financeiroController.mniRelatorioFinanceiro.label = Financeiro
|
||||
financeiroController.window.title = Financeiro
|
||||
financeiroController.lbDataIni.value = Data Início
|
||||
financeiroController.lbDataFin.value = Data Fim
|
||||
formaPagamentoAgenciaController.mniRelatorioFinanceiro.label = Financeiro
|
||||
formaPagamentoAgenciaController.window.title = Financeiro
|
||||
formaPagamentoAgenciaController.lbDataIni.value = Data Início
|
||||
formaPagamentoAgenciaController.lbDataFin.value = Data Fim
|
||||
|
||||
#PARTE REALIZADA POR MANUEL
|
||||
indexController.mnCortesias.label = Cortesias para empleados
|
||||
|
|
|
@ -365,11 +365,13 @@ indexController.mniRelatorioConferenciaFormularioFisico.label = Conferência de
|
|||
indexController.mniAuditoria.label = Auditoria
|
||||
indexController.tipoConfComissao.label=Tipo Conf. Pend. Comissão
|
||||
|
||||
# Relatorio Financeiro
|
||||
financeiroController.mniRelatorioFinanceiro.label = Financeiro
|
||||
financeiroController.window.title = Financeiro
|
||||
financeiroController.lbDataIni.value = Data Início
|
||||
financeiroController.lbDataFin.value = Data Fim
|
||||
# Relatório de Forma de Pagamento por Agência
|
||||
formaPagamentoAgenciaController.mniRelatorioFinanceiro.label = Forma de Pagamento por Agência
|
||||
formaPagamentoAgenciaController.window.title = Forma de Pagamento por Agência
|
||||
formaPagamentoAgenciaController.lbAgencia.value = Agência
|
||||
formaPagamentoAgenciaController.lbDataIni.value = Data Início
|
||||
formaPagamentoAgenciaController.lbDataFin.value = Data Fim
|
||||
formaPagamentoAgenciaController.lbEmpresa.value = Empresa
|
||||
|
||||
# Muestra a Pesquisa Tipo Classe
|
||||
busquedaClaseServicioController.window.title = Tipo de Classe
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page title="RelgerencialEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winFormaPagamentoAgencia"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winFormaPagamentoAgencia"
|
||||
title="${c:l('formaPagamentoAgenciaController.window.title')}"
|
||||
apply="${formaPagamentoAgenciaController}"
|
||||
contentStyle="overflow:auto" width="660px" border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('formaPagamentoAgenciaController.lbAgencia.value')}" />
|
||||
<combobox id="cmbAgencia" width="100%" maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataIni.value')}" />
|
||||
<datebox id="fecInicio" width="90%"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbDataFin.value')}" />
|
||||
<datebox id="fecFinal" width="90%"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('formaPagamentoAgenciaController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" constraint="no empty"
|
||||
width="70%"
|
||||
model="@{winFormaPagamentoAgencia$composer.lsEmpresas}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnInforme" height="20" image="/gui/img/vis.png" width="35px"/>
|
||||
</toolbar>
|
||||
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue