Prepare cetakan resep

This commit is contained in:
salmanoe 2022-08-12 16:31:43 +07:00
parent 7ce957e51a
commit ad0130b9e9
4 changed files with 523 additions and 0 deletions

View File

@ -7499,6 +7499,50 @@ public class ReportingController extends LocaleController<RegistrasiPelayananVO>
return m;
}
@RequestMapping("/resep")
public ModelAndView generateResep(ModelAndView m,
@RequestParam(value = "format", required = false) String format,
@RequestParam(value = "startDate", required = true) String startDate,
@RequestParam(value = "endDate", required = true) String endDate) {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
Map<String, Object> kepalaTtdRekap = pegawaiService
.findKepalaPegawai("Kepala Instalasi Loundry dan Sterilisasi Sentral");
Map<String, Object> grandTarifQty = laundryService.findGrandTarifQtyCuciLinen(startDate, endDate);
List<Map<String, Object>> dsRekapCuciLinen = laundryService.findDepartemenTarifQtyCuciLinen(startDate, endDate);
List<Map<String, Object>> sdsRekapCuciLinen = laundryService.findRuanganTarifQtyCuciLinen(startDate, endDate);
try {
Date sd = df.parse(startDate);
Date ed = df.parse(endDate);
m.addObject("startDate", sd);
m.addObject("endDate", ed);
} catch (ParseException e) {
e.printStackTrace();
}
m.addObject("dsRekapLayananLaundry", dsRekapCuciLinen);
m.addObject("sdsRekapLayananLaundry", sdsRekapCuciLinen);
m.addObject("grandSubTotal", grandTarifQty.get("grandSubTotal"));
m.addObject("grandTotal", grandTarifQty.get("grandTotal"));
m.addObject("grandBerat", grandTarifQty.get("grandBerat"));
m.addObject("rataanBeratCucian", grandTarifQty.get("rataanBeratCucian"));
m.addObject("rataanLembarCucian", grandTarifQty.get("rataanLembarCucian"));
m.addObject("format", "pdf");
if (CommonUtil.isNotNullOrEmpty(kepalaTtdRekap)) {
m.addObject("nipPegawai", kepalaTtdRekap.get("nipPegawai"));
m.addObject("namaPegawai", kepalaTtdRekap.get("namaPegawai"));
}
if (format != null && !format.isEmpty()) {
m.addObject("format", format);
}
return m;
}
@RequestMapping("/suratPelimpahanTugas")
public ModelAndView generateSuratPelimpahanTugas(ModelAndView m,

View File

@ -211,5 +211,21 @@
<util:list id="sdsRekapCuciLinen">
<value>sdsRekapCuciLinen</value>
</util:list>
<bean id="reporting/resep" class="org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView"
p:url="/WEB-INF/templates/jrxml/resep.jrxml"
p:reportDataKey="dsResep"
p:subReportUrls-ref="subResepUrls"
p:subReportDataKeys-ref="sdsResep"
/>
<util:map id="subResepUrls">
<entry key="detailResep" value="/WEB-INF/templates/jrxml/resep_racikan.jrxml"/>
</util:map>
<util:list id="sdsResep">
<value>sdsResep</value>
</util:list>
</beans>

View File

@ -0,0 +1,381 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.20.0.final using JasperReports Library version 6.20.0-2bc7ab61c56f459e8176eb05c7705e145cd400ad -->
<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" pageWidth="396" pageHeight="612" columnWidth="380" leftMargin="8" rightMargin="8" topMargin="20" bottomMargin="20" uuid="43912c45-d572-4c40-a3e6-1b613948cb5c">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="cm"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="cm"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="cm"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="cm"/>
<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="detailRekapPemakaianCuciLinen" class="net.sf.jasperreports.engine.JasperReport"/>
<parameter name="sdsRekapCuciLinen" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/>
<parameter name="startDate" class="java.util.Date"/>
<parameter name="endDate" class="java.util.Date"/>
<parameter name="grandSubTotal" class="java.lang.String"/>
<parameter name="grandTotal" class="java.lang.String"/>
<parameter name="grandBerat" class="java.lang.String"/>
<parameter name="rataanBeratCucian" class="java.lang.String"/>
<parameter name="rataanLembarCucian" class="java.lang.String"/>
<parameter name="nipPegawai" class="java.lang.String"/>
<parameter name="namaPegawai" class="java.lang.String"/>
<parameter name="grandRupiahTerbilang" class="java.lang.String"/>
<field name="idDepartemen" class="java.lang.Integer"/>
<field name="namaDepartemen" class="java.lang.String"/>
<field name="qtySubTotal" class="java.lang.String"/>
<field name="subTotal" class="java.lang.String"/>
<field name="beratSubTotal" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="90" splitType="Stretch">
<image>
<reportElement x="-4" y="-20" width="388" height="110" uuid="0d6d891e-46bc-4742-b8dd-ef5167539064"/>
<imageExpression><![CDATA["src/main/webapp/WEB-INF/images/kop.png"]]></imageExpression>
</image>
</band>
</title>
<columnHeader>
<band height="50" splitType="Stretch">
<staticText>
<reportElement x="0" y="10" width="20" height="40" uuid="fb803607-ca67-4374-b6c1-3400af5d7d28"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font isBold="true"/>
</textElement>
<text><![CDATA[NO]]></text>
</staticText>
<staticText>
<reportElement x="20" y="10" width="240" height="40" uuid="e8235c02-414a-4694-90a0-5de02366a282"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font isBold="true"/>
</textElement>
<text><![CDATA[UNIT KERJA/BANGSAL]]></text>
</staticText>
<staticText>
<reportElement x="260" y="10" width="300" height="20" uuid="c71c9978-4e8d-4193-baa7-09f6065da952"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font isBold="true"/>
</textElement>
<text><![CDATA[JUMLAH]]></text>
</staticText>
<staticText>
<reportElement x="260" y="30" width="100" height="20" uuid="02ebef51-e5b7-402c-8fb4-8eddd04d8100"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font isBold="true"/>
</textElement>
<text><![CDATA[LEMBAR]]></text>
</staticText>
<staticText>
<reportElement x="360" y="30" width="100" height="20" uuid="8dcb6435-cef3-41f9-9d5c-5d4debf6dcf8"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font isBold="true"/>
</textElement>
<text><![CDATA[RUPIAH]]></text>
</staticText>
<staticText>
<reportElement x="460" y="30" width="100" height="20" uuid="e6b5b78b-96e8-4f6a-af3e-34d56c447269"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font isBold="true"/>
</textElement>
<text><![CDATA[KILOGRAM]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="60" splitType="Stretch">
<textField>
<reportElement x="20" y="0" width="240" height="20" uuid="cd3072c8-ac8d-413e-9f4c-ea9c96d8c2dd">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="21c489cf-54ea-4179-b618-89425111d3db"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{namaDepartemen}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="260" y="40" width="100" height="20" uuid="cd26fd42-3879-4a86-8abf-8c66512daa0c">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="45cea68b-cf82-4513-9372-166e6905295c"/>
</reportElement>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtySubTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="40" width="100" height="20" uuid="7ac94749-24ad-4f82-94b5-9f05be5d4f75">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="9ca0db3a-8746-471a-bf3c-4b7cef1fb07f"/>
</reportElement>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{subTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="460" y="40" width="100" height="20" uuid="a9fec580-d6e4-46e1-afce-1bd9d1c654a3">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="0636e748-5771-499b-84cf-d3773845ccd1"/>
</reportElement>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{beratSubTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="20" height="20" uuid="5136c27f-f7ba-4480-8914-16e8293151ac"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</textField>
<textField>
<reportElement x="260" y="0" width="100" height="20" uuid="f5206dfe-0914-47b3-a4f6-c35a65f9c275"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</textField>
<textField>
<reportElement x="360" y="0" width="100" height="20" uuid="12ebc0f8-dcab-4cba-ac59-d827c85e438b"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</textField>
<textField>
<reportElement x="460" y="0" width="100" height="20" uuid="2484452a-9299-4e04-b4ab-2fe3db95b464"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</textField>
<staticText>
<reportElement x="20" y="40" width="240" height="20" uuid="76f65440-e7c2-4568-a711-5f203eb2504d"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[JUMLAH]]></text>
</staticText>
<textField>
<reportElement x="0" y="40" width="20" height="20" uuid="8a05c5b3-841a-4c33-b6ac-e025f2ae6de5"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</textField>
<subreport>
<reportElement x="0" y="20" width="560" height="20" uuid="c871a371-86b9-4f3e-ba62-b2b233798a32"/>
<subreportParameter name="idDepartemen">
<subreportParameterExpression><![CDATA[$F{idDepartemen}]]></subreportParameterExpression>
</subreportParameter>
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource ($P{sdsRekapCuciLinen}.getData())]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{detailResep}]]></subreportExpression>
</subreport>
</band>
</detail>
<columnFooter>
<band height="60" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="20" height="30" uuid="468c6f69-af12-4785-9b90-fdb5a43c506e"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement>
<font size="11"/>
</textElement>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" x="20" y="0" width="240" height="30" uuid="90c7b705-2b33-47d0-a1da-f6fa1349a752"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<text><![CDATA[JUMLAH]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" x="260" y="0" width="100" height="30" uuid="033a78ae-f96a-4948-aab8-fd3b44d02f0d"/>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$P{grandSubTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement stretchType="RelativeToBandHeight" x="360" y="0" width="100" height="30" uuid="2df6be30-ca49-4b63-9040-3fd28b2471df"/>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$P{grandTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement stretchType="RelativeToBandHeight" x="460" y="0" width="100" height="30" uuid="062baf7f-9232-4742-810f-4cb7e3365f68"/>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$P{grandBerat}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="20" y="40" width="540" height="20" uuid="8faf396b-f8e0-4178-8013-67b3c09baf64"/>
<textFieldExpression><![CDATA[$P{grandRupiahTerbilang}]]></textFieldExpression>
</textField>
</band>
</columnFooter>
<summary>
<band height="200" splitType="Stretch">
<textField>
<reportElement x="260" y="20" width="100" height="20" uuid="bfe24aff-b909-4fbe-9639-c8ce603f8771"/>
<box padding="3"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$P{rataanBeratCucian}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="260" y="40" width="100" height="20" uuid="c130f5ee-5f30-45a4-a28e-bcde9892b5b8"/>
<box padding="3"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$P{rataanLembarCucian}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="360" y="20" width="100" height="20" uuid="46e46832-1d02-417e-ae72-87116c731d4c"/>
<box padding="3"/>
<textElement verticalAlignment="Middle"/>
<text><![CDATA[Kilogram]]></text>
</staticText>
<staticText>
<reportElement x="360" y="40" width="100" height="20" uuid="d131be0d-78b8-4d56-adf3-f15734b823ee"/>
<box padding="3"/>
<textElement verticalAlignment="Middle"/>
<text><![CDATA[Lembar]]></text>
</staticText>
<staticText>
<reportElement x="20" y="20" width="240" height="20" uuid="5e999a1e-5eaa-4ce8-bc4c-bf5e9ced735f"/>
<textElement verticalAlignment="Middle"/>
<text><![CDATA[Berat cucian rata-rata perhari]]></text>
</staticText>
<staticText>
<reportElement x="20" y="40" width="240" height="20" uuid="f07ef997-0ef8-49e8-87c4-1c8b7849b21d"/>
<textElement verticalAlignment="Middle"/>
<text><![CDATA[Jumlah cucian rata-rata perhari]]></text>
</staticText>
<textField>
<reportElement x="360" y="80" width="200" height="20" uuid="533f2a74-21f7-4d83-8bc4-45771bd21aef"/>
<textElement verticalAlignment="Bottom"/>
<textFieldExpression><![CDATA["Jakarta, " + new SimpleDateFormat("dd MMMM yyyy", new Locale("in","ID")).format(new Date())]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="360" y="100" width="200" height="20" uuid="2cac6c91-5b59-431d-b32c-b3f381c197d9"/>
<textElement verticalAlignment="Bottom"/>
<text><![CDATA[Ka. Ins. Laundry dan Sterilisasi Sentral]]></text>
</staticText>
<textField>
<reportElement x="360" y="160" width="200" height="20" uuid="1730be10-8875-434b-9196-743c046be25b"/>
<textElement verticalAlignment="Bottom">
<font isUnderline="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{namaPegawai}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="180" width="200" height="20" uuid="9962aee1-b08f-49bc-b412-b93f304b3d4f"/>
<textElement verticalAlignment="Bottom"/>
<textFieldExpression><![CDATA["NIP."+$P{nipPegawai}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.20.0.final using JasperReports Library version 6.20.0-2bc7ab61c56f459e8176eb05c7705e145cd400ad -->
<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">
<parameter name="idDepartemen" class="java.lang.Integer"/>
<field name="idRuangan" class="java.lang.Integer"/>
<field name="namaRuangan" class="java.lang.String"/>
<field name="qtySubTotal" class="java.lang.String"/>
<field name="subTotal" class="java.lang.String"/>
<field name="beratSubTotal" class="java.lang.String"/>
<field name="idDepartemen" class="java.lang.Integer"/>
<background>
<band splitType="Stretch"/>
</background>
<detail>
<band height="20" splitType="Stretch">
<printWhenExpression><![CDATA[($P{idDepartemen}).equals($F{idDepartemen})]]></printWhenExpression>
<textField>
<reportElement x="460" y="0" width="100" height="20" uuid="c644c0a6-95cc-4398-8ac6-fa38fd38a5c8">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="9df8a222-9341-4054-ae95-b227b954198a"/>
</reportElement>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[($P{idDepartemen}).equals($F{idDepartemen}) ? $F{beratSubTotal}:""]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="0" width="100" height="20" uuid="e4fdc223-d5c2-43e8-bcc5-a8ecde383466">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="ce5614cd-416d-4bbb-a067-7a57d6979cec"/>
</reportElement>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[($P{idDepartemen}).equals($F{idDepartemen}) ? $F{subTotal}:""]]></textFieldExpression>
</textField>
<textField>
<reportElement x="260" y="0" width="100" height="20" uuid="40d048a8-0e81-47c3-aab9-583b6b6cf3cd">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5cdfcc34-0f33-4f99-8809-4ee7291a599d"/>
</reportElement>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[($P{idDepartemen}).equals($F{idDepartemen}) ? $F{qtySubTotal}:""]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="20" height="20" uuid="7e21c8e1-ec33-4edb-aef6-c0d837caca45"/>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[($P{idDepartemen}).equals($F{idDepartemen}) ? $V{REPORT_COUNT}:""]]></textFieldExpression>
</textField>
<textField>
<reportElement x="20" y="0" width="240" height="20" uuid="6a0b6a30-cf99-49b4-8add-a59e7eabe558">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="51cc68a1-819e-47c5-a1b3-314433cb79d9"/>
</reportElement>
<box padding="3">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[($P{idDepartemen}).equals($F{idDepartemen}) ? $F{namaRuangan}:""]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>