添加获取实时时间getCurrenTime()完成出库管理功能

master
ljc 7 months ago
parent 9bcdf03f7c
commit 768eb43d61

@ -116,7 +116,7 @@ public class Main extends Application {
timeThread.start(); timeThread.start();
return statusBar; return statusBar;
} }
private String getCurrentTime() { private String getCurrentTime() {//实时时间
return java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); return java.time.LocalDateTime.now().format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
} }
private MenuBar createMenuBar() { private MenuBar createMenuBar() {

@ -79,4 +79,4 @@ public class OutboundRecord {
public void setRemark(String remark) { public void setRemark(String remark) {
this.remark = remark; this.remark = remark;
} }
} }

@ -220,4 +220,4 @@ public class OutboundView extends BorderPane {
alert.setContentText(content); alert.setContentText(content);
alert.showAndWait(); alert.showAndWait();
} }
} }
Loading…
Cancel
Save