demo.jrxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Created with Jaspersoft Studio version last-->
  3. <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="demo" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="1af775dd-62b1-469a-b7de-700a0705fe36">
  4. <property name="com.jaspersoft.studio.data.defaultdataadapter" value="localhost"/>
  5. <property name="ireport.callouts" value="callouts.1.fg=0,0,0\n callouts.1.bg=255,255,0\n "/>
  6. <property name="ireport.zoom" value="1.0"/>
  7. <property name="ireport.x" value="0"/>
  8. <property name="ireport.y" value="0"/>
  9. <style name="Title" fontName="Arial" fontSize="26" isBold="true" pdfFontName="Helvetica-Bold"/>
  10. <style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="18"/>
  11. <style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
  12. <style name="Detail" fontName="Arial" fontSize="12"/>
  13. <parameter name="userName" class="java.lang.String"/>
  14. <parameter name="queryString" class="java.lang.String"/>
  15. <queryString>
  16. <![CDATA[$P!{queryString}]]>
  17. </queryString>
  18. <field name="USER_NAME" class="java.lang.String">
  19. <fieldDescription><![CDATA[]]></fieldDescription>
  20. </field>
  21. <field name="name" class="java.lang.String">
  22. <fieldDescription><![CDATA[]]></fieldDescription>
  23. </field>
  24. <field name="groupid" class="java.lang.String">
  25. <fieldDescription><![CDATA[]]></fieldDescription>
  26. </field>
  27. <group name="Group1">
  28. <groupExpression><![CDATA[$F{USER_NAME}]]></groupExpression>
  29. <groupHeader>
  30. <band height="37">
  31. <textField>
  32. <reportElement style="SubTitle" x="47" y="13" width="413" height="24" forecolor="#006600" uuid="07d8e469-c212-498c-8c15-b6a0a46cfd44"/>
  33. <textElement>
  34. <font isBold="true"/>
  35. </textElement>
  36. <textFieldExpression><![CDATA[$F{USER_NAME}]]></textFieldExpression>
  37. </textField>
  38. <rectangle>
  39. <reportElement mode="Opaque" x="0" y="13" width="36" height="24" forecolor="#CCCCCC" backcolor="#CCCCCC" uuid="af79dad1-690c-420d-8c42-25e92de8f1aa"/>
  40. </rectangle>
  41. </band>
  42. </groupHeader>
  43. <groupFooter>
  44. <band height="6"/>
  45. </groupFooter>
  46. </group>
  47. <group name="Group2">
  48. <groupExpression><![CDATA[$F{name}]]></groupExpression>
  49. <groupHeader>
  50. <band height="24">
  51. <textField>
  52. <reportElement style="SubTitle" x="0" y="4" width="460" height="20" uuid="94ccfc96-9f87-40aa-9b0c-5f5fb456c81e"/>
  53. <textElement>
  54. <font fontName="宋体" size="16" isBold="true" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  55. </textElement>
  56. <textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
  57. </textField>
  58. </band>
  59. </groupHeader>
  60. </group>
  61. <group name="groupid">
  62. <groupExpression><![CDATA[$F{groupid}]]></groupExpression>
  63. </group>
  64. <background>
  65. <band splitType="Stretch"/>
  66. </background>
  67. <title>
  68. <band height="70" splitType="Stretch">
  69. <image>
  70. <reportElement x="275" y="0" width="300" height="64" uuid="3cabdc88-5eca-45e5-b2e0-e687c6f87f4a"/>
  71. <imageExpression><![CDATA["http://localhost:8080/ynet/yw/eu/jasper/demo/leaf_banner_green.png"]]></imageExpression>
  72. </image>
  73. <staticText>
  74. <reportElement style="Title" x="0" y="13" width="263" height="33" uuid="cca0f95b-55bf-4882-b80f-79a55396f4e0"/>
  75. <textElement verticalAlignment="Middle"/>
  76. <text><![CDATA[Leaf Green Title]]></text>
  77. </staticText>
  78. <staticText>
  79. <reportElement style="SubTitle" x="100" y="46" width="174" height="22" uuid="d25aae8a-64a7-4620-8e1d-6b1a172086db"/>
  80. <text><![CDATA[Leaf Green SubTitle]]></text>
  81. </staticText>
  82. </band>
  83. </title>
  84. <pageHeader>
  85. <band splitType="Stretch"/>
  86. </pageHeader>
  87. <columnHeader>
  88. <band height="36" splitType="Stretch">
  89. <line>
  90. <reportElement positionType="FixRelativeToBottom" x="0" y="35" width="555" height="1" uuid="d95c456d-1f55-40b0-b603-744d7e85ef9f"/>
  91. <graphicElement>
  92. <pen lineWidth="0.5" lineColor="#999999"/>
  93. </graphicElement>
  94. </line>
  95. </band>
  96. </columnHeader>
  97. <detail>
  98. <band height="16" splitType="Stretch">
  99. <line>
  100. <reportElement positionType="FixRelativeToBottom" x="0" y="15" width="555" height="1" uuid="8356c343-33e5-41c2-a4ca-1d870e93ca17"/>
  101. <graphicElement>
  102. <pen lineWidth="0.5" lineColor="#999999"/>
  103. </graphicElement>
  104. </line>
  105. </band>
  106. </detail>
  107. <columnFooter>
  108. <band height="52" splitType="Stretch">
  109. <line>
  110. <reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1" uuid="ad6ae10c-f609-44ff-9fdc-ba32e47a88c2"/>
  111. <graphicElement>
  112. <pen lineWidth="0.5" lineColor="#999999"/>
  113. </graphicElement>
  114. </line>
  115. <textField>
  116. <reportElement x="250" y="35" width="100" height="17" uuid="25159cbe-ba20-4e1d-8abd-f4f835b1c5aa"/>
  117. <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
  118. </textField>
  119. </band>
  120. </columnFooter>
  121. <pageFooter>
  122. <band height="43" splitType="Stretch">
  123. <textField>
  124. <reportElement style="Column header" x="433" y="0" width="80" height="20" uuid="11687c89-a9bd-4fc9-a9a0-351b25eacf1c"/>
  125. <textElement textAlignment="Right">
  126. <font size="10" isBold="false"/>
  127. </textElement>
  128. <textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
  129. </textField>
  130. <textField evaluationTime="Report">
  131. <reportElement style="Column header" x="513" y="0" width="40" height="20" uuid="1c92d332-094c-448e-a67a-79c0ca491e6f"/>
  132. <textElement>
  133. <font size="10" isBold="false"/>
  134. </textElement>
  135. <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
  136. </textField>
  137. <textField pattern="EEEEE dd MMMMM yyyy">
  138. <reportElement style="Column header" x="0" y="0" width="197" height="20" uuid="b889e7d0-8899-4660-bc85-6169dba588ab"/>
  139. <textElement>
  140. <font size="10" isBold="false"/>
  141. </textElement>
  142. <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
  143. </textField>
  144. </band>
  145. </pageFooter>
  146. <summary>
  147. <band splitType="Stretch"/>
  148. </summary>
  149. </jasperReport>