Advertisement
Guest User

main.jrxml

a guest
Sep 6th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.81 KB | None | 0 0
  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="main" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="38750424-97fa-45ab-809c-433bb9be4e70">
  3.     <property name="ireport.zoom" value="1.771561000000001"/>
  4.     <property name="ireport.x" value="0"/>
  5.     <property name="ireport.y" value="0"/>
  6.     <queryString>
  7.         <![CDATA[select 1.4 as "RECORD", 'A' as "GROUP"
  8. from dual
  9.  union all
  10. select 5.0, 'A'
  11. from dual
  12.  union all
  13. select 5.2, 'A'
  14. from dual
  15.  union all
  16. select 13.1, 'B'
  17. from dual
  18.  union all
  19. select 2.0, 'B'
  20. from dual
  21.  union all
  22. select 3.7, 'B'
  23. from dual]]>
  24.     </queryString>
  25.     <field name="RECORD" class="java.math.BigDecimal"/>
  26.     <field name="GROUP" class="java.lang.String"/>
  27.     <variable name="returnSimple" class="java.math.BigDecimal" calculation="System">
  28.         <initialValueExpression><![CDATA[]]></initialValueExpression>
  29.     </variable>
  30.     <variable name="returnSum" class="java.math.BigDecimal" resetType="Group" resetGroup="group" calculation="System">
  31.         <initialValueExpression><![CDATA[]]></initialValueExpression>
  32.     </variable>
  33.     <variable name="returnAvg" class="java.math.BigDecimal" resetType="Group" resetGroup="group" calculation="System">
  34.         <initialValueExpression><![CDATA[]]></initialValueExpression>
  35.     </variable>
  36.     <variable name="returnLowest" class="java.math.BigDecimal" resetType="Group" resetGroup="group" calculation="System">
  37.         <initialValueExpression><![CDATA[]]></initialValueExpression>
  38.     </variable>
  39.     <variable name="returnStdDeviation" class="java.math.BigDecimal" resetType="Group" resetGroup="group" calculation="System">
  40.         <initialValueExpression><![CDATA[]]></initialValueExpression>
  41.     </variable>
  42.     <group name="group">
  43.         <groupExpression><![CDATA[$F{GROUP}]]></groupExpression>
  44.         <groupFooter>
  45.             <band height="39">
  46.                 <staticText>
  47.                     <reportElement x="0" y="0" width="92" height="20" uuid="4d6dc8e7-5a6c-4df5-ae2d-13ed7dd68cb0"/>
  48.                     <text><![CDATA[Summary of group ]]></text>
  49.                 </staticText>
  50.                 <textField>
  51.                     <reportElement x="92" y="0" width="100" height="20" uuid="fe96f6c6-8af7-4097-b16f-313cbbdbb0b9"/>
  52.                     <textFieldExpression><![CDATA[$F{GROUP}]]></textFieldExpression>
  53.                 </textField>
  54.                 <staticText>
  55.                     <reportElement x="202" y="0" width="39" height="20" uuid="5ee8f0d7-0af7-4f85-a688-f7659174a997"/>
  56.                     <text><![CDATA[Sum]]></text>
  57.                 </staticText>
  58.                 <staticText>
  59.                     <reportElement x="295" y="0" width="47" height="20" uuid="d2c80b77-3f65-4f98-927e-30b4d04a3709"/>
  60.                     <text><![CDATA[Average]]></text>
  61.                 </staticText>
  62.                 <staticText>
  63.                     <reportElement x="385" y="0" width="48" height="20" uuid="46d192bb-1d47-49a7-ad50-27be94036609"/>
  64.                     <text><![CDATA[Lowest]]></text>
  65.                 </staticText>
  66.                 <textField>
  67.                     <reportElement x="241" y="0" width="54" height="20" uuid="603d3f64-fd3a-4786-9146-e49892351733"/>
  68.                     <textFieldExpression><![CDATA[$V{returnSum}]]></textFieldExpression>
  69.                 </textField>
  70.                 <textField>
  71.                     <reportElement x="342" y="0" width="43" height="20" uuid="db6615e0-3719-48db-82f5-2e3a9838297f"/>
  72.                     <textFieldExpression><![CDATA[$V{returnAvg}]]></textFieldExpression>
  73.                 </textField>
  74.                 <textField>
  75.                     <reportElement x="433" y="0" width="38" height="20" uuid="8413bc12-2142-41d2-bd81-6614b3b35536"/>
  76.                     <textFieldExpression><![CDATA[$V{returnLowest}]]></textFieldExpression>
  77.                 </textField>
  78.                 <staticText>
  79.                     <reportElement x="471" y="0" width="43" height="20" uuid="ca5407c2-81f1-488a-89c6-25497a3fbe63"/>
  80.                     <text><![CDATA[StdDev]]></text>
  81.                 </staticText>
  82.                 <textField>
  83.                     <reportElement x="514" y="0" width="41" height="20" uuid="7bb9b818-5e23-4b47-bf6f-e82bf72e4172"/>
  84.                     <textFieldExpression><![CDATA[$V{returnStdDeviation}]]></textFieldExpression>
  85.                 </textField>
  86.             </band>
  87.         </groupFooter>
  88.     </group>
  89.     <detail>
  90.         <band height="20">
  91.             <staticText>
  92.                 <reportElement x="31" y="0" width="86" height="20" uuid="836e7ef6-f20d-4694-a4e1-e5b52c3ffa49"/>
  93.                 <text><![CDATA[Record passed]]></text>
  94.             </staticText>
  95.             <textField>
  96.                 <reportElement x="117" y="0" width="100" height="20" uuid="e49ca546-258a-4d0d-9a98-2da7f5ec5993"/>
  97.                 <textFieldExpression><![CDATA[$F{RECORD}]]></textFieldExpression>
  98.             </textField>
  99.             <subreport>
  100.                 <reportElement x="241" y="0" width="69" height="20" uuid="681cf1c5-c052-4d7e-87a1-67e7e599a226"/>
  101.                 <subreportParameter name="id">
  102.                     <subreportParameterExpression><![CDATA[$F{RECORD}]]></subreportParameterExpression>
  103.                 </subreportParameter>
  104.                 <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
  105.                 <returnValue subreportVariable="return" toVariable="returnSimple"/>
  106.                 <returnValue subreportVariable="return" toVariable="returnSum" calculation="Sum"/>
  107.                 <returnValue subreportVariable="return" toVariable="returnAvg" calculation="Average"/>
  108.                 <returnValue subreportVariable="return" toVariable="returnLowest" calculation="Lowest"/>
  109.                 <returnValue subreportVariable="return" toVariable="returnStdDeviation" calculation="StandardDeviation"/>
  110.                 <subreportExpression><![CDATA["subreport.jasper"]]></subreportExpression>
  111.             </subreport>
  112.             <staticText>
  113.                 <reportElement x="355" y="0" width="100" height="20" uuid="c9b1dfac-fcf1-45ca-b6f9-388a4dc9e15e"/>
  114.                 <text><![CDATA[Subreport returned]]></text>
  115.             </staticText>
  116.             <textField evaluationTime="Band" pattern="">
  117.                 <reportElement x="455" y="0" width="100" height="20" uuid="40e51015-c47e-4ad7-b92c-5ff89f2df46f"/>
  118.                 <textFieldExpression><![CDATA[$V{returnSimple}]]></textFieldExpression>
  119.             </textField>
  120.         </band>
  121.     </detail>
  122. </jasperReport>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement