Skip to content

Commit

Permalink
Fix Table Lock pada saat order Lab (mas-elkhanza#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizky92 authored Apr 18, 2024
1 parent 1e89352 commit 57e0cb3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/permintaan/DlgPermintaanLaboratorium.form
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="22-11-2023"/>
<StringItem index="0" value="18-04-2024"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
Expand Down Expand Up @@ -1205,7 +1205,7 @@
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="22-11-2023"/>
<StringItem index="0" value="18-04-2024"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
Expand Down Expand Up @@ -1282,7 +1282,7 @@
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="22-11-2023"/>
<StringItem index="0" value="18-04-2024"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
Expand Down
14 changes: 10 additions & 4 deletions src/permintaan/DlgPermintaanLaboratorium.java
Original file line number Diff line number Diff line change
Expand Up @@ -2762,15 +2762,21 @@ private void simpan() {
}
}

if(sukses==true){
// Jaga-jaga, commit / rollback segera sebelum autoCommit dinyalakan
if (sukses) {
Sequel.Commit();
isReset();
emptTeks();
} else {
Sequel.RollBack();
}
koneksi.setAutoCommit(true);

if (sukses) {
JOptionPane.showMessageDialog(null,"Proses simpan selesai...!");
}else{
} else {
JOptionPane.showMessageDialog(null,"Proses simpan gagal...!");
}
koneksi.setAutoCommit(true);

} catch (Exception e) {
System.out.println(e);
}
Expand Down

0 comments on commit 57e0cb3

Please sign in to comment.