private void kdbangsalKeyPressed(
     java.awt.event.KeyEvent evt) { // GEN-FIRST:event_kdbangsalKeyPressed
   if (evt.getKeyCode() == KeyEvent.VK_PAGE_DOWN) {
     Sequel.cariIsi(
         "select nama_brng from databarang where kode_brng='" + kdbangsal.getText() + "'",
         nmbangsal);
     // TCari.requestFocus();
   } else if (evt.getKeyCode() == KeyEvent.VK_PAGE_UP) {
     Sequel.cariIsi(
         "select nama_brng from databarang where kode_brng='" + kdbangsal.getText() + "'",
         nmbangsal);
     // TCari.requestFocus();
   } else if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
     Sequel.cariIsi(
         "select nama_brng from databarang where kode_brng='" + kdbangsal.getText() + "'",
         nmbangsal);
   }
 } // GEN-LAST:event_kdbangsalKeyPressed
 private void BtnPrintActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_BtnPrintActionPerformed
   this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
   if (tabMode.getRowCount() == 0) {
     JOptionPane.showMessageDialog(
         null, "Maaf, data sudah habis. Tidak ada data yang bisa anda print...!!!!");
     // TCari.requestFocus();
   } else if (tabMode.getRowCount() != 0) {
     Sequel.queryu("delete from temporary");
     int row = tabMode.getRowCount();
     for (int r = 0; r < row; r++) {
       Sequel.menyimpan(
           "temporary",
           "'0','"
               + tabMode.getValueAt(r, 0).toString().replaceAll("'", "`")
               + "','"
               + tabMode.getValueAt(r, 1).toString().replaceAll("'", "`")
               + "','"
               + tabMode.getValueAt(r, 2).toString().replaceAll("'", "`")
               + "','"
               + tabMode.getValueAt(r, 3).toString().replaceAll("'", "`")
               + "','"
               + tabMode.getValueAt(r, 4).toString().replaceAll("'", "`")
               + "','"
               + tabMode.getValueAt(r, 5).toString().replaceAll("'", "`")
               + "','','','','','','','','','','',''",
           "Rekap Harian Tindakan Dokter");
     }
     Valid.MyReport(
         "rptRHTindakanParamedis.jrxml",
         "report",
         "::[ Rekap Harian Tindakan Paramedis ]::",
         "select no, temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8, temp9, temp10, temp11, temp12, temp13, temp14 from temporary order by no asc");
   }
   this.setCursor(Cursor.getDefaultCursor());
 } // GEN-LAST:event_BtnPrintActionPerformed