Trial 05022025
This commit is contained in:
@@ -243,11 +243,14 @@ public class CaptureView {
|
||||
} else throw new Exception("FTP Host not reachable");
|
||||
} catch (Exception e){
|
||||
Logger.error("Error UploadToFTP: "+e.getMessage());
|
||||
Alert alert = new Alert(AlertType.ERROR);
|
||||
alert.setTitle("Error");
|
||||
alert.setHeaderText("Upload to FTP Failed");
|
||||
alert.setContentText("Error: "+e.getMessage());
|
||||
alert.showAndWait();
|
||||
Platform.runLater(()->{
|
||||
Alert alert = new Alert(AlertType.ERROR);
|
||||
alert.setTitle("Error");
|
||||
alert.setHeaderText("Upload to FTP Failed");
|
||||
alert.setContentText("Error: "+e.getMessage());
|
||||
alert.showAndWait();
|
||||
});
|
||||
|
||||
}
|
||||
}).start();
|
||||
} else {
|
||||
@@ -615,11 +618,24 @@ public class CaptureView {
|
||||
|
||||
@Override
|
||||
public void onBlink(int counter) {
|
||||
String prefix = prefixfile.getText();
|
||||
if (!prefix.isEmpty()){
|
||||
if (isTakingPhoto.get()) return; // other camera already detect blinking
|
||||
btnTakePhoto.fire();
|
||||
}
|
||||
|
||||
// System.out.println("Blink detected at camera "+title+" counter: "+counter);
|
||||
// Platform.runLater(()->{
|
||||
// Alert Alert = new Alert(AlertType.INFORMATION);
|
||||
// Alert.setTitle("Blink Detected");
|
||||
// Alert.setHeaderText("Blink Detected");
|
||||
// Alert.setContentText("Blink Detected at Camera "+title+" counter: "+counter);
|
||||
// Alert.show();
|
||||
//
|
||||
// String prefix = prefixfile.getText();
|
||||
// //TODO Pastikan Nomor Pelanggan 8 digit
|
||||
// if (prefix.length()>=8){
|
||||
// if (isTakingPhoto.get()) return; // other camera already detect blinking
|
||||
// btnTakePhoto.fire();
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void update_status(Cameradetail image){
|
||||
|
||||
Reference in New Issue
Block a user