Skip to content

Commit

Permalink
Sudah Fix, Riwayat Barang Dapur
Browse files Browse the repository at this point in the history
  • Loading branch information
mas-elkhanza committed Jan 31, 2023
1 parent 911c8c6 commit 0611ee9
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 47 deletions.
5 changes: 3 additions & 2 deletions nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
</editor-bookmarks>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/Users/windiartonugroho/Documents/Pekerjaan/SIMRSKhanza/src/setting/DlgUpdateUser.java</file>
<file>file:/Users/windiartonugroho/Documents/Pekerjaan/SIMRSKhanza/src/simrskhanza/frmUtama.java</file>
<file>file:/Users/windiartonugroho/Documents/Pekerjaan/SIMRSKhanza/src/dapur/DapurPengeluaran.java</file>
<file>file:/Users/windiartonugroho/Documents/Pekerjaan/SIMRSKhanza/src/dapur/DapurRiwayatBarang.java</file>
<file>file:/Users/windiartonugroho/Documents/Pekerjaan/SIMRSKhanza/src/setting/DlgUser.java</file>
<file>file:/Users/windiartonugroho/Documents/Pekerjaan/SIMRSKhanza/src/dapur/DapurCariPengeluaran.java</file>
<file>file:/Users/windiartonugroho/Documents/Pekerjaan/SIMRSKhanza/src/fungsi/akses.java</file>
</group>
</open-files>
</project-private>
2 changes: 1 addition & 1 deletion sik.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30702,4 +30702,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2023-01-31 6:28:10
-- Dump completed on 2023-01-31 8:05:01
31 changes: 10 additions & 21 deletions src/dapur/DapurRiwayatBarang.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,9 @@ private void BtnPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
"dapur_riwayat_barang.jam,dapur_riwayat_barang.petugas,"+
"dapur_riwayat_barang.status from dapur_riwayat_barang "+
"inner join dapurbarang on dapur_riwayat_barang.kode_brng=dapurbarang.kode_brng where "+
"dapur_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and dapurbarang.nama_brng like '%"+nmbar.getText()+"%' and dapur_riwayat_barang.kode_brng like '%"+TCari.getText().trim()+"%' or "+
"dapur_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and dapurbarang.nama_brng like '%"+nmbar.getText()+"%' and dapurbarang.nama_brng like '%"+TCari.getText().trim()+"%' or "+
"dapur_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and dapurbarang.nama_brng like '%"+nmbar.getText()+"%' and dapur_riwayat_barang.petugas like '%"+TCari.getText().trim()+"%' or "+
"dapur_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and dapurbarang.nama_brng like '%"+nmbar.getText()+"%' and dapur_riwayat_barang.status like '%"+TCari.getText().trim()+"%' "+
"order by dapur_riwayat_barang.tanggal,dapur_riwayat_barang.jam ",param);
"dapur_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and dapurbarang.nama_brng like '%"+nmbar.getText()+"%' and "+
"(dapur_riwayat_barang.kode_brng like '%"+TCari.getText().trim()+"%' or dapurbarang.nama_brng like '%"+TCari.getText().trim()+"%' or dapur_riwayat_barang.petugas like '%"+TCari.getText().trim()+"%' or "+
"dapur_riwayat_barang.status like '%"+TCari.getText().trim()+"%') order by dapur_riwayat_barang.tanggal,dapur_riwayat_barang.jam ",param);
}

this.setCursor(Cursor.getDefaultCursor());
Expand Down Expand Up @@ -559,10 +557,10 @@ private void prosesCari() {
"dapur_riwayat_barang.jam,dapur_riwayat_barang.petugas,"+
"dapur_riwayat_barang.status from dapur_riwayat_barang "+
"inner join dapurbarang on dapur_riwayat_barang.kode_brng=dapurbarang.kode_brng where "+
"dapur_riwayat_barang.tanggal between ? and ? and dapurbarang.nama_brng like ? and dapur_riwayat_barang.kode_brng like ? or "+
"dapur_riwayat_barang.tanggal between ? and ? and dapurbarang.nama_brng like ? and dapurbarang.nama_brng like ? or "+
"dapur_riwayat_barang.tanggal between ? and ? and dapurbarang.nama_brng like ? and dapur_riwayat_barang.petugas like ? or "+
"dapur_riwayat_barang.tanggal between ? and ? and dapurbarang.nama_brng like ? and dapur_riwayat_barang.status like ? order by dapur_riwayat_barang.tanggal,dapur_riwayat_barang.jam ");
"dapur_riwayat_barang.tanggal between ? and ? and dapurbarang.nama_brng like ? and "+
"(dapur_riwayat_barang.kode_brng like ? or dapurbarang.nama_brng like ? or "+
"dapur_riwayat_barang.petugas like ? or dapur_riwayat_barang.status like ?) "+
"order by dapur_riwayat_barang.tanggal,dapur_riwayat_barang.jam ");
}

try {
Expand All @@ -574,18 +572,9 @@ private void prosesCari() {
ps.setString(2,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(3,"%"+nmbar.getText()+"%");
ps.setString(4,"%"+TCari.getText().trim()+"%");
ps.setString(5,Valid.SetTgl(Tgl1.getSelectedItem()+""));
ps.setString(6,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(7,"%"+nmbar.getText()+"%");
ps.setString(8,"%"+TCari.getText().trim()+"%");
ps.setString(9,Valid.SetTgl(Tgl1.getSelectedItem()+""));
ps.setString(10,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(11,"%"+nmbar.getText()+"%");
ps.setString(12,"%"+TCari.getText().trim()+"%");
ps.setString(13,Valid.SetTgl(Tgl1.getSelectedItem()+""));
ps.setString(14,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(15,"%"+nmbar.getText()+"%");
ps.setString(16,"%"+TCari.getText().trim()+"%");
ps.setString(5,"%"+TCari.getText().trim()+"%");
ps.setString(6,"%"+TCari.getText().trim()+"%");
ps.setString(7,"%"+TCari.getText().trim()+"%");
}
rs=ps.executeQuery();
while(rs.next()){
Expand Down
31 changes: 10 additions & 21 deletions src/ipsrs/IPSRSRiwayatBarang.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,9 @@ private void BtnPrintActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
"ipsrs_riwayat_barang.jam,ipsrs_riwayat_barang.petugas,"+
"ipsrs_riwayat_barang.status from ipsrs_riwayat_barang "+
"inner join ipsrsbarang on ipsrs_riwayat_barang.kode_brng=ipsrsbarang.kode_brng where "+
"ipsrs_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and ipsrsbarang.nama_brng like '%"+nmbar.getText()+"%' and ipsrs_riwayat_barang.kode_brng like '%"+TCari.getText().trim()+"%' or "+
"ipsrs_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and ipsrsbarang.nama_brng like '%"+nmbar.getText()+"%' and ipsrsbarang.nama_brng like '%"+TCari.getText().trim()+"%' or "+
"ipsrs_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and ipsrsbarang.nama_brng like '%"+nmbar.getText()+"%' and ipsrs_riwayat_barang.petugas like '%"+TCari.getText().trim()+"%' or "+
"ipsrs_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and ipsrsbarang.nama_brng like '%"+nmbar.getText()+"%' and ipsrs_riwayat_barang.status like '%"+TCari.getText().trim()+"%' "+
"order by ipsrs_riwayat_barang.tanggal,ipsrs_riwayat_barang.jam ",param);
"ipsrs_riwayat_barang.tanggal between '"+Valid.SetTgl(Tgl1.getSelectedItem()+"")+"' and '"+Valid.SetTgl(Tgl2.getSelectedItem()+"")+"' and ipsrsbarang.nama_brng like '%"+nmbar.getText()+"%' and "+
"(ipsrs_riwayat_barang.kode_brng like '%"+TCari.getText().trim()+"%' or ipsrsbarang.nama_brng like '%"+TCari.getText().trim()+"%' or ipsrs_riwayat_barang.petugas like '%"+TCari.getText().trim()+"%' or "+
"ipsrs_riwayat_barang.status like '%"+TCari.getText().trim()+"%') order by ipsrs_riwayat_barang.tanggal,ipsrs_riwayat_barang.jam ",param);
}

this.setCursor(Cursor.getDefaultCursor());
Expand Down Expand Up @@ -559,10 +557,10 @@ private void prosesCari() {
"ipsrs_riwayat_barang.jam,ipsrs_riwayat_barang.petugas,"+
"ipsrs_riwayat_barang.status from ipsrs_riwayat_barang "+
"inner join ipsrsbarang on ipsrs_riwayat_barang.kode_brng=ipsrsbarang.kode_brng where "+
"ipsrs_riwayat_barang.tanggal between ? and ? and ipsrsbarang.nama_brng like ? and ipsrs_riwayat_barang.kode_brng like ? or "+
"ipsrs_riwayat_barang.tanggal between ? and ? and ipsrsbarang.nama_brng like ? and ipsrsbarang.nama_brng like ? or "+
"ipsrs_riwayat_barang.tanggal between ? and ? and ipsrsbarang.nama_brng like ? and ipsrs_riwayat_barang.petugas like ? or "+
"ipsrs_riwayat_barang.tanggal between ? and ? and ipsrsbarang.nama_brng like ? and ipsrs_riwayat_barang.status like ? order by ipsrs_riwayat_barang.tanggal,ipsrs_riwayat_barang.jam ");
"ipsrs_riwayat_barang.tanggal between ? and ? and ipsrsbarang.nama_brng like ? and "+
"(ipsrs_riwayat_barang.kode_brng like ? or ipsrsbarang.nama_brng like ? or "+
"ipsrs_riwayat_barang.petugas like ? or ipsrs_riwayat_barang.status like ?)"+
"order by ipsrs_riwayat_barang.tanggal,ipsrs_riwayat_barang.jam ");
}

try {
Expand All @@ -574,18 +572,9 @@ private void prosesCari() {
ps.setString(2,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(3,"%"+nmbar.getText()+"%");
ps.setString(4,"%"+TCari.getText().trim()+"%");
ps.setString(5,Valid.SetTgl(Tgl1.getSelectedItem()+""));
ps.setString(6,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(7,"%"+nmbar.getText()+"%");
ps.setString(8,"%"+TCari.getText().trim()+"%");
ps.setString(9,Valid.SetTgl(Tgl1.getSelectedItem()+""));
ps.setString(10,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(11,"%"+nmbar.getText()+"%");
ps.setString(12,"%"+TCari.getText().trim()+"%");
ps.setString(13,Valid.SetTgl(Tgl1.getSelectedItem()+""));
ps.setString(14,Valid.SetTgl(Tgl2.getSelectedItem()+""));
ps.setString(15,"%"+nmbar.getText()+"%");
ps.setString(16,"%"+TCari.getText().trim()+"%");
ps.setString(5,"%"+TCari.getText().trim()+"%");
ps.setString(6,"%"+TCari.getText().trim()+"%");
ps.setString(7,"%"+TCari.getText().trim()+"%");
}
rs=ps.executeQuery();
while(rs.next()){
Expand Down
2 changes: 1 addition & 1 deletion src/simrskhanza/DlgAbout.form
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="32" green="32" red="32" type="rgb"/>
</Property>
<Property name="text" type="java.lang.String" value="Update 2022-01-28"/>
<Property name="text" type="java.lang.String" value="Update 2022-01-31"/>
<Property name="name" type="java.lang.String" value="jLabel17" noResource="true"/>
</Properties>
<Constraints>
Expand Down
2 changes: 1 addition & 1 deletion src/simrskhanza/DlgAbout.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private void initComponents() {

jLabel17.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N
jLabel17.setForeground(new java.awt.Color(50, 50, 50));
jLabel17.setText("Update 2022-01-28");
jLabel17.setText("Update 2022-01-31");
jLabel17.setName("jLabel17"); // NOI18N
panelGlass1.add(jLabel17);
jLabel17.setBounds(107, 8, 120, 14);
Expand Down

0 comments on commit 0611ee9

Please sign in to comment.