Update cetakan resep dokter

Penerapan font dan perbaikan desain catakan A4 size 12 dan flag telaah peresepan
This commit is contained in:
salmanoe 2022-09-03 22:34:48 +07:00
parent fdd37d1457
commit 906b24f460
4 changed files with 557 additions and 486 deletions

View File

@ -203,6 +203,12 @@
<artifactId>jasperreports</artifactId>
<version>6.11.0</version>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>

View File

@ -1,6 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.13.0.final using JasperReports Library version 6.13.0-46ada4d1be8f3c5985fd0b6146f3ed44caed6f05 -->
<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="resep_racikan" pageWidth="380" pageHeight="596" columnWidth="380" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="4eb3dc11-d6a4-4305-88ec-3a25852333fa">
<!-- Created with Jaspersoft Studio version 6.11.0.final using JasperReports Library version 6.11.0-0c4056ccaa4d25a5a8c45672d2f764ea3498bebb -->
<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="resep_racikan" pageWidth="483" pageHeight="842" columnWidth="483" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="4eb3dc11-d6a4-4305-88ec-3a25852333fa">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<parameter name="rKe" class="java.lang.String"/>
<field name="obat" class="java.lang.String"/>
<field name="jumlah" class="java.lang.String"/>
@ -9,13 +18,15 @@
<band splitType="Stretch"/>
</background>
<detail>
<band height="12" splitType="Stretch">
<band height="17" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[($P{rKe}).equals($F{rKe})]]></printWhenExpression>
<elementGroup>
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="250" y="0" width="130" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="40d048a8-0e81-47c3-aab9-583b6b6cf3cd">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdfcc34-0f33-4f99-8809-4ee7291a599d"/>
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="10" y="0" width="280" height="17" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="6a0b6a30-cf99-49b4-8add-a59e7eabe558">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="51cc68a1-819e-47c5-a1b3-314433cb79d9"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
@ -25,28 +36,28 @@
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Top">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[($P{rKe}).equals($F{rKe}) ? $F{jumlah}:""]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="10" y="0" width="240" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="6a0b6a30-cf99-49b4-8add-a59e7eabe558">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="51cc68a1-819e-47c5-a1b3-314433cb79d9"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Top">
<font size="8"/>
<font size="12"/>
</textElement>
<textFieldExpression><![CDATA[($P{rKe}).equals($F{rKe}) ? $F{obat}:""]]></textFieldExpression>
</textField>
</elementGroup>
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" stretchType="ElementGroupHeight" x="290" y="0" width="193" height="17" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="40d048a8-0e81-47c3-aab9-583b6b6cf3cd">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdfcc34-0f33-4f99-8809-4ee7291a599d"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Top">
<font size="12"/>
</textElement>
<textFieldExpression><![CDATA[($P{rKe}).equals($F{rKe}) ? $F{jumlah}:""]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>

View File

@ -265,7 +265,7 @@
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>6.20.0</version>
<version>4.0.0</version>
</dependency>
<!-- <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId>