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="sale_by_month1.1" language="groovy" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
3
<property name="ireport.zoom" value="2.0"/>
4
<property name="ireport.x" value="453"/>
5
<property name="ireport.y" value="27"/>
6
<queryString language="xPath">
7
<![CDATA[/data/record]]>
9
<field name="id-id" class="java.lang.Integer">
10
<fieldDescription><![CDATA[id-id]]></fieldDescription>
12
<field name="Month-name" class="java.lang.String">
13
<fieldDescription><![CDATA[Month-name]]></fieldDescription>
15
<field name="Total_Sale-total_sale" class="java.lang.Double">
16
<fieldDescription><![CDATA[Total_Sale-total_sale]]></fieldDescription>
18
<variable name="Cero" class="java.lang.Double">
19
<variableExpression><![CDATA[0.0]]></variableExpression>
20
<initialValueExpression><![CDATA[0.0]]></initialValueExpression>
22
<variable name="Total_Sale-total_sale_1" class="java.lang.Double" resetType="Column" calculation="Sum">
23
<variableExpression><![CDATA[$F{Total_Sale-total_sale}]]></variableExpression>
26
<band splitType="Stretch"/>
31
<reportElement mode="Opaque" x="-20" y="-20" width="612" height="45" backcolor="#006699"/>
33
<reportElement x="20" y="10" width="148" height="35" forecolor="#FFFFFF"/>
34
<textElement textAlignment="Center">
35
<font size="10" isBold="true"/>
37
<text><![CDATA[Minerales y Carbones
41
<reportElement x="380" y="10" width="212" height="35" forecolor="#FFFFFF"/>
42
<textElement textAlignment="Center">
43
<font size="10" isBold="false"/>
45
<text><![CDATA[Reporte de ventas mensuales
52
<band height="10" splitType="Stretch"/>
55
<band height="12" splitType="Stretch">
57
<reportElement mode="Opaque" x="138" y="0" width="150" height="12" forecolor="#006699" backcolor="#E6E6E6"/>
59
<pen lineWidth="0.25" lineStyle="Dotted"/>
60
<topPen lineWidth="0.25" lineStyle="Dotted"/>
61
<leftPen lineWidth="0.25" lineStyle="Dotted"/>
62
<bottomPen lineWidth="0.25" lineStyle="Dotted"/>
63
<rightPen lineWidth="0.25" lineStyle="Dotted"/>
68
<text><![CDATA[Mes]]></text>
71
<reportElement mode="Opaque" x="288" y="0" width="100" height="12" forecolor="#006699" backcolor="#E6E6E6"/>
73
<pen lineWidth="0.25" lineStyle="Dotted"/>
74
<topPen lineWidth="0.25" lineStyle="Dotted"/>
75
<leftPen lineWidth="0.25" lineStyle="Dotted"/>
76
<bottomPen lineWidth="0.25" lineStyle="Dotted"/>
77
<rightPen lineWidth="0.25" lineStyle="Dotted"/>
82
<text><![CDATA[Venta]]></text>
87
<band height="13" splitType="Stretch">
89
<reportElement x="138" y="0" width="150" height="13"/>
91
<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
92
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
93
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
94
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
95
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
100
<textFieldExpression class="java.lang.String"><![CDATA[$F{Month-name}]]></textFieldExpression>
102
<textField pattern="#,##0">
103
<reportElement x="288" y="0" width="100" height="13"/>
105
<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
106
<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
107
<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
108
<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
109
<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
111
<textElement textAlignment="Right">
112
<font isBold="false"/>
114
<textFieldExpression class="java.lang.Double"><![CDATA[$F{Total_Sale-total_sale} != null ? $F{Total_Sale-total_sale} : $V{Cero}]]></textFieldExpression>
119
<band height="12" splitType="Stretch">
121
<reportElement x="289" y="0" width="100" height="12"/>
123
<pen lineWidth="0.25" lineColor="#5E93F2"/>
124
<topPen lineWidth="0.25" lineColor="#5E93F2"/>
125
<leftPen lineWidth="0.25" lineColor="#5E93F2"/>
126
<bottomPen lineWidth="0.25" lineColor="#5E93F2"/>
127
<rightPen lineWidth="0.25" lineColor="#5E93F2"/>
129
<textElement textAlignment="Right"/>
130
<textFieldExpression class="java.lang.Double"><![CDATA[$V{Total_Sale-total_sale_1} != null ? $V{Total_Sale-total_sale_1} : $V{Cero}]]></textFieldExpression>
135
<band height="5" splitType="Stretch"/>
138
<band height="250" splitType="Stretch">
141
<reportElement x="0" y="0" width="572" height="250"/>
148
<seriesExpression><![CDATA["Ventas"]]></seriesExpression>
149
<categoryExpression><![CDATA[$F{Month-name}]]></categoryExpression>
150
<valueExpression><![CDATA[$F{Total_Sale-total_sale}]]></valueExpression>
155
<itemLabel color="#000000" backgroundColor="#FFFFFF"/>
161
</categoryAxisFormat>