|
|
|
@ -60,6 +60,8 @@ public class FormUtamaController implements Initializable {
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private VBox vbNavigasi;
|
|
|
|
private VBox vbNavigasi;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
|
|
|
|
private Button btnTambahNota;
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
private Label lblNamaLogin;
|
|
|
|
private Label lblNamaLogin;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Label lblMemberNonMember;
|
|
|
|
private Label lblMemberNonMember;
|
|
|
|
@ -280,15 +282,6 @@ public class FormUtamaController implements Initializable {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
listShortcuts.put(kcCariNotaTunda, rnCariNotaTunda);
|
|
|
|
listShortcuts.put(kcCariNotaTunda, rnCariNotaTunda);
|
|
|
|
|
|
|
|
|
|
|
|
KeyCombination kcCariCetakUlangNota = new KeyCodeCombination(KeyCode.P, KeyCombination.CONTROL_DOWN);
|
|
|
|
|
|
|
|
Runnable rnCetakUlangNota = () -> {
|
|
|
|
|
|
|
|
DialogCetakUlangNotaController dialogCetakUlangNota = new DialogCetakUlangNotaController();
|
|
|
|
|
|
|
|
dialogCetakUlangNota.initOwner(bpMain.getScene().getWindow());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Optional<String> result = dialogCetakUlangNota.showAndWait();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
listShortcuts.put(kcCariCetakUlangNota, rnCetakUlangNota);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KeyCombination kcCheckout = new KeyCodeCombination(KeyCode.F8);
|
|
|
|
KeyCombination kcCheckout = new KeyCodeCombination(KeyCode.F8);
|
|
|
|
Runnable rnCheckout = () -> {
|
|
|
|
Runnable rnCheckout = () -> {
|
|
|
|
switch (tipeTransaksiState) {
|
|
|
|
switch (tipeTransaksiState) {
|
|
|
|
@ -304,6 +297,27 @@ public class FormUtamaController implements Initializable {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
listShortcuts.put(kcCheckout, rnCheckout);
|
|
|
|
listShortcuts.put(kcCheckout, rnCheckout);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KeyCombination kcCariCetakUlangNota = new KeyCodeCombination(KeyCode.P, KeyCombination.CONTROL_DOWN);
|
|
|
|
|
|
|
|
Runnable rnCetakUlangNota = () -> {
|
|
|
|
|
|
|
|
DialogCetakUlangNotaController dialogCetakUlangNota = new DialogCetakUlangNotaController();
|
|
|
|
|
|
|
|
dialogCetakUlangNota.initOwner(bpMain.getScene().getWindow());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Optional<String> result = dialogCetakUlangNota.showAndWait();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
listShortcuts.put(kcCariCetakUlangNota, rnCetakUlangNota);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KeyCombination kcTambah = new KeyCodeCombination(KeyCode.T, KeyCombination.CONTROL_DOWN);
|
|
|
|
|
|
|
|
Runnable rnTambah = () -> {
|
|
|
|
|
|
|
|
btnTambahNota.fire();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
listShortcuts.put(kcTambah, rnTambah);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KeyCombination kcScanMember = new KeyCodeCombination(KeyCode.S, KeyCombination.CONTROL_DOWN);
|
|
|
|
|
|
|
|
Runnable rnScanMember = () -> {
|
|
|
|
|
|
|
|
tfScanMember.requestFocus();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
listShortcuts.put(kcScanMember, rnScanMember);
|
|
|
|
|
|
|
|
|
|
|
|
KeyCombination kcLogout = new KeyCodeCombination(KeyCode.L, KeyCombination.CONTROL_DOWN);
|
|
|
|
KeyCombination kcLogout = new KeyCodeCombination(KeyCode.L, KeyCombination.CONTROL_DOWN);
|
|
|
|
Runnable rnLogout = () -> {
|
|
|
|
Runnable rnLogout = () -> {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|