Commit 055e8409 by Prismana

- Refine jasper report in departemen, pemerintah, provinsi, user-ext, user

1 parent f2e9dabd
......@@ -92,10 +92,10 @@ FROM departemen]]>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[DAFTAR USER]]></text>
<text><![CDATA[DAFTAR DEPARTEMEN]]></text>
</staticText>
<image>
<reportElement x="10" y="10" width="53" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<reportElement x="0" y="10" width="63" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<imageExpression><![CDATA[$P{logo}]]></imageExpression>
</image>
<textField>
......@@ -241,10 +241,12 @@ FROM departemen]]>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{status} == 1 ? "Aktif" : "Tidak Aktif"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="420" y="0" width="70" height="20" uuid="71bc4159-0a66-4c12-ab5b-1b17c33628c5"/>
<reportElement x="420" y="0" width="70" height="20" uuid="71bc4159-0a66-4c12-ab5b-1b17c33628c5">
<property name="net.sf.jasperreports.style.isBlankWhenNull" value="true"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
......@@ -254,7 +256,9 @@ FROM departemen]]>
<textFieldExpression><![CDATA[$F{parent_id}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="490" y="0" width="70" height="20" uuid="e690dd42-8996-40ad-a436-57cf4e3789c5"/>
<reportElement x="490" y="0" width="70" height="20" uuid="e690dd42-8996-40ad-a436-57cf4e3789c5">
<property name="net.sf.jasperreports.style.isBlankWhenNull" value="true"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
......
......@@ -75,7 +75,7 @@ FROM company]]>
<text><![CDATA[DAFTAR PEMERINTAH]]></text>
</staticText>
<image>
<reportElement x="10" y="10" width="53" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<reportElement x="-2" y="10" width="63" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<imageExpression><![CDATA[$P{logo}]]></imageExpression>
</image>
<textField>
......@@ -186,7 +186,7 @@ FROM company]]>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{status} == 1 ? "Aktif" : "Tidak Aktif"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="355" y="0" width="100" height="20" uuid="47051f05-f634-4c32-97cc-ce9af7b8f382"/>
......@@ -197,7 +197,7 @@ FROM company]]>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{parent_id}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{parent_id} == null ? " " : $F{parent_id}]]></textFieldExpression>
</textField>
</band>
</detail>
......
......@@ -75,7 +75,7 @@ FROM res_provinsi]]>
<text><![CDATA[DAFTAR PROVINSI]]></text>
</staticText>
<image>
<reportElement x="10" y="10" width="53" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<reportElement x="0" y="10" width="63" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<imageExpression><![CDATA[$P{logo}]]></imageExpression>
</image>
<textField>
......
......@@ -60,7 +60,7 @@ FROM external_identities]]>
<text><![CDATA[DAFTAR EXTERNAL USER]]></text>
</staticText>
<image>
<reportElement x="10" y="10" width="53" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<reportElement x="0" y="10" width="63" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<imageExpression><![CDATA[$P{logo}]]></imageExpression>
</image>
<textField>
......
......@@ -37,7 +37,7 @@ FROM users]]>
<text><![CDATA[DAFTAR USER]]></text>
</staticText>
<image>
<reportElement x="10" y="10" width="53" height="58" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<reportElement x="-2" y="-2" width="63" height="68" uuid="3fe2de31-ff3e-4451-8d0d-6b2753184c09"/>
<imageExpression><![CDATA[$P{logo}]]></imageExpression>
</image>
<textField>
......@@ -47,10 +47,15 @@ FROM users]]>
</textElement>
<textFieldExpression><![CDATA[$P{judul}]]></textFieldExpression>
</textField>
<line>
<reportElement mode="Opaque" x="0" y="66" width="555" height="1" backcolor="#030303" uuid="0af91f2b-1025-402b-93f4-e90ee4a85849">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
</band>
</title>
<pageHeader>
<band height="35" splitType="Stretch"/>
<band height="5" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="20" splitType="Stretch">
......@@ -145,7 +150,7 @@ FROM users]]>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{last_login_date}.toLocaleString()]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{last_login_date}== null ? " " : new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format($F{last_login_date})]]></textFieldExpression>
</textField>
<textField>
<reportElement x="355" y="0" width="54" height="20" uuid="47051f05-f634-4c32-97cc-ce9af7b8f382"/>
......@@ -156,8 +161,7 @@ FROM users]]>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{status} == 1 ? "Aktif" : "Disabled"
]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{status} == 1 ? "Aktif" : "Tidak Aktif"]]></textFieldExpression>
</textField>
</band>
</detail>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!