Commit 2f250ffc by taufikyu

revisi report, revisi setup

1 parent ae7f0c0b
<?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="Laporan 16 OPD Per Kode Rekening" pageWidth="595" pageHeight="842" columnWidth="537" leftMargin="29" rightMargin="29" topMargin="28" bottomMargin="20">
<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="Laporan 16 OPD Per Kode Rekening" pageWidth="595" pageHeight="842" columnWidth="537" leftMargin="29" rightMargin="29" topMargin="28" bottomMargin="20" uuid="f6a60c56-b035-4a92-be49-643a93f0c3a7">
<property name="ireport.scriptlethandling" value="0"/>
<property name="ireport.encoding" value="UTF-8"/>
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="ireport.zoom" value="3.2153832150000103"/>
<property name="ireport.x" value="597"/>
<property name="ireport.y" value="192"/>
<import value="net.sf.jasperreports.engine.*"/>
<import value="java.util.*"/>
<import value="net.sf.jasperreports.engine.data.*"/>
......@@ -53,6 +53,7 @@
<field name="status" class="java.lang.String">
<fieldDescription><![CDATA[status]]></fieldDescription>
</field>
<field name="pokok" class="java.lang.String"/>
<variable name="jum_inv" class="java.lang.Double" calculation="Sum">
<variableExpression><![CDATA[Double.valueOf($F{jumlah})]]></variableExpression>
</variable>
......@@ -64,7 +65,7 @@
<groupHeader>
<band height="12">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="537" height="12"/>
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="537" height="12" uuid="6099fbad-61a9-4291-b334-1e984a272269"/>
<box leftPadding="2">
<pen lineWidth="0.25"/>
<topPen lineWidth="0.25"/>
......@@ -82,7 +83,7 @@
<groupFooter>
<band height="13">
<textField>
<reportElement x="0" y="0" width="448" height="13"/>
<reportElement x="0" y="0" width="459" height="13" uuid="a95624ee-483e-42bb-a501-80e4e74b98de"/>
<box>
<pen lineWidth="0.25"/>
<topPen lineWidth="0.25"/>
......@@ -96,7 +97,7 @@
<textFieldExpression><![CDATA["SUB TOTAL "+$F{un_nm}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="448" y="0" width="89" height="13"/>
<reportElement stretchType="RelativeToBandHeight" x="459" y="0" width="78" height="13" uuid="625689a7-52ec-4d8c-bf73-0527cd937554"/>
<box>
<pen lineWidth="0.25"/>
<topPen lineWidth="0.25"/>
......@@ -118,18 +119,18 @@
<title>
<band height="89" splitType="Stretch">
<staticText>
<reportElement x="55" y="52" width="482" height="15"/>
<reportElement x="55" y="52" width="482" height="15" uuid="f3b545fc-8625-4414-bd53-c03d88c9f870"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[Laporan OPD Per Kode Rekening]]></text>
</staticText>
<image>
<reportElement x="0" y="1" width="55" height="46"/>
<reportElement x="0" y="1" width="55" height="46" uuid="2fa11bdb-3ed9-4a04-9de7-94f4439a5529"/>
<imageExpression><![CDATA[$F{logo}]]></imageExpression>
</image>
<staticText>
<reportElement x="0" y="49" width="537" height="8"/>
<reportElement x="0" y="49" width="537" height="8" uuid="b47cb704-57f9-4bee-8ed1-cedd2ec2bb9f"/>
<box>
<topPen lineWidth="0.25"/>
<bottomPen lineWidth="0.0"/>
......@@ -140,14 +141,14 @@
<text><![CDATA[]]></text>
</staticText>
<staticText>
<reportElement x="55" y="3" width="482" height="15"/>
<reportElement x="55" y="3" width="482" height="15" uuid="a41deea1-8710-44ae-a3c3-a558b7d579d1"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[PEMERINTAH DAERAH PROVINSI JAWA BARAT]]></text>
</staticText>
<staticText>
<reportElement x="303" y="66" width="27" height="15"/>
<reportElement x="303" y="66" width="27" height="15" uuid="e1246e11-a1ec-484f-a693-cbced0f17d99"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
......@@ -160,7 +161,7 @@
<text><![CDATA[s.d]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="328" y="66" width="57" height="15"/>
<reportElement stretchType="RelativeToBandHeight" x="328" y="66" width="57" height="15" uuid="a230d467-ed77-4938-9acf-a0bafee8ca49"/>
<box leftPadding="2">
<leftPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
......@@ -171,7 +172,7 @@
<textFieldExpression><![CDATA[$F{akhir}.substring(8,10)+"-"+$F{akhir}.substring(5,7)+"-"+$F{akhir}.substring(0,4)]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="253" y="66" width="57" height="15"/>
<reportElement stretchType="RelativeToBandHeight" x="253" y="66" width="57" height="15" uuid="b077cddb-b34e-4f11-bf71-e12be81d1b31"/>
<box leftPadding="2">
<leftPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
......@@ -182,7 +183,7 @@
<textFieldExpression><![CDATA[$F{awal}.substring(8,10)+"-"+$F{awal}.substring(5,7)+"-"+$F{awal}.substring(0,4)]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="205" y="66" width="54" height="15"/>
<reportElement x="205" y="66" width="54" height="15" uuid="1cddf468-fbcd-4cf9-9383-c1d56a3fcbaf"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
......@@ -195,14 +196,14 @@
<text><![CDATA[Periode]]></text>
</staticText>
<staticText>
<reportElement x="55" y="18" width="482" height="15"/>
<reportElement x="55" y="18" width="482" height="15" uuid="8e3f5db9-0c55-4f82-b5f2-2c62f54fccd0"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Badan Pendapatan Daerah]]></text>
</staticText>
<staticText>
<reportElement x="55" y="32" width="482" height="15"/>
<reportElement x="55" y="32" width="482" height="15" uuid="46c8574a-2dc7-42ad-91cc-df339a4eed32"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
......@@ -213,7 +214,7 @@
<pageHeader>
<band height="12" splitType="Stretch">
<staticText>
<reportElement x="68" y="0" width="169" height="12"/>
<reportElement x="68" y="0" width="103" height="12" uuid="b9004cf0-3295-438a-b80e-0a4272a34fdd"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
......@@ -226,7 +227,7 @@
<text><![CDATA[Nama Rekening]]></text>
</staticText>
<staticText>
<reportElement x="0" y="0" width="68" height="12"/>
<reportElement x="0" y="0" width="68" height="12" uuid="d993cef6-3b7c-438f-bb5f-b90cc184e488"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
......@@ -239,7 +240,7 @@
<text><![CDATA[Kode Rekening]]></text>
</staticText>
<staticText>
<reportElement x="448" y="0" width="89" height="12"/>
<reportElement x="459" y="0" width="78" height="12" uuid="9d0d064f-93de-4575-b89a-3d283a6401e0"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
......@@ -252,7 +253,7 @@
<text><![CDATA[Jumlah]]></text>
</staticText>
<staticText>
<reportElement x="237" y="0" width="81" height="12"/>
<reportElement x="312" y="0" width="42" height="12" uuid="d3fea8cc-2eed-450e-afad-fe317f7fc8e5"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
......@@ -262,10 +263,10 @@
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[No. Bayar]]></text>
<text><![CDATA[Bayar via]]></text>
</staticText>
<staticText>
<reportElement x="318" y="0" width="88" height="12"/>
<reportElement x="171" y="0" width="74" height="12" uuid="ede6835a-c382-4874-8879-1bd815b9ee86"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
......@@ -275,10 +276,24 @@
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[No. Bayar]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="245" y="0" width="67" height="12" forecolor="#000000" backcolor="#FFFFFF" uuid="c085b4eb-1637-4671-b41d-de8992ac66a7"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Penyetor]]></text>
</staticText>
<staticText>
<reportElement x="406" y="0" width="42" height="12"/>
<reportElement x="354" y="0" width="52" height="12" uuid="cd047812-f9a8-452e-bdd6-410699deb723"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
......@@ -288,7 +303,20 @@
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Bayar via]]></text>
<text><![CDATA[Pokok]]></text>
</staticText>
<staticText>
<reportElement x="406" y="0" width="53" height="12" uuid="db8438e3-8b17-47ee-86df-776372cb081a"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Denda]]></text>
</staticText>
</band>
</pageHeader>
......@@ -298,7 +326,7 @@
<detail>
<band height="12" splitType="Stretch">
<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="448" y="0" width="89" height="12"/>
<reportElement stretchType="RelativeToTallestObject" x="459" y="0" width="78" height="12" uuid="c86d1640-2af4-42c8-becc-e43aebf252ca"/>
<box leftPadding="0" rightPadding="1">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
......@@ -309,7 +337,7 @@
<textFieldExpression><![CDATA[NumberFormat.getInstance().getNumberInstance(Locale.ITALIAN).format(Double.parseDouble($F{jumlah}))]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="237" y="0" width="81" height="12"/>
<reportElement stretchType="RelativeToTallestObject" x="171" y="0" width="74" height="12" uuid="ca5fa4f1-9b9e-4167-afeb-616e94802c23"/>
<box leftPadding="0" rightPadding="1">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
......@@ -320,7 +348,7 @@
<textFieldExpression><![CDATA[$F{kd}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="68" height="12"/>
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="68" height="12" uuid="909465b3-26a8-45b1-8812-44230066ec62"/>
<box leftPadding="0" rightPadding="1">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
......@@ -331,7 +359,7 @@
<textFieldExpression><![CDATA[$F{rek_kd}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="68" y="0" width="169" height="12"/>
<reportElement stretchType="RelativeToTallestObject" x="68" y="0" width="103" height="12" uuid="041ca267-c853-4f28-9ba2-29f79492df9a"/>
<box leftPadding="2">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
......@@ -342,7 +370,7 @@
<textFieldExpression><![CDATA[$F{rek_nm}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="318" y="0" width="88" height="12"/>
<reportElement stretchType="RelativeToTallestObject" x="245" y="0" width="67" height="12" uuid="3f7adeef-bca9-43f4-9b8e-d3b50703203d"/>
<box leftPadding="2">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
......@@ -353,7 +381,7 @@
<textFieldExpression><![CDATA[$F{wp_nm}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="406" y="0" width="42" height="12"/>
<reportElement stretchType="RelativeToTallestObject" x="312" y="0" width="42" height="12" uuid="75c50542-5dd9-4f2d-8389-3b4c05247cf6"/>
<box leftPadding="2">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
......@@ -363,6 +391,28 @@
</textElement>
<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="354" y="0" width="52" height="12" uuid="e245809b-0ca5-4fcd-ad75-081af55a48fa"/>
<box leftPadding="2">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[NumberFormat.getInstance().getNumberInstance(Locale.ITALIAN).format(Double.parseDouble($F{pokok}))]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="406" y="0" width="53" height="12" uuid="b02ff476-3b8e-4f3b-a604-22ac04032d5b"/>
<box leftPadding="2">
<leftPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[NumberFormat.getInstance().getNumberInstance(Locale.ITALIAN).format(Double.parseDouble($F{bunga}))]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
......@@ -374,13 +424,13 @@
<summary>
<band height="17" splitType="Stretch">
<line>
<reportElement x="0" y="0" width="537" height="1"/>
<reportElement x="0" y="0" width="537" height="1" uuid="b2edd059-5260-476b-82dc-25a31de2ea85"/>
<graphicElement>
<pen lineWidth="0.25"/>
</graphicElement>
</line>
<staticText>
<reportElement x="0" y="0" width="448" height="13"/>
<reportElement x="0" y="0" width="459" height="13" uuid="be20153d-8de1-4ad1-8eb2-8fce597360b2"/>
<box>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
......@@ -392,7 +442,7 @@
<text><![CDATA[TOTAL KESELURUHAN]]></text>
</staticText>
<textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="448" y="0" width="89" height="13"/>
<reportElement stretchType="RelativeToBandHeight" x="459" y="0" width="78" height="13" uuid="a14b4c62-ac63-47b0-9fa3-094e229a40d6"/>
<box>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
......
No preview for this file type
......@@ -1430,9 +1430,7 @@ class ViewLaporan(BaseViews):
return response
elif url_dict['act']=='Laporan_16' :
query = DBSession.query(ARSspd.bayar.label('jumlah'),
ARSspd.bunga.label('bunga'),
ARSspd.tgl_bayar.label('tgl'),
query = DBSession.query(ARSspd.tgl_bayar.label('tgl'),
ARInvoice.unit_id.label('un_id'),
ARInvoice.unit_kode.label('un_kd'),
ARInvoice.unit_nama.label('un_nm'),
......@@ -1442,7 +1440,11 @@ class ViewLaporan(BaseViews):
ARInvoice.kode.label('kd'),
ARInvoice.wp_nama.label('wp_nm'),
case([(ARSspd.bank_id!=0,"H2H"),(ARSspd.bank_id==None,"Manual")],
else_="Semua").label('status')
else_="Semua").label('status'),
ARInvoice.pokok.label('pokok'),
ARSspd.bunga.label('bunga'),
ARSspd.bayar.label('jumlah'),
).select_from(ARSspd
).join(ARInvoice
).order_by(ARInvoice.unit_kode,
ARInvoice.rek_kode,
......@@ -1504,9 +1506,7 @@ class ViewLaporan(BaseViews):
return response
elif url_dict['act']=='Laporan_17' :
query = DBSession.query(ARSspd.bayar.label('jumlah'),
ARSspd.bunga.label('bunga'),
ARSspd.tgl_bayar.label('tgl'),
query = DBSession.query(ARSspd.tgl_bayar.label('tgl'),
ARInvoice.unit_id.label('un_id'),
ARInvoice.unit_kode.label('un_kd'),
ARInvoice.unit_nama.label('un_nm'),
......@@ -1516,7 +1516,11 @@ class ViewLaporan(BaseViews):
ARInvoice.kode.label('kd'),
ARInvoice.wp_nama.label('wp_nm'),
case([(ARSspd.bank_id!=0,"H2H"),(ARSspd.bank_id==None,"Manual")],
else_="Semua").label('status')
else_="Semua").label('status'),
ARInvoice.pokok.label('pokok'),
ARSspd.bunga.label('bunga'),
ARSspd.bayar.label('jumlah')
).select_from(ARSspd
).join(ARInvoice
).order_by(ARInvoice.rek_kode,
ARInvoice.unit_kode,
......@@ -3244,7 +3248,8 @@ class lap16Generator(JasperGenerator):
def __init__(self):
super(lap16Generator, self).__init__()
self.reportname = get_rpath('Lap16.jrxml')
self.xpath = '/webr/lap16'
# self.xpath = '/webr/lap16'
self.xpath = '/tmp'
self.root = ET.Element('webr')
def generate_xml(self, tobegreeted):
......@@ -3258,6 +3263,7 @@ class lap16Generator(JasperGenerator):
ET.SubElement(xml_greeting, "rek_nm").text = row.rek_nm
ET.SubElement(xml_greeting, "kd").text = row.kd
ET.SubElement(xml_greeting, "wp_nm").text = row.wp_nm
ET.SubElement(xml_greeting, "pokok").text = unicode(row.pokok)
ET.SubElement(xml_greeting, "bunga").text = unicode(row.bunga)
ET.SubElement(xml_greeting, "jumlah").text = unicode(row.jumlah)
ET.SubElement(xml_greeting, "logo").text = logo_pemda
......@@ -3288,6 +3294,7 @@ class lap17benGenerator(JasperGenerator):
ET.SubElement(xml_greeting, "rek_nm").text = row.rek_nm
ET.SubElement(xml_greeting, "kd").text = row.kd
ET.SubElement(xml_greeting, "wp_nm").text = row.wp_nm
ET.SubElement(xml_greeting, "pokok").text = unicode(row.pokok)
ET.SubElement(xml_greeting, "bunga").text = unicode(row.bunga)
ET.SubElement(xml_greeting, "jumlah").text = unicode(row.jumlah)
ET.SubElement(xml_greeting, "logo").text = logo_pemda
......
This diff could not be displayed because it is too large.
......@@ -7,27 +7,27 @@ here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
# test
requires=['pyramid>=1.5a2<=1.6a1',
'SQLAlchemy',
requires=['pyramid==1.5.8',
'SQLAlchemy==1.2.10',
'transaction',
'pyramid_tm',
'pyramid_debugtoolbar',
'zope.sqlalchemy==1.0',
'waitress',
'zope.sqlalchemy==1.0',
'waitress==1.1.0',
'ziggurat-foundations==0.5.6',
'cryptacular==1.4.1',
'colander',
'colander==1.4',
'deform>=2.0a2',
'pyramid_chameleon',
'psycopg2',
'alembic>=0.3.4',
'pyramid_beaker',
'pyramid_beaker==0.8',
'pytz',
'sqlalchemy-datatables==0.1.6',
'recaptcha-client',
'pyJasper',
'pyJasper==0.41',
'informixdb==2.5',
'z3c.rml',
'z3c.rml==3.5.0',
'xlrd',
'pyramid_rpc',
'requests',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!