Advertisement
Guest User

Master Report JRXML

a guest
Mar 18th, 2011
874
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 15.34 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="subReportDemo" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" 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.     <import value="ledger.account.*"/>
  7.     <style name="table">
  8.         <box>
  9.             <pen lineWidth="1.0" lineColor="#000000"/>
  10.         </box>
  11.     </style>
  12.     <style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
  13.         <box>
  14.             <pen lineWidth="0.5" lineColor="#000000"/>
  15.         </box>
  16.     </style>
  17.     <style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
  18.         <box>
  19.             <pen lineWidth="0.5" lineColor="#000000"/>
  20.         </box>
  21.     </style>
  22.     <style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
  23.         <box>
  24.             <pen lineWidth="0.5" lineColor="#000000"/>
  25.         </box>
  26.     </style>
  27.     <subDataset name="Table Dataset 1"/>
  28.     <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
  29.         <defaultValueExpression><![CDATA["F:\\workspace\\ExtraCare\\src\\helper\\"]]></defaultValueExpression>
  30.     </parameter>
  31.     <parameter name="openingBalance" class="java.lang.String"/>
  32.     <parameter name="closingBalance" class="java.lang.String"/>
  33.     <parameter name="openingBalanceSymbol" class="java.lang.String"/>
  34.     <parameter name="closingBalanceSymbol" class="java.lang.String"/>
  35.     <field name="vDate" class="java.lang.String"/>
  36.     <field name="vNo" class="java.lang.String"/>
  37.     <field name="debitAmount" class="java.lang.Double"/>
  38.     <field name="creditAmount" class="java.lang.Double"/>
  39.     <field name="currentBalance" class="java.lang.Double"/>
  40.     <field name="currentBalanceSymbol" class="java.lang.String"/>
  41.     <field name="subReportName" class="java.lang.String"/>
  42.     <field name="parti" class="java.util.List"/>
  43.     <field name="discount" class="java.lang.Double"/>
  44.     <field name="roundOff" class="java.lang.Double"/>
  45.     <field name="roundOffSymbol" class="java.lang.String"/>
  46.     <field name="salesman" class="java.lang.String"/>
  47.     <field name="kasar" class="java.lang.Double"/>
  48.     <variable name="creditLineTotal" class="java.lang.String"/>
  49.     <variable name="debitLineTotal" class="java.lang.String"/>
  50.     <variable name="balanceLineTotal" class="java.lang.String"/>
  51.     <variable name="balanceLineTotalSymbol" class="java.lang.String"/>
  52.     <variable name="caretPosition" class="java.lang.Integer" resetType="Column">
  53.         <variableExpression><![CDATA[$F{vDate}.lastIndexOf("-")]]></variableExpression>
  54.     </variable>
  55.     <background>
  56.         <band splitType="Stretch"/>
  57.     </background>
  58.     <title>
  59.         <band height="79" splitType="Stretch"/>
  60.     </title>
  61.     <pageHeader>
  62.         <band height="27" splitType="Stretch">
  63.             <frame>
  64.                 <reportElement x="3" y="0" width="552" height="24"/>
  65.                 <image>
  66.                     <reportElement x="2" y="0" width="20" height="18"/>
  67.                     <imageExpression class="java.lang.String"><![CDATA["F:\\workspace\\ExtraCare\\WebRoot\\images\\userinfo.gif"]]></imageExpression>
  68.                 </image>
  69.                 <textField>
  70.                     <reportElement x="29" y="0" width="520" height="20"/>
  71.                     <textElement/>
  72.                     <textFieldExpression class="java.lang.String"><![CDATA[$P{openingBalance}]]></textFieldExpression>
  73.                 </textField>
  74.                 <line>
  75.                     <reportElement x="3" y="21" width="546" height="3"/>
  76.                 </line>
  77.             </frame>
  78.         </band>
  79.     </pageHeader>
  80.     <columnHeader>
  81.         <band height="20" splitType="Stretch">
  82.             <frame>
  83.                 <reportElement x="0" y="0" width="802" height="20"/>
  84.                 <staticText>
  85.                     <reportElement x="626" y="0" width="78" height="20"/>
  86.                     <box leftPadding="1">
  87.                         <pen lineWidth="1.0"/>
  88.                         <topPen lineWidth="1.0"/>
  89.                         <leftPen lineWidth="1.0"/>
  90.                         <bottomPen lineWidth="1.0"/>
  91.                         <rightPen lineWidth="1.0"/>
  92.                     </box>
  93.                     <textElement/>
  94.                     <text><![CDATA[Credit]]></text>
  95.                 </staticText>
  96.                 <staticText>
  97.                     <reportElement x="0" y="0" width="44" height="20"/>
  98.                     <box leftPadding="1">
  99.                         <pen lineWidth="1.0"/>
  100.                         <topPen lineWidth="1.0"/>
  101.                         <leftPen lineWidth="1.0"/>
  102.                         <bottomPen lineWidth="1.0"/>
  103.                         <rightPen lineWidth="1.0"/>
  104.                     </box>
  105.                     <textElement/>
  106.                     <text><![CDATA[Date]]></text>
  107.                 </staticText>
  108.                 <staticText>
  109.                     <reportElement x="44" y="0" width="73" height="20"/>
  110.                     <box leftPadding="1">
  111.                         <pen lineWidth="1.0"/>
  112.                         <topPen lineWidth="1.0"/>
  113.                         <leftPen lineWidth="1.0"/>
  114.                         <bottomPen lineWidth="1.0"/>
  115.                         <rightPen lineWidth="1.0"/>
  116.                     </box>
  117.                     <textElement/>
  118.                     <text><![CDATA[Number]]></text>
  119.                 </staticText>
  120.                 <staticText>
  121.                     <reportElement x="117" y="0" width="431" height="20"/>
  122.                     <box leftPadding="1">
  123.                         <pen lineWidth="1.0"/>
  124.                         <topPen lineWidth="1.0"/>
  125.                         <leftPen lineWidth="1.0"/>
  126.                         <bottomPen lineWidth="1.0"/>
  127.                         <rightPen lineWidth="1.0"/>
  128.                     </box>
  129.                     <textElement/>
  130.                     <text><![CDATA[Particulars]]></text>
  131.                 </staticText>
  132.                 <staticText>
  133.                     <reportElement x="548" y="0" width="78" height="20"/>
  134.                     <box leftPadding="1">
  135.                         <pen lineWidth="1.0"/>
  136.                         <topPen lineWidth="1.0"/>
  137.                         <leftPen lineWidth="1.0"/>
  138.                         <bottomPen lineWidth="1.0"/>
  139.                         <rightPen lineWidth="1.0"/>
  140.                     </box>
  141.                     <textElement/>
  142.                     <text><![CDATA[Debit]]></text>
  143.                 </staticText>
  144.                 <staticText>
  145.                     <reportElement x="704" y="0" width="78" height="20"/>
  146.                     <box leftPadding="1">
  147.                         <pen lineWidth="1.0"/>
  148.                         <topPen lineWidth="1.0"/>
  149.                         <leftPen lineWidth="1.0"/>
  150.                         <bottomPen lineWidth="1.0"/>
  151.                         <rightPen lineWidth="1.0"/>
  152.                     </box>
  153.                     <textElement/>
  154.                     <text><![CDATA[Balance]]></text>
  155.                 </staticText>
  156.             </frame>
  157.             <staticText>
  158.                 <reportElement x="782" y="0" width="20" height="20"/>
  159.                 <box leftPadding="1">
  160.                     <pen lineWidth="1.0"/>
  161.                     <topPen lineWidth="1.0"/>
  162.                     <leftPen lineWidth="1.0"/>
  163.                     <bottomPen lineWidth="1.0"/>
  164.                     <rightPen lineWidth="1.0"/>
  165.                 </box>
  166.                 <textElement/>
  167.                 <text><![CDATA[]]></text>
  168.             </staticText>
  169.         </band>
  170.     </columnHeader>
  171.     <detail>
  172.         <band height="20" splitType="Stretch">
  173.             <frame>
  174.                 <reportElement x="0" y="0" width="802" height="20"/>
  175.                 <subreport isUsingCache="true" runToBottom="false">
  176.                     <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="117" y="0" width="430" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true">
  177.                         <printWhenExpression><![CDATA[$F{subReportName}.equals( "subReportDemo_subreport1.jasper" )]]></printWhenExpression>
  178.                     </reportElement>
  179.                     <subreportParameter name="salesman">
  180.                         <subreportParameterExpression><![CDATA[$F{salesman}]]></subreportParameterExpression>
  181.                     </subreportParameter>
  182.                     <subreportParameter name="kasar">
  183.                         <subreportParameterExpression><![CDATA[$F{kasar}]]></subreportParameterExpression>
  184.                     </subreportParameter>
  185.                     <subreportParameter name="roundoff">
  186.                         <subreportParameterExpression><![CDATA[$F{roundOff}]]></subreportParameterExpression>
  187.                     </subreportParameter>
  188.                     <subreportParameter name="roundoffSymbol">
  189.                         <subreportParameterExpression><![CDATA[$F{roundOffSymbol}]]></subreportParameterExpression>
  190.                     </subreportParameter>
  191.                     <subreportParameter name="discount">
  192.                         <subreportParameterExpression><![CDATA[$F{discount}]]></subreportParameterExpression>
  193.                     </subreportParameter>
  194.                     <dataSourceExpression><![CDATA[$F{subReportName}.equals( "subReportDemo_subreport1.jasper" ) ? new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{parti}) : new JREmptyDataSource()]]></dataSourceExpression>
  195.                     <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "/subReportDemo_subreport1.jasper"]]></subreportExpression>
  196.                 </subreport>
  197.                 <textField isBlankWhenNull="true">
  198.                     <reportElement stretchType="RelativeToTallestObject" x="44" y="0" width="73" height="20"/>
  199.                     <box leftPadding="1">
  200.                         <pen lineWidth="1.0"/>
  201.                         <topPen lineWidth="1.0"/>
  202.                         <leftPen lineWidth="1.0"/>
  203.                         <bottomPen lineWidth="1.0"/>
  204.                         <rightPen lineWidth="1.0"/>
  205.                     </box>
  206.                     <textElement verticalAlignment="Middle"/>
  207.                     <textFieldExpression class="java.lang.String"><![CDATA[$F{vNo}]]></textFieldExpression>
  208.                 </textField>
  209.                 <textField isBlankWhenNull="true">
  210.                     <reportElement stretchType="RelativeToTallestObject" x="626" y="0" width="78" height="20"/>
  211.                     <box leftPadding="1">
  212.                         <pen lineWidth="1.0"/>
  213.                         <topPen lineWidth="1.0"/>
  214.                         <leftPen lineWidth="1.0"/>
  215.                         <bottomPen lineWidth="1.0"/>
  216.                         <rightPen lineWidth="1.0"/>
  217.                     </box>
  218.                     <textElement verticalAlignment="Middle"/>
  219.                     <textFieldExpression class="java.lang.Double"><![CDATA[$F{creditAmount}]]></textFieldExpression>
  220.                 </textField>
  221.                 <textField isStretchWithOverflow="true" isBlankWhenNull="true">
  222.                     <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="44" height="20"/>
  223.                     <box leftPadding="1">
  224.                         <pen lineWidth="1.0"/>
  225.                         <topPen lineWidth="1.0"/>
  226.                         <leftPen lineWidth="1.0"/>
  227.                         <bottomPen lineWidth="1.0"/>
  228.                         <rightPen lineWidth="1.0"/>
  229.                     </box>
  230.                     <textElement verticalAlignment="Middle"/>
  231.                     <textFieldExpression class="java.lang.String"><![CDATA[($F{vDate}.substring(0,$V{caretPosition}.intValue()+1) +
  232. $F{vDate}.substring(($V{caretPosition}.intValue()+3),$F{vDate}.length()))]]></textFieldExpression>
  233.                 </textField>
  234.                 <textField isBlankWhenNull="true">
  235.                     <reportElement stretchType="RelativeToTallestObject" x="548" y="0" width="78" height="20"/>
  236.                     <box leftPadding="1">
  237.                         <pen lineWidth="1.0"/>
  238.                         <topPen lineWidth="1.0"/>
  239.                         <leftPen lineWidth="1.0"/>
  240.                         <bottomPen lineWidth="1.0"/>
  241.                         <rightPen lineWidth="1.0"/>
  242.                     </box>
  243.                     <textElement verticalAlignment="Middle"/>
  244.                     <textFieldExpression class="java.lang.Double"><![CDATA[$F{debitAmount}]]></textFieldExpression>
  245.                 </textField>
  246.                 <subreport runToBottom="false">
  247.                     <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="117" y="0" width="430" height="20" isRemoveLineWhenBlank="true">
  248.                         <printWhenExpression><![CDATA[$F{subReportName}.equals( "paymentSuReport.jasper" )]]></printWhenExpression>
  249.                     </reportElement>
  250.                     <subreportParameter name="kasar">
  251.                         <subreportParameterExpression><![CDATA[$F{kasar}]]></subreportParameterExpression>
  252.                     </subreportParameter>
  253.                     <dataSourceExpression><![CDATA[$F{subReportName}.equals( "paymentSuReport.jasper" ) ? new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{parti}) : new JREmptyDataSource()]]></dataSourceExpression>
  254.                     <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "\\paymentSuReport.jasper"]]></subreportExpression>
  255.                 </subreport>
  256.                 <subreport>
  257.                     <reportElement x="117" y="0" width="430" height="20" isRemoveLineWhenBlank="true">
  258.                         <printWhenExpression><![CDATA[$F{subReportName}.equals( "cashSubReport.jasper" )]]></printWhenExpression>
  259.                     </reportElement>
  260.                     <dataSourceExpression><![CDATA[$F{subReportName}.equals( "cashSubReport.jasper" ) ? new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{parti}) : new JREmptyDataSource()]]></dataSourceExpression>
  261.                     <subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "/cashSubReport.jasper"]]></subreportExpression>
  262.                 </subreport>
  263.                 <frame>
  264.                     <reportElement x="117" y="0" width="431" height="20"/>
  265.                     <box>
  266.                         <pen lineWidth="1.0"/>
  267.                         <topPen lineWidth="1.0"/>
  268.                         <leftPen lineWidth="1.0"/>
  269.                         <bottomPen lineWidth="1.0"/>
  270.                         <rightPen lineWidth="1.0"/>
  271.                     </box>
  272.                 </frame>
  273.             </frame>
  274.             <textField isBlankWhenNull="true">
  275.                 <reportElement stretchType="RelativeToTallestObject" x="782" y="0" width="20" height="20"/>
  276.                 <box leftPadding="1">
  277.                     <pen lineWidth="1.0"/>
  278.                     <topPen lineWidth="1.0"/>
  279.                     <leftPen lineWidth="1.0"/>
  280.                     <bottomPen lineWidth="1.0"/>
  281.                     <rightPen lineWidth="1.0"/>
  282.                 </box>
  283.                 <textElement verticalAlignment="Middle"/>
  284.                 <textFieldExpression class="java.lang.String"><![CDATA[$F{currentBalanceSymbol}]]></textFieldExpression>
  285.             </textField>
  286.             <textField isBlankWhenNull="true">
  287.                 <reportElement stretchType="RelativeToTallestObject" x="704" y="0" width="78" height="20"/>
  288.                 <box leftPadding="1">
  289.                     <pen lineWidth="1.0"/>
  290.                     <topPen lineWidth="1.0"/>
  291.                     <leftPen lineWidth="1.0"/>
  292.                     <bottomPen lineWidth="1.0"/>
  293.                     <rightPen lineWidth="1.0"/>
  294.                 </box>
  295.                 <textElement verticalAlignment="Middle"/>
  296.                 <textFieldExpression class="java.lang.Double"><![CDATA[$F{currentBalance}]]></textFieldExpression>
  297.             </textField>
  298.         </band>
  299.     </detail>
  300.     <columnFooter>
  301.         <band height="20" splitType="Stretch">
  302.             <frame>
  303.                 <reportElement x="0" y="0" width="802" height="20"/>
  304.                 <box>
  305.                     <pen lineWidth="1.0"/>
  306.                     <topPen lineWidth="1.0"/>
  307.                     <leftPen lineWidth="1.0"/>
  308.                     <bottomPen lineWidth="1.0"/>
  309.                     <rightPen lineWidth="1.0"/>
  310.                 </box>
  311.                 <staticText>
  312.                     <reportElement x="0" y="0" width="367" height="20"/>
  313.                     <box leftPadding="1">
  314.                         <pen lineWidth="1.0"/>
  315.                         <topPen lineWidth="1.0"/>
  316.                         <leftPen lineWidth="1.0"/>
  317.                         <bottomPen lineWidth="1.0"/>
  318.                         <rightPen lineWidth="1.0"/>
  319.                     </box>
  320.                     <textElement/>
  321.                     <text><![CDATA[Total]]></text>
  322.                 </staticText>
  323.                 <textField isBlankWhenNull="true">
  324.                     <reportElement x="547" y="0" width="78" height="20"/>
  325.                     <box leftPadding="1">
  326.                         <pen lineWidth="1.0"/>
  327.                         <topPen lineWidth="1.0"/>
  328.                         <leftPen lineWidth="1.0"/>
  329.                         <bottomPen lineWidth="1.0"/>
  330.                         <rightPen lineWidth="1.0"/>
  331.                     </box>
  332.                     <textElement/>
  333.                     <textFieldExpression class="java.lang.String"><![CDATA[$V{debitLineTotal}]]></textFieldExpression>
  334.                 </textField>
  335.                 <textField isBlankWhenNull="true">
  336.                     <reportElement x="626" y="0" width="78" height="20"/>
  337.                     <box leftPadding="1">
  338.                         <pen lineWidth="1.0"/>
  339.                         <topPen lineWidth="1.0"/>
  340.                         <leftPen lineWidth="1.0"/>
  341.                         <bottomPen lineWidth="1.0"/>
  342.                         <rightPen lineWidth="1.0"/>
  343.                     </box>
  344.                     <textElement/>
  345.                     <textFieldExpression class="java.lang.String"><![CDATA[$V{creditLineTotal}]]></textFieldExpression>
  346.                 </textField>
  347.                 <textField isBlankWhenNull="true">
  348.                     <reportElement x="704" y="0" width="78" height="20"/>
  349.                     <box leftPadding="1">
  350.                         <pen lineWidth="1.0"/>
  351.                         <topPen lineWidth="1.0"/>
  352.                         <leftPen lineWidth="1.0"/>
  353.                         <bottomPen lineWidth="1.0"/>
  354.                         <rightPen lineWidth="1.0"/>
  355.                     </box>
  356.                     <textElement/>
  357.                     <textFieldExpression class="java.lang.String"><![CDATA[$V{balanceLineTotal}]]></textFieldExpression>
  358.                 </textField>
  359.                 <textField isBlankWhenNull="true">
  360.                     <reportElement x="782" y="0" width="20" height="20"/>
  361.                     <box leftPadding="1">
  362.                         <pen lineWidth="1.0"/>
  363.                         <topPen lineWidth="1.0"/>
  364.                         <leftPen lineWidth="1.0"/>
  365.                         <bottomPen lineWidth="1.0"/>
  366.                         <rightPen lineWidth="1.0"/>
  367.                     </box>
  368.                     <textElement/>
  369.                     <textFieldExpression class="java.lang.String"><![CDATA[$V{balanceLineTotalSymbol}]]></textFieldExpression>
  370.                 </textField>
  371.             </frame>
  372.         </band>
  373.     </columnFooter>
  374.     <pageFooter>
  375.         <band height="54" splitType="Stretch"/>
  376.     </pageFooter>
  377.     <summary>
  378.         <band height="42" splitType="Stretch"/>
  379.     </summary>
  380. </jasperReport>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement