Aplikasi POS Amigo, dibangun dengan JavaFX dengan Maven
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

169 lignes
8.5 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.geometry.Insets?>
  3. <?import javafx.scene.control.Button?>
  4. <?import javafx.scene.control.Label?>
  5. <?import javafx.scene.control.ScrollPane?>
  6. <?import javafx.scene.control.Separator?>
  7. <?import javafx.scene.control.SplitPane?>
  8. <?import javafx.scene.image.Image?>
  9. <?import javafx.scene.image.ImageView?>
  10. <?import javafx.scene.layout.AnchorPane?>
  11. <?import javafx.scene.layout.BorderPane?>
  12. <?import javafx.scene.layout.ColumnConstraints?>
  13. <?import javafx.scene.layout.GridPane?>
  14. <?import javafx.scene.layout.HBox?>
  15. <?import javafx.scene.layout.RowConstraints?>
  16. <?import javafx.scene.layout.VBox?>
  17. <?import javafx.scene.text.Font?>
  18. <BorderPane fx:id="bpMain" prefHeight="600.0" prefWidth="1000.0" stylesheets="@../styles/pos_styles.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="id.amigogroup.posterminal.FormUtamaController">
  19. <top>
  20. <AnchorPane id="header" prefHeight="0.0" prefWidth="1000.0" />
  21. </top>
  22. <center>
  23. <ScrollPane fx:id="spMainContent" fitToHeight="true" fitToWidth="true" style="-fx-background-color: transparent;" />
  24. </center>
  25. <bottom>
  26. <GridPane BorderPane.alignment="CENTER">
  27. <columnConstraints>
  28. <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="30.0" />
  29. <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="70.0" />
  30. </columnConstraints>
  31. <rowConstraints>
  32. <RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
  33. </rowConstraints>
  34. <children>
  35. <HBox alignment="CENTER_LEFT" maxHeight="1.7976931348623157E308" prefHeight="20.0">
  36. <children>
  37. <Label text="Login: -">
  38. <font>
  39. <Font name="System Bold" size="12.0" />
  40. </font>
  41. <HBox.margin>
  42. <Insets left="5.0" />
  43. </HBox.margin>
  44. </Label>
  45. </children>
  46. </HBox>
  47. <HBox alignment="CENTER_RIGHT" prefHeight="20.0" GridPane.columnIndex="1">
  48. <children>
  49. <Label text="&lt;0 ITEM&gt;">
  50. <font>
  51. <Font name="System Bold" size="12.0" />
  52. </font>
  53. <HBox.margin>
  54. <Insets right="28.0" />
  55. </HBox.margin>
  56. </Label>
  57. <Separator orientation="VERTICAL" prefHeight="200.0">
  58. <HBox.margin>
  59. <Insets right="5.0" />
  60. </HBox.margin>
  61. </Separator>
  62. <Label text="21/01/2019 11:55:44">
  63. <font>
  64. <Font name="System Bold" size="12.0" />
  65. </font>
  66. <HBox.margin>
  67. <Insets right="5.0" />
  68. </HBox.margin>
  69. </Label>
  70. </children>
  71. </HBox>
  72. </children>
  73. </GridPane>
  74. </bottom>
  75. <left>
  76. <SplitPane dividerPositions="0.6" orientation="VERTICAL" prefWidth="200.0">
  77. <items>
  78. <ScrollPane fx:id="spNavigasi" fitToHeight="true" fitToWidth="true" style="-fx-background-color: transparent;">
  79. <content>
  80. <VBox fx:id="vbNavigasi" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" spacing="5.0" style="-fx-border-style: none;">
  81. <children>
  82. <ImageView fitHeight="90.0" fitWidth="140.0" pickOnBounds="true" preserveRatio="true">
  83. <image>
  84. <Image url="@../assets/logo.png" />
  85. </image>
  86. </ImageView>
  87. <Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" onAction="#btnTambahNotaOnAction" text="Tambah">
  88. <VBox.margin>
  89. <Insets bottom="9.0" right="5.0" top="14.0" />
  90. </VBox.margin>
  91. </Button>
  92. <Button fx:id="btnTunai1Static" maxWidth="1.7976931348623157E308" mnemonicParsing="false" styleClass="button-navigasi-transaksi" text="Tunai: 03-0120-00001" />
  93. <Button fx:id="btnRetur1Static" maxWidth="1.7976931348623157E308" mnemonicParsing="false" styleClass="button-navigasi-transaksi" text="Retur: R-03-0120-00001" />
  94. <Button fx:id="btnTunai2Static" maxWidth="1.7976931348623157E308" mnemonicParsing="false" styleClass="button-navigasi-transaksi" text="Tunai: 03-0120-00002" />
  95. </children>
  96. <padding>
  97. <Insets left="5.0" />
  98. </padding>
  99. </VBox>
  100. </content>
  101. </ScrollPane>
  102. <ScrollPane fitToHeight="true" fitToWidth="true">
  103. <content>
  104. <AnchorPane minHeight="-Infinity" minWidth="-Infinity">
  105. <children>
  106. <HBox alignment="CENTER" layoutX="14.0" layoutY="14.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="5.0">
  107. <children>
  108. <ImageView fitHeight="80.0" fitWidth="80.0" pickOnBounds="true" preserveRatio="true">
  109. <image>
  110. <Image url="@../assets/account-circle-gray.png" />
  111. </image>
  112. </ImageView>
  113. </children>
  114. </HBox>
  115. <Label layoutX="14.0" layoutY="85.0" text="Member / Non" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="85.0">
  116. <font>
  117. <Font name="System Bold" size="12.0" />
  118. </font>
  119. </Label>
  120. <GridPane layoutX="14.0" layoutY="102.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="102.0">
  121. <columnConstraints>
  122. <ColumnConstraints prefWidth="60.0" />
  123. <ColumnConstraints hgrow="ALWAYS" maxWidth="1.7976931348623157E308" />
  124. </columnConstraints>
  125. <rowConstraints>
  126. <RowConstraints vgrow="SOMETIMES" />
  127. <RowConstraints vgrow="SOMETIMES" />
  128. <RowConstraints vgrow="SOMETIMES" />
  129. </rowConstraints>
  130. <children>
  131. <Label text="Nama">
  132. <GridPane.margin>
  133. <Insets bottom="2.5" top="2.5" />
  134. </GridPane.margin>
  135. </Label>
  136. <Label maxWidth="1.7976931348623157E308" text=": -" GridPane.columnIndex="1" />
  137. <Label text="Tgl Lahir" GridPane.rowIndex="1">
  138. <GridPane.margin>
  139. <Insets bottom="2.5" top="2.5" />
  140. </GridPane.margin>
  141. </Label>
  142. <Label maxWidth="1.7976931348623157E308" text=": -" GridPane.columnIndex="1" GridPane.rowIndex="1">
  143. <GridPane.margin>
  144. <Insets bottom="2.5" top="2.5" />
  145. </GridPane.margin>
  146. </Label>
  147. <Label text="No Telp" GridPane.rowIndex="2">
  148. <GridPane.margin>
  149. <Insets bottom="2.5" top="2.5" />
  150. </GridPane.margin>
  151. </Label>
  152. <Label maxWidth="1.7976931348623157E308" text=": -" GridPane.columnIndex="1" GridPane.rowIndex="2">
  153. <GridPane.margin>
  154. <Insets bottom="2.5" top="2.5" />
  155. </GridPane.margin>
  156. </Label>
  157. </children>
  158. </GridPane>
  159. </children>
  160. </AnchorPane>
  161. </content>
  162. </ScrollPane>
  163. </items>
  164. </SplitPane>
  165. </left>
  166. </BorderPane>