bug #6669
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@49626 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
202bc76ea3
commit
5aa93d765b
|
@ -0,0 +1,29 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.vo.comissao.HistoricoComissao;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioHistoricoComissao extends Relatorio {
|
||||
|
||||
public RelatorioHistoricoComissao(Map<String, Object> parametros, Connection conexao) {
|
||||
super(parametros, conexao);
|
||||
|
||||
List<HistoricoComissao> historico = (List<HistoricoComissao>) parametros.get("historico");
|
||||
setLsDadosRelatorio(historico);
|
||||
}
|
||||
|
||||
public void setLsDadosRelatorio(List<HistoricoComissao> historico) {
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(historico));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,457 @@
|
|||
<?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="RelatorioHistoricoComissao" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="1d365136-23ec-4fe0-9a67-69b976f55a04">
|
||||
<property name="ireport.zoom" value="1.0"/>
|
||||
<property name="ireport.x" value="10"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<parameter name="periodoInicial" class="java.util.Date"/>
|
||||
<parameter name="periodoFinal" class="java.util.Date"/>
|
||||
<parameter name="empresa" class="java.lang.String"/>
|
||||
<parameter name="puntoventa" class="java.lang.String"/>
|
||||
<field name="competencia" class="java.lang.String"/>
|
||||
<field name="dataPagamento" class="java.util.Date"/>
|
||||
<field name="indPago" class="java.lang.Boolean"/>
|
||||
<field name="comissaoBpr" class="java.math.BigDecimal"/>
|
||||
<field name="receitaExcessobagagem" class="java.math.BigDecimal"/>
|
||||
<field name="receitaSeguroopcional" class="java.math.BigDecimal"/>
|
||||
<field name="receitaOutros" class="java.math.BigDecimal"/>
|
||||
<field name="descontosEventuais" class="java.math.BigDecimal"/>
|
||||
<field name="royaties" class="java.math.BigDecimal"/>
|
||||
<field name="issRetido" class="java.math.BigDecimal"/>
|
||||
<field name="bonificacaoMetas" class="java.math.BigDecimal"/>
|
||||
<field name="entregasPassagem" class="java.math.BigDecimal"/>
|
||||
<field name="pagamento" class="java.lang.String"/>
|
||||
<field name="usuarioPagamento" class="java.lang.String"/>
|
||||
<field name="usuarioLancamento" class="java.lang.String"/>
|
||||
<field name="descontosFixos" class="java.math.BigDecimal"/>
|
||||
<variable name="comissaoBpr" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{comissaoBpr}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="receitaExcessobagagem" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receitaExcessobagagem}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="receitaSeguroopcional" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receitaSeguroopcional}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="receitaOutros" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receitaOutros}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="descontosEventuais" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{descontosEventuais}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="royaties" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{royaties}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="issRetido" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{issRetido}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="bonificacaoMetas" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{bonificacaoMetas}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="entregasPassagem" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{entregasPassagem}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="descontosFixos" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{descontosFixos}]]></variableExpression>
|
||||
</variable>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="87" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement x="0" y="63" width="74" height="23" uuid="561c23fd-d89a-462e-a2fb-dda3fce61209"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Agência:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="0" y="0" width="428" height="20" uuid="38c91d2c-209c-40e6-a819-1163a0243bc9"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Histórico de Comissão]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="0" y="40" width="74" height="23" uuid="9ac23ceb-5a19-4212-90e1-d239548b0269"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Empresa:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="0" y="20" width="74" height="20" uuid="d153c887-fd98-4eed-af4c-05466ae5c40d"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Período:]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement x="74" y="40" width="728" height="23" isPrintWhenDetailOverflows="true" uuid="c61ce766-52c3-4120-8cdc-6b7356175b9e"/>
|
||||
<textElement>
|
||||
<font size="11"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="74" y="63" width="728" height="23" isPrintWhenDetailOverflows="true" uuid="3477f25b-85ea-48bf-b4fc-8d111cdf6dee"/>
|
||||
<textFieldExpression><![CDATA[$P{puntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="MMMMM, yyyy">
|
||||
<reportElement x="74" y="20" width="95" height="20" isPrintWhenDetailOverflows="true" uuid="dd5d9d0c-0a2f-4132-bf57-0a54529a5a82"/>
|
||||
<textElement>
|
||||
<font size="11"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{periodoInicial}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="428" y="0" width="374" height="20" uuid="42848541-f8f7-4e8d-b5db-d368f48d7423"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="MMMMM, yyyy">
|
||||
<reportElement x="240" y="20" width="111" height="20" isPrintWhenDetailOverflows="true" uuid="c2d0883c-32fa-4215-b481-122b797d1ed4"/>
|
||||
<textElement>
|
||||
<font size="11"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{periodoFinal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement x="169" y="20" width="71" height="20" uuid="94739e6c-51ed-42bd-9a08-841a29d97814"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[até]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement x="0" y="86" width="802" height="1" uuid="8ea1d196-daed-4f98-a2f1-f1679b8d4840"/>
|
||||
</line>
|
||||
</band>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="42" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement x="0" y="21" width="47" height="20" uuid="2921121f-2321-437c-9d40-883967695c16"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Competência]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="94" y="20" width="47" height="20" uuid="6475e448-e5fc-41e9-bd1c-3185a2b03b1b"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Status]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="141" y="21" width="42" height="20" uuid="4bca707b-35f2-4ca4-a21c-cd33b851f678"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Bpr]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="183" y="21" width="42" height="20" uuid="a8c42f9e-31bd-4a71-b3f0-48e8e35e4472"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Exc Bag]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="225" y="22" width="42" height="20" uuid="9de27895-d9ec-4bdc-bc5c-925b2908ba59"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Seg Opc]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="267" y="22" width="42" height="20" uuid="96b92099-3d4c-452e-a641-42e888196091"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Outros]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="0" y="0" width="183" height="21" uuid="b04bbd87-054b-4ad3-bb53-16ef0d81d21c"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="183" y="0" width="549" height="21" uuid="08a60c9b-323d-4f1c-a83d-454f48fa8b27"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Comissões]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement x="183" y="20" width="428" height="1" uuid="9683bfb6-f632-4f14-ac70-b3ab6fb7a94e"/>
|
||||
</line>
|
||||
<staticText>
|
||||
<reportElement x="309" y="21" width="42" height="20" uuid="fc414a95-2906-486b-95ce-1ffc1505f4aa"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Desc Ev]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="395" y="22" width="42" height="20" uuid="2ceff32f-c18c-4bc9-8f46-143532a928fb"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Royaties]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="437" y="21" width="42" height="20" uuid="cb0a40b1-4565-4fac-a79a-18427fff6fa1"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Iss Retido]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="479" y="21" width="42" height="20" uuid="8d9a55ad-7ce6-4b48-93f1-2f5d4e8b99b3"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Metas/Bon]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="521" y="20" width="42" height="19" uuid="c6e62d2a-49b1-44bd-8725-a991c33107d4"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Ent Pas]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="563" y="20" width="124" height="20" uuid="b3d99138-08b1-4d8e-91f1-e57ea089b107"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Usuario Pagamento]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="687" y="20" width="115" height="20" uuid="98fa307b-424b-407a-ad41-9d833264c436"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Usuario Lancamento]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement x="0" y="40" width="802" height="1" uuid="fff20ee2-ba87-4d79-9e23-fc2e8823649d"/>
|
||||
</line>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="47" y="20" width="47" height="20" uuid="a60d7032-45dd-4f10-b17e-b697342b0a62"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataPagamento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement x="351" y="21" width="44" height="20" uuid="3def9b99-e836-4a2d-8354-cf70a82586de"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Desc Fixo]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="22" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="47" height="20" uuid="6d3a5c39-4c9f-4cf6-a3c2-d313bfbbe8b0"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{competencia}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="141" y="0" width="42" height="20" uuid="337ef4f9-e1fb-4ca1-a095-4784d0efac1f"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{comissaoBpr}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="183" y="0" width="42" height="20" uuid="a56c0bc5-a25f-487d-938b-181223024875"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{receitaExcessobagagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="225" y="1" width="42" height="20" uuid="42b7da49-eb82-4c0e-b50f-8a58b2256ca4"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{receitaSeguroopcional}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="309" y="0" width="42" height="20" uuid="29548ead-5248-4a7d-b53f-de2e4eb8d141"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{descontosEventuais}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="395" y="1" width="42" height="20" uuid="5d577a35-0196-420c-973f-0ec2bff05798"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{royaties}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="437" y="0" width="42" height="20" uuid="7a74eb0f-7361-4898-b537-ff9f265baa7c"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{issRetido}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="479" y="0" width="42" height="20" uuid="25d97967-fd1e-4728-adc9-3b5677fbbe70"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{bonificacaoMetas}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="521" y="1" width="42" height="20" uuid="5534b90e-0314-400f-ad30-5d0e05f2d33f"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{entregasPassagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="563" y="0" width="124" height="20" uuid="3e7be004-a2ce-4fff-90e5-9a97c323ae2d"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{usuarioPagamento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="687" y="0" width="115" height="20" uuid="c810a54b-415e-4e38-8666-6c1871466a62"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{usuarioLancamento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement x="47" y="0" width="47" height="20" uuid="18d73337-9e0f-4ec2-9327-2540b8343e45"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Data Pagamento]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement x="94" y="0" width="47" height="20" uuid="83077b4f-d1dc-4dfc-9b30-3a9c31ce64fa"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{pagamento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="267" y="1" width="42" height="20" uuid="e1bcb8b2-5a18-4853-8bd1-f0c3beec1ed9"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{receitaOutros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="351" y="0" width="44" height="20" uuid="fec07293-ee0a-4b86-80c6-b3c13cc8bfc9"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{descontosFixos}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band height="22" splitType="Immediate">
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="437" y="2" width="42" height="18" uuid="7b1156e6-fe58-4526-9e17-7529281a52b2"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{issRetido}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="395" y="1" width="42" height="20" uuid="30c97c38-06e1-4452-b081-9bff3b75551b"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{royaties}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="225" y="2" width="42" height="20" uuid="8e88df1a-7756-4d8b-abb9-9700a600d52d"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{receitaSeguroopcional}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="309" y="1" width="42" height="20" uuid="da9a75ad-9305-4b67-a201-9f09ce9934e0"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{descontosEventuais}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="141" y="1" width="42" height="20" uuid="b796239a-3c05-4687-9d57-3ee3759802ef"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{comissaoBpr}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="267" y="2" width="42" height="20" uuid="13e307a5-3f2e-4296-af63-8128b44b521f"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{receitaOutros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="183" y="1" width="42" height="20" uuid="db740fe8-5ea9-4a64-8064-ea6b76466271"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{receitaExcessobagagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="0" width="802" height="1" uuid="f0f34191-7a31-4922-bd01-20ad24bcc353"/>
|
||||
</line>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="521" y="2" width="42" height="18" uuid="bec6a2ec-21f9-47e9-954d-42a51fdb10c1"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{entregasPassagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00">
|
||||
<reportElement x="479" y="2" width="42" height="18" uuid="42279c78-c770-48e2-b1b3-e8bb25a5f8c6"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{bonificacaoMetas}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="R$ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="351" y="1" width="42" height="19" uuid="0ed46890-8c49-4e8f-8f29-d7b8756fe9c4"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{descontosFixos}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band splitType="Stretch"/>
|
||||
</summary>
|
||||
</jasperReport>
|
|
@ -0,0 +1,130 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
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.Combobox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioHistoricoComissao;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.ComissaoService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.vo.comissao.HistoricoComissao;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
@Scope("prototype")
|
||||
@Controller("busquedaHistoricoComissaoController")
|
||||
public class BusquedaHistoricoComissaoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final Logger log = LoggerFactory.getLogger(BusquedaHistoricoComissaoController.class);
|
||||
|
||||
@Autowired
|
||||
private ComissaoService comissaoService;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
private Combobox cmbEmpresa;
|
||||
private List<Empresa> lsEmpresas;
|
||||
private List<PuntoVenta> lsPuntoVenta;
|
||||
private MyComboboxPuntoVenta cmbPuntoVenta;
|
||||
private Datebox datMesInicio;
|
||||
private Datebox datMesFim;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
lsEmpresas = empresaService.obtenerTodos();
|
||||
lsPuntoVenta = new ArrayList<PuntoVenta>();
|
||||
}
|
||||
|
||||
public void onClick$btnRelatorio(Event ev) throws SQLException, InterruptedException {
|
||||
|
||||
try {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) (cmbPuntoVenta.getSelectedItem() != null ? cmbPuntoVenta.getSelectedItem().getValue() : null);
|
||||
Empresa empresa = (Empresa) (cmbEmpresa.getSelectedItem() != null ? cmbEmpresa.getSelectedItem().getValue() : null);
|
||||
Date periodoInicial = datMesInicio.getValue();
|
||||
Date periodoFinal = datMesFim.getValue();
|
||||
|
||||
List<HistoricoComissao> historico = comissaoService.buscaHistoricoComissao(puntoVenta.getPuntoventaId(), empresa.getEmpresaId(), periodoInicial, periodoFinal);
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("puntoventa", puntoVenta.getNombpuntoventa());
|
||||
parametros.put("empresa", empresa.getNombempresa());
|
||||
parametros.put("periodoInicial", periodoInicial);
|
||||
parametros.put("periodoFinal", periodoFinal);
|
||||
parametros.put("historico", historico);
|
||||
|
||||
Relatorio relatorio = new RelatorioHistoricoComissao(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map<String, Relatorio> args = new HashMap<String, Relatorio>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("relatorioAcompanhamentoEquivalentesController.window.title"), args, MODAL);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("", e);
|
||||
Messagebox.show(e.getMessage(), Labels.getLabel("busquedaHistoricoComissaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Combobox getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresas() {
|
||||
return lsEmpresas;
|
||||
}
|
||||
|
||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
|
||||
public List<PuntoVenta> getLsPuntoVenta() {
|
||||
return lsPuntoVenta;
|
||||
}
|
||||
|
||||
public void setLsPuntoVenta(List<PuntoVenta> lsPuntoVenta) {
|
||||
this.lsPuntoVenta = lsPuntoVenta;
|
||||
}
|
||||
|
||||
public MyComboboxPuntoVenta getCmbPuntoVenta() {
|
||||
return cmbPuntoVenta;
|
||||
}
|
||||
|
||||
public void setCmbPuntoVenta(MyComboboxPuntoVenta cmbPuntoVenta) {
|
||||
this.cmbPuntoVenta = cmbPuntoVenta;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.comissao;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuHistoricoComissao extends DefaultItemMenuSistema {
|
||||
public ItemMenuHistoricoComissao() {
|
||||
super("indexController.mniHistoricoComissao.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.COMISSAO.MENU.HISTORICOCOMISSAO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/comissao/busquedaHistoricoComissao.zul",
|
||||
Labels.getLabel("busquedaHistoricoComissaoController.window.title"), getArgs(), desktop);
|
||||
}
|
||||
}
|
|
@ -262,6 +262,7 @@ indexController.mniManutencaoPacote.label=Manutenção Pacote
|
|||
|
||||
indexController.mnSubMenuComissao.label=Comisión
|
||||
indexController.mniCalculoComissao.label=Cálculo Comisión
|
||||
indexController.mniHistoricoComissao.label=Historia de Comisión
|
||||
indexController.mniItemDesconto.label=Elemento de Descuento
|
||||
indexController.mniConferenciaComissao.label=Comisión el Conferencia
|
||||
|
||||
|
@ -5803,6 +5804,10 @@ busquedaCalculoComissaoController.comissao.exception = No hay registro cálculo
|
|||
busquedaCalculoComissaoController.comissao.msg = El registro de cálculo de comisiones para el período seleccionado ha sido cancelada
|
||||
busquedaCalculoComissaoController.registro.comissao.msg = Con éxito registrado el cálculo de comisiones para el período seleccionado
|
||||
|
||||
# Historico Comissao
|
||||
busquedaHistoricoComissaoController.window.title = Historia de Comisión
|
||||
busquedaHistoricoComissaoController.lbRelatorio.value = Relatório de Histórico
|
||||
|
||||
# Busqueda Item Desconto
|
||||
busquedaItemDescontoController.window.title = Elemento de Descuento
|
||||
busquedaItemDescontoController.btnRefresh.tooltiptext = Actualizar
|
||||
|
|
|
@ -274,6 +274,7 @@ indexController.mniManutencaoPacote.label=Manutenção Pacote
|
|||
|
||||
indexController.mnSubMenuComissao.label=Comissão
|
||||
indexController.mniCalculoComissao.label=Cálculo Comissão
|
||||
indexController.mniHistoricoComissao.label=Histórico Comissão
|
||||
indexController.mniItemDesconto.label=Item Desconto
|
||||
indexController.mniConferenciaComissao.label=Conferência Comissão
|
||||
|
||||
|
@ -5944,6 +5945,10 @@ busquedaCalculoComissaoController.comissao.exception = Não existe registro de c
|
|||
busquedaCalculoComissaoController.comissao.msg = O registro de cálculo de comissão para o período selecionado foi cancelado
|
||||
busquedaCalculoComissaoController.registro.comissao.msg = Foi registrado com sucesso o cálculo de comissão para o período selecionado
|
||||
|
||||
# Historico Comissao
|
||||
busquedaHistoricoComissaoController.window.title = Histórico Comissão
|
||||
busquedaHistoricoComissaoController.lbRelatorio.value = Relatório de Histórico
|
||||
|
||||
# Busqueda Item Desconto
|
||||
busquedaItemDescontoController.window.title = Item Desconto
|
||||
busquedaItemDescontoController.btnRefresh.tooltiptext = Atualizar
|
||||
|
|
Binary file not shown.
|
@ -1,67 +0,0 @@
|
|||
<?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="RelatorioCalculoComissao" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="a0e4c57b-f708-4388-8e29-56a2a758254d">
|
||||
<property name="ireport.zoom" value="1.0"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<subDataset name="dsDescontos" uuid="b7826494-a692-464e-8409-8b27d51e65f7">
|
||||
<field name="nomeDesconto" class="java.lang.String"/>
|
||||
<field name="valorDesconto" class="java.math.BigDecimal"/>
|
||||
<field name="tipoDesconto" class="java.lang.String"/>
|
||||
</subDataset>
|
||||
<subDataset name="dsReceitas" uuid="8c2ed585-40f3-494c-9a1a-919a1a19ad7b">
|
||||
<field name="data" class="java.util.Date"/>
|
||||
<field name="receitaComissao" class="java.math.BigDecimal"/>
|
||||
<field name="receitaBPR" class="java.math.BigDecimal"/>
|
||||
<field name="receitaGAP" class="java.math.BigDecimal"/>
|
||||
<field name="gapImpressa" class="java.math.BigDecimal"/>
|
||||
<field name="internet" class="java.math.BigDecimal"/>
|
||||
<field name="cancelados" class="java.math.BigDecimal"/>
|
||||
<field name="canceladosGAP" class="java.math.BigDecimal"/>
|
||||
<field name="devolvidos" class="java.math.BigDecimal"/>
|
||||
<field name="devolvidosGAP" class="java.math.BigDecimal"/>
|
||||
<field name="devolucoesOrigem" class="java.math.BigDecimal"/>
|
||||
<field name="devolucoesOrigemGAP" class="java.math.BigDecimal"/>
|
||||
<field name="receitaExcessoBagagem" class="java.math.BigDecimal"/>
|
||||
<field name="receitaSeguroOpcional" class="java.math.BigDecimal"/>
|
||||
<field name="contImpressa" class="java.lang.Integer"/>
|
||||
<field name="comissaoBPRDiaria" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoExcessoBagagemDiaria" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoSegOpcionalDiaria" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoEntregaPassagemDiaria" class="java.math.BigDecimal"/>
|
||||
</subDataset>
|
||||
<field name="comissaoPagar" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoBPR" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoSegOpcional" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoExcessoBagagem" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoEntregaPassagem" class="java.math.BigDecimal"/>
|
||||
<field name="comissaoBonificaoMetas" class="java.math.BigDecimal"/>
|
||||
<field name="royaties" class="java.math.BigDecimal"/>
|
||||
<field name="retidoISS" class="java.math.BigDecimal"/>
|
||||
<field name="descontos" class="java.math.BigDecimal"/>
|
||||
<field name="lsDescontos" class="java.util.List"/>
|
||||
<field name="lsReceitas" class="java.util.List"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="79" splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="35" splitType="Stretch"/>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="61" splitType="Stretch"/>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="125" splitType="Stretch"/>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band height="45" splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band height="54" splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="42" splitType="Stretch"/>
|
||||
</summary>
|
||||
</jasperReport>
|
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaHistoricoComissao"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaHistoricoComissao"
|
||||
title="${c:l('busquedaHistoricoComissaoController.window.title')}"
|
||||
apply="${busquedaHistoricoComissaoController}"
|
||||
contentStyle="overflow:auto" width="500px" border="normal">
|
||||
|
||||
<toolbar>
|
||||
<button id="btnCerrar"
|
||||
onClick="winBusquedaHistoricoComissao.detach()"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaItemDescontoController.btnCerrar.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="Período de Inicio" />
|
||||
<datebox id="datMesInicio" format="MM/yyyy"
|
||||
lenient="false" constraint="no empty" maxlength="7" />
|
||||
<label value="Período de Fim" />
|
||||
<datebox id="datMesFim" format="MM/yyyy"
|
||||
lenient="false" constraint="no empty" maxlength="7" />
|
||||
</row>
|
||||
<!-- </rows> -->
|
||||
<!-- </grid> -->
|
||||
|
||||
<!-- <grid fixedLayout="true"> -->
|
||||
<!-- <columns> -->
|
||||
<!-- <column width="30%" /> -->
|
||||
<!-- <column width="70%" /> -->
|
||||
<!-- </columns> -->
|
||||
<!-- <rows> -->
|
||||
<!-- <row > -->
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('busquedaUsuarioController.empresa.label')}" />
|
||||
<combobox id="cmbEmpresa" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="100%" mold="rounded" buttonVisible="true"
|
||||
model="@{winBusquedaHistoricoComissao$composer.lsEmpresas}" />
|
||||
</row>
|
||||
|
||||
<!-- <row> -->
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('busquedaUsuarioController.puntoventa.label')}" />
|
||||
<combobox id="cmbPuntoVenta" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||
width="100%" mold="rounded" buttonVisible="true"
|
||||
model="@{winBusquedaHistoricoComissao$composer.lsPuntoVenta}" />
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnRelatorio" image="/gui/img/enginer.png"
|
||||
label="${c:l('busquedaHistoricoComissaoController.lbRelatorio.value')}" />
|
||||
</toolbar>
|
||||
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue