Finished the categories

This commit is contained in:
Hendrik Schutter 2018-10-03 21:53:26 +02:00
parent 748f08abfd
commit 606b879fb9
3 changed files with 561 additions and 236 deletions

View File

@ -92,8 +92,8 @@ class DBController
// create 25 demo/default data entries
for (int i = 0; i < 25; i++) {
fillPositionen_Positionen(i + 1, "Noch frei", (float) 0.00,
((int) (i / 5)) + 1, "#ad0000");
fillPositionen_Positionen(i + 1, "Noch frei", (float) 0.00, 6,
"#ad0000");
}
}
@ -110,25 +110,41 @@ class DBController
}
for (int i = 1; i < 6; i++) {
fillCategory_Category(i, "Cat: " + (i));
fillCategory_Category(i, "Standard");
}
}
public String getCategoryNameFromPositionen(int pID)
{
//System.out.println("getCategoryName: " + pID);
// System.out.println("getCategoryName: " + pID);
int catInPos = 0;
try {
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery(
"SELECT posid, cat, catid, catname FROM positionen, category "
+ "WHERE posid = " + pID + " AND cat = catid;");
ResultSet rs = stmt.executeQuery("SELECT posid, cat FROM positionen "
+ "WHERE posid = " + pID + ";");
catInPos = rs.getInt("cat");
} catch (SQLException e) {
System.err.println("Couldn't handle DB-Query");
e.printStackTrace();
}
if (catInPos == 6) {
return "keine Kategorie";
}
try {
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery("SELECT catid, catname FROM category "
+ "WHERE catid = " + catInPos + ";");
return rs.getString("catname");
} catch (SQLException e) {
System.err.println("Couldn't handle DB-Query");
e.printStackTrace();
return "Error 404";
return "keine Kategorie";
}
}
@ -291,7 +307,7 @@ class DBController
try {
Statement stmt = connection.createStatement();
stmt.executeUpdate("UPDATE positionen SET cat = '" + pCat
+ "'WHERE catid =" + pID + ";");
+ "'WHERE posid =" + pID + ";");
} catch (SQLException e) {
System.err.println("Couldn't handle DB-Query");
e.printStackTrace();

View File

@ -17,200 +17,329 @@
<?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?>
<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">
<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>
<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>
<Tab text="Einstellungen">
<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>
<Button fx:id="ueberbtn" layoutX="84.0" layoutY="79.0" mnemonicParsing="false" onAction="#ueberbtnAction" prefHeight="0.0" prefWidth="46.0" text="Über" />
<TitledPane alignment="CENTER" animated="false" collapsible="false" contentDisplay="CENTER" layoutX="790.0" layoutY="10.0" prefHeight="270.0" prefWidth="566.0" text="Datenbank Einstellungen">
<content>
<AnchorPane fx:id="paneDB" minHeight="0.0" minWidth="0.0" prefHeight="238.0" prefWidth="564.0">
<children>
<Label fx:id="labelDBName" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="329.0" layoutY="10.0" prefHeight="34.0" prefWidth="229.0" text="Datenbankname:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<JFXTextField fx:id="tftNewDBName" alignment="CENTER" layoutX="25.0" layoutY="10.0" prefHeight="25.0" prefWidth="376.0" />
<Label fx:id="labelDBStatus" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="1.0" layoutY="75.0" prefHeight="34.0" prefWidth="551.0" text="Keine Datenbank gefunden!">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Button fx:id="btnCreateNewDatabase" layoutX="317.0" layoutY="126.0" mnemonicParsing="false" onAction="#btnCreateNewDatabaseAction" text="Neue Datenbank anlegen">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</Button>
<Button fx:id="btnOpenFolder" layoutX="99.0" layoutY="126.0" mnemonicParsing="false" onAction="#btnOpenFolderAction" text="Speicherort öffnen">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</Button>
</children>
</AnchorPane>
</content>
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</TitledPane>
<TitledPane fx:id="titlePaneCat" alignment="CENTER" animated="false" collapsible="false" contentDisplay="CENTER" layoutX="170.0" layoutY="10.0" prefHeight="270.0" prefWidth="566.0" text="Kategorien (z.B. Getränke, Essen oder Kuchen)" textAlignment="CENTER">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="260.0" prefWidth="564.0">
<children>
<Label fx:id="labelCat01" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="434.0" layoutY="10.0" prefHeight="34.0" prefWidth="124.0" text="Kategorie 1:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat02" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="442.0" layoutY="50.0" prefHeight="34.0" prefWidth="116.0" text="Kategorie 2:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat05" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="448.0" layoutY="170.0" prefHeight="34.0" prefWidth="110.0" text="Kategorie 5:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat04" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="454.0" layoutY="130.0" prefHeight="34.0" prefWidth="104.0" text="Kategorie 4:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat03" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="451.0" layoutY="90.0" prefHeight="34.0" prefWidth="107.0" text="Kategorie 3:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<JFXTextField fx:id="tftKat01" alignment="CENTER" layoutX="50.0" layoutY="5.0" prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat02" alignment="CENTER" layoutX="50.0" layoutY="45.0" prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat03" alignment="CENTER" layoutX="50.0" layoutY="85.0" prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat04" alignment="CENTER" layoutX="50.0" layoutY="125.0" prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat05" alignment="CENTER" layoutX="50.0" layoutY="165.0" prefHeight="25.0" prefWidth="376.0" />
<Button fx:id="btnSaveCat" layoutX="200.0" layoutY="204.0" mnemonicParsing="false" onAction="#btnSaveCatAction" text="Kategorien speichern">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</Button>
</children>
</AnchorPane>
</content>
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</TitledPane>
<Button fx:id="ueberbtn" layoutX="84.0" layoutY="79.0"
mnemonicParsing="false" onAction="#ueberbtnAction"
prefHeight="0.0" prefWidth="46.0" text="Über" />
<TitledPane alignment="CENTER" animated="false"
collapsible="false" contentDisplay="CENTER" layoutX="790.0"
layoutY="10.0" prefHeight="270.0" prefWidth="566.0"
text="Datenbank Einstellungen">
<content>
<AnchorPane fx:id="paneDB" minHeight="0.0"
minWidth="0.0" prefHeight="238.0" prefWidth="564.0">
<children>
<Label fx:id="labelDBName" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="329.0" layoutY="10.0"
prefHeight="34.0" prefWidth="229.0" text="Datenbankname:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<JFXTextField fx:id="tftNewDBName"
alignment="CENTER" layoutX="25.0" layoutY="10.0"
prefHeight="25.0" prefWidth="376.0" />
<Label fx:id="labelDBStatus" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="1.0" layoutY="75.0"
prefHeight="34.0" prefWidth="551.0"
text="Keine Datenbank gefunden!">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Button fx:id="btnCreateNewDatabase" layoutX="317.0"
layoutY="126.0" mnemonicParsing="false"
onAction="#btnCreateNewDatabaseAction"
text="Neue Datenbank anlegen">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</Button>
<Button fx:id="btnOpenFolder" layoutX="99.0"
layoutY="126.0" mnemonicParsing="false"
onAction="#btnOpenFolderAction" text="Speicherort öffnen">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</Button>
</children>
</AnchorPane>
</content>
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</TitledPane>
<TitledPane fx:id="titlePaneCat" alignment="CENTER"
animated="false" collapsible="false" contentDisplay="CENTER"
layoutX="170.0" layoutY="10.0" prefHeight="270.0"
prefWidth="566.0"
text="Kategorien (z.B. Getränke, Essen oder Kuchen)"
textAlignment="CENTER">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0"
prefHeight="260.0" prefWidth="564.0">
<children>
<Label fx:id="labelCat01" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="434.0" layoutY="10.0"
prefHeight="34.0" prefWidth="124.0" text="Kategorie 1:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat02" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="442.0" layoutY="50.0"
prefHeight="34.0" prefWidth="116.0" text="Kategorie 2:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat05" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="448.0" layoutY="170.0"
prefHeight="34.0" prefWidth="110.0" text="Kategorie 5:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat04" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="454.0" layoutY="130.0"
prefHeight="34.0" prefWidth="104.0" text="Kategorie 4:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<Label fx:id="labelCat03" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="451.0" layoutY="90.0"
prefHeight="34.0" prefWidth="107.0" text="Kategorie 3:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<JFXTextField fx:id="tftKat01"
alignment="CENTER" layoutX="50.0" layoutY="5.0"
prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat02"
alignment="CENTER" layoutX="50.0" layoutY="45.0"
prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat03"
alignment="CENTER" layoutX="50.0" layoutY="85.0"
prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat04"
alignment="CENTER" layoutX="50.0" layoutY="125.0"
prefHeight="25.0" prefWidth="376.0" />
<JFXTextField fx:id="tftKat05"
alignment="CENTER" layoutX="50.0" layoutY="165.0"
prefHeight="25.0" prefWidth="376.0" />
<Button fx:id="btnSaveCat" layoutX="200.0"
layoutY="204.0" mnemonicParsing="false"
onAction="#btnSaveCatAction" text="Kategorien speichern">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</Button>
</children>
</AnchorPane>
</content>
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</TitledPane>
</children>
</AnchorPane>
</content>
</Tab>
<Tab text="Positionen bearbeiten">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<TreeTableView fx:id="entryTreeTable" layoutX="11.0" layoutY="10.0" prefHeight="502.0" prefWidth="1346.0">
<columns>
<TreeTableColumn fx:id="columnColor" editable="false" maxWidth="237.3333740234375" minWidth="164.0" prefWidth="164.0" resizable="false" sortable="false" text="Farbe" />
<TreeTableColumn fx:id="columnCat" editable="false" maxWidth="800.0" minWidth="176.33331298828125" prefWidth="370.0" resizable="false" sortable="false" text="Kategorie" />
<TreeTableColumn fx:id="columnPrize" editable="false" maxWidth="693.3333129882812" minWidth="44.33331298828125" prefWidth="126.66668701171875" resizable="false" sortable="false" text="Preis" />
<TreeTableColumn fx:id="columnPositionsEdit" editable="false" maxWidth="1581.6666870117188" minWidth="38.0" prefWidth="543.3333129882812" resizable="false" sortable="false" text="Positionen" />
<TreeTableColumn fx:id="columnPosnumber" editable="false" maxWidth="1218.0" minWidth="60.666748046875" prefWidth="148.6666259765625" resizable="false" sortable="false" text="Nummer" />
</columns>
<columnResizePolicy>
<TreeTableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
</columnResizePolicy>
</TreeTableView>
<Button fx:id="btnSaveEntry" layoutX="494.0" layoutY="631.0" mnemonicParsing="false" onAction="#btnSaveEntryAction" text="Ausgewählten Eintrag speichern">
<font>
<Font name="Cantarell Regular" size="17.0" />
</font>
</Button>
<Button fx:id="btnClearEntry" layoutX="462.0" layoutY="525.0" mnemonicParsing="false" onAction="#btnClearEntryAction" text="Ausgewählten Eintrag zurücksetzten">
<font>
<Font name="Cantarell Regular" size="17.0" />
</font>
</Button>
<TitledPane fx:id="titledPaneEntry" alignment="CENTER" animated="false" collapsible="false" contentDisplay="CENTER" layoutX="792.0" layoutY="525.0" prefHeight="163.0" prefWidth="565.0" text="Eintrag editieren">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<Label fx:id="lableNewPosition" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="455.0" layoutY="10.0" prefHeight="34.0" prefWidth="105.0" text="Position:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<JFXTextField fx:id="tftNewPosition" alignment="CENTER" layoutX="160.0" layoutY="10.0" prefHeight="25.0" prefWidth="279.0">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font></JFXTextField>
<Label fx:id="labelNewValue" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="442.0" layoutY="50.0" prefHeight="34.0" prefWidth="118.0" text="Preis in Euro:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<JFXTextField fx:id="tftNewValue" alignment="CENTER" layoutX="380.0" layoutY="50.0" prefHeight="25.0" prefWidth="58.0">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font></JFXTextField>
<Label fx:id="lableNewColor" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="455.0" layoutY="90.0" prefHeight="34.0" prefWidth="105.0" text="Farbe:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<ChoiceBox fx:id="colorChoise" layoutX="346.0" layoutY="90.0" prefHeight="25.0" prefWidth="96.0" />
<Label fx:id="lableSelectCat" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="204.0" layoutY="90.0" prefHeight="34.0" prefWidth="105.0" text="Kategorie:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<ChoiceBox fx:id="catChoise" layoutX="25.0" layoutY="90.0" prefHeight="25.0" prefWidth="180.0" />
</children>
</AnchorPane>
</content>
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</TitledPane>
</children></AnchorPane>
</content>
</Tab>
<Tab text="Aufträge">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="850.0" prefWidth="1536.0">
<AnchorPane minHeight="0.0" minWidth="0.0"
prefHeight="180.0" prefWidth="200.0">
<children>
<TreeTableView fx:id="jobsTreeTable" layoutX="11.0" layoutY="10.0" prefHeight="541.0" prefWidth="1346.0">
<TreeTableView fx:id="entryTreeTable"
layoutX="11.0" layoutY="10.0" prefHeight="502.0"
prefWidth="1346.0">
<columns>
<TreeTableColumn fx:id="columnJobValue" editable="false" prefWidth="90.6666259765625" resizable="false" text="Betrag" />
<TreeTableColumn fx:id="columnState" editable="false" prefWidth="91.0" resizable="false" text="Zustand" />
<TreeTableColumn fx:id="columnPositions" editable="false" prefWidth="981.333251953125" resizable="false" sortable="false" text="Positionen" />
<TreeTableColumn fx:id="columnTime" editable="false" prefWidth="99.666748046875" resizable="false" text="Zeit" />
<TreeTableColumn fx:id="columnJobNumber" editable="false" maxWidth="3000.0" prefWidth="83.6666259765625" resizable="false" text="Nummer" />
<TreeTableColumn fx:id="columnColor"
editable="false" maxWidth="237.3333740234375"
minWidth="164.0" prefWidth="164.0" resizable="false"
sortable="false" text="Farbe" />
<TreeTableColumn fx:id="columnCat"
editable="false" maxWidth="800.0"
minWidth="176.33331298828125" prefWidth="370.0"
resizable="false" sortable="false" text="Kategorie" />
<TreeTableColumn fx:id="columnPrize"
editable="false" maxWidth="693.3333129882812"
minWidth="44.33331298828125" prefWidth="126.66668701171875"
resizable="false" sortable="false" text="Preis" />
<TreeTableColumn fx:id="columnPositionsEdit"
editable="false" maxWidth="1581.6666870117188"
minWidth="38.0" prefWidth="543.3333129882812"
resizable="false" sortable="false" text="Positionen" />
<TreeTableColumn fx:id="columnPosnumber"
editable="false" maxWidth="1218.0" minWidth="60.666748046875"
prefWidth="148.6666259765625" resizable="false"
sortable="false" text="Nummer" />
</columns>
<columnResizePolicy>
<TreeTableView
fx:constant="CONSTRAINED_RESIZE_POLICY" />
</columnResizePolicy>
</TreeTableView>
<Button fx:id="btnReprintJob" layoutX="378.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnReprintJobAction" text="Ausgewählter Auftrag drucken">
<Button fx:id="btnSaveEntry" layoutX="494.0"
layoutY="631.0" mnemonicParsing="false"
onAction="#btnSaveEntryAction"
text="Ausgewählten Eintrag speichern">
<font>
<Font name="Cantarell Regular" size="17.0" />
</font>
</Button>
<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">
<Button fx:id="btnClearEntry" layoutX="462.0"
layoutY="525.0" mnemonicParsing="false"
onAction="#btnClearEntryAction"
text="Ausgewählten Eintrag zurücksetzten">
<font>
<Font name="Cantarell Regular" size="17.0" />
</font>
</Button>
<TitledPane fx:id="titledPaneEntry"
alignment="CENTER" animated="false" collapsible="false"
contentDisplay="CENTER" layoutX="792.0" layoutY="525.0"
prefHeight="163.0" prefWidth="565.0" text="Eintrag editieren">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="59.0" prefWidth="483.0">
<AnchorPane minHeight="0.0" minWidth="0.0"
prefHeight="180.0" prefWidth="200.0">
<children>
<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">
<Label fx:id="lableNewPosition" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="455.0" layoutY="10.0"
prefHeight="34.0" prefWidth="105.0" text="Position:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<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€">
<JFXTextField fx:id="tftNewPosition"
alignment="CENTER" layoutX="160.0" layoutY="10.0"
prefHeight="25.0" prefWidth="279.0">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</JFXTextField>
<Label fx:id="labelNewValue" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="442.0" layoutY="50.0"
prefHeight="34.0" prefWidth="118.0" text="Preis in Euro:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<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€">
<JFXTextField fx:id="tftNewValue"
alignment="CENTER" layoutX="380.0" layoutY="50.0"
prefHeight="25.0" prefWidth="58.0">
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</JFXTextField>
<Label fx:id="lableNewColor" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="455.0" layoutY="90.0"
prefHeight="34.0" prefWidth="105.0" text="Farbe:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<ChoiceBox fx:id="colorChoise" layoutX="346.0"
layoutY="90.0" prefHeight="25.0" prefWidth="96.0" />
<Label fx:id="lableSelectCat" alignment="TOP_RIGHT"
contentDisplay="RIGHT" layoutX="204.0" layoutY="90.0"
prefHeight="34.0" prefWidth="105.0" text="Kategorie:">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<ChoiceBox fx:id="catChoise" layoutX="25.0"
layoutY="90.0" prefHeight="25.0" prefWidth="180.0" />
</children>
</AnchorPane>
</content>
<font>
<Font name="Cantarell Regular" size="13.0" />
</font>
</TitledPane>
</children>
</AnchorPane>
</content>
</Tab>
<Tab text="Aufträge">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0"
prefHeight="850.0" prefWidth="1536.0">
<children>
<TreeTableView fx:id="jobsTreeTable"
layoutX="11.0" layoutY="10.0" prefHeight="541.0"
prefWidth="1346.0">
<columns>
<TreeTableColumn fx:id="columnJobValue"
editable="false" prefWidth="90.6666259765625"
resizable="false" text="Betrag" />
<TreeTableColumn fx:id="columnState"
editable="false" prefWidth="91.0" resizable="false"
text="Zustand" />
<TreeTableColumn fx:id="columnPositions"
editable="false" prefWidth="981.333251953125"
resizable="false" sortable="false" text="Positionen" />
<TreeTableColumn fx:id="columnTime"
editable="false" prefWidth="99.666748046875"
resizable="false" text="Zeit" />
<TreeTableColumn fx:id="columnJobNumber"
editable="false" maxWidth="3000.0"
prefWidth="83.6666259765625" resizable="false" text="Nummer" />
</columns>
</TreeTableView>
<Button fx:id="btnReprintJob" layoutX="378.0"
layoutY="603.0" mnemonicParsing="false"
onAction="#btnReprintJobAction"
text="Ausgewählter Auftrag drucken">
<font>
<Font name="Cantarell Regular" size="17.0" />
</font>
</Button>
<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">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0"
prefHeight="59.0" prefWidth="483.0">
<children>
<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">
<font>
<Font name="Cantarell Regular" size="18.0" />
</font>
</Label>
<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 name="Cantarell Regular" size="18.0" />
</font>
</Label>
<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 name="Cantarell Regular" size="18.0" />
</font>
@ -219,12 +348,17 @@
</AnchorPane>
</content>
</TitledPane>
<Button fx:id="btnCancelJob" layoutX="44.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnCancelJobAction" text="Ausgewählter Auftrag stornieren">
<Button fx:id="btnCancelJob" layoutX="44.0"
layoutY="603.0" mnemonicParsing="false"
onAction="#btnCancelJobAction"
text="Ausgewählter Auftrag stornieren">
<font>
<Font name="Cantarell Regular" size="17.0" />
</font>
</Button>
<Button fx:id="btnCalcStats" layoutX="712.0" layoutY="603.0" mnemonicParsing="false" onAction="#btnCalcStatsAction" text="Statistiken berrechnen">
<Button fx:id="btnCalcStats" layoutX="712.0"
layoutY="603.0" mnemonicParsing="false"
onAction="#btnCalcStatsAction" text="Statistiken berrechnen">
<font>
<Font name="Cantarell Regular" size="17.0" />
</font>
@ -235,188 +369,350 @@
</Tab>
<Tab text="Neuer Auftrag">
<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>
<TreeTableView fx:id="tableCurrentOrder" layoutX="15.0" layoutY="85.0" prefHeight="379.0" prefWidth="382.0">
<TreeTableView fx:id="tableCurrentOrder"
layoutX="15.0" layoutY="85.0" prefHeight="379.0"
prefWidth="382.0">
<columns>
<TreeTableColumn fx:id="columnPosition" editable="false" prefWidth="304.3333740234375" resizable="false" sortable="false" text="Position" />
<TreeTableColumn fx:id="columnQuantity" editable="false" prefWidth="80.6666259765625" resizable="false" sortable="false" text="Anzahl" />
<TreeTableColumn fx:id="columnPosition"
editable="false" prefWidth="304.3333740234375"
resizable="false" sortable="false" text="Position" />
<TreeTableColumn fx:id="columnQuantity"
editable="false" prefWidth="80.6666259765625"
resizable="false" sortable="false" text="Anzahl" />
</columns>
</TreeTableView>
<GridPane gridLinesVisible="true" layoutX="430.0" layoutY="15.0" prefHeight="670.0" prefWidth="920.0">
<GridPane gridLinesVisible="true" layoutX="430.0"
layoutY="15.0" prefHeight="670.0" prefWidth="920.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES"
minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES"
minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES"
minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES"
minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES"
minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0"
prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0"
prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0"
prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0"
prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0"
prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<JFXButton fx:id="gridButton04" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton04Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1">
<JFXButton fx:id="gridButton04" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton04Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="1">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton05" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton05Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true">
<JFXButton fx:id="gridButton05" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton05Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton03" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton03Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2">
<JFXButton fx:id="gridButton03" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton03Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="2">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton02" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton02Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3">
<JFXButton fx:id="gridButton02" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton02Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="3">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton01" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton01Action" prefHeight="134.0" prefWidth="179.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4">
<JFXButton fx:id="gridButton01" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton01Action" prefHeight="134.0"
prefWidth="179.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="4">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton10" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton10Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true" GridPane.rowIndex="1">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton09" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton09Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="1" GridPane.rowIndex="1">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton08" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton08Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="2" GridPane.rowIndex="1">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton07" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton07Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="3" GridPane.rowIndex="1">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton06" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton06Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="1">
<JFXButton fx:id="gridButton06" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton06Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="4" GridPane.rowIndex="1">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton15" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton15Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true" GridPane.rowIndex="2">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton14" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton14Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="1" GridPane.rowIndex="2">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton13" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton13Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="2" GridPane.rowIndex="2">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton12" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton12Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="3" GridPane.rowIndex="2">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton11" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton11Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="2">
<JFXButton fx:id="gridButton11" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton11Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="4" GridPane.rowIndex="2">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton20" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton20Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true" GridPane.rowIndex="3">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton19" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton19Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="1" GridPane.rowIndex="3">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton18" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton18Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="2" GridPane.rowIndex="3">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton17" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton17Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="3" GridPane.rowIndex="3">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton16" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton16Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" GridPane.rowIndex="3">
<JFXButton fx:id="gridButton16" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton16Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="4" GridPane.rowIndex="3">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton25" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton25Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true" GridPane.rowIndex="4">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton23" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton23Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="2" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="2" GridPane.rowIndex="4">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton22" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton22Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="3" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="3" GridPane.rowIndex="4">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton21" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton21Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="4" 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="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="4" GridPane.rowIndex="4">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
<JFXButton fx:id="gridButton24" buttonType="RAISED" maxWidth="235.0" minWidth="179.0" onAction="#gridButton24Action" prefHeight="169.0" prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€" textAlignment="CENTER" wrapText="true" GridPane.columnIndex="1" GridPane.rowIndex="4">
<JFXButton fx:id="gridButton24" buttonType="RAISED"
maxWidth="235.0" minWidth="179.0"
onAction="#gridButton24Action" prefHeight="169.0"
prefWidth="235.0" ripplerFill="#655252" text="leer 0,00€"
textAlignment="CENTER" wrapText="true"
GridPane.columnIndex="1" GridPane.rowIndex="4">
<font>
<Font name="Cantarell Regular" size="24.0" />
</font>
</JFXButton>
</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">
<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">
<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="0,00 €" textAlignment="CENTER">
<Label fx:id="labelAllPrize" alignment="CENTER"
contentDisplay="CENTER" layoutX="10.0" layoutY="505.0"
prefHeight="15.0" prefWidth="386.0" text="0,00 €"
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: 0" 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: 0"
textAlignment="CENTER">
<font>
<Font name="Cantarell Regular" size="26.0" />
</font>
</Label>
<Label fx:id="labelTime" alignment="TOP_RIGHT" layoutX="7.0" layoutY="11.0" maxHeight="33.0" maxWidth="392.0" minHeight="33.0" minWidth="392.0" prefHeight="33.0" prefWidth="392.0" text="Uhrzeit: 12:15">
<Label fx:id="labelTime" alignment="TOP_RIGHT"
layoutX="7.0" layoutY="11.0" maxHeight="33.0" maxWidth="392.0"
minHeight="33.0" minWidth="392.0" prefHeight="33.0"
prefWidth="392.0" text="Uhrzeit: 12:15">
<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="180.0" ripplerFill="BLACK" text="Kasse sperren" textAlignment="CENTER" textFill="#c91c1c" textOverrun="LEADING_WORD_ELLIPSIS">
<JFXButton fx:id="btnLock" buttonType="RAISED"
cancelButton="true" layoutX="1.0" layoutY="6.0"
lineSpacing="2.0" onAction="#btnLockAction" prefHeight="42.0"
prefWidth="180.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" />
<Line endX="800.0" layoutX="62.0" layoutY="465.0"
rotate="90.0" startX="-100.0" strokeWidth="4.0" />
</children>
</AnchorPane>
</content>

View File

@ -35,6 +35,7 @@ import javafx.scene.control.Label;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.GridPane;
import javafx.util.Pair;
import sun.jvm.hotspot.tools.SysPropsDumper;
public class MainWindowController
{
@ -342,7 +343,7 @@ public class MainWindowController
Dialog<Pair<String, String>> dialog = new Dialog<>();
dialog.setTitle("Über jFxKasse");
dialog.setHeaderText(
"Informationen und Lizenzen - Version 0.9.3 - Techdemo");
"Informationen und Lizenzen - Version 0.9.4 - Techdemo");
dialog.getDialogPane().getButtonTypes().addAll(ButtonType.OK);
@ -395,6 +396,7 @@ public class MainWindowController
fillTablePositionen(); // fill TreeTable 'Positionen'
fillCategory();
initUI(); // Starting the UI elements
getSelectedCat();
}
@ -407,7 +409,8 @@ public class MainWindowController
dbc.setValue_Positionen(idPositionen, tftNewValue.getText());
dbc.setColor_Positionen(idPositionen, getColorCodes(selectedColorName));
System.out.println("refill pos");
dbc.setCat_Positionen(idPositionen, getSelectedCat());
fillTablePositionen(); // fill TreeTable 'Positionen'
loadGridButtons();
@ -649,23 +652,18 @@ public class MainWindowController
dbc.ladeTabellePositionen().get(i).getID(),
dbc.ladeTabellePositionen().get(i).getName(),
dbc.ladeTabellePositionen().get(i).getValue() + "",
// dbc.ladeTabellePositionen().get(i).getCat(),
// dbc.getCategoryName(dbc.ladeTabellePositionen().get(i).getCat()))
dbc.getCategoryNameFromPositionen(i + 1),
getColorNames(dbc.ladeTabellePositionen().get(i).getColor()));
rootPositionen.getChildren()
.add(new TreeItem<tableDataPositionen>(helpTableData));
}
}
public void initUI()
{
System.out.println("initUI");
tftNewDBName.setText(getDatabaseName());
tftKat05.setDisable(true);
initPositionen();
}
@ -675,6 +673,16 @@ public class MainWindowController
ObservableList<String> cats = FXCollections.observableArrayList();
/*
* for(int i = 1; i < 6; i++) {
*
* if(dbc.getName_Category(i).equals("Standard")) {
*
* }else { cats.add(dbc.getName_Category(i)); }
*
* }
*/
cats.add(dbc.getName_Category(1));
cats.add(dbc.getName_Category(2));
cats.add(dbc.getName_Category(3));
@ -691,17 +699,18 @@ public class MainWindowController
selectedCatName = catChoise.getItems().get((int) new_value)
.toString();
System.out.println("Ausgewählte Cat: " + selectedCatName);
// System.out.println("Ausgewählte Cat: " + selectedCatName);
}
});
for (int i = 1; i < 5; i++) {
if (selectedCatName == dbc.getName_Category(i)) {
for (int i = 1; i < 6; i++) {
if (dbc.getName_Category(i).equals(selectedCatName)) {
return i;
}
}
return -1;
return 5;
}
public void fillCategory()
@ -730,7 +739,8 @@ public class MainWindowController
{
selectedColorName = colorChoise.getItems()
.get((int) new_value).toString();
System.out.println("Ausgewählte Farbe: " + selectedColorName);
// System.out.println("Ausgewählte Farbe: " +
// selectedColorName);
}
});
@ -773,6 +783,9 @@ public class MainWindowController
colorChoise.getSelectionModel().select(
getColorID(dbc.getColor_Positionen(idPositionen)));
catChoise.getSelectionModel().select(
dbc.getCategoryNameFromPositionen(idPositionen));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();