1
<?xml version="1.0" encoding="UTF-8"?>
2
<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="ventas_mensuales_importe_acumulado" language="groovy" pageWidth="792" pageHeight="612" orientation="Landscape" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
3
<property name="ireport.zoom" value="1.0"/>
4
<property name="ireport.x" value="0"/>
5
<property name="ireport.y" value="0"/>
6
<style name="title" mode="Opaque" forecolor="#006699" backcolor="#E6E6E6" fontSize="10">
7
<pen lineStyle="Dotted"/>
8
<box topPadding="0" leftPadding="0">
9
<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
10
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
11
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
12
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
13
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
16
<style name="cuerpo" fontSize="8">
17
<pen lineStyle="Dotted"/>
19
<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
20
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
21
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
22
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
23
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
26
<queryString language="xPath">
27
<![CDATA[/data/record]]>
29
<field name="id-id" class="java.lang.Integer">
30
<fieldDescription><![CDATA[id-id]]></fieldDescription>
32
<field name="Month-name" class="java.lang.String">
33
<fieldDescription><![CDATA[Month-name]]></fieldDescription>
35
<field name="Total_Sale-total_sale" class="java.lang.Double">
36
<fieldDescription><![CDATA[Total_Sale-total_sale]]></fieldDescription>
38
<field name="Nombre-name" class="java.lang.String">
39
<fieldDescription><![CDATA[User-User/Nombre-name]]></fieldDescription>
41
<variable name="Cero" class="java.lang.Double">
42
<variableExpression><![CDATA[0.0]]></variableExpression>
43
<initialValueExpression><![CDATA[0.0]]></initialValueExpression>
45
<variable name="Total_Sale-total_sale_1" class="java.lang.Double" resetType="Column" calculation="Sum">
46
<variableExpression><![CDATA[$F{Total_Sale-total_sale}]]></variableExpression>
48
<variable name="Total_Sale-total_sale_2" class="java.lang.Double" resetType="Column" calculation="Sum">
49
<variableExpression><![CDATA[$F{Total_Sale-total_sale}]]></variableExpression>
51
<variable name="Total_Sale-total_sale_3" class="java.lang.Double" resetType="Column" calculation="Sum">
52
<variableExpression><![CDATA[$F{Total_Sale-total_sale}]]></variableExpression>
55
<band splitType="Stretch"/>
60
<reportElement mode="Opaque" x="-20" y="-20" width="791" height="45" backcolor="#006699"/>
62
<reportElement x="78" y="10" width="139" height="25" forecolor="#FFFFFF"/>
63
<textElement textAlignment="Center">
64
<font size="10" isBold="true"/>
66
<text><![CDATA[Minerales y Carbones de
67
México, S.A de C.V]]></text>
70
<reportElement x="538" y="10" width="93" height="10" forecolor="#FFFFFF"/>
74
<textFieldExpression class="java.lang.String"><![CDATA["Fecha de Impresión: "]]></textFieldExpression>
76
<textField pattern="dd/MM/yyyy">
77
<reportElement x="631" y="10" width="54" height="10" forecolor="#FFFFFF"/>
81
<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
83
<textField pattern="h.mm.ss a">
84
<reportElement x="685" y="10" width="62" height="10" forecolor="#FFFFFF"/>
88
<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
91
<reportElement x="538" y="20" width="209" height="10" forecolor="#FFFFFF"/>
95
<textFieldExpression class="java.lang.String"><![CDATA["Por : " + $F{Nombre-name}]]></textFieldExpression>
98
<reportElement x="286" y="15" width="189" height="15" forecolor="#FFFFFF"/>
99
<textElement textAlignment="Center">
100
<font size="9" isPdfEmbedded="false"/>
102
<text><![CDATA[Ventas Mensuales Importe]]></text>
104
<image scaleImage="FillFrame">
105
<reportElement stretchType="RelativeToTallestObject" x="20" y="5" width="38" height="35"/>
106
<imageExpression class="java.lang.String"><![CDATA["logo_mcm.gif"]]></imageExpression>
115
<band height="12" splitType="Stretch">
117
<reportElement mode="Opaque" x="225" y="0" width="100" height="12" forecolor="#006699" backcolor="#E6E6E6"/>
119
<pen lineWidth="0.25" lineStyle="Dotted"/>
120
<topPen lineWidth="0.25" lineStyle="Dotted"/>
121
<leftPen lineWidth="0.25" lineStyle="Dotted"/>
122
<bottomPen lineWidth="0.25" lineStyle="Dotted"/>
123
<rightPen lineWidth="0.25" lineStyle="Dotted"/>
125
<textElement textAlignment="Center">
126
<font isBold="true"/>
128
<text><![CDATA[Mes]]></text>
131
<reportElement mode="Opaque" x="325" y="0" width="100" height="12" forecolor="#006699" backcolor="#E6E6E6"/>
133
<pen lineWidth="0.25" lineStyle="Dotted"/>
134
<topPen lineWidth="0.25" lineStyle="Dotted"/>
135
<leftPen lineWidth="0.25" lineStyle="Dotted"/>
136
<bottomPen lineWidth="0.25" lineStyle="Dotted"/>
137
<rightPen lineWidth="0.25" lineStyle="Dotted"/>
139
<textElement textAlignment="Center">
140
<font isBold="true"/>
142
<text><![CDATA[Venta]]></text>
145
<reportElement style="title" x="425" y="0" width="100" height="12"/>
146
<textElement textAlignment="Center">
147
<font isBold="true"/>
149
<text><![CDATA[Acumulado]]></text>
157
<reportElement x="225" y="0" width="100" height="13"/>
159
<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
160
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
161
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
162
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
163
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
168
<textFieldExpression class="java.lang.String"><![CDATA[$F{Month-name}]]></textFieldExpression>
170
<textField pattern="#,##0">
171
<reportElement x="325" y="0" width="100" height="13"/>
173
<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
174
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
175
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
176
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
177
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
179
<textElement textAlignment="Right">
180
<font isBold="false"/>
182
<textFieldExpression class="java.lang.Double"><![CDATA[$F{Total_Sale-total_sale} != null ? $F{Total_Sale-total_sale} : $V{Cero}]]></textFieldExpression>
185
<textField pattern="#,##0">
186
<reportElement x="425" y="0" width="100" height="13"/>
188
<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
189
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
190
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
191
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
192
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
194
<textElement textAlignment="Right">
195
<font isBold="true"/>
197
<textFieldExpression class="java.lang.Double"><![CDATA[$V{Total_Sale-total_sale_1} != null ? $V{Total_Sale-total_sale_1} : $V{Cero}]]></textFieldExpression>
202
<band height="13" splitType="Prevent"/>
207
<reportElement mode="Opaque" x="0" y="4" width="712" height="13" backcolor="#E6E6E6"/>
208
<textElement textAlignment="Right">
211
<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
213
<textField evaluationTime="Report">
214
<reportElement mode="Opaque" x="712" y="4" width="40" height="13" backcolor="#E6E6E6"/>
218
<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
220
<textField pattern="EEEEE dd MMMMM yyyy">
221
<reportElement x="0" y="4" width="100" height="13"/>
225
<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
233
<reportElement x="0" y="0" width="752" height="250"/>
240
<seriesExpression><![CDATA["Ventas"]]></seriesExpression>
241
<categoryExpression><![CDATA[$F{Month-name}]]></categoryExpression>
242
<valueExpression><![CDATA[$F{Total_Sale-total_sale}]]></valueExpression>
247
<itemLabel color="#000000" backgroundColor="#FFFFFF"/>
253
</categoryAxisFormat>