Add files via upload
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: com.example.demo3.Main
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,148 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.ProgressIndicator?>
|
||||
<?import javafx.scene.control.TableColumn?>
|
||||
<?import javafx.scene.control.TableView?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<VBox fx:id="rightVBox" alignment="TOP_CENTER" prefHeight="600.0" prefWidth="864.0" stylesheets="@Login.css" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.AdminDepositsController">
|
||||
<children>
|
||||
<HBox alignment="CENTER" spacing="10.0">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form" />
|
||||
<Button fx:id="refreshBtn" mnemonicParsing="false" text="refresh" />
|
||||
<ProgressIndicator fx:id="progressIndicator" progress="0.0" />
|
||||
</children>
|
||||
</HBox>
|
||||
<HBox alignment="CENTER" prefHeight="437.0" prefWidth="799.0" VBox.vgrow="ALWAYS">
|
||||
<children>
|
||||
<VBox alignment="CENTER" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label text="DEPOSITS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0" />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="14.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<TableView fx:id="depositsTable" editable="true" prefHeight="395.0" prefWidth="0.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idDepoCol" prefWidth="83.0" text="id" />
|
||||
<TableColumn fx:id="nameDepoCol" prefWidth="91.0" text="name" />
|
||||
<TableColumn fx:id="coordXDepoCol" prefWidth="91.0" text="coord X" />
|
||||
<TableColumn fx:id="coordYDepoCol" prefWidth="91.0" text="coord Y" />
|
||||
<TableColumn fx:id="selectedDepoCol" prefWidth="91.0" text="selected" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label text="PRODUCTS">
|
||||
<font>
|
||||
<Font size="14.0" />
|
||||
</font>
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TableView fx:id="productsTable" editable="true" prefHeight="446.0" prefWidth="638.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idProductsCol" prefWidth="28.0" text="id" />
|
||||
<TableColumn fx:id="nameProductsCol" prefWidth="69.0" text="name" />
|
||||
<TableColumn fx:id="quantityAvailableProductsCol" prefWidth="125.0" text="quantity available" />
|
||||
<TableColumn fx:id="selectedProductCol" prefWidth="111.0" text="selected" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</HBox>
|
||||
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
||||
<children>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="63.0">
|
||||
<children>
|
||||
<Label fx:id="nameLabel" text="Name">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" left="10.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<Label fx:id="quantityLabel" text="Quantity">
|
||||
<VBox.margin>
|
||||
<Insets left="10.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<TextField fx:id="name">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<TextField fx:id="quantity" />
|
||||
</children>
|
||||
<HBox.margin>
|
||||
<Insets right="10.0" />
|
||||
</HBox.margin>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="63.0">
|
||||
<children>
|
||||
<Label fx:id="coordXLabel" text="Coord X">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" left="10.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<Label fx:id="coordYLabel" text="Coord Y">
|
||||
<VBox.margin>
|
||||
<Insets left="10.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<TextField fx:id="coordX">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<TextField fx:id="coordY" />
|
||||
</children>
|
||||
</VBox>
|
||||
<Button fx:id="insertBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="INSERT">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="updateBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="UPDATE">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="deleteBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="DELETE">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import de.jensd.fx.glyphs.icons525.Icons525View?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.PasswordField?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<HBox alignment="CENTER" prefHeight="600.0" prefWidth="1000.0" stylesheets="@Login.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.AdminLoginController">
|
||||
<children>
|
||||
<VBox alignment="CENTER" prefHeight="600.0" prefWidth="300.0" styleClass="left-form" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Icons525View glyphName="USER" size="100" text="" />
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Delivery Planner">
|
||||
<font>
|
||||
<Font name="System Bold" size="23.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Admin">
|
||||
<font>
|
||||
<Font name="System Bold" size="20.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Console">
|
||||
<font>
|
||||
<Font name="System Bold" size="20.0" />
|
||||
</font>
|
||||
</Label>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER" prefHeight="600.0" prefWidth="500.0" spacing="20.0" styleClass="right-form" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Welcome Back!">
|
||||
<font>
|
||||
<Font name="System Bold" size="30.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label fx:id="errorField" textFill="RED" />
|
||||
<TextField fx:id="email" maxWidth="200.0" prefHeight="34.0" prefWidth="149.0" promptText="email" />
|
||||
<PasswordField fx:id="password" maxWidth="200.0" prefHeight="34.0" prefWidth="149.0" promptText="password" />
|
||||
<Button fx:id="loginBtn" maxWidth="200.0" mnemonicParsing="false" prefHeight="34.0" prefWidth="149.0" styleClass="label-form" text="login">
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
</Button>
|
||||
</children>
|
||||
<padding>
|
||||
<Insets left="30.0" right="30.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
</children>
|
||||
</HBox>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.ProgressIndicator?>
|
||||
<?import javafx.scene.control.TableColumn?>
|
||||
<?import javafx.scene.control.TableView?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<AnchorPane xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.AdminOrdersController">
|
||||
<children>
|
||||
<VBox alignment="TOP_CENTER" prefHeight="600.0" prefWidth="864.0" stylesheets="@Login.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<HBox alignment="CENTER" spacing="10.0">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form" />
|
||||
<Button fx:id="refreshBtn" mnemonicParsing="false" text="refresh" />
|
||||
<ProgressIndicator fx:id="progressIndicator" progress="0.0" />
|
||||
</children>
|
||||
</HBox>
|
||||
<AnchorPane prefHeight="440.0" prefWidth="864.0" VBox.vgrow="ALWAYS">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<HBox alignment="TOP_CENTER" prefHeight="288.0" prefWidth="864.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<VBox alignment="CENTER" maxWidth="-Infinity" prefHeight="545.0" prefWidth="341.0" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label text="USERS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TableView fx:id="usersTable" editable="true" prefHeight="174.0" prefWidth="775.0" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idUserCol" prefWidth="75.0" text="id" />
|
||||
<TableColumn fx:id="nameUserCol" prefWidth="75.0" text="name" />
|
||||
<TableColumn fx:id="selectedUserCol" prefWidth="75.0" text="select" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
<Label text="ORDERS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" top="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TableView fx:id="ordersTable" editable="true" prefHeight="203.0" prefWidth="227.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idOrdersCol" minWidth="0.0" prefWidth="102.0" text="order id" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="TOP_CENTER" prefHeight="545.0" prefWidth="752.0" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label text="PRODUCTS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TableView fx:id="productsTable" editable="true" prefHeight="528.0" prefWidth="283.0" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idProductCol" prefWidth="95.0" text="id" />
|
||||
<TableColumn fx:id="nameProductCol" prefWidth="351.0" text="name" />
|
||||
<TableColumn fx:id="quantityProductCol" prefWidth="313.0" text="quantity" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
</TableView>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
</HBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
<HBox alignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0" />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<Button fx:id="deleteBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="130.0" text="DELETE" />
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import com.jfoenix.svg.SVGGlyph?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.TableColumn?>
|
||||
<?import javafx.scene.control.TableView?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<HBox alignment="TOP_CENTER" maxHeight="1.7976931348623157E308" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" stylesheets="@Login.css" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.AdminPageController">
|
||||
<children>
|
||||
<VBox alignment="TOP_CENTER" maxWidth="300.0" prefHeight="600.0" prefWidth="300.0" spacing="5.0" styleClass="left-form" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Welcome">
|
||||
<font>
|
||||
<Font size="19.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label fx:id="usernameField" styleClass="label-form" text="Admin">
|
||||
<font>
|
||||
<Font size="13.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Button fx:id="productsBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Products">
|
||||
<VBox.margin>
|
||||
<Insets top="30.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="depositsBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Deposits">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="ordersBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Users">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="routesBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Routes">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<AnchorPane prefHeight="286.0" prefWidth="223.0">
|
||||
<children>
|
||||
<Button fx:id="logoutBtn" layoutX="72.0" layoutY="241.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="79.0" text="Logout" />
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</children>
|
||||
<padding>
|
||||
<Insets top="50.0" />
|
||||
</padding>
|
||||
<HBox.margin>
|
||||
<Insets />
|
||||
</HBox.margin>
|
||||
</VBox>
|
||||
<AnchorPane HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<VBox fx:id="rightVBox" alignment="TOP_CENTER" prefHeight="600.0" prefWidth="851.0" stylesheets="@Login.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<TableView editable="true" prefHeight="446.0" prefWidth="851.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idCol" prefWidth="61.0" text="id" />
|
||||
<TableColumn fx:id="nameCol" prefWidth="218.0" text="name" />
|
||||
<TableColumn fx:id="quantityAvailableCol" prefWidth="218.0" text="quantity available" />
|
||||
<TableColumn fx:id="quantitySelectedCol" prefWidth="147.0" text="selected quantity" />
|
||||
<TableColumn fx:id="selectedCol" prefWidth="192.0" text="selected" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
|
||||
<children>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="63.0">
|
||||
<children>
|
||||
<Label text="Name">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" left="10.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<Label text="Quantity">
|
||||
<VBox.margin>
|
||||
<Insets left="10.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<TextField fx:id="nameField">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<TextField fx:id="quantityField" />
|
||||
</children>
|
||||
</VBox>
|
||||
<Button fx:id="insertBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="INSERT">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="updateBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="UPDATE">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="deleteBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="DELETE">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
<SVGGlyph />
|
||||
</children>
|
||||
</HBox>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.ProgressIndicator?>
|
||||
<?import javafx.scene.control.TableColumn?>
|
||||
<?import javafx.scene.control.TableView?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<AnchorPane xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.AdminProductsController">
|
||||
<children>
|
||||
<VBox fx:id="rightVBox" alignment="TOP_CENTER" maxHeight="1080.0" stylesheets="@Login.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<HBox alignment="CENTER" spacing="15.0">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form" />
|
||||
<Button fx:id="refreshBtn" mnemonicParsing="false" text="refresh" />
|
||||
<ProgressIndicator fx:id="progressIndicator" progress="0.0" />
|
||||
</children>
|
||||
</HBox>
|
||||
<TableView fx:id="productsTable" editable="true" prefHeight="446.0" prefWidth="851.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idCol" prefWidth="61.0" text="id" />
|
||||
<TableColumn fx:id="nameCol" prefWidth="218.0" text="name" />
|
||||
<TableColumn fx:id="selectedCol" prefWidth="192.0" text="selected" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
<HBox alignment="CENTER" nodeOrientation="LEFT_TO_RIGHT" prefHeight="100.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
|
||||
<children>
|
||||
<Label text="Name:">
|
||||
<HBox.margin>
|
||||
<Insets right="5.0" />
|
||||
</HBox.margin>
|
||||
</Label>
|
||||
<TextField fx:id="name" />
|
||||
<Button fx:id="insertBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="INSERT">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="updateBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="UPDATE">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="deleteBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" text="DELETE">
|
||||
<HBox.margin>
|
||||
<Insets left="50.0" />
|
||||
</HBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.ProgressIndicator?>
|
||||
<?import javafx.scene.control.TableColumn?>
|
||||
<?import javafx.scene.control.TableView?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<AnchorPane xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.AdminRoutesController">
|
||||
<children>
|
||||
<VBox alignment="TOP_CENTER" prefHeight="600.0" prefWidth="864.0" stylesheets="@Login.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<HBox alignment="CENTER" spacing="10.0">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form" />
|
||||
<Button fx:id="refreshBtn" mnemonicParsing="false" text="refresh" />
|
||||
<ProgressIndicator fx:id="progressIndicator" progress="0.0" />
|
||||
</children>
|
||||
</HBox>
|
||||
<AnchorPane prefHeight="440.0" prefWidth="864.0" VBox.vgrow="ALWAYS">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<HBox alignment="TOP_CENTER" prefHeight="288.0" prefWidth="864.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<VBox alignment="CENTER" maxWidth="-Infinity" prefHeight="479.0" prefWidth="699.0" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label text="ORDERS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TableView fx:id="ordersTable" editable="true" prefHeight="58.0" prefWidth="227.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idOrdersCol" minWidth="0.0" prefWidth="102.0" text="id" />
|
||||
<TableColumn fx:id="coordXOrdersCol" minWidth="0.0" prefWidth="102.0" text="coord X" />
|
||||
<TableColumn fx:id="coordYOrdersCol" minWidth="0.0" prefWidth="102.0" text="coord Y" />
|
||||
<TableColumn fx:id="selectedOrdersCol" minWidth="0.0" prefWidth="102.0" text="select" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
<Label text="DEPOSITS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" top="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TableView fx:id="depositsTable" editable="true" prefHeight="174.0" prefWidth="775.0" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idDepositsCol" prefWidth="75.0" text="id" />
|
||||
<TableColumn fx:id="nameDepositsCol" prefWidth="75.0" text="name" />
|
||||
<TableColumn fx:id="coordXDepositsCol" prefWidth="75.0" text="coord X" />
|
||||
<TableColumn fx:id="coordYDepositsCol" prefWidth="75.0" text="coord Y" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="TOP_CENTER" prefHeight="545.0" prefWidth="752.0" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label text="PRODUCTS">
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TableView fx:id="productsTable" editable="true" prefHeight="457.0" prefWidth="485.0" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idProductCol" prefWidth="95.0" text="id" />
|
||||
<TableColumn fx:id="nameProductCol" prefWidth="351.0" text="name" />
|
||||
<TableColumn fx:id="quantityProductCol" prefWidth="313.0" text="quantity" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
</TableView>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
</HBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
<HBox alignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0" />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<Button fx:id="deleteRouteBtn" mnemonicParsing="false" prefHeight="31.0" prefWidth="130.0" text="DELETE ROUTE" />
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
.left-form {
|
||||
-fx-background-color: linear-gradient(from 25% 25% to 100% 100%, #0c98d0, #0050ff);
|
||||
-fx-border-color: black;
|
||||
-fx-border-width: 1;
|
||||
}
|
||||
|
||||
.right-form {
|
||||
-fx-border-style: solid solid solid hidden;
|
||||
-fx-border-width: 1;
|
||||
-fx-border-color: black;
|
||||
}
|
||||
|
||||
.label-form {
|
||||
-fx-text-fill: #000000;
|
||||
}
|
||||
|
||||
.left-admin-form{
|
||||
-fx-border-color: black;
|
||||
-fx-border-width: 1;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import de.jensd.fx.glyphs.icons525.*?>
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<?import javafx.scene.text.*?>
|
||||
|
||||
<HBox alignment="CENTER" prefHeight="600.0" prefWidth="1000.0" stylesheets="@Login.css" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.LoginController">
|
||||
<children>
|
||||
<VBox alignment="CENTER" prefHeight="600.0" prefWidth="300.0" styleClass="left-form" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Icons525View glyphName="USER" size="100" text="" />
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Delivery Planner">
|
||||
<font>
|
||||
<Font name="System Bold" size="23.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Admin Console">
|
||||
<font>
|
||||
<Font name="System Bold" size="20.0" />
|
||||
</font>
|
||||
</Label>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER" prefHeight="600.0" prefWidth="500.0" spacing="20.0" styleClass="right-form" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<children>
|
||||
<Label styleClass="label-form" stylesheets="@Login.css" text="Welcome Back!">
|
||||
<font>
|
||||
<Font name="System Bold" size="30.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label fx:id="errorField" textFill="RED" />
|
||||
<TextField fx:id="email" maxWidth="200.0" prefHeight="34.0" prefWidth="149.0" promptText="email" />
|
||||
<PasswordField fx:id="password" maxWidth="200.0" prefHeight="34.0" prefWidth="149.0" promptText="password" />
|
||||
<Button fx:id="loginBtn" maxWidth="200.0" mnemonicParsing="false" prefHeight="34.0" prefWidth="149.0" styleClass="label-form" text="login">
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
</Button>
|
||||
<Label fx:id="loading" maxWidth="200.0" prefHeight="34.0" prefWidth="200.0">
|
||||
<VBox.margin>
|
||||
<Insets bottom="-20.0" />
|
||||
</VBox.margin></Label>
|
||||
<ProgressBar fx:id="progressBar" prefWidth="200.0" progress="0.0" VBox.vgrow="ALWAYS" />
|
||||
</children>
|
||||
<padding>
|
||||
<Insets left="30.0" right="30.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
</children>
|
||||
</HBox>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
.vbox{
|
||||
-fx-background-color: linear-gradient(from 25% 25% to 100% 100%, #0c98d0, #0050ff);
|
||||
}
|
||||
|
||||
.text{
|
||||
-fx-text-fill: #000000;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.TableColumn?>
|
||||
<?import javafx.scene.control.TableView?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<AnchorPane xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.UserOrdersController">
|
||||
<children>
|
||||
<VBox alignment="TOP_CENTER" prefHeight="600.0" prefWidth="864.0" stylesheets="@Login.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<AnchorPane VBox.vgrow="ALWAYS">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<HBox alignment="TOP_CENTER" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||
<children>
|
||||
<TableView fx:id="ordersTable" editable="true" prefHeight="545.0" prefWidth="47.0" stylesheets="@Login.css" HBox.hgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idOrderCol" minWidth="0.0" prefWidth="102.0" text="order id" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
<HBox.margin>
|
||||
<Insets right="15.0" />
|
||||
</HBox.margin>
|
||||
</TableView>
|
||||
<TableView fx:id="productsTable" editable="true" prefHeight="723.0" prefWidth="685.0" HBox.hgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idProductCol" prefWidth="95.0" text="id" />
|
||||
<TableColumn fx:id="nameProductCol" prefWidth="351.0" text="name" />
|
||||
<TableColumn fx:id="quantityProductCol" prefWidth="313.0" text="quantity" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
</TableView>
|
||||
</children>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
</HBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.ProgressIndicator?>
|
||||
<?import javafx.scene.control.TableColumn?>
|
||||
<?import javafx.scene.control.TableView?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<VBox fx:id="rightVBox" alignment="TOP_CENTER" prefHeight="600.0" prefWidth="864.0" stylesheets="@Login.css" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo3.UserProductsController">
|
||||
<children>
|
||||
<HBox alignment="CENTER" spacing="10.0">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<children>
|
||||
<TextField fx:id="searchBar" maxWidth="300.0" minWidth="100.0" prefWidth="300.0" promptText="search..." styleClass="label-form" />
|
||||
<Button fx:id="refreshBtn" mnemonicParsing="false" text="refresh" HBox.hgrow="ALWAYS" />
|
||||
<ProgressIndicator fx:id="progressIndicator" prefWidth="27.0" progress="0.0" />
|
||||
</children>
|
||||
</HBox>
|
||||
<TableView fx:id="productsTable" editable="true" prefHeight="446.0" prefWidth="851.0" stylesheets="@Login.css" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="idCol" prefWidth="61.0" text="id" />
|
||||
<TableColumn fx:id="nameCol" prefWidth="218.0" text="name" />
|
||||
<TableColumn fx:id="quantityAvailableCol" prefWidth="218.0" text="quantity available" />
|
||||
<TableColumn fx:id="selectedCol" prefWidth="192.0" text="selected" />
|
||||
<TableColumn fx:id="selectedQuantityCol" prefWidth="147.0" text="selected quantity" />
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
<Button fx:id="placeOrderBtn" maxWidth="100.0" mnemonicParsing="false" prefHeight="31.0" prefWidth="100.0" styleClass="label-form" text="Place Order">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</VBox>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user