Your Name 7 months ago
parent 57005e40d4
commit b42d1f036b

@ -8,6 +8,7 @@ import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.stage.Stage;
import view.InboundView;
import view.InventoryView;
import view.OutboundView;
public class Main extends Application {
@ -192,6 +193,9 @@ public class Main extends Application {
TreeItem<String> item = tree.getSelectionModel().getSelectedItem();
if (item != null) {
switch (item.getValue()){
case "库存查询":
showInventoryView();
break;
case "入库管理":
showInboundView();
break;
@ -216,6 +220,10 @@ public class Main extends Application {
OutboundView outboundView = new OutboundView();
contentArea.setCenter(outboundView);
}
private void showInventoryView() {
InventoryView inventoryView = new InventoryView();
contentArea.setCenter(inventoryView);
}
public static void main(String[] args) {
launch(args);
}

Loading…
Cancel
Save