@@ -1,8 +1,8 @@
<?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="null" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="3.0"/>
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="42"/>
<property name="ireport.y" value="480"/>
<property name="ireport.y" value="368"/>
<parameter name="namars" class="java.lang.String"/>
<parameter name="alamatrs" class="java.lang.String"/>
<parameter name="kotars" class="java.lang.String"/>
@@ -311,6 +311,34 @@
</columnFooter>
<summary>
<band height="247">
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{kabidkeu}]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[( )]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{petugas}]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[( )]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="2" y="4" width="62" height="13" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
@@ -565,27 +593,13 @@
</textElement>
<text><![CDATA[Tim Pembelian]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["( "+$P{petugas}+" )"]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="200" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Kepala Bagian Keuangan]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["( "+$P{kabidkeu}+" )"]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
BIN +43.3 KB (100%) dist/SIMRSKhanza.jar
Binary file not shown.
@@ -0,0 +1,320 @@
<?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="null" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="696"/>
<property name="ireport.y" value="0"/>
<parameter name="namars" class="java.lang.String"/>
<parameter name="alamatrs" class="java.lang.String"/>
<parameter name="kotars" class="java.lang.String"/>
<parameter name="propinsirs" class="java.lang.String"/>
<parameter name="kontakrs" class="java.lang.String"/>
<parameter name="emailrs" class="java.lang.String"/>
<parameter name="logo" class="java.io.InputStream"/>
<queryString>
<![CDATA[select no, temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8, temp9, temp10, temp11, temp12, temp13, temp14 from temporary order by no asc]]>
</queryString>
<field name="no" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp1" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp2" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp3" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp4" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp5" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp6" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp7" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp8" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp9" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp10" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp11" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp12" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp13" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp14" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="84" splitType="Stretch">
<staticText>
<reportElement x="189" y="54" width="424" height="23"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Data Surat Pemesanan Obat/Alkes/BHP Medis]]></text>
</staticText>
<textField>
<reportElement x="2" y="14" width="800" height="14"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{alamatrs}+", "+$P{kotars}+", "+$P{propinsirs}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="48" width="802" height="1"/>
<graphicElement>
<pen lineWidth="2.0" lineStyle="Double"/>
</graphicElement>
</line>
<textField>
<reportElement x="2" y="0" width="800" height="17"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{namars}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="25" width="800" height="14"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{kontakrs}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="35" width="800" height="14"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["E-mail : "+$P{emailrs}]]></textFieldExpression>
</textField>
<image scaleImage="FillFrame" onErrorType="Blank">
<reportElement x="0" y="2" width="48" height="45"/>
<imageExpression class="java.io.InputStream"><![CDATA[$P{logo}]]></imageExpression>
</image>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="18" splitType="Stretch">
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="711" y="0" width="91" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Right" verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Total(Rp) ]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="372" y="0" width="70" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Satuan]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="442" y="0" width="25" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Jml]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="89" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[ No.Pemesanan]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="646" y="0" width="65" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Bsr.Disk(Rp) ]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="89" y="0" width="283" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Barang]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="467" y="0" width="65" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Harga(Rp)]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="532" y="0" width="70" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[SubTotal(Rp) ]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="602" y="0" width="44" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Diskon(%)]]></text>
</staticText>
<line>
<reportElement x="0" y="0" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="0" y="17" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</columnHeader>
<detail>
<band height="11" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="1" y="1" width="88" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp1}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="89" y="1" width="283" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp2}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="372" y="1" width="70" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp3}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="442" y="1" width="25" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp4}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="467" y="1" width="65" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp5}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="532" y="1" width="70" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp6}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="602" y="1" width="44" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp7}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="646" y="1" width="65" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp8}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="711" y="1" width="91" height="10"/>
<textElement textAlignment="Right" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp9}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="18" splitType="Stretch">
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement key="textField" x="498" y="3" width="36" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<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 lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField" x="328" y="3" width="170" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<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="Right" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Halaman " + $V{PAGE_NUMBER} + " dari "]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH.mm.ss" isBlankWhenNull="false">
<reportElement key="textField" x="1" y="3" width="74" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<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 lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="0" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="0" y="16" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</pageFooter>
</jasperReport>
@@ -1,8 +1,8 @@
<?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="null" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="3.0"/>
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="42"/>
<property name="ireport.y" value="480"/>
<property name="ireport.y" value="368"/>
<parameter name="namars" class="java.lang.String"/>
<parameter name="alamatrs" class="java.lang.String"/>
<parameter name="kotars" class="java.lang.String"/>
@@ -311,6 +311,34 @@
</columnFooter>
<summary>
<band height="247">
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{kabidkeu}]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[( )]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{petugas}]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[( )]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="2" y="4" width="62" height="13" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
@@ -565,27 +593,13 @@
</textElement>
<text><![CDATA[Tim Pembelian]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["( "+$P{petugas}+" )"]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="200" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Kepala Bagian Keuangan]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["( "+$P{kabidkeu}+" )"]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
@@ -5,6 +5,7 @@
<group>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/inventory/DlgPemesanan.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/inventory/DlgSuratPemesanan.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/inventory/DlgCariSuratPemesanan.java</file>
</group>
</open-files>
</project-private>
Binary file not shown.
@@ -0,0 +1,320 @@
<?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="null" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="696"/>
<property name="ireport.y" value="0"/>
<parameter name="namars" class="java.lang.String"/>
<parameter name="alamatrs" class="java.lang.String"/>
<parameter name="kotars" class="java.lang.String"/>
<parameter name="propinsirs" class="java.lang.String"/>
<parameter name="kontakrs" class="java.lang.String"/>
<parameter name="emailrs" class="java.lang.String"/>
<parameter name="logo" class="java.io.InputStream"/>
<queryString>
<![CDATA[select no, temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8, temp9, temp10, temp11, temp12, temp13, temp14 from temporary order by no asc]]>
</queryString>
<field name="no" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp1" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp2" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp3" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp4" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp5" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp6" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp7" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp8" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp9" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp10" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp11" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp12" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp13" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="temp14" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="84" splitType="Stretch">
<staticText>
<reportElement x="189" y="54" width="424" height="23"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Data Surat Pemesanan Obat/Alkes/BHP Medis]]></text>
</staticText>
<textField>
<reportElement x="2" y="14" width="800" height="14"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{alamatrs}+", "+$P{kotars}+", "+$P{propinsirs}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="48" width="802" height="1"/>
<graphicElement>
<pen lineWidth="2.0" lineStyle="Double"/>
</graphicElement>
</line>
<textField>
<reportElement x="2" y="0" width="800" height="17"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="12"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{namars}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="25" width="800" height="14"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{kontakrs}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="35" width="800" height="14"/>
<textElement textAlignment="Center" lineSpacing="Single">
<font fontName="Tahoma" size="9"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["E-mail : "+$P{emailrs}]]></textFieldExpression>
</textField>
<image scaleImage="FillFrame" onErrorType="Blank">
<reportElement x="0" y="2" width="48" height="45"/>
<imageExpression class="java.io.InputStream"><![CDATA[$P{logo}]]></imageExpression>
</image>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="18" splitType="Stretch">
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="711" y="0" width="91" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Right" verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Total(Rp) ]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="372" y="0" width="70" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Satuan]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="442" y="0" width="25" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Jml]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="89" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[ No.Pemesanan]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="646" y="0" width="65" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Bsr.Disk(Rp) ]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="89" y="0" width="283" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Barang]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="467" y="0" width="65" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Harga(Rp)]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="532" y="0" width="70" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[SubTotal(Rp) ]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="602" y="0" width="44" height="18" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Diskon(%)]]></text>
</staticText>
<line>
<reportElement x="0" y="0" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="0" y="17" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</columnHeader>
<detail>
<band height="11" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="1" y="1" width="88" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp1}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="89" y="1" width="283" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp2}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="372" y="1" width="70" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp3}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="442" y="1" width="25" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp4}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="467" y="1" width="65" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp5}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="532" y="1" width="70" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp6}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="602" y="1" width="44" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp7}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="646" y="1" width="65" height="10"/>
<textElement lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp8}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="711" y="1" width="91" height="10"/>
<textElement textAlignment="Right" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{temp9}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="18" splitType="Stretch">
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement key="textField" x="498" y="3" width="36" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<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 lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="textField" x="328" y="3" width="170" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<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="Right" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Halaman " + $V{PAGE_NUMBER} + " dari "]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH.mm.ss" isBlankWhenNull="false">
<reportElement key="textField" x="1" y="3" width="74" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<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 lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="0" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="0" y="16" width="802" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</pageFooter>
</jasperReport>
BIN +600 Bytes (100%) report/rptSuratPemesanan.jasper
Binary file not shown.
@@ -1,8 +1,8 @@
<?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="null" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="3.0"/>
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="42"/>
<property name="ireport.y" value="480"/>
<property name="ireport.y" value="368"/>
<parameter name="namars" class="java.lang.String"/>
<parameter name="alamatrs" class="java.lang.String"/>
<parameter name="kotars" class="java.lang.String"/>
@@ -311,6 +311,34 @@
</columnFooter>
<summary>
<band height="247">
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{kabidkeu}]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[( )]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{petugas}]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[( )]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="2" y="4" width="62" height="13" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement verticalAlignment="Middle" lineSpacing="Single">
@@ -565,27 +593,13 @@
</textElement>
<text><![CDATA[Tim Pembelian]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="264" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["( "+$P{petugas}+" )"]]></textFieldExpression>
</textField>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="200" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">
<font fontName="Tahoma" size="8"/>
</textElement>
<text><![CDATA[Kepala Bagian Keuangan]]></text>
</staticText>
<textField>
<reportElement stretchType="RelativeToBandHeight" mode="Transparent" x="410" y="236" width="145" height="10" forecolor="#000000" backcolor="#F0F0DC"/>
<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single" markup="none">
<font fontName="Tahoma" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["( "+$P{kabidkeu}+" )"]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
18 sik.sql

Large diffs are not rendered by default.

@@ -784,7 +784,12 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}// </editor-fold>//GEN-END:initComponents

private void BtnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnKeluarActionPerformed
dispose();
suplier.dispose();
petugas.dispose();
barang.industri.dispose();
barang.jenis.dispose();
barang.dispose();
dispose();
}//GEN-LAST:event_BtnKeluarActionPerformed

private void BtnKeluarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnKeluarKeyPressed
@@ -14,7 +14,7 @@
<MenuItem class="javax.swing.JMenuItem" name="ppHapus">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="f2" green="f2" red="f2" type="rgb"/>
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="11" style="0"/>
@@ -41,7 +41,7 @@
<MenuItem class="javax.swing.JMenuItem" name="ppDisetujui">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="f2" green="f2" red="f2" type="rgb"/>
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="11" style="0"/>
@@ -68,7 +68,7 @@
<MenuItem class="javax.swing.JMenuItem" name="ppTidakDisetujui">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="f2" green="f2" red="f2" type="rgb"/>
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="11" style="0"/>
@@ -40,6 +40,7 @@ public class DlgCariPermintaan extends javax.swing.JDialog {
private ResultSet rs,rs2;
private double tagihan=0;
private Jurnal jur=new Jurnal();
private DlgMutasiBarang aplikasi=new DlgMutasiBarang(null,false);

/** Creates new form DlgProgramStudi
* @param parent
@@ -260,7 +261,7 @@ private void initComponents() {

jPopupMenu1.setName("jPopupMenu1"); // NOI18N

ppHapus.setBackground(new java.awt.Color(242, 242, 242));
ppHapus.setBackground(new java.awt.Color(255, 255, 255));
ppHapus.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N
ppHapus.setForeground(new java.awt.Color(102, 51, 0));
ppHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N
@@ -277,7 +278,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
});
jPopupMenu1.add(ppHapus);

ppDisetujui.setBackground(new java.awt.Color(242, 242, 242));
ppDisetujui.setBackground(new java.awt.Color(255, 255, 255));
ppDisetujui.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N
ppDisetujui.setForeground(new java.awt.Color(102, 51, 0));
ppDisetujui.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N
@@ -294,7 +295,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
});
jPopupMenu1.add(ppDisetujui);

ppTidakDisetujui.setBackground(new java.awt.Color(242, 242, 242));
ppTidakDisetujui.setBackground(new java.awt.Color(255, 255, 255));
ppTidakDisetujui.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N
ppTidakDisetujui.setForeground(new java.awt.Color(102, 51, 0));
ppTidakDisetujui.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/category.png"))); // NOI18N
@@ -663,7 +664,12 @@ public void keyPressed(java.awt.event.KeyEvent evt) {
}// </editor-fold>//GEN-END:initComponents

private void BtnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnKeluarActionPerformed
dispose();
aplikasi.dispose();
suplier.dispose();
pegawai.dispose();
barang.dispose();
barang.jenis.dispose();
dispose();
}//GEN-LAST:event_BtnKeluarActionPerformed

private void BtnKeluarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnKeluarKeyPressed
@@ -879,7 +885,6 @@ private void ppDisetujuiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F
}else{
Sequel.queryu("update permintaan_medis set status='Disetujui' where no_permintaan=?",tbDokter.getValueAt(tbDokter.getSelectedRow(),1).toString().trim());
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
DlgMutasiBarang aplikasi=new DlgMutasiBarang(null,false);
aplikasi.tampilkanpermintaan=true;
aplikasi.tampil(tbDokter.getValueAt(tbDokter.getSelectedRow(),1).toString().trim());
aplikasi.isCek();

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1654,47 +1654,47 @@ private void tampil() {
private void getData(){
row=tbDokter.getSelectedRow();
if(row!= -1){
try {
if(Valid.SetAngka(tbDokter.getValueAt(row,0).toString())>0){
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,12).toString())*Double.parseDouble(tbDokter.getValueAt(row,7).toString()), row,8);
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,8).toString())-Double.parseDouble(tbDokter.getValueAt(row,10).toString()), row,11);
}
} catch (Exception e) {
tbDokter.setValueAt(0, row,8);
tbDokter.setValueAt(0, row,11);
}
try {
if(Valid.SetAngka(tbDokter.getValueAt(row,0).toString())>0){
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,12).toString())*Double.parseDouble(tbDokter.getValueAt(row,7).toString()), row,8);
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,8).toString())-Double.parseDouble(tbDokter.getValueAt(row,10).toString()), row,11);
}
} catch (Exception e) {
tbDokter.setValueAt(0, row,8);
tbDokter.setValueAt(0, row,11);
}
}

ttl=0;sbttl=0;ppn=0;ttldisk=0;
y=0;w=0;
jml=tbDokter.getRowCount();
for(i=0;i<jml;i++){
try {
w=Double.parseDouble(tbDokter.getValueAt(i,8).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),8);
w=0;
}
sbttl=sbttl+w;

try {
y=Double.parseDouble(tbDokter.getValueAt(i,10).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),10);
y=0;
}
ttldisk=ttldisk+y;
}
LSubtotal.setText(Valid.SetAngka(sbttl));
LPotongan.setText(Valid.SetAngka(ttldisk));
ttl=sbttl-ttldisk;
LTotal2.setText(Valid.SetAngka(ttl));
ppn=0;
if(!tppn.getText().equals("")){
ppn=(Double.parseDouble(tppn.getText())/100) *(ttl);
LPpn.setText(Valid.SetAngka(ppn));
LTagiha.setText(Valid.SetAngka(ttl+ppn));
}
ttl=0;sbttl=0;ppn=0;ttldisk=0;
y=0;w=0;
jml=tbDokter.getRowCount();
for(i=0;i<jml;i++){
try {
w=Double.parseDouble(tbDokter.getValueAt(i,8).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),8);
w=0;
}
sbttl=sbttl+w;

try {
y=Double.parseDouble(tbDokter.getValueAt(i,10).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),10);
y=0;
}
ttldisk=ttldisk+y;
}
LSubtotal.setText(Valid.SetAngka(sbttl));
LPotongan.setText(Valid.SetAngka(ttldisk));
ttl=sbttl-ttldisk;
LTotal2.setText(Valid.SetAngka(ttl));
ppn=0;
if(!tppn.getText().equals("")){
ppn=(Double.parseDouble(tppn.getText())/100) *(ttl);
LPpn.setText(Valid.SetAngka(ppn));
LTagiha.setText(Valid.SetAngka(ttl+ppn));
}
}

public void isCek(){
@@ -128,7 +128,7 @@
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="0" rowCount="4"/>
</Property>
<Property name="toolTipText" type="java.lang.String" value="Silahkan klik untuk memilih data yang mau diedit ataupun dihapus"/>
<Property name="toolTipText" type="java.lang.String" value="Masukkan jumlah geser ke kanan"/>
<Property name="componentPopupMenu" type="javax.swing.JPopupMenu" editor="org.netbeans.modules.form.ComponentChooserEditor">
<ComponentRef name="Popup"/>
</Property>
@@ -43,6 +43,7 @@ public class DlgPemesanan extends javax.swing.JDialog {
private String[] kodebarang,namabarang,satuan,satuanbeli,kadaluwarsa,nobatch;
private double[] harga,jumlah,subtotal,diskon,besardiskon,jmltotal,jmlstok;
private WarnaTable2 warna=new WarnaTable2();
public boolean tampikan=true;

/** Creates new form DlgProgramStudi
* @param parent
@@ -376,7 +377,7 @@ public void windowOpened(java.awt.event.WindowEvent evt) {

}
));
tbDokter.setToolTipText("Silahkan klik untuk memilih data yang mau diedit ataupun dihapus");
tbDokter.setToolTipText("Masukkan jumlah geser ke kanan");
tbDokter.setComponentPopupMenu(Popup);
tbDokter.setName("tbDokter"); // NOI18N
tbDokter.addMouseListener(new java.awt.event.MouseAdapter() {
@@ -836,7 +837,11 @@ private void BtnCariActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST
}//GEN-LAST:event_BtnCariActionPerformed

private void BtnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnKeluarActionPerformed
dispose();
form.suplier.dispose();
form.petugas.dispose();
bangsal.dispose();
form.dispose();
dispose();
}//GEN-LAST:event_BtnKeluarActionPerformed

private void BtnKeluarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnKeluarKeyPressed
@@ -1507,7 +1512,9 @@ private void btnGudangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIR
}//GEN-LAST:event_btnGudangActionPerformed

private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
tampil();
if(tampikan==true){
tampil();
}
}//GEN-LAST:event_formWindowOpened

private void tppnKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_tppnKeyPressed
@@ -1740,52 +1747,53 @@ private void tampil() {
private void getData(){
row=tbDokter.getSelectedRow();
if(row!= -1){
try {
if(Valid.SetAngka(tbDokter.getValueAt(row,0).toString())>0){
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,12).toString())*Double.parseDouble(tbDokter.getValueAt(row,7).toString()), row,8);
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,8).toString())-Double.parseDouble(tbDokter.getValueAt(row,10).toString()), row,11);
}
} catch (Exception e) {
tbDokter.setValueAt(0, row,8);
tbDokter.setValueAt(0, row,11);
}
try {
if(Valid.SetAngka(tbDokter.getValueAt(row,0).toString())>0){
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,12).toString())*Double.parseDouble(tbDokter.getValueAt(row,7).toString()), row,8);
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,8).toString())-Double.parseDouble(tbDokter.getValueAt(row,10).toString()), row,11);
}
} catch (Exception e) {
tbDokter.setValueAt(0, row,8);
tbDokter.setValueAt(0, row,11);
}
}

ttl=0;sbttl=0;ppn=0;ttldisk=0;
y=0;w=0;
meterai=0;
if(!Meterai.getText().equals("")){
meterai=Double.parseDouble(Meterai.getText());
}

jml=tbDokter.getRowCount();
for(i=0;i<jml;i++){
try {
w=Double.parseDouble(tbDokter.getValueAt(i,8).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),8);
w=0;
}
sbttl=sbttl+w;

try {
y=Double.parseDouble(tbDokter.getValueAt(i,10).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),10);
y=0;
}
ttldisk=ttldisk+y;
}
LSubtotal.setText(Valid.SetAngka(sbttl));
LPotongan.setText(Valid.SetAngka(ttldisk));
ttl=sbttl-ttldisk;
LTotal2.setText(Valid.SetAngka(ttl));
ppn=0;
if(!tppn.getText().equals("")){
ppn=(Double.parseDouble(tppn.getText())/100) *(ttl);
LPpn.setText(Valid.SetAngka(ppn));
LTagiha.setText(Valid.SetAngka(ttl+ppn+meterai));
}
ttl=0;sbttl=0;ppn=0;ttldisk=0;
y=0;w=0;
meterai=0;
if(!Meterai.getText().equals("")){
meterai=Double.parseDouble(Meterai.getText());
}

jml=tbDokter.getRowCount();
for(i=0;i<jml;i++){
try {
w=Double.parseDouble(tbDokter.getValueAt(i,8).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),8);
w=0;
}
sbttl=sbttl+w;

try {
y=Double.parseDouble(tbDokter.getValueAt(i,10).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),10);
y=0;
}
ttldisk=ttldisk+y;
}
LSubtotal.setText(Valid.SetAngka(sbttl));
LPotongan.setText(Valid.SetAngka(ttldisk));
ttl=sbttl-ttldisk;
LTotal2.setText(Valid.SetAngka(ttl));
ppn=0;
if(!tppn.getText().equals("")){
ppn=(Double.parseDouble(tppn.getText())/100) *(ttl);
LPpn.setText(Valid.SetAngka(ppn));
LTagiha.setText(Valid.SetAngka(ttl+ppn+meterai));
}

}

public void isCek(){
@@ -1807,5 +1815,48 @@ private void autoNomor(){
Valid.autoNomer3("select ifnull(MAX(CONVERT(RIGHT(no_faktur,3),signed)),0) from pemesanan where tgl_pesan='"+Valid.SetTgl(TglPesan.getSelectedItem()+"")+"'","PB"+TglPesan.getSelectedItem().toString().substring(8,10)+TglPesan.getSelectedItem().toString().substring(3,5)+TglPesan.getSelectedItem().toString().substring(0,2),3,NoFaktur);
}


public void tampil(String noorder) {
NoOrder.setText(noorder);
kdsup.setText(Sequel.cariIsi("select kode_suplier from surat_pemesanan_medis where no_pemesanan=?",noorder));
nmsup.setText(Sequel.cariIsi("select nama_suplier from datasuplier where kode_suplier=?",kdsup.getText()));
meterai=Sequel.cariIsiAngka("select meterai from surat_pemesanan_medis where no_pemesanan=?",noorder);
ppn=Sequel.cariIsiAngka("select ppn from surat_pemesanan_medis where no_pemesanan=?",noorder);
Meterai.setText(Valid.SetAngka2(meterai));
try{
Valid.tabelKosong(tabMode);
ps=koneksi.prepareStatement(
"select detail_surat_pemesanan_medis.kode_brng, databarang.nama_brng,"+
"detail_surat_pemesanan_medis.kode_sat,detail_surat_pemesanan_medis.h_pesan, "+
"ifnull(date_format(databarang.expire,'%d-%m-%Y'),'00-00-0000'),"+
"detail_surat_pemesanan_medis.jumlah,detail_surat_pemesanan_medis.subtotal,"+
"detail_surat_pemesanan_medis.dis,detail_surat_pemesanan_medis.besardis,"+
"detail_surat_pemesanan_medis.total,detail_surat_pemesanan_medis.jumlah2 "+
"from databarang inner join jenis inner join detail_surat_pemesanan_medis "+
"on databarang.kdjns=jenis.kdjns and detail_surat_pemesanan_medis.kode_brng=databarang.kode_brng "+
" where detail_surat_pemesanan_medis.no_pemesanan=? order by databarang.nama_brng");
try {
ps.setString(1,noorder);
rs=ps.executeQuery();
while(rs.next()){
tabMode.addRow(new Object[]{
rs.getString("jumlah"),rs.getString(3),rs.getString(1),
rs.getString(2),rs.getString(3),true,
rs.getString(5),rs.getDouble(4),rs.getDouble("subtotal"),rs.getDouble("dis"),rs.getDouble("besardis"),rs.getDouble("total"),rs.getDouble("jumlah2"),""
});
}
getData();
} catch (Exception e) {
System.out.println("Notifikasi : "+e);
} finally{
if(rs!=null){
rs.close();
}
if(ps!=null){
ps.close();
}
}
}catch(Exception e){
System.out.println("Notifikasi : "+e);
}
}
}
@@ -1741,22 +1741,21 @@ private void getData(){
}
}
} catch (Exception e) {
}

ttl=0;
y=0;
int row2=tabMode.getRowCount();
for(int r=0;r<row2;r++){
try {
y=Double.parseDouble(tabMode.getValueAt(r,13).toString());
} catch (Exception e) {
y=0;
}
ttl=ttl+y;
}
}
ttl=0;
y=0;
int row2=tabMode.getRowCount();
for(int r=0;r<row2;r++){
try {
y=Double.parseDouble(tabMode.getValueAt(r,13).toString());
} catch (Exception e) {
y=0;
}
LTotal.setText(Valid.SetAngka(ttl));
isKembali();
ttl=ttl+y;
}
LTotal.setText(Valid.SetAngka(ttl));
isKembali();
}


@@ -226,7 +226,7 @@
<Property name="toolTipText" type="java.lang.String" value="Alt+C"/>
<Property name="name" type="java.lang.String" value="TCari" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[350, 23]"/>
<Dimension value="[245, 23]"/>
</Property>
</Properties>
<Events>
@@ -275,6 +275,24 @@
</Property>
</Properties>
</Component>
<Component class="widget.Button" name="BtnPrint1">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/Agenda-1-16x16.png"/>
</Property>
<Property name="mnemonic" type="int" value="80"/>
<Property name="text" type="java.lang.String" value="Pesan"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+P"/>
<Property name="name" type="java.lang.String" value="BtnPrint1" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnPrint1ActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnPrint1KeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnPrint">
<Properties>
<Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor">
@@ -32,7 +32,9 @@ public class DlgRekapPermintaan extends javax.swing.JDialog {
private DlgBarang barang=new DlgBarang(null,false);
private int i=0,z=0;
private boolean[] pilihan;
private String[] kodebarang,namabarang,satuan,jenis,jumlah;
private String[] kodebarang,namabarang,satuan,jenis,jumlah,kodesat;
private double harga=0,jml=0;
private DlgSuratPemesanan form=new DlgSuratPemesanan(null,false);

/** Creates new form DlgProgramStudi
* @param parent
@@ -41,7 +43,7 @@ public DlgRekapPermintaan(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();

Object[] row={"P","Kode Barang","Nama Barang","Satuan","Jenis","Jumlah"};
Object[] row={"P","Kode Barang","Nama Barang","Satuan","Jenis","Jumlah","Kode Sat"};
tabMode=new DefaultTableModel(null,row){
@Override public boolean isCellEditable(int rowIndex, int colIndex){
boolean a = false;
@@ -52,7 +54,7 @@ public DlgRekapPermintaan(java.awt.Frame parent, boolean modal) {
}
Class[] types = new Class[] {
java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class,
java.lang.Object.class, java.lang.Object.class
java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
};
/*Class[] types = new Class[] {
java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
@@ -67,7 +69,7 @@ public Class getColumnClass(int columnIndex) {
tbDokter.setPreferredScrollableViewportSize(new Dimension(800,800));
tbDokter.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);

for (i = 0;i < 6; i++) {
for (i = 0;i < 7; i++) {
TableColumn column = tbDokter.getColumnModel().getColumn(i);
if(i==0){
column.setPreferredWidth(20);
@@ -81,6 +83,9 @@ public Class getColumnClass(int columnIndex) {
column.setPreferredWidth(150);
}else if(i==5){
column.setPreferredWidth(60);
}else if(i==6){
column.setMinWidth(0);
column.setMaxWidth(0);
}
}
tbDokter.setDefaultRenderer(Object.class, new WarnaTable());
@@ -163,6 +168,7 @@ private void initComponents() {
BtnCari = new widget.Button();
BtnAll = new widget.Button();
label10 = new widget.Label();
BtnPrint1 = new widget.Button();
BtnPrint = new widget.Button();
BtnKeluar = new widget.Button();

@@ -285,7 +291,7 @@ public void keyPressed(java.awt.event.KeyEvent evt) {

TCari.setToolTipText("Alt+C");
TCari.setName("TCari"); // NOI18N
TCari.setPreferredSize(new java.awt.Dimension(350, 23));
TCari.setPreferredSize(new java.awt.Dimension(245, 23));
TCari.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
TCariKeyPressed(evt);
@@ -331,6 +337,24 @@ public void keyPressed(java.awt.event.KeyEvent evt) {
label10.setPreferredSize(new java.awt.Dimension(25, 23));
panelisi1.add(label10);

BtnPrint1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/Agenda-1-16x16.png"))); // NOI18N
BtnPrint1.setMnemonic('P');
BtnPrint1.setText("Pesan");
BtnPrint1.setToolTipText("Alt+P");
BtnPrint1.setName("BtnPrint1"); // NOI18N
BtnPrint1.setPreferredSize(new java.awt.Dimension(100, 30));
BtnPrint1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BtnPrint1ActionPerformed(evt);
}
});
BtnPrint1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
BtnPrint1KeyPressed(evt);
}
});
panelisi1.add(BtnPrint1);

BtnPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/picture/b_print.png"))); // NOI18N
BtnPrint.setMnemonic('T');
BtnPrint.setText("Cetak");
@@ -459,11 +483,6 @@ private void BtnSeek2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_
//Valid.pindah(evt,DTPCari2,TCari);
}//GEN-LAST:event_BtnSeek2KeyPressed

private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
Tgl1.requestFocus();
prosesCari();
}//GEN-LAST:event_formWindowOpened

private void Tgl1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_Tgl1KeyPressed
Valid.pindah(evt, BtnKeluar,Tgl2);
}//GEN-LAST:event_Tgl1KeyPressed
@@ -511,6 +530,45 @@ private void BtnAllKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_Bt
}
}//GEN-LAST:event_BtnAllKeyPressed

private void BtnPrint1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnPrint1ActionPerformed
if(tabMode.getRowCount()==0){
JOptionPane.showMessageDialog(null,"Maaf, data sudah habis. Tidak ada data yang bisa anda pilih...!!!!");
//TCari.requestFocus();
}else if(tabMode.getRowCount()!=0){
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
form.tampilkan=false;
form.isCek();
Valid.tabelKosong(form.tabMode());
for(i=0;i<tbDokter.getRowCount();i++){
if(tbDokter.getValueAt(i,0).toString().equals("true")){
harga=Sequel.cariIsiAngka("select h_beli from databarang where kode_brng=?",tbDokter.getValueAt(i,1).toString());
jml=Double.parseDouble(tbDokter.getValueAt(i,5).toString());
form.tabMode().addRow(new Object[]{
jml,tbDokter.getValueAt(i,6).toString(),
tbDokter.getValueAt(i,1).toString(),
tbDokter.getValueAt(i,2).toString(),
tbDokter.getValueAt(i,6).toString(),
harga,(jml*harga),0,0,(jml*harga),jml
});
}
}
form.panggilgetData();
form.setSize(internalFrame1.getWidth(),internalFrame1.getHeight());
form.setLocationRelativeTo(internalFrame1);
form.setVisible(true);
this.setCursor(Cursor.getDefaultCursor());
}

}//GEN-LAST:event_BtnPrint1ActionPerformed

private void BtnPrint1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnPrint1KeyPressed
// TODO add your handling code here:
}//GEN-LAST:event_BtnPrint1KeyPressed

private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
prosesCari();
}//GEN-LAST:event_formWindowOpened

/**
* @param args the command line arguments
*/
@@ -532,6 +590,7 @@ public void windowClosing(java.awt.event.WindowEvent e) {
private widget.Button BtnCari;
private widget.Button BtnKeluar;
private widget.Button BtnPrint;
private widget.Button BtnPrint1;
private widget.Button BtnSeek2;
private widget.TextBox TCari;
private widget.Tanggal Tgl1;
@@ -572,6 +631,8 @@ private void prosesCari() {
satuan=new String[z];
jenis=null;
jenis=new String[z];
kodesat=null;
kodesat=new String[z];

z=0;
for(i=0;i<tbDokter.getRowCount();i++){
@@ -582,20 +643,21 @@ private void prosesCari() {
satuan[z]=tbDokter.getValueAt(i,3).toString();
jenis[z]=tbDokter.getValueAt(i,4).toString();
jumlah[z]=tbDokter.getValueAt(i,5).toString();
kodesat[z]=tbDokter.getValueAt(i,6).toString();
z++;
}
}

Valid.tabelKosong(tabMode);
for(i=0;i<z;i++){
tabMode.addRow(new Object[] {
pilihan[i],kodebarang[i],namabarang[i],satuan[i],jenis[i],jumlah[i]
pilihan[i],kodebarang[i],namabarang[i],satuan[i],jenis[i],jumlah[i],kodesat[i]
});
}

ps=koneksi.prepareStatement(
"select databarang.kode_brng,databarang.nama_brng,kodesatuan.satuan,jenis.nama as jenis,"+
"sum(detail_permintaan_medis.jumlah) as jumlah from databarang inner join kodesatuan "+
"sum(detail_permintaan_medis.jumlah) as jumlah,databarang.kode_sat from databarang inner join kodesatuan "+
"inner join jenis inner join detail_permintaan_medis inner join permintaan_medis "+
"on databarang.kode_brng=detail_permintaan_medis.kode_brng and databarang.kode_sat=kodesatuan.kode_sat "+
"and databarang.kdjns=jenis.kdjns and detail_permintaan_medis.no_permintaan=permintaan_medis.no_permintaan "+
@@ -620,7 +682,8 @@ private void prosesCari() {
while(rs.next()){
tabMode.addRow(new Object[]{
false,rs.getString("kode_brng"),rs.getString("nama_brng"),
rs.getString("satuan"),rs.getString("jenis"),rs.getString("jumlah")
rs.getString("satuan"),rs.getString("jenis"),
rs.getString("jumlah"),rs.getString("kode_sat")
});
}
} catch (Exception e) {
@@ -317,7 +317,10 @@
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="0" rowCount="4"/>
</Property>
<Property name="toolTipText" type="java.lang.String" value="Silahkan klik untuk memilih data yang mau diedit ataupun dihapus"/>
<Property name="toolTipText" type="java.lang.String" value="Masukkan jumlah geser ke kanan"/>
<Property name="componentPopupMenu" type="javax.swing.JPopupMenu" editor="org.netbeans.modules.form.ComponentChooserEditor">
<ComponentRef name="Popup"/>
</Property>
<Property name="name" type="java.lang.String" value="tbDokter" noResource="true"/>
<Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor">
<TableHeader reorderingAllowed="true" resizingAllowed="true"/>
@@ -820,7 +823,7 @@
</Component>
<Component class="widget.TextBox" name="tppn">
<Properties>
<Property name="text" type="java.lang.String" value="0"/>
<Property name="text" type="java.lang.String" value="10"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="12" style="0"/>
</Property>
@@ -39,12 +39,13 @@ public class DlgSuratPemesanan extends javax.swing.JDialog {
private WarnaTable2 warna=new WarnaTable2();
private DlgCariPegawai pegawai=new DlgCariPegawai(null,false);
private DlgSuplier suplier=new DlgSuplier(null,false);
private DlgCariPermintaan form=new DlgCariPermintaan(null,false);
private DlgCariSuratPemesanan form=new DlgCariSuratPemesanan(null,false);
private DlgCariSatuan satuanbarang=new DlgCariSatuan(null,false);
private double meterai=0,saldoawal=0,mutasi=0,ttl=0,y=0,w=0,ttldisk=0,sbttl=0,ppn=0,tagihan=0,jmlkonversi=0,hargappn=0;
private int jml=0,i=0,row=0,index=0,pilihan=1;
private String[] kodebarang,namabarang,satuan,satuanbeli;
private double[] harga,jumlah,subtotal,diskon,besardiskon,jmltotal,jmlstok;
public boolean tampilkan=true;

/** Creates new form DlgProgramStudi
* @param parent
@@ -432,7 +433,8 @@ public void windowOpened(java.awt.event.WindowEvent evt) {

}
));
tbDokter.setToolTipText("Silahkan klik untuk memilih data yang mau diedit ataupun dihapus");
tbDokter.setToolTipText("Masukkan jumlah geser ke kanan");
tbDokter.setComponentPopupMenu(Popup);
tbDokter.setName("tbDokter"); // NOI18N
tbDokter.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
@@ -720,7 +722,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
panelisi1.add(label17);
label17.setBounds(340, 0, 40, 30);

tppn.setText("0");
tppn.setText("10");
tppn.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
tppn.setName("tppn"); // NOI18N
tppn.setPreferredSize(new java.awt.Dimension(80, 23));
@@ -886,7 +888,9 @@ private void btnPetugasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FI
}//GEN-LAST:event_btnPetugasActionPerformed

private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
tampil();
if(tampilkan==true){
tampil();
}
}//GEN-LAST:event_formWindowOpened

private void TCariKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_TCariKeyPressed
@@ -1223,7 +1227,7 @@ private void BtnSimpanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIR
for(i=0;i<jml;i++){
try {
if(Valid.SetAngka(tbDokter.getValueAt(i,0).toString())>0){
Sequel.menyimpan("detailpesan","?,?,?,?,?,?,?,?,?,?","Transaksi Pemesanan",10,new String[]{
Sequel.menyimpan("detail_surat_pemesanan_medis","?,?,?,?,?,?,?,?,?,?","Transaksi Pemesanan",10,new String[]{
NoPemesanan.getText(),
tbDokter.getValueAt(i,2).toString(),
tbDokter.getValueAt(i,1).toString(),
@@ -1532,52 +1536,53 @@ private void tampil() {
private void getData(){
row=tbDokter.getSelectedRow();
if(row!= -1){
try {
if(Valid.SetAngka(tbDokter.getValueAt(row,0).toString())>0){
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,10).toString())*Double.parseDouble(tbDokter.getValueAt(row,5).toString()), row,6);
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,6).toString())-Double.parseDouble(tbDokter.getValueAt(row,8).toString()), row,9);
}
} catch (Exception e) {
tbDokter.setValueAt(0, row,6);
tbDokter.setValueAt(0, row,9);
}
try {
if(Valid.SetAngka(tbDokter.getValueAt(row,0).toString())>0){
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,10).toString())*Double.parseDouble(tbDokter.getValueAt(row,5).toString()), row,6);
tbDokter.setValueAt(Double.parseDouble(tbDokter.getValueAt(row,6).toString())-Double.parseDouble(tbDokter.getValueAt(row,8).toString()), row,9);
}
} catch (Exception e) {
tbDokter.setValueAt(0, row,6);
tbDokter.setValueAt(0, row,9);
}
}

ttl=0;sbttl=0;ppn=0;ttldisk=0;
y=0;w=0;
meterai=0;
if(!Meterai.getText().equals("")){
meterai=Double.parseDouble(Meterai.getText());
}

jml=tbDokter.getRowCount();
for(i=0;i<jml;i++){
try {
w=Double.parseDouble(tbDokter.getValueAt(i,6).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),6);
w=0;
}
sbttl=sbttl+w;

try {
y=Double.parseDouble(tbDokter.getValueAt(i,8).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),8);
y=0;
}
ttldisk=ttldisk+y;
}
LSubtotal.setText(Valid.SetAngka(sbttl));
LPotongan.setText(Valid.SetAngka(ttldisk));
ttl=sbttl-ttldisk;
LTotal2.setText(Valid.SetAngka(ttl));
ppn=0;
if(!tppn.getText().equals("")){
ppn=(Double.parseDouble(tppn.getText())/100) *(ttl);
LPpn.setText(Valid.SetAngka(ppn));
LTagiha.setText(Valid.SetAngka(ttl+ppn+meterai));
}
ttl=0;sbttl=0;ppn=0;ttldisk=0;
y=0;w=0;
meterai=0;
if(!Meterai.getText().equals("")){
meterai=Double.parseDouble(Meterai.getText());
}

jml=tbDokter.getRowCount();
for(i=0;i<jml;i++){
try {
w=Double.parseDouble(tbDokter.getValueAt(i,6).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),6);
w=0;
}
sbttl=sbttl+w;

try {
y=Double.parseDouble(tbDokter.getValueAt(i,8).toString());
} catch (Exception e) {
tbDokter.setValueAt(0,tbDokter.getSelectedRow(),8);
y=0;
}
ttldisk=ttldisk+y;
}
LSubtotal.setText(Valid.SetAngka(sbttl));
LPotongan.setText(Valid.SetAngka(ttldisk));
ttl=sbttl-ttldisk;
LTotal2.setText(Valid.SetAngka(ttl));
ppn=0;
if(!tppn.getText().equals("")){
ppn=(Double.parseDouble(tppn.getText())/100) *(ttl);
LPpn.setText(Valid.SetAngka(ppn));
LTagiha.setText(Valid.SetAngka(ttl+ppn+meterai));
}

}

public void isCek(){
@@ -1599,5 +1604,11 @@ private void autoNomor() {
"SPM"+Tanggal.getSelectedItem().toString().substring(8,10)+Tanggal.getSelectedItem().toString().substring(3,5)+Tanggal.getSelectedItem().toString().substring(0,2),3,NoPemesanan);
}


public DefaultTableModel tabMode(){
return tabMode;
}

public void panggilgetData(){
getData();
}
}