~eduardo-bayardo-bias/openobject-addons/addons_minerales

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<?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="ventas_mensuales_importe_acumulado" language="groovy" pageWidth="792" pageHeight="612" orientation="Landscape" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<style name="title" mode="Opaque" forecolor="#006699" backcolor="#E6E6E6" fontSize="10">
		<pen lineStyle="Dotted"/>
		<box topPadding="0" leftPadding="0">
			<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
		</box>
	</style>
	<style name="cuerpo" fontSize="8">
		<pen lineStyle="Dotted"/>
		<box>
			<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
			<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
		</box>
	</style>
	<queryString language="xPath">
		<![CDATA[/data/record]]>
	</queryString>
	<field name="id-id" class="java.lang.Integer">
		<fieldDescription><![CDATA[id-id]]></fieldDescription>
	</field>
	<field name="Month-name" class="java.lang.String">
		<fieldDescription><![CDATA[Month-name]]></fieldDescription>
	</field>
	<field name="Total_Sale-total_sale" class="java.lang.Double">
		<fieldDescription><![CDATA[Total_Sale-total_sale]]></fieldDescription>
	</field>
	<field name="Nombre-name" class="java.lang.String">
		<fieldDescription><![CDATA[User-User/Nombre-name]]></fieldDescription>
	</field>
	<variable name="Cero" class="java.lang.Double">
		<variableExpression><![CDATA[0.0]]></variableExpression>
		<initialValueExpression><![CDATA[0.0]]></initialValueExpression>
	</variable>
	<variable name="Total_Sale-total_sale_1" class="java.lang.Double" resetType="Column" calculation="Sum">
		<variableExpression><![CDATA[$F{Total_Sale-total_sale}]]></variableExpression>
	</variable>
	<variable name="Total_Sale-total_sale_2" class="java.lang.Double" resetType="Column" calculation="Sum">
		<variableExpression><![CDATA[$F{Total_Sale-total_sale}]]></variableExpression>
	</variable>
	<variable name="Total_Sale-total_sale_3" class="java.lang.Double" resetType="Column" calculation="Sum">
		<variableExpression><![CDATA[$F{Total_Sale-total_sale}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="35">
			<frame>
				<reportElement mode="Opaque" x="-20" y="-20" width="791" height="45" backcolor="#006699"/>
				<staticText>
					<reportElement x="78" y="10" width="139" height="25" forecolor="#FFFFFF"/>
					<textElement textAlignment="Center">
						<font size="10" isBold="true"/>
					</textElement>
					<text><![CDATA[Minerales y Carbones de
México, S.A de C.V]]></text>
				</staticText>
				<textField>
					<reportElement x="538" y="10" width="93" height="10" forecolor="#FFFFFF"/>
					<textElement>
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA["Fecha de Impresión: "]]></textFieldExpression>
				</textField>
				<textField pattern="dd/MM/yyyy">
					<reportElement x="631" y="10" width="54" height="10" forecolor="#FFFFFF"/>
					<textElement>
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
				</textField>
				<textField pattern="h.mm.ss a">
					<reportElement x="685" y="10" width="62" height="10" forecolor="#FFFFFF"/>
					<textElement>
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="538" y="20" width="209" height="10" forecolor="#FFFFFF"/>
					<textElement>
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA["Por :  " + $F{Nombre-name}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="286" y="15" width="189" height="15" forecolor="#FFFFFF"/>
					<textElement textAlignment="Center">
						<font size="9" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Ventas Mensuales Importe]]></text>
				</staticText>
				<image scaleImage="FillFrame">
					<reportElement stretchType="RelativeToTallestObject" x="20" y="5" width="38" height="35"/>
					<imageExpression class="java.lang.String"><![CDATA["logo_mcm.gif"]]></imageExpression>
				</image>
			</frame>
		</band>
	</title>
	<pageHeader>
		<band height="10"/>
	</pageHeader>
	<columnHeader>
		<band height="12" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="225" y="0" width="100" height="12" forecolor="#006699" backcolor="#E6E6E6"/>
				<box>
					<pen lineWidth="0.25" lineStyle="Dotted"/>
					<topPen lineWidth="0.25" lineStyle="Dotted"/>
					<leftPen lineWidth="0.25" lineStyle="Dotted"/>
					<bottomPen lineWidth="0.25" lineStyle="Dotted"/>
					<rightPen lineWidth="0.25" lineStyle="Dotted"/>
				</box>
				<textElement textAlignment="Center">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Mes]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="325" y="0" width="100" height="12" forecolor="#006699" backcolor="#E6E6E6"/>
				<box>
					<pen lineWidth="0.25" lineStyle="Dotted"/>
					<topPen lineWidth="0.25" lineStyle="Dotted"/>
					<leftPen lineWidth="0.25" lineStyle="Dotted"/>
					<bottomPen lineWidth="0.25" lineStyle="Dotted"/>
					<rightPen lineWidth="0.25" lineStyle="Dotted"/>
				</box>
				<textElement textAlignment="Center">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Venta]]></text>
			</staticText>
			<staticText>
				<reportElement style="title" x="425" y="0" width="100" height="12"/>
				<textElement textAlignment="Center">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Acumulado]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="13">
			<elementGroup>
				<textField>
					<reportElement x="225" y="0" width="100" height="13"/>
					<box>
						<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
					</box>
					<textElement>
						<font size="10"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{Month-name}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0">
					<reportElement x="325" y="0" width="100" height="13"/>
					<box>
						<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
						<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
					</box>
					<textElement textAlignment="Right">
						<font isBold="false"/>
					</textElement>
					<textFieldExpression class="java.lang.Double"><![CDATA[$F{Total_Sale-total_sale} != null ? $F{Total_Sale-total_sale} : $V{Cero}]]></textFieldExpression>
				</textField>
			</elementGroup>
			<textField pattern="#,##0">
				<reportElement x="425" y="0" width="100" height="13"/>
				<box>
					<pen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
					<topPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
					<leftPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
					<bottomPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
					<rightPen lineWidth="0.25" lineStyle="Dotted" lineColor="#5E93F2"/>
				</box>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[$V{Total_Sale-total_sale_1} != null ? $V{Total_Sale-total_sale_1} : $V{Cero}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="13" splitType="Prevent"/>
	</columnFooter>
	<pageFooter>
		<band height="17">
			<textField>
				<reportElement mode="Opaque" x="0" y="4" width="712" height="13" backcolor="#E6E6E6"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement mode="Opaque" x="712" y="4" width="40" height="13" backcolor="#E6E6E6"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="EEEEE dd MMMMM yyyy">
				<reportElement x="0" y="4" width="100" height="13"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band height="250">
			<bar3DChart>
				<chart>
					<reportElement x="0" y="0" width="752" height="250"/>
					<chartTitle/>
					<chartSubtitle/>
					<chartLegend/>
				</chart>
				<categoryDataset>
					<categorySeries>
						<seriesExpression><![CDATA["Ventas"]]></seriesExpression>
						<categoryExpression><![CDATA[$F{Month-name}]]></categoryExpression>
						<valueExpression><![CDATA[$F{Total_Sale-total_sale}]]></valueExpression>
					</categorySeries>
				</categoryDataset>
				<bar3DPlot>
					<plot/>
					<itemLabel color="#000000" backgroundColor="#FFFFFF"/>
					<categoryAxisFormat>
						<axisFormat>
							<labelFont/>
							<tickLabelFont/>
						</axisFormat>
					</categoryAxisFormat>
					<valueAxisFormat>
						<axisFormat>
							<labelFont/>
							<tickLabelFont/>
						</axisFormat>
					</valueAxisFormat>
				</bar3DPlot>
			</bar3DChart>
		</band>
	</summary>
</jasperReport>