MemoReport.jrxml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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="MemoReport" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" 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. <parameter name="START_DATE" class="java.util.Date">
  7. <defaultValueExpression><![CDATA[new java.util.Date()]]></defaultValueExpression>
  8. </parameter>
  9. <parameter name="END_DATE" class="java.util.Date">
  10. <defaultValueExpression><![CDATA[new java.util.Date()]]></defaultValueExpression>
  11. </parameter>
  12. <parameter name="REKENING_NO" class="java.lang.String"/>
  13. <parameter name="REKENING_OWNER" class="java.lang.String"/>
  14. <queryString>
  15. <![CDATA[SELECT SUM(A08) + SUM(COALESCE(A23, NULL, 0)) GRANDTOTAL, COUNT(A10) TOTAL_BILL
  16. FROM MWTEMP.TEMPTABLE
  17. WHERE A13 IN ('0', '3') AND A15 <> '' AND date(a02) >= $P{START_DATE} AND date(a02) <= $P{END_DATE}]]>
  18. </queryString>
  19. <field name="GRANDTOTAL" class="java.math.BigDecimal"/>
  20. <field name="TOTAL_BILL" class="java.lang.Integer"/>
  21. <background>
  22. <band splitType="Stretch"/>
  23. </background>
  24. <title>
  25. <band height="58" splitType="Stretch">
  26. <textField isStretchWithOverflow="true" isBlankWhenNull="true">
  27. <reportElement x="93" y="19" width="368" height="20"/>
  28. <textElement textAlignment="Center" verticalAlignment="Middle">
  29. <font size="12" isBold="true"/>
  30. </textElement>
  31. <textFieldExpression class="java.lang.String"><![CDATA["No : /M/DOPS/MPD-PDO/".concat(new java.text.SimpleDateFormat("MM/yyyy").format($P{END_DATE}))]]></textFieldExpression>
  32. </textField>
  33. <staticText>
  34. <reportElement x="180" y="1" width="195" height="20"/>
  35. <textElement textAlignment="Center">
  36. <font size="14" isBold="true"/>
  37. </textElement>
  38. <text><![CDATA[MEMO]]></text>
  39. </staticText>
  40. </band>
  41. </title>
  42. <pageHeader>
  43. <band height="140" splitType="Stretch">
  44. <staticText>
  45. <reportElement x="180" y="0" width="257" height="20"/>
  46. <textElement/>
  47. <text><![CDATA[Kepada : Finance and Accounting Division]]></text>
  48. </staticText>
  49. <staticText>
  50. <reportElement x="180" y="20" width="257" height="20"/>
  51. <textElement/>
  52. <text><![CDATA[Dari : Operation and Business Support Division]]></text>
  53. </staticText>
  54. <staticText>
  55. <reportElement x="180" y="40" width="257" height="20"/>
  56. <textElement/>
  57. <text><![CDATA[Perihal : Transaksi Pembayaran PLN Prepaid]]></text>
  58. </staticText>
  59. <staticText>
  60. <reportElement x="0" y="70" width="555" height="13"/>
  61. <box rightPadding="3"/>
  62. <textElement/>
  63. <text><![CDATA[ Sebagaimana kesepakatan bersama antara PT. Bank Tabungan Negara (Persero) dengan]]></text>
  64. </staticText>
  65. <textField isStretchWithOverflow="true" isBlankWhenNull="true">
  66. <reportElement x="0" y="73" width="555" height="58"/>
  67. <textElement verticalAlignment="Middle">
  68. <font size="10" isBold="false"/>
  69. </textElement>
  70. <textFieldExpression class="java.lang.String"><![CDATA["PT. Perusahaan Listrik Negara (Persero) mengenai penerimaan pembayaran jasa listrik melalui system Host to Host," +
  71. "dengan ini disampaikan penerimaan yang harus dipindahbukukan ke rekening PLN untuk transaksi " +
  72. "tanggal: " + (new java.text.SimpleDateFormat("dd MMMM yyyy").format($P{START_DATE})) + " s/d " + (new java.text.SimpleDateFormat("dd MMMM yyyy").format($P{END_DATE})) + ", data dengan rincian sebagai berikut :"]]></textFieldExpression>
  73. </textField>
  74. </band>
  75. </pageHeader>
  76. <columnHeader>
  77. <band height="20">
  78. <staticText>
  79. <reportElement stretchType="RelativeToBandHeight" x="97" y="0" width="106" height="20"/>
  80. <box topPadding="2" leftPadding="4">
  81. <pen lineWidth="0.75"/>
  82. <topPen lineWidth="0.75"/>
  83. <leftPen lineWidth="0.75"/>
  84. <bottomPen lineWidth="0.75"/>
  85. <rightPen lineWidth="0.75"/>
  86. </box>
  87. <textElement verticalAlignment="Top">
  88. <font fontName="SansSerif" size="8" isBold="true"/>
  89. </textElement>
  90. <text><![CDATA[Rekening]]></text>
  91. </staticText>
  92. <staticText>
  93. <reportElement stretchType="RelativeToBandHeight" x="266" y="0" width="101" height="20"/>
  94. <box topPadding="2" leftPadding="0" rightPadding="4">
  95. <pen lineWidth="0.75"/>
  96. <topPen lineWidth="0.75"/>
  97. <leftPen lineWidth="0.75"/>
  98. <bottomPen lineWidth="0.75"/>
  99. <rightPen lineWidth="0.75"/>
  100. </box>
  101. <textElement textAlignment="Right" verticalAlignment="Top">
  102. <font fontName="SansSerif" size="8" isBold="true"/>
  103. </textElement>
  104. <text><![CDATA[Total]]></text>
  105. </staticText>
  106. <staticText>
  107. <reportElement stretchType="RelativeToBandHeight" x="4" y="0" width="93" height="20"/>
  108. <box topPadding="2" leftPadding="4">
  109. <pen lineWidth="0.75"/>
  110. <topPen lineWidth="0.75"/>
  111. <leftPen lineWidth="0.75"/>
  112. <bottomPen lineWidth="0.75"/>
  113. <rightPen lineWidth="0.75"/>
  114. </box>
  115. <textElement verticalAlignment="Top">
  116. <font fontName="SansSerif" size="8" isBold="true"/>
  117. </textElement>
  118. <text><![CDATA[Tujuan]]></text>
  119. </staticText>
  120. <staticText>
  121. <reportElement stretchType="RelativeToBandHeight" x="203" y="0" width="63" height="20"/>
  122. <box topPadding="2" leftPadding="0" rightPadding="4">
  123. <pen lineWidth="0.75"/>
  124. <topPen lineWidth="0.75"/>
  125. <leftPen lineWidth="0.75"/>
  126. <bottomPen lineWidth="0.75"/>
  127. <rightPen lineWidth="0.75"/>
  128. </box>
  129. <textElement textAlignment="Right" verticalAlignment="Top">
  130. <font fontName="SansSerif" size="8" isBold="true"/>
  131. </textElement>
  132. <text><![CDATA[Total BILL]]></text>
  133. </staticText>
  134. </band>
  135. </columnHeader>
  136. <detail>
  137. <band height="20" splitType="Stretch">
  138. <textField isStretchWithOverflow="true" isBlankWhenNull="true">
  139. <reportElement stretchType="RelativeToBandHeight" x="4" y="0" width="93" height="20" isPrintWhenDetailOverflows="true"/>
  140. <box leftPadding="4">
  141. <pen lineWidth="0.75"/>
  142. <topPen lineWidth="0.75" lineStyle="Solid"/>
  143. <leftPen lineWidth="0.75" lineStyle="Solid"/>
  144. <bottomPen lineWidth="0.75" lineStyle="Solid"/>
  145. <rightPen lineWidth="0.75" lineStyle="Solid"/>
  146. </box>
  147. <textElement verticalAlignment="Middle">
  148. <font size="8"/>
  149. </textElement>
  150. </textField>
  151. <textField isStretchWithOverflow="true" isBlankWhenNull="true">
  152. <reportElement stretchType="RelativeToBandHeight" x="97" y="0" width="106" height="20" isPrintWhenDetailOverflows="true"/>
  153. <box leftPadding="4">
  154. <pen lineWidth="0.75"/>
  155. <topPen lineWidth="0.75" lineStyle="Solid"/>
  156. <leftPen lineWidth="0.75" lineStyle="Solid"/>
  157. <bottomPen lineWidth="0.75" lineStyle="Solid"/>
  158. <rightPen lineWidth="0.75" lineStyle="Solid"/>
  159. </box>
  160. <textElement verticalAlignment="Middle">
  161. <font size="8"/>
  162. </textElement>
  163. </textField>
  164. <textField isStretchWithOverflow="true" isBlankWhenNull="true">
  165. <reportElement stretchType="RelativeToBandHeight" x="203" y="0" width="63" height="20" isPrintWhenDetailOverflows="true"/>
  166. <box leftPadding="4">
  167. <pen lineWidth="0.75"/>
  168. <topPen lineWidth="0.75" lineStyle="Solid"/>
  169. <leftPen lineWidth="0.75" lineStyle="Solid"/>
  170. <bottomPen lineWidth="0.75" lineStyle="Solid"/>
  171. <rightPen lineWidth="0.75" lineStyle="Solid"/>
  172. </box>
  173. <textElement verticalAlignment="Middle">
  174. <font size="8"/>
  175. </textElement>
  176. </textField>
  177. <textField>
  178. <reportElement x="97" y="0" width="106" height="20"/>
  179. <box leftPadding="3" rightPadding="3"/>
  180. <textElement/>
  181. <textFieldExpression class="java.lang.String"><![CDATA[$P{REKENING_NO}]]></textFieldExpression>
  182. </textField>
  183. <textField>
  184. <reportElement x="4" y="0" width="93" height="20"/>
  185. <box leftPadding="3" rightPadding="3"/>
  186. <textElement/>
  187. <textFieldExpression class="java.lang.String"><![CDATA[$P{REKENING_OWNER}]]></textFieldExpression>
  188. </textField>
  189. <textField pattern="">
  190. <reportElement x="203" y="0" width="63" height="20"/>
  191. <box leftPadding="3" rightPadding="3"/>
  192. <textElement textAlignment="Right"/>
  193. <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{TOTAL_BILL}]]></textFieldExpression>
  194. </textField>
  195. <textField pattern="#,##0.00" isBlankWhenNull="true">
  196. <reportElement x="266" y="0" width="101" height="20"/>
  197. <box leftPadding="3" rightPadding="3">
  198. <topPen lineWidth="1.0"/>
  199. <leftPen lineWidth="1.0"/>
  200. <bottomPen lineWidth="1.0"/>
  201. <rightPen lineWidth="1.0"/>
  202. </box>
  203. <textElement textAlignment="Right"/>
  204. <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{GRANDTOTAL}]]></textFieldExpression>
  205. </textField>
  206. </band>
  207. </detail>
  208. <summary>
  209. <band height="131" splitType="Stretch">
  210. <textField isStretchWithOverflow="true" isBlankWhenNull="true">
  211. <reportElement x="351" y="83" width="176" height="20"/>
  212. <textElement textAlignment="Right" verticalAlignment="Middle">
  213. <font size="10" isBold="false"/>
  214. </textElement>
  215. <textFieldExpression class="java.lang.String"><![CDATA["Jakarta," + (new java.text.SimpleDateFormat("dd MMMM yyyy").format(new java.util.Date()))]]></textFieldExpression>
  216. </textField>
  217. <staticText>
  218. <reportElement x="0" y="12" width="555" height="13"/>
  219. <box rightPadding="3"/>
  220. <textElement/>
  221. <text><![CDATA[Demikian kami sampaikan, atas perhatian dan kerjasamanya diucpakan terimakasih.]]></text>
  222. </staticText>
  223. <staticText>
  224. <reportElement x="-16" y="103" width="543" height="27"/>
  225. <box rightPadding="3"/>
  226. <textElement textAlignment="Right">
  227. <font isBold="true"/>
  228. </textElement>
  229. <text><![CDATA[PT BANK TABUNGAN NEGARA (PERSERO) Tbk
  230. OPERATION AND BUSINESS SUPPORT DIVISION]]></text>
  231. </staticText>
  232. </band>
  233. </summary>
  234. </jasperReport>