completed UI "Aufträge"

This commit is contained in:
hendrik 2018-03-31 00:35:45 +02:00
parent 31487262ac
commit 9da746d19b
7 changed files with 604 additions and 512 deletions

Binary file not shown.

View File

@ -5,6 +5,7 @@
<?import javafx.scene.control.Label?> <?import javafx.scene.control.Label?>
<?import javafx.scene.control.Tab?> <?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?> <?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.control.TreeTableColumn?> <?import javafx.scene.control.TreeTableColumn?>
<?import javafx.scene.control.TreeTableView?> <?import javafx.scene.control.TreeTableView?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
@ -14,230 +15,268 @@
<?import javafx.scene.shape.Line?> <?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<AnchorPane fx:id="mainAnchorpane" maxHeight="924.0" maxWidth="1536.0" minHeight="864.0" minWidth="1536.0" prefHeight="913.0" prefWidth="1536.0" xmlns="http://javafx.com/javafx/9" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainWindowController"> <AnchorPane fx:id="mainAnchorpane" maxHeight="732.0" maxWidth="1366.0" minHeight="732.0" minWidth="1366.0" prefHeight="732.0" prefWidth="1366.0" xmlns="http://javafx.com/javafx/9" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainWindowController">
<children> <children>
<TabPane layoutX="4.0" layoutY="5.0" nodeOrientation="RIGHT_TO_LEFT" prefHeight="924.0" prefWidth="1536.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <TabPane layoutX="4.0" layoutY="5.0" nodeOrientation="RIGHT_TO_LEFT" prefHeight="924.0" prefWidth="1536.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<tabs> <tabs>
<Tab text="Einstellungen"> <Tab text="Einstellungen">
<content> <content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children> <children>
<Button fx:id="ueberbtn" layoutX="676.0" layoutY="315.0" mnemonicParsing="false" onAction="#ueberbtnAction" text="Über" /> <Button fx:id="ueberbtn" layoutX="676.0" layoutY="315.0" mnemonicParsing="false" onAction="#ueberbtnAction" text="Über" />
</children> </children>
</AnchorPane> </AnchorPane>
</content> </content>
</Tab> </Tab>
<Tab text="Positionen bearbeiten"> <Tab text="Positionen bearbeiten">
<content> <content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" /> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
</content> </content>
</Tab> </Tab>
<Tab text="Aufträge"> <Tab text="Aufträge">
<content> <content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0"> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0">
<children> <children>
<TreeTableView fx:id="mainTreeTable" layoutX="11.0" layoutY="10.0" prefHeight="749.0" prefWidth="1514.0"> <TreeTableView fx:id="jobsTreeTable" layoutX="11.0" layoutY="10.0" prefHeight="541.0" prefWidth="1346.0">
<columns> <columns>
<TreeTableColumn fx:id="datumSpalte" editable="false" prefWidth="90.6666259765625" text="Betrag" /> <TreeTableColumn fx:id="columnValue" editable="false" prefWidth="90.6666259765625" text="Betrag" />
<TreeTableColumn fx:id="kontoSpalte" editable="false" prefWidth="91.0" text="Zustand" /> <TreeTableColumn fx:id="columnState" editable="false" prefWidth="91.0" text="Zustand" />
<TreeTableColumn fx:id="kontoSpalte1" editable="false" prefWidth="1140.333251953125" sortable="false" text="Positionen" /> <TreeTableColumn fx:id="columnPositions" editable="false" prefWidth="1140.333251953125" sortable="false" text="Positionen" />
<TreeTableColumn fx:id="kontoSpalte2" editable="false" prefWidth="121.666748046875" text="Zeit" /> <TreeTableColumn fx:id="columnTime" editable="false" prefWidth="121.666748046875" text="Zeit" />
<TreeTableColumn fx:id="kontoSpalte3" editable="false" prefWidth="72.333251953125" text="Nummer" /> <TreeTableColumn fx:id="columnNumber" editable="false" prefWidth="72.333251953125" text="Nummer" />
</columns> </columns>
</TreeTableView> </TreeTableView>
</children> <Button fx:id="btnReprintJob" layoutX="378.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnReprintJobAction" text="Ausgewählter Auftrag Drucken">
</AnchorPane> <font>
</content> <Font name="Cantarell Regular" size="17.0" />
</Tab> </font>
<Tab text="Neuer Auftrag"> </Button>
<content> <TitledPane fx:id="titlePaneStats" alignment="CENTER" collapsible="false" contentDisplay="CENTER" layoutX="992.0" layoutY="561.0" prefHeight="118.0" prefWidth="365.0" text="Statistik - 30.03..2018 15:15 Uhr">
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0"> <content>
<children> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="59.0" prefWidth="483.0">
<TreeTableView fx:id="tableCurrentOrder" layoutX="15.0" layoutY="123.0" prefHeight="464.0" prefWidth="374.0"> <children>
<columns> <Label fx:id="lableJobCount" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="2.0" prefHeight="34.0" prefWidth="340.0" text="Anzahl Aufträge: 2781">
<TreeTableColumn fx:id="columnPosition" editable="false" prefWidth="304.3333740234375" resizable="false" sortable="false" text="Position" /> <font>
<TreeTableColumn fx:id="columnQuantity" editable="false" prefWidth="80.6666259765625" resizable="false" sortable="false" text="Anzahl" /> <Font name="Cantarell Regular" size="18.0" />
</columns> </font>
</TreeTableView> </Label>
<GridPane gridLinesVisible="true" layoutX="421.0" layoutY="15.0" prefHeight="850.0" prefWidth="1100.0"> <Label fx:id="labelAvgJob" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="30.0" prefHeight="34.0" prefWidth="340.0" text="Durchschnittlicher Auftragswert: 12,90€">
<columnConstraints> <font>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <Font name="Cantarell Regular" size="18.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> </font>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> </Label>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <Label fx:id="lableAllValue" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="60.0" prefHeight="34.0" prefWidth="340.0" text="Gesamt: 1088,48€">
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <font>
</columnConstraints> <Font name="Cantarell Regular" size="18.0" />
<rowConstraints> </font>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> </Label>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> </children>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> </AnchorPane>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> </content>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> </TitledPane>
</rowConstraints> <Button fx:id="bntCancelJob" layoutX="44.0" layoutY="603.0" mnemonicParsing="false" onAction="#bntCancelJobAction" text="Ausgewählter Auftrag stonieren">
<children> <font>
<JFXButton fx:id="gridButton04" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton04Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1"> <Font name="Cantarell Regular" size="17.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </Button>
</font> <Button fx:id="btnCalcStats" layoutX="712.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnCalcStatsAction" text="Statistiken berrechnen">
</JFXButton> <font>
<JFXButton fx:id="gridButton05" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton05Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true"> <Font name="Cantarell Regular" size="17.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </Button>
</font> </children>
</JFXButton> </AnchorPane>
<JFXButton fx:id="gridButton03" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton03Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2"> </content>
<font> </Tab>
<Font name="Cantarell Regular" size="30.0" /> <Tab text="Neuer Auftrag">
</font> <content>
</JFXButton> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0">
<JFXButton fx:id="gridButton02" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton02Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3"> <children>
<font> <TreeTableView fx:id="tableCurrentOrder" layoutX="15.0" layoutY="85.0" prefHeight="379.0" prefWidth="382.0">
<Font name="Cantarell Regular" size="30.0" /> <columns>
</font> <TreeTableColumn fx:id="columnPosition" editable="false" prefWidth="304.3333740234375" resizable="false" sortable="false" text="Position" />
</JFXButton> <TreeTableColumn fx:id="columnQuantity" editable="false" prefWidth="80.6666259765625" resizable="false" sortable="false" text="Anzahl" />
<JFXButton fx:id="gridButton05" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton05Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4"> </columns>
<font> </TreeTableView>
<Font name="Cantarell Regular" size="30.0" /> <GridPane gridLinesVisible="true" layoutX="430.0" layoutY="15.0" prefHeight="670.0" prefWidth="920.0">
</font> <columnConstraints>
</JFXButton> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<JFXButton fx:id="gridButton10" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton10Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="1"> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<font> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<Font name="Cantarell Regular" size="30.0" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</font> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</JFXButton> </columnConstraints>
<JFXButton fx:id="gridButton09" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton09Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1"> <rowConstraints>
<font> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<Font name="Cantarell Regular" size="30.0" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</font> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</JFXButton> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<JFXButton fx:id="gridButton08" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton08Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="1"> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<font> </rowConstraints>
<Font name="Cantarell Regular" size="30.0" /> <children>
</font> <JFXButton fx:id="gridButton04" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton04Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1">
</JFXButton> <font>
<JFXButton fx:id="gridButton07" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton07Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="1"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton05" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton05Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true">
</JFXButton> <font>
<JFXButton fx:id="gridButton06" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton06Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="1"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton03" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton03Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2">
</JFXButton> <font>
<JFXButton fx:id="gridButton15" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton15Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="2"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton02" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton02Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3">
</JFXButton> <font>
<JFXButton fx:id="gridButton14" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton14Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="2"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton01" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton01Action" prefHeight="134.0" prefWidth="179.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4">
</JFXButton> <font>
<JFXButton fx:id="gridButton13" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton13Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="2"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton10" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton10Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="1">
</JFXButton> <font>
<JFXButton fx:id="gridButton12" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton12Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="2"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton09" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton09Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1">
</JFXButton> <font>
<JFXButton fx:id="gridButton11" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton11Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="2"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton08" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton08Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="1">
</JFXButton> <font>
<JFXButton fx:id="gridButton20" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton20Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="3"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton07" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton07Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="1">
</JFXButton> <font>
<JFXButton fx:id="gridButton19" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton19Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="3"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton06" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton06Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="1">
</JFXButton> <font>
<JFXButton fx:id="gridButton18" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton18Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="3"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton15" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton15Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="2">
</JFXButton> <font>
<JFXButton fx:id="gridButton17" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton17Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="3"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton14" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton14Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="2">
</JFXButton> <font>
<JFXButton fx:id="gridButton16" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton16Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="3"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton13" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton13Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="2">
</JFXButton> <font>
<JFXButton fx:id="gridButton25" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton25Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="4"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton12" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton12Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="2">
</JFXButton> <font>
<JFXButton fx:id="gridButton23" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton23Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="4"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton11" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton11Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="2">
</JFXButton> <font>
<JFXButton fx:id="gridButton22" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton22Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="4"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton20" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton20Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="3">
</JFXButton> <font>
<JFXButton fx:id="gridButton21" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton21Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="4"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton19" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton19Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="3">
</JFXButton> <font>
<JFXButton fx:id="gridButton24" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton24Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="4"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Regular" size="30.0" /> </JFXButton>
</font> <JFXButton fx:id="gridButton18" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton18Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="3">
</JFXButton> <font>
</children> <Font name="Cantarell Regular" size="24.0" />
</GridPane> </font>
<Button fx:id="btnPrintBill" contentDisplay="CENTER" defaultButton="true" graphicTextGap="1.0" layoutX="45.0" layoutY="765.0" maxHeight="70.0" minHeight="100.0" mnemonicParsing="false" onAction="#btnPrintBillAction" prefHeight="70.0" prefWidth="310.0" text="Drucken" wrapText="true"> </JFXButton>
<font> <JFXButton fx:id="gridButton17" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton17Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="3">
<Font name="Cantarell Bold" size="56.0" /> <font>
</font> <Font name="Cantarell Regular" size="24.0" />
</Button> </font>
<Button fx:id="btnDeleteSelectedPosition" layoutX="16.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnDeleteSelectedPositionAction" prefWidth="374.0" text="Ausgewählte Position löschen" textAlignment="CENTER"> </JFXButton>
<font> <JFXButton fx:id="gridButton16" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton16Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="3">
<Font name="Cantarell Regular" size="24.0" /> <font>
</font> <Font name="Cantarell Regular" size="24.0" />
</Button> </font>
<Label fx:id="labelAllPrize" alignment="CENTER" contentDisplay="CENTER" layoutY="655.0" prefHeight="15.0" prefWidth="386.0" text="99,99 €" textAlignment="CENTER"> </JFXButton>
<font> <JFXButton fx:id="gridButton25" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton25Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="4">
<Font name="Open Sans" size="80.0" /> <font>
</font> <Font name="Cantarell Regular" size="24.0" />
</Label> </font>
<Label fx:id="labelJobCounter" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="5.0" layoutY="70.0" prefHeight="15.0" prefWidth="386.0" text="Auftragsnummer: 128" textAlignment="CENTER"> </JFXButton>
<font> <JFXButton fx:id="gridButton23" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton23Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="4">
<Font name="Cantarell Regular" size="32.0" /> <font>
</font> <Font name="Cantarell Regular" size="24.0" />
</Label> </font>
<Label fx:id="labelTime" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="7.0" layoutY="11.0" prefHeight="15.0" prefWidth="386.0" text="Uhrzeit: 12:15" textAlignment="CENTER"> </JFXButton>
<font> <JFXButton fx:id="gridButton22" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton22Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="4">
<Font name="Cantarell Regular" size="32.0" /> <font>
</font> <Font name="Cantarell Regular" size="24.0" />
</Label> </font>
<JFXButton fx:id="btnLock" buttonType="RAISED" cancelButton="true" layoutX="16.0" layoutY="11.0" lineSpacing="2.0" onAction="#btnLockAction" prefHeight="42.0" prefWidth="148.0" ripplerFill="BLACK" text="Kasse sperren" textAlignment="CENTER" textFill="#c91c1c" textOverrun="LEADING_WORD_ELLIPSIS"> </JFXButton>
<font> <JFXButton fx:id="gridButton21" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton21Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="4">
<Font name="Cantarell Regular" size="19.0" /> <font>
</font> <Font name="Cantarell Regular" size="24.0" />
</JFXButton> </font>
<Line endX="800.0" layoutX="53.0" layoutY="465.0" rotate="90.0" startX="-100.0" strokeWidth="4.0" /> </JFXButton>
</children> <JFXButton fx:id="gridButton24" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton24Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="4">
</AnchorPane> <font>
</content> <Font name="Cantarell Regular" size="24.0" />
</Tab> </font>
</tabs> </JFXButton>
</TabPane> </children>
</children> </GridPane>
<Button fx:id="btnPrintBill" contentDisplay="CENTER" defaultButton="true" graphicTextGap="1.0" layoutX="75.0" layoutY="599.0" maxHeight="88.0" minHeight="75.0" mnemonicParsing="false" onAction="#btnPrintBillAction" prefHeight="88.0" prefWidth="258.0" text="Drucken" wrapText="true">
<font>
<Font name="Cantarell Bold" size="48.0" />
</font>
</Button>
<Button fx:id="btnDeleteSelectedPosition" layoutX="43.0" layoutY="475.0" mnemonicParsing="false" onAction="#btnDeleteSelectedPositionAction" prefHeight="17.0" prefWidth="332.0" text="Ausgewählte Position löschen" textAlignment="CENTER">
<font>
<Font name="Cantarell Regular" size="20.0" />
</font>
</Button>
<Label fx:id="labelAllPrize" alignment="CENTER" contentDisplay="CENTER" layoutX="10.0" layoutY="505.0" prefHeight="15.0" prefWidth="386.0" text="99,99 €" textAlignment="CENTER">
<font>
<Font name="Open Sans" size="70.0" />
</font>
</Label>
<Label fx:id="labelJobCounter" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="5.0" layoutY="45.0" prefHeight="34.0" prefWidth="392.0" text="Auftragsnummer: 128" textAlignment="CENTER">
<font>
<Font name="Cantarell Regular" size="26.0" />
</font>
</Label>
<Label fx:id="labelTime" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="7.0" layoutY="11.0" prefHeight="15.0" prefWidth="392.0" text="Uhrzeit: 12:15" textAlignment="CENTER">
<font>
<Font name="Cantarell Regular" size="26.0" />
</font>
</Label>
<JFXButton fx:id="btnLock" buttonType="RAISED" cancelButton="true" layoutX="1.0" layoutY="6.0" lineSpacing="2.0" onAction="#btnLockAction" prefHeight="42.0" prefWidth="148.0" ripplerFill="BLACK" text="Kasse sperren" textAlignment="CENTER" textFill="#c91c1c" textOverrun="LEADING_WORD_ELLIPSIS">
<font>
<Font name="Cantarell Regular" size="19.0" />
</font>
</JFXButton>
<Line endX="800.0" layoutX="62.0" layoutY="465.0" rotate="90.0" startX="-100.0" strokeWidth="4.0" />
</children>
</AnchorPane>
</content>
</Tab>
</tabs>
</TabPane>
</children>
</AnchorPane> </AnchorPane>

View File

@ -42,6 +42,7 @@ public class Main extends Application
{ {
this.primaryStage = primaryStage; this.primaryStage = primaryStage;
mainWindow(); mainWindow();
//this.primaryStage.setResizable(false);
} }
private void mainWindow() private void mainWindow()
@ -52,8 +53,8 @@ public class Main extends Application
AnchorPane pane = loader.load(); AnchorPane pane = loader.load();
// Test // Test
//Test //Test
// primaryStage.setWidth(1536); primaryStage.setWidth(1366);
// primaryStage.setHeight(864); primaryStage.setHeight(732);
primaryStage.setTitle("jFxKasse"); // Title der Stage primaryStage.setTitle("jFxKasse"); // Title der Stage
mwc = loader.getController(); mwc = loader.getController();
@ -82,6 +83,7 @@ public class Main extends Application
private void firstStart() throws Exception private void firstStart() throws Exception
{ {
if (mwc.loadSettings()) { // Wenn XML gefunden if (mwc.loadSettings()) { // Wenn XML gefunden
dbc.verbindeDatenbank(); // Verbindet mit der Datenbank-Datei dbc.verbindeDatenbank(); // Verbindet mit der Datenbank-Datei

View File

@ -15,263 +15,268 @@
<?import javafx.scene.shape.Line?> <?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<AnchorPane fx:id="mainAnchorpane" maxHeight="924.0" maxWidth="1536.0" minHeight="864.0" minWidth="1536.0" prefHeight="913.0" prefWidth="1536.0" xmlns="http://javafx.com/javafx/9" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainWindowController"> <AnchorPane fx:id="mainAnchorpane" maxHeight="732.0" maxWidth="1366.0" minHeight="732.0" minWidth="1366.0" prefHeight="732.0" prefWidth="1366.0" xmlns="http://javafx.com/javafx/9" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainWindowController">
<children> <children>
<TabPane layoutX="4.0" layoutY="5.0" nodeOrientation="RIGHT_TO_LEFT" prefHeight="924.0" prefWidth="1536.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <TabPane layoutX="4.0" layoutY="5.0" nodeOrientation="RIGHT_TO_LEFT" prefHeight="924.0" prefWidth="1536.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<tabs> <tabs>
<Tab text="Einstellungen"> <Tab text="Einstellungen">
<content> <content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children> <children>
<Button fx:id="ueberbtn" layoutX="676.0" layoutY="315.0" mnemonicParsing="false" onAction="#ueberbtnAction" text="Über" /> <Button fx:id="ueberbtn" layoutX="676.0" layoutY="315.0" mnemonicParsing="false" onAction="#ueberbtnAction" text="Über" />
</children> </children>
</AnchorPane> </AnchorPane>
</content> </content>
</Tab> </Tab>
<Tab text="Positionen bearbeiten"> <Tab text="Positionen bearbeiten">
<content> <content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" /> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
</content> </content>
</Tab> </Tab>
<Tab text="Aufträge"> <Tab text="Aufträge">
<content> <content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0"> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0">
<children> <children>
<TreeTableView fx:id="mainTreeTable" layoutX="11.0" layoutY="10.0" prefHeight="740.0" prefWidth="1514.0"> <TreeTableView fx:id="jobsTreeTable" layoutX="11.0" layoutY="10.0" prefHeight="541.0" prefWidth="1346.0">
<columns> <columns>
<TreeTableColumn fx:id="datumSpalte" editable="false" prefWidth="90.6666259765625" text="Betrag" /> <TreeTableColumn fx:id="columnValue" editable="false" prefWidth="90.6666259765625" text="Betrag" />
<TreeTableColumn fx:id="kontoSpalte" editable="false" prefWidth="91.0" text="Zustand" /> <TreeTableColumn fx:id="columnState" editable="false" prefWidth="91.0" text="Zustand" />
<TreeTableColumn fx:id="kontoSpalte1" editable="false" prefWidth="1140.333251953125" sortable="false" text="Positionen" /> <TreeTableColumn fx:id="columnPositions" editable="false" prefWidth="1140.333251953125" sortable="false" text="Positionen" />
<TreeTableColumn fx:id="kontoSpalte2" editable="false" prefWidth="121.666748046875" text="Zeit" /> <TreeTableColumn fx:id="columnTime" editable="false" prefWidth="121.666748046875" text="Zeit" />
<TreeTableColumn fx:id="kontoSpalte3" editable="false" prefWidth="72.333251953125" text="Nummer" /> <TreeTableColumn fx:id="columnNumber" editable="false" prefWidth="72.333251953125" text="Nummer" />
</columns> </columns>
</TreeTableView> </TreeTableView>
<Button fx:id="btnCancelJob" layoutX="10.0" layoutY="800.0" mnemonicParsing="false" onAction="#btnCancelJobAction" text="Ausgewählter Auftrag stonieren"> <Button fx:id="btnReprintJob" layoutX="378.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnReprintJobAction" text="Ausgewählter Auftrag Drucken">
<font> <font>
<Font name="Cantarell Regular" size="17.0" /> <Font name="Cantarell Regular" size="17.0" />
</font> </font>
</Button> </Button>
<Button fx:id="btnReprintJob" layoutX="340.0" layoutY="800.0" mnemonicParsing="false" onAction="#btnReprintJobAction" text="Ausgewählter Auftrag Drucken"> <TitledPane fx:id="titlePaneStats" alignment="CENTER" collapsible="false" contentDisplay="CENTER" layoutX="992.0" layoutY="561.0" prefHeight="118.0" prefWidth="365.0" text="Statistik - 30.03..2018 15:15 Uhr">
<font> <content>
<Font name="Cantarell Regular" size="17.0" /> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="59.0" prefWidth="483.0">
</font> <children>
</Button> <Label fx:id="lableJobCount" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="2.0" prefHeight="34.0" prefWidth="340.0" text="Anzahl Aufträge: 2781">
<TitledPane alignment="CENTER" collapsible="false" contentDisplay="CENTER" layoutX="1041.0" layoutY="762.0" prefHeight="107.0" prefWidth="485.0" text="Statistik - 30.03..2018 15:15 Uhr"> <font>
<content> <Font name="Cantarell Regular" size="18.0" />
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="59.0" prefWidth="483.0"> </font>
<children> </Label>
<Label alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="2.0" prefHeight="34.0" prefWidth="460.0" text="Anzahl Aufträge: 2781"> <Label fx:id="labelAvgJob" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="30.0" prefHeight="34.0" prefWidth="340.0" text="Durchschnittlicher Auftragswert: 12,90€">
<font> <font>
<Font size="23.0" /> <Font name="Cantarell Regular" size="18.0" />
</font> </font>
</Label> </Label>
<Label alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="26.0" prefHeight="34.0" prefWidth="460.0" text="Durchschnittlicher Auftragswert: 12,90€"> <Label fx:id="lableAllValue" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="60.0" prefHeight="34.0" prefWidth="340.0" text="Gesamt: 1088,48€">
<font> <font>
<Font size="23.0" /> <Font name="Cantarell Regular" size="18.0" />
</font> </font>
</Label> </Label>
<Label alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="17.0" layoutY="50.0" prefHeight="34.0" prefWidth="460.0" text="Gesamt: 1088,48€"> </children>
<font> </AnchorPane>
<Font size="23.0" /> </content>
</font> </TitledPane>
</Label> <Button fx:id="bntCancelJob" layoutX="44.0" layoutY="603.0" mnemonicParsing="false" onAction="#bntCancelJobAction" text="Ausgewählter Auftrag stonieren">
</children> <font>
</AnchorPane> <Font name="Cantarell Regular" size="17.0" />
</content> </font>
</TitledPane> </Button>
</children> <Button fx:id="btnCalcStats" layoutX="712.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnCalcStatsAction" text="Statistiken berrechnen">
</AnchorPane> <font>
</content> <Font name="Cantarell Regular" size="17.0" />
</Tab> </font>
<Tab text="Neuer Auftrag"> </Button>
<content> </children>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0"> </AnchorPane>
<children> </content>
<TreeTableView fx:id="tableCurrentOrder" layoutX="15.0" layoutY="123.0" prefHeight="464.0" prefWidth="374.0"> </Tab>
<columns> <Tab text="Neuer Auftrag">
<TreeTableColumn fx:id="columnPosition" editable="false" prefWidth="304.3333740234375" resizable="false" sortable="false" text="Position" /> <content>
<TreeTableColumn fx:id="columnQuantity" editable="false" prefWidth="80.6666259765625" resizable="false" sortable="false" text="Anzahl" /> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0">
</columns> <children>
</TreeTableView> <TreeTableView fx:id="tableCurrentOrder" layoutX="15.0" layoutY="85.0" prefHeight="379.0" prefWidth="382.0">
<GridPane gridLinesVisible="true" layoutX="421.0" layoutY="15.0" prefHeight="850.0" prefWidth="1100.0"> <columns>
<columnConstraints> <TreeTableColumn fx:id="columnPosition" editable="false" prefWidth="304.3333740234375" resizable="false" sortable="false" text="Position" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <TreeTableColumn fx:id="columnQuantity" editable="false" prefWidth="80.6666259765625" resizable="false" sortable="false" text="Anzahl" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> </columns>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> </TreeTableView>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <GridPane gridLinesVisible="true" layoutX="430.0" layoutY="15.0" prefHeight="670.0" prefWidth="920.0">
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <columnConstraints>
</columnConstraints> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<rowConstraints> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> </columnConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <rowConstraints>
</rowConstraints> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<children> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<JFXButton fx:id="gridButton04" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton04Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1"> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<font> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<Font name="Cantarell Regular" size="30.0" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</font> </rowConstraints>
</JFXButton> <children>
<JFXButton fx:id="gridButton05" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton05Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true"> <JFXButton fx:id="gridButton04" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton04Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton03" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton03Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2"> <JFXButton fx:id="gridButton05" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton05Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton02" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton02Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3"> <JFXButton fx:id="gridButton03" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton03Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton05" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton05Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4"> <JFXButton fx:id="gridButton02" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton02Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton10" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton10Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="1"> <JFXButton fx:id="gridButton01" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton01Action" prefHeight="134.0" prefWidth="179.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton09" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton09Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1"> <JFXButton fx:id="gridButton10" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton10Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="1">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton08" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton08Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="1"> <JFXButton fx:id="gridButton09" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton09Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="1">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton07" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton07Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="1"> <JFXButton fx:id="gridButton08" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton08Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="1">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton06" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton06Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="1"> <JFXButton fx:id="gridButton07" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton07Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="1">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton15" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton15Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="2"> <JFXButton fx:id="gridButton06" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton06Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="1">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton14" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton14Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="2"> <JFXButton fx:id="gridButton15" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton15Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="2">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton13" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton13Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="2"> <JFXButton fx:id="gridButton14" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton14Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="2">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton12" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton12Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="2"> <JFXButton fx:id="gridButton13" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton13Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="2">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton11" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton11Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="2"> <JFXButton fx:id="gridButton12" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton12Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="2">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton20" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton20Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="3"> <JFXButton fx:id="gridButton11" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton11Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="2">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton19" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton19Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="3"> <JFXButton fx:id="gridButton20" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton20Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="3">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton18" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton18Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="3"> <JFXButton fx:id="gridButton19" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton19Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="3">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton17" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton17Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="3"> <JFXButton fx:id="gridButton18" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton18Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="3">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton16" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton16Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="3"> <JFXButton fx:id="gridButton17" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton17Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="3">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton25" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton25Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="4"> <JFXButton fx:id="gridButton16" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton16Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="3">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton23" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton23Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="4"> <JFXButton fx:id="gridButton25" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton25Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.rowIndex="4">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton22" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton22Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="4"> <JFXButton fx:id="gridButton23" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton23Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="4">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton21" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton21Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="4"> <JFXButton fx:id="gridButton22" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton22Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" GridPane.rowIndex="4">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
<JFXButton fx:id="gridButton24" buttonType="RAISED" maxWidth="235.0" minWidth="200.0" onAction="#gridButton24Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="4"> <JFXButton fx:id="gridButton21" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton21Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="4">
<font> <font>
<Font name="Cantarell Regular" size="30.0" /> <Font name="Cantarell Regular" size="24.0" />
</font> </font>
</JFXButton> </JFXButton>
</children> <JFXButton fx:id="gridButton24" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton24Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="Rote Wurst 2,60€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="4">
</GridPane> <font>
<Button fx:id="btnPrintBill" contentDisplay="CENTER" defaultButton="true" graphicTextGap="1.0" layoutX="45.0" layoutY="765.0" maxHeight="70.0" minHeight="100.0" mnemonicParsing="false" onAction="#btnPrintBillAction" prefHeight="70.0" prefWidth="310.0" text="Drucken" wrapText="true"> <Font name="Cantarell Regular" size="24.0" />
<font> </font>
<Font name="Cantarell Bold" size="56.0" /> </JFXButton>
</font> </children>
</Button> </GridPane>
<Button fx:id="btnDeleteSelectedPosition" layoutX="16.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnDeleteSelectedPositionAction" prefWidth="374.0" text="Ausgewählte Position löschen" textAlignment="CENTER"> <Button fx:id="btnPrintBill" contentDisplay="CENTER" defaultButton="true" graphicTextGap="1.0" layoutX="75.0" layoutY="599.0" maxHeight="88.0" minHeight="75.0" mnemonicParsing="false" onAction="#btnPrintBillAction" prefHeight="88.0" prefWidth="258.0" text="Drucken" wrapText="true">
<font> <font>
<Font name="Cantarell Regular" size="24.0" /> <Font name="Cantarell Bold" size="48.0" />
</font> </font>
</Button> </Button>
<Label fx:id="labelAllPrize" alignment="CENTER" contentDisplay="CENTER" layoutY="655.0" prefHeight="15.0" prefWidth="386.0" text="99,99 €" textAlignment="CENTER"> <Button fx:id="btnDeleteSelectedPosition" layoutX="43.0" layoutY="475.0" mnemonicParsing="false" onAction="#btnDeleteSelectedPositionAction" prefHeight="17.0" prefWidth="332.0" text="Ausgewählte Position löschen" textAlignment="CENTER">
<font> <font>
<Font name="Open Sans" size="80.0" /> <Font name="Cantarell Regular" size="20.0" />
</font> </font>
</Label> </Button>
<Label fx:id="labelJobCounter" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="5.0" layoutY="70.0" prefHeight="15.0" prefWidth="386.0" text="Auftragsnummer: 128" textAlignment="CENTER"> <Label fx:id="labelAllPrize" alignment="CENTER" contentDisplay="CENTER" layoutX="10.0" layoutY="505.0" prefHeight="15.0" prefWidth="386.0" text="99,99 €" textAlignment="CENTER">
<font> <font>
<Font name="Cantarell Regular" size="32.0" /> <Font name="Open Sans" size="70.0" />
</font> </font>
</Label> </Label>
<Label fx:id="labelTime" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="7.0" layoutY="11.0" prefHeight="15.0" prefWidth="386.0" text="Uhrzeit: 12:15" textAlignment="CENTER"> <Label fx:id="labelJobCounter" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="5.0" layoutY="45.0" prefHeight="34.0" prefWidth="392.0" text="Auftragsnummer: 128" textAlignment="CENTER">
<font> <font>
<Font name="Cantarell Regular" size="32.0" /> <Font name="Cantarell Regular" size="26.0" />
</font> </font>
</Label> </Label>
<JFXButton fx:id="btnLock" buttonType="RAISED" cancelButton="true" layoutX="16.0" layoutY="11.0" lineSpacing="2.0" onAction="#btnLockAction" prefHeight="42.0" prefWidth="148.0" ripplerFill="BLACK" text="Kasse sperren" textAlignment="CENTER" textFill="#c91c1c" textOverrun="LEADING_WORD_ELLIPSIS"> <Label fx:id="labelTime" alignment="TOP_RIGHT" contentDisplay="CENTER" layoutX="7.0" layoutY="11.0" prefHeight="15.0" prefWidth="392.0" text="Uhrzeit: 12:15" textAlignment="CENTER">
<font> <font>
<Font name="Cantarell Regular" size="19.0" /> <Font name="Cantarell Regular" size="26.0" />
</font> </font>
</JFXButton> </Label>
<Line endX="800.0" layoutX="53.0" layoutY="465.0" rotate="90.0" startX="-100.0" strokeWidth="4.0" /> <JFXButton fx:id="btnLock" buttonType="RAISED" cancelButton="true" layoutX="1.0" layoutY="6.0" lineSpacing="2.0" onAction="#btnLockAction" prefHeight="42.0" prefWidth="148.0" ripplerFill="BLACK" text="Kasse sperren" textAlignment="CENTER" textFill="#c91c1c" textOverrun="LEADING_WORD_ELLIPSIS">
</children> <font>
</AnchorPane> <Font name="Cantarell Regular" size="19.0" />
</content> </font>
</Tab> </JFXButton>
</tabs> <Line endX="800.0" layoutX="62.0" layoutY="465.0" rotate="90.0" startX="-100.0" strokeWidth="4.0" />
</TabPane> </children>
</children> </AnchorPane>
</content>
</Tab>
</tabs>
</TabPane>
</children>
</AnchorPane> </AnchorPane>

View File

@ -13,6 +13,7 @@ import javafx.scene.control.TreeTableColumn;
import javafx.scene.control.TreeTableView; import javafx.scene.control.TreeTableView;
import javafx.scene.control.TextField; import javafx.scene.control.TextField;
import javafx.scene.control.TreeItem; import javafx.scene.control.TreeItem;
import javafx.scene.control.TitledPane;
import java.awt.Desktop; import java.awt.Desktop;
import java.awt.Toolkit; import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.Clipboard;
@ -59,7 +60,29 @@ public class MainWindowController
private TreeTableColumn<tableData, String> columnPosition; private TreeTableColumn<tableData, String> columnPosition;
@FXML @FXML
private TreeTableColumn<tableData, Integer> idSpalte = new TreeTableColumn<>( private TreeTableColumn<tableData, Integer> idSpalte01 = new TreeTableColumn<>(
"");
@FXML
private TreeTableView<tableData> jobsTreeTable;
@FXML
private TreeTableColumn<tableData, String> columnValue;
@FXML
private TreeTableColumn<tableData, String> columnState;
@FXML
private TreeTableColumn<tableData, String> columnPositions;
@FXML
private TreeTableColumn<tableData, String> columnTime;
@FXML
private TreeTableColumn<tableData, String> columnNumber;
@FXML
private TreeTableColumn<tableData, Integer> idSpalte02 = new TreeTableColumn<>(
""); "");
@FXML @FXML
@ -149,6 +172,15 @@ public class MainWindowController
@FXML @FXML
private Button btnLock; private Button btnLock;
@FXML
private Button btnReprintJob;
@FXML
private Button bntCancelJob;
@FXML
private Button btnCalcStats;
@FXML @FXML
private Label labelAllPrize; private Label labelAllPrize;
@ -158,25 +190,28 @@ public class MainWindowController
@FXML @FXML
private Label labelTime; private Label labelTime;
@FXML
private Label lableJobCount;
@FXML
private Label labelAvgJob;
@FXML
private Label lableAllValue;
@FXML
private TitledPane titlePaneStats;
private Main main; private Main main;
private DBController dbc; private DBController dbc;
private String filepathXMLWin = "C:/ProgramData/PWMaster/config.xml"; // Pfad // Pfad wo die XML liegt
// wo private String filepathXMLWin = "C:/ProgramData/PWMaster/config.xml";
// die
// XML
// liegt
private String filepathXMLLinux = System.getProperty("user.home") private String filepathXMLLinux = System.getProperty("user.home")
+ "/bin/PWMaster/config.xml"; // Pfad wo die XML liegt + "/bin/PWMaster/config.xml"; // Pfad wo die XML liegt
private boolean showPasswort = false;
private String schluessel;
private String base32Secret;
private int id; private int id;
@FXML @FXML
@ -216,6 +251,24 @@ public class MainWindowController
dialog.showAndWait(); dialog.showAndWait();
} }
@FXML
public void btnCalcStatsAction(ActionEvent event)
{
System.out.println("Button!");
}
@FXML
public void btnReprintJobAction(ActionEvent event)
{
System.out.println("Button!");
}
@FXML
public void bntCancelJobAction(ActionEvent event)
{
System.out.println("Button!");
}
@FXML @FXML
public void btnLockAction(ActionEvent event) public void btnLockAction(ActionEvent event)
{ {
@ -389,7 +442,7 @@ public class MainWindowController
public void fuelleTablle() public void fuelleTablle()
{ // Lädt die Datenbank in die Tabelle { // Lädt die Datenbank in die Tabelle
dbc.setSchluessel(schluessel); //dbc.setSchluessel(schluessel);
for (int i = 0; i < dbc.ladeTabelle().size(); i++) { for (int i = 0; i < dbc.ladeTabelle().size(); i++) {
tableData helpTableData = new tableData( tableData helpTableData = new tableData(
dbc.ladeTabelle().get(i).getID(), dbc.ladeTabelle().get(i).getID(),
@ -406,13 +459,13 @@ public class MainWindowController
tableCurrentOrder.setEditable(false); tableCurrentOrder.setEditable(false);
// Setzt die Textfelder // Setzt die Textfelder
idSpalte.setCellValueFactory( idSpalte01.setCellValueFactory(
cellData -> cellData.getValue().getValue().idProperty().asObject()); cellData -> cellData.getValue().getValue().idProperty().asObject());
columnQuantity.setCellValueFactory( columnQuantity.setCellValueFactory(
cellData -> cellData.getValue().getValue().datumProperty()); cellData -> cellData.getValue().getValue().datumProperty());
columnPosition.setCellValueFactory( columnPosition.setCellValueFactory(
cellData -> cellData.getValue().getValue().kontoProperty()); cellData -> cellData.getValue().getValue().kontoProperty());
tableCurrentOrder.getColumns().add(idSpalte); tableCurrentOrder.getColumns().add(idSpalte01);
tableCurrentOrder.getColumns().get(2).setVisible(false); tableCurrentOrder.getColumns().get(2).setVisible(false);
tableCurrentOrder.getSelectionModel().selectedItemProperty() tableCurrentOrder.getSelectionModel().selectedItemProperty()
.addListener(new ChangeListener<Object>() { .addListener(new ChangeListener<Object>() {
@ -423,8 +476,8 @@ public class MainWindowController
// last = selected; //for auto-play // last = selected; //for auto-play
int selected = tableCurrentOrder.getSelectionModel() int selected = tableCurrentOrder.getSelectionModel()
.getSelectedIndex(); // get selected item .getSelectedIndex(); // get selected item
id = idSpalte.getCellData(selected); // Ausgewählte Spalte id = idSpalte01.getCellData(selected); // Ausgewählte Spalte
showPasswort = false;
try { // Setzt den entschlüsselten Inhalt in die Textfelder try { // Setzt den entschlüsselten Inhalt in die Textfelder
// tf01.setText("Verschlüsseltes Passwort von " + // tf01.setText("Verschlüsseltes Passwort von " +
@ -501,10 +554,7 @@ public class MainWindowController
} }
} }
public String getSchluesselXML()
{ // Gibt den Schlüssel zurück für die Main
return schluessel;
}
public void starteDB() public void starteDB()
{ // Startet die Datenbank { // Startet die Datenbank
@ -517,8 +567,4 @@ public class MainWindowController
dbc.verbindeDatenbank(); dbc.verbindeDatenbank();
} }
public String getbase32Secret()
{ // Gibt den base32Secret zurück für die Main
return base32Secret;
}
} }