အစကတော့ လိုအပ်ချက်တွေကို ပြင်ဆင်ပါတယ်။
- သင်တန်းအသစ်တွေ၊ အတန်းအသစ်တွေ၊ အချိန်အသစ်တွေ ဖြည့်ရမယ်။
- ကျောင်းသားအသစ်တွေလက်ခံနိုင်ရမယ်
- သင်တန်းကို လက်ခံနိုင်ရမယ်
- ကျောင်းသားတွေကို ကျောင်းလခခွဲပြီး လက်ခံနိုင်ရမယ်
- လက်ရှိ ဝင်ငွေထွက်ငွေကို ကြည့်နိုင်ရမယ်
ဒီအပလီကို နောက်ပိုင်းမှာ ချဲ့ချင်ရင် ချဲ့နိုင်အောင် တတ်နိုင်သလောက်တော့ ဒေတာဘေစ်ကို အရှင်းဆုံးထားမယ်ဆုံးဖြတ်ထားပါတယ်။ JavaFX ကို သုံးတဲ့အတွက် SceneBuilder နဲ့ View တွေကို မြန်မြန် ရေးနိုင်ခဲ့ပါတယ်။
View တွေကတော့
- သင်တန်းသားအသစ်လက်ခံတဲ့ Registration
- ကျောင်းသားတွေကို ကြည့်နိုင်မယ့် Students
- ဝင်ငွေထွက်ငွေတွေကို ကြည့်နိုင်မယ့် Balance
- Master Data တွေကို Management လုပ်မယ့် Admin
Registration View
ဒီ View ကတော့ သင်တန်းသားအသစ်တွေကို လက်ခံတဲ့ View ပါ။ ရှိပြီးသားကျောင်းသားတွေကလည်း သင်တန်းအသစ် ပြန်တက်ချင်တက်မယ်။ တစ်ခါမှ မလာဘူးတဲ့ ကျောင်းသားအသစ်တွေလည်းပါမယ်။ ဒီမှာ လုပ်နိုင်တာက Register တစ်ခုပါပဲ။ သင်တန်းသားအသစ်ဆိုရင် ကျောင်းသား (Student) နဲ့ အတန်းကော၊ လက်ခံရရှိငွေစာရင်း(Bill) ကိုပါ Registration လုပ်မယ်။ သင်တန်းသားအဟောင်းဆိုရင်တော့ Bill နဲ့ အတန်းကိုပဲ Registration လုပ်ပါမယ်။
စစချင်းပေါ်နေရမှာက Student List နဲ့ Registration Form တို့ပါပဲ။ ဆွဲထားတဲ့ ပုံစံက အောက်ပါအတိုင်း ဖြစ်ပါတယ်။
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?import javafx.geometry.*?> | |
<?import javafx.scene.text.*?> | |
<?import javafx.collections.*?> | |
<?import javafx.scene.control.*?> | |
<?import java.lang.*?> | |
<?import javafx.scene.layout.*?> | |
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="680.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.solt.jdc.gui.view.RegistrationController"> | |
<children> | |
<AnchorPane prefHeight="780.0" prefWidth="880.0"> | |
<children> | |
<GridPane hgap="20.0" prefHeight="680.0" prefWidth="786.0"> | |
<children> | |
<Label text="Name" GridPane.columnIndex="1" GridPane.rowIndex="2" /> | |
<Label text="NRC Number" GridPane.columnIndex="1" GridPane.rowIndex="3" /> | |
<Label text="Gender" GridPane.columnIndex="1" GridPane.rowIndex="4" /> | |
<Label text="Date of birth" GridPane.columnIndex="1" GridPane.rowIndex="5" /> | |
<Label text="Phone" GridPane.columnIndex="1" GridPane.rowIndex="6" /> | |
<Label text="Email" GridPane.columnIndex="1" GridPane.rowIndex="7" /> | |
<Label text="Address" GridPane.columnIndex="1" GridPane.rowIndex="8" /> | |
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="2"> | |
<children> | |
<TextField fx:id="name" prefHeight="25.0" prefWidth="292.0" /> | |
</children> | |
</HBox> | |
<TextField fx:id="nrc" prefWidth="200.0" GridPane.columnIndex="2" GridPane.rowIndex="3" /> | |
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="4"> | |
<children> | |
<RadioButton fx:id="male" mnemonicParsing="false" text="Male" /> | |
<RadioButton fx:id="female" mnemonicParsing="false" text="Female" /> | |
</children> | |
</HBox> | |
<DatePicker fx:id="dob" GridPane.columnIndex="2" GridPane.rowIndex="5" /> | |
<TextField fx:id="phone" prefWidth="225.0" GridPane.columnIndex="2" GridPane.rowIndex="6" /> | |
<TextField fx:id="email" prefWidth="200.0" GridPane.columnIndex="2" GridPane.rowIndex="7" /> | |
<ComboBox fx:id="townships" prefHeight="28.0" prefWidth="177.0" promptText="Select Township" GridPane.columnIndex="2" GridPane.rowIndex="8" /> <TextField fx:id="address" prefWidth="200.0" GridPane.columnIndex="2" GridPane.rowIndex="9" /> | |
<Label text="Personal Information" GridPane.columnIndex="1" GridPane.columnSpan="2147483647" GridPane.rowIndex="1"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
<Label text="Registration" GridPane.columnIndex="1" GridPane.columnSpan="2147483647" GridPane.rowIndex="11"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
<Label text="Class" GridPane.columnIndex="1" GridPane.rowIndex="12" /> | |
<ComboBox fx:id="jdcClasses" prefHeight="28.0" prefWidth="298.0" promptText="Select Class" GridPane.columnIndex="2" GridPane.rowIndex="12" /> | |
<Label text="Fee" GridPane.columnIndex="1" GridPane.rowIndex="13" /> | |
<Label text="Discount" GridPane.columnIndex="1" GridPane.rowIndex="14" /> | |
<Label text="Fees to paid" GridPane.columnIndex="1" GridPane.rowIndex="15" /> | |
<Label text="Paid" GridPane.columnIndex="1" GridPane.rowIndex="16" /> | |
<Label text="Remain" GridPane.columnIndex="1" GridPane.rowIndex="17" /> | |
<TextField fx:id="fee" editable="false" GridPane.columnIndex="2" GridPane.rowIndex="13" /> | |
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="14"> | |
<children> | |
<RadioButton fx:id="noDiscount" mnemonicParsing="false" text="No Discount" /> | |
<RadioButton fx:id="jdc" mnemonicParsing="false" text="Java Developer Class" /> | |
<RadioButton fx:id="nhi" mnemonicParsing="false" text="Nihon Ichi" /> | |
<RadioButton fx:id="student" mnemonicParsing="false" text="Student Discount" /> | |
</children> | |
</HBox> | |
<TextField fx:id="feesToPaid" editable="false" GridPane.columnIndex="2" GridPane.rowIndex="15" /> | |
<TextField fx:id="paid" GridPane.columnIndex="2" GridPane.rowIndex="16" /> | |
<TextField fx:id="remain" editable="false" GridPane.columnIndex="2" GridPane.rowIndex="17" /> | |
<HBox prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="18"> | |
<children> | |
<Button mnemonicParsing="false" onAction="#clear" prefHeight="40.0" prefWidth="120.0" text="CLEAR" /> | |
<Button mnemonicParsing="false" onAction="#register" prefHeight="40.0" prefWidth="120.0" text="REGISTER" /> | |
</children> | |
</HBox> | |
</children> | |
<columnConstraints> | |
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" maxWidth="300.0" minWidth="10.0" prefWidth="86.0" /> | |
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" maxWidth="300.0" minWidth="10.0" prefWidth="134.0" /> | |
<ColumnConstraints hgrow="SOMETIMES" maxWidth="517.0" minWidth="10.0" prefWidth="513.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 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 minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> | |
</rowConstraints> | |
</GridPane> | |
</children> | |
</AnchorPane> | |
<VBox prefHeight="780.0" prefWidth="400.0" spacing="10.0"> | |
<children> | |
<AnchorPane prefHeight="72.0" prefWidth="400.0"> | |
<children> | |
<Label layoutY="27.0" text="Students"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
</children> | |
</AnchorPane> | |
<TextField fx:id="filter" /> | |
<ListView fx:id="studentList" prefHeight="502.0" prefWidth="380.0" /> | |
</children> | |
<padding> | |
<Insets left="10.0" right="10.0" /> | |
</padding></VBox> | |
</children> | |
</HBox> |
Students View
ဒီစာမျက်နှာက ကျောင်းသားတွေကို Management လုပ်မယ့် စာမျက်နှာပါ။ ကျောင်းလခရှင်းရန် ကျန်သေးတဲ့ ကျောင်းသားတွေကို မြန်မြန်တွေ့ရင် အသုံးဝင်မယ် စဉ်းစားပါတယ်။ ကျောင်းလခတွေကို ခွဲသွင်းနိုင်ရမယ်။ Personal Information တွေကို ပြုပြင်နိုင်ရမယ်။ ကျောင်းသားရဲ့ ငွေသွင်းခဲ့တဲ့ History ကို ကြည့်နိုင်ရမယ်။ အဓိက အလုပ်လုပ်မှာက ကျောင်းလခသွင်းတဲ့အလုပ်ရယ်၊ ကျောင်းသားရဲ့ Information တွေကို ပြင်တဲ့အလုပ်ပါ။ ရေးထားတဲ့ View ကတော့ အောက်ပါအတိုင်း ဖြစ်ပါတယ်။
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?import javafx.geometry.*?> | |
<?import javafx.scene.text.*?> | |
<?import javafx.collections.*?> | |
<?import javafx.scene.control.*?> | |
<?import java.lang.*?> | |
<?import javafx.scene.layout.*?> | |
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="680.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.solt.jdc.gui.view.StudentsController"> | |
<children> | |
<AnchorPane prefHeight="780.0" prefWidth="880.0"> | |
<children> | |
<GridPane hgap="20.0" prefHeight="680.0" prefWidth="786.0"> | |
<children> | |
<Label text="Name" GridPane.columnIndex="1" GridPane.rowIndex="2" /> | |
<Label text="NRC Number" GridPane.columnIndex="1" GridPane.rowIndex="3" /> | |
<Label text="Gender" GridPane.columnIndex="1" GridPane.rowIndex="4" /> | |
<Label text="Date of birth" GridPane.columnIndex="1" GridPane.rowIndex="5" /> | |
<Label text="Phone" GridPane.columnIndex="1" GridPane.rowIndex="6" /> | |
<Label text="Email" GridPane.columnIndex="1" GridPane.rowIndex="7" /> | |
<Label text="Address" GridPane.columnIndex="1" GridPane.rowIndex="8" /> | |
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="2"> | |
<children> | |
<TextField fx:id="name" editable="false" prefHeight="25.0" prefWidth="292.0" /> | |
<Button fx:id="edit" disable="true" mnemonicParsing="false" prefHeight="25.0" prefWidth="67.0" text="Edit" /> | |
<Button fx:id="cancel" mnemonicParsing="false" prefHeight="25.0" prefWidth="67.0" text="Cancel" visible="false" /> | |
</children> | |
</HBox> | |
<TextField fx:id="nrc" editable="false" prefWidth="200.0" GridPane.columnIndex="2" GridPane.rowIndex="3" /> | |
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="4"> | |
<children> | |
<RadioButton fx:id="male" disable="true" mnemonicParsing="false" text="Male" /> | |
<RadioButton fx:id="female" disable="true" mnemonicParsing="false" text="Female" /> | |
</children> | |
</HBox> | |
<DatePicker fx:id="dob" disable="true" editable="false" GridPane.columnIndex="2" GridPane.rowIndex="5" /> | |
<TextField fx:id="phone" editable="false" prefWidth="225.0" GridPane.columnIndex="2" GridPane.rowIndex="6" /> | |
<TextField fx:id="email" editable="false" prefWidth="200.0" GridPane.columnIndex="2" GridPane.rowIndex="7" /> | |
<ComboBox fx:id="townships" disable="true" prefHeight="28.0" prefWidth="177.0" promptText="Select Township" GridPane.columnIndex="2" GridPane.rowIndex="8"> | |
<items> | |
<FXCollections fx:factory="observableArrayList"> | |
<String fx:value="Item 1" /> | |
<String fx:value="Item 2" /> | |
<String fx:value="Item 3" /> | |
</FXCollections> | |
</items> | |
</ComboBox> | |
<TextField fx:id="address" editable="false" prefWidth="200.0" GridPane.columnIndex="2" GridPane.rowIndex="9" /> | |
<Label text="Personal Information" GridPane.columnIndex="1" GridPane.columnSpan="2147483647" GridPane.rowIndex="1"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
<Label text="Billing Information" GridPane.columnIndex="1" GridPane.columnSpan="2147483647" GridPane.rowIndex="11"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="14" /> | |
<HBox prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="2" GridPane.rowIndex="18" /> | |
<HBox prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="1" GridPane.columnSpan="2147483647" GridPane.rowIndex="12" GridPane.rowSpan="7"> | |
<children> | |
<ListView fx:id="classList" prefHeight="200.0" prefWidth="200.0" /> | |
<ListView fx:id="billList" prefHeight="288.0" prefWidth="218.0" /> | |
<VBox prefHeight="288.0" prefWidth="262.0" spacing="10.0"> | |
<children> | |
<Label text="Pay Course Fee"> | |
<font> | |
<Font name="System Bold" size="15.0" /> | |
</font> | |
</Label> | |
<GridPane prefHeight="186.0" prefWidth="254.0"> | |
<columnConstraints> | |
<ColumnConstraints hgrow="SOMETIMES" maxWidth="117.0" minWidth="10.0" prefWidth="101.0" /> | |
<ColumnConstraints hgrow="SOMETIMES" maxWidth="153.0" minWidth="10.0" prefWidth="153.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> | |
<children> | |
<Label text="Course Fee" /> | |
<Label text="Discount" GridPane.rowIndex="1" /> | |
<Label text="Fee" GridPane.rowIndex="2" /> | |
<Label text="Paid" GridPane.rowIndex="3" /> | |
<Label text="Remain" GridPane.rowIndex="4" /> | |
<Label text="Pay" GridPane.rowIndex="5" /> | |
<TextField fx:id="courseFee" editable="false" GridPane.columnIndex="1" /> | |
<TextField fx:id="discount" editable="false" GridPane.columnIndex="1" GridPane.rowIndex="1" /> | |
<TextField fx:id="fee" editable="false" GridPane.columnIndex="1" GridPane.rowIndex="2" /> | |
<TextField fx:id="paid" editable="false" GridPane.columnIndex="1" GridPane.rowIndex="3" /> | |
<TextField fx:id="remain" editable="false" GridPane.columnIndex="1" GridPane.rowIndex="4" /> | |
<TextField fx:id="pay" GridPane.columnIndex="1" GridPane.rowIndex="5" /> | |
<Button fx:id="submit" disable="true" mnemonicParsing="false" prefHeight="25.0" prefWidth="156.0" text="Submit" GridPane.columnIndex="1" GridPane.rowIndex="6" /> | |
</children> | |
</GridPane> | |
</children> | |
</VBox> | |
</children> | |
<GridPane.margin> | |
<Insets top="10.0" /> | |
</GridPane.margin> | |
</HBox> | |
</children> | |
<columnConstraints> | |
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" maxWidth="300.0" minWidth="10.0" prefWidth="86.0" /> | |
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" maxWidth="300.0" minWidth="10.0" prefWidth="134.0" /> | |
<ColumnConstraints hgrow="SOMETIMES" maxWidth="517.0" minWidth="10.0" prefWidth="513.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 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 minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> | |
</rowConstraints> | |
</GridPane> | |
</children> | |
</AnchorPane> | |
<VBox prefHeight="780.0" prefWidth="400.0" spacing="10.0"> | |
<children> | |
<AnchorPane prefHeight="72.0" prefWidth="400.0"> | |
<children> | |
<Label layoutY="27.0" text="Students"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
</children> | |
</AnchorPane> | |
<TextField fx:id="filter" /> | |
<ListView fx:id="needToPay" prefHeight="242.0" prefWidth="380.0" /> | |
<ListView fx:id="studentList" prefHeight="246.0" prefWidth="380.0" /> | |
</children> | |
<padding> | |
<Insets left="10.0" right="10.0" /> | |
</padding></VBox> | |
</children> | |
</HBox> |
Balance
ဒီစာမျက်နှာကတော့ ဝင်ငွေထွက်ငွေကို ကြည့်နိုင်မယ့် စာမျက်နှာပါ။ ဒီစာမျက်နှာမှာတော့ ဘယ်ရက်ကနေ ဘယ်ရက်အထိ ဝင်ငွေထွက်ငွေတွေကို တစ်ပြိုင်နက်တည်း ကြည့်နိုင်ရမယ်။ ပြီးတော့ အသုံးငွေတွေကိုလည်း စာရင်းသွင်းနိုင်ရမယ်ပေါ့။ ရေးထားတဲ့ပုံက အောက်ပါအတိုင်း ဖြစ်ပါတယ်။
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?import javafx.geometry.*?> | |
<?import javafx.scene.text.*?> | |
<?import javafx.collections.*?> | |
<?import javafx.scene.control.*?> | |
<?import java.lang.*?> | |
<?import javafx.scene.layout.*?> | |
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="680.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.solt.jdc.gui.view.BalanceController"> | |
<children> | |
<AnchorPane prefHeight="780.0" prefWidth="880.0"> | |
<children> | |
<Label layoutX="53.0" layoutY="32.0" text="Balance Sheet"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
<HBox alignment="CENTER_LEFT" layoutX="53.0" layoutY="86.0" prefHeight="37.0" prefWidth="801.0" spacing="10.0"> | |
<children> | |
<Label text="Starting Point" /> | |
<DatePicker fx:id="from" /> | |
<Label text="Ending Point" /> | |
<DatePicker fx:id="to" /> | |
<Label prefHeight="17.0" prefWidth="31.0" text="Total" /> | |
<Label fx:id="total" prefHeight="17.0" prefWidth="211.0" /> | |
</children> | |
</HBox> | |
<TableView fx:id="table" layoutX="53.0" layoutY="141.0" prefHeight="455.0" prefWidth="801.0"> | |
<columns> | |
<TableColumn fx:id="colDate" prefWidth="144.0" text="Business Date" /> | |
<TableColumn fx:id="colComment" minWidth="0.0" prefWidth="276.0" text="Comment" /> | |
<TableColumn fx:id="colIncome" prefWidth="122.0" text="Income" /> | |
<TableColumn fx:id="colOutcome" prefWidth="118.0" text="Outcome" /> | |
<TableColumn fx:id="colBalance" prefWidth="137.0" text="Balance" /> | |
</columns> | |
</TableView> | |
</children> | |
</AnchorPane> | |
<VBox prefHeight="780.0" prefWidth="400.0" spacing="10.0"> | |
<children> | |
<Pane prefHeight="101.0" prefWidth="380.0" /> | |
<AnchorPane prefHeight="72.0" prefWidth="400.0"> | |
<children> | |
<Label layoutY="27.0" text="Outcomes"> | |
<font> | |
<Font name="Agency FB Bold" size="30.0" /> | |
</font> | |
</Label> | |
</children> | |
</AnchorPane> | |
<AnchorPane prefHeight="400.0" prefWidth="380.0"> | |
<children> | |
<VBox layoutY="-1.0" prefHeight="402.0" prefWidth="357.0" spacing="10.0"> | |
<children> | |
<Label text="Stuff Name" /> | |
<TextField fx:id="stuff" /> | |
<Label text="Cash Ammount" /> | |
<TextField fx:id="amount" /> | |
<Label text="Comments" /> | |
<TextArea fx:id="comment" prefHeight="197.0" prefWidth="357.0" /> | |
<HBox alignment="CENTER_LEFT" prefHeight="44.0" prefWidth="380.0" spacing="5.0"> | |
<children> | |
<Button fx:id="clear" mnemonicParsing="false" prefHeight="42.0" prefWidth="140.0" text="Clear" /> | |
<Button fx:id="submit" mnemonicParsing="false" prefHeight="42.0" prefWidth="140.0" text="Submit" /> | |
</children> | |
</HBox> | |
</children> | |
</VBox> | |
</children> | |
</AnchorPane> | |
</children> | |
<padding> | |
<Insets left="10.0" right="10.0" /> | |
</padding></VBox> | |
</children> | |
</HBox> |
Admin View
ဒီ View မှာတော့ အပလီမှာသုံးမယ့် Master Data တွေကို Management လုပ်မှာပါ။ အဲ့ဒီမှာ သင်တန်း အချိန် (Time Table)၊ သင်ခန်းစာအတန်း (Course) နဲ့ အတန်း (Class) တွေကို အသစ်ဖြည့်စွက်မယ်၊ ပြုပြင်နိုင်ရမယ်။ အားလုံးကို စာမျက်နှာတစ်ခုထဲမှာ ကြည့်ချင်တဲ့အတွက် Tab View ကို သုံးမယ် စဉ်းစားပါတယ်။ Sub View က သုံးခုရှိပေမယ့် ဖွဲ့စည်းပုံကတော့ အခြေခံအားဖြင့် အတူတူပါပဲ။ Input Form တစ်ခုရယ် Table View တစ်ခုရယ် ဒါပဲပါပါလိမ့်မယ်။ သူ့မှာကတော့ Create နဲ့ Update ပါပါလိမ့်မယ်။
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?import javafx.scene.effect.*?> | |
<?import javafx.geometry.*?> | |
<?import javafx.scene.text.*?> | |
<?import javafx.collections.*?> | |
<?import javafx.scene.control.*?> | |
<?import java.lang.*?> | |
<?import javafx.scene.layout.*?> | |
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="680.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.solt.jdc.gui.view.AdminController"> | |
<children> | |
<TabPane prefHeight="658.0" prefWidth="1272.0" side="LEFT" tabClosingPolicy="UNAVAILABLE"> | |
<tabs> | |
<Tab text="JDC Class"> | |
<content> | |
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> | |
<children> | |
<Label layoutX="54.0" layoutY="44.0" text="JDC Class"> | |
<font> | |
<Font name="Playbill" size="48.0" /> | |
</font> | |
</Label> | |
<HBox layoutX="54.0" layoutY="136.0" prefHeight="502.0" prefWidth="1142.0"> | |
<children> | |
<VBox prefHeight="502.0" prefWidth="346.0" spacing="10.0"> | |
<children> | |
<Label text="Date From" /> | |
<DatePicker fx:id="dateFrom" /> | |
<Label text="Course" /> | |
<ComboBox fx:id="courses" prefHeight="25.0" prefWidth="290.0" /> | |
<Label text="Time" /> | |
<ComboBox fx:id="timeTables" prefHeight="25.0" prefWidth="290.0" /> | |
<Label text="Status" /> | |
<ComboBox fx:id="status" prefHeight="25.0" prefWidth="290.0" /> | |
<Button fx:id="classButton" mnemonicParsing="false" prefHeight="53.0" prefWidth="152.0" text="Submit" /> | |
</children> | |
<padding> | |
<Insets left="10.0" right="10.0" /> | |
</padding> | |
</VBox> | |
<TableView fx:id="classTable" prefHeight="502.0" prefWidth="904.0"> | |
<columns> | |
<TableColumn fx:id="clCourse" prefWidth="146.0" text="Course" /> | |
<TableColumn fx:id="clTimetable" minWidth="0.0" prefWidth="212.0" text="Time" /> | |
<TableColumn fx:id="clDateFrom" prefWidth="166.0" text="Date From" /> | |
<TableColumn fx:id="clStatus" prefWidth="118.0" text="Status" /> | |
<TableColumn fx:id="clDuration" prefWidth="205.0" text="Duration" /> | |
</columns> | |
</TableView> | |
</children> | |
</HBox> | |
</children> | |
</AnchorPane> | |
</content> | |
</Tab> | |
<Tab text="Courses"> | |
<content> | |
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> | |
<children> | |
<Label layoutX="54.0" layoutY="44.0" text="JDC Cources"> | |
<font> | |
<Font name="Playbill" size="48.0" /> | |
</font> | |
</Label> | |
<HBox layoutX="54.0" layoutY="136.0" prefHeight="502.0" prefWidth="1142.0"> | |
<children> | |
<VBox prefHeight="502.0" prefWidth="346.0" spacing="10.0"> | |
<children> | |
<Label text="Name" /> | |
<TextField fx:id="courseName" /> | |
<Label text="Requriement" /> | |
<ComboBox fx:id="requirement" prefHeight="25.0" prefWidth="290.0"> | |
<items> | |
<FXCollections fx:factory="observableArrayList"> | |
<String fx:value="Java SE" /> | |
<String fx:value="Java EE" /> | |
</FXCollections> | |
</items> | |
</ComboBox> | |
<Label text="Duration" /> | |
<ComboBox fx:id="duration" prefHeight="25.0" prefWidth="290.0"> | |
<items> | |
<FXCollections fx:factory="observableArrayList"> | |
<String fx:value="2 Months" /> | |
<String fx:value="3 Months" /> | |
<String fx:value="5 Months" /> | |
</FXCollections> | |
</items> | |
</ComboBox> | |
<Label text="Fee" /> | |
<TextField fx:id="fee" /> | |
<Label text="Description" /> | |
<TextArea fx:id="courseDescription" prefHeight="151.0" prefWidth="272.0" /> | |
<Button fx:id="courseButton" mnemonicParsing="false" prefHeight="53.0" prefWidth="152.0" text="Create" /> | |
</children> | |
<padding> | |
<Insets left="10.0" right="10.0" /> | |
</padding> | |
</VBox> | |
<TableView fx:id="courseTable" prefHeight="502.0" prefWidth="904.0"> | |
<columns> | |
<TableColumn fx:id="coName" prefWidth="146.0" text="Name" /> | |
<TableColumn fx:id="coRequirement" minWidth="0.0" prefWidth="148.0" text="Requirement" /> | |
<TableColumn fx:id="coDuration" prefWidth="149.0" text="Duration" /> | |
<TableColumn fx:id="coDescription" prefWidth="405.0" text="Description" /> | |
</columns> | |
</TableView> | |
</children> | |
</HBox> | |
</children> | |
</AnchorPane> | |
</content> | |
</Tab> | |
<Tab text="Time Table"> | |
<content> | |
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> | |
<children> | |
<Label layoutX="54.0" layoutY="44.0" text="Time Table"> | |
<font> | |
<Font name="Playbill" size="48.0" /> | |
</font> | |
</Label> | |
<HBox layoutX="54.0" layoutY="136.0" prefHeight="502.0" prefWidth="1142.0"> | |
<children> | |
<VBox prefHeight="502.0" prefWidth="346.0" spacing="10.0"> | |
<children> | |
<Label text="Days" /> | |
<ComboBox fx:id="days" prefHeight="25.0" prefWidth="282.0"> | |
<items> | |
<FXCollections fx:factory="observableArrayList"> | |
<String fx:value="TUE-THU" /> | |
<String fx:value="SAT-SUN" /> | |
<String fx:value="OTHER" /> | |
</FXCollections> | |
</items> | |
</ComboBox> | |
<Label text="Time From" /> | |
<ComboBox fx:id="timeFrom" prefHeight="25.0" prefWidth="290.0"> | |
<items> | |
<FXCollections fx:factory="observableArrayList"> | |
<String fx:value="7:00 AM" /> | |
<String fx:value="9:00 AM" /> | |
<String fx:value="1:00 PM" /> | |
<String fx:value="3:00 PM" /> | |
<String fx:value="5:00 PM" /> | |
<String fx:value="OTHER" /> | |
</FXCollections> | |
</items> | |
</ComboBox> | |
<Label text="Time To" /> | |
<ComboBox fx:id="timeTo" prefHeight="25.0" prefWidth="290.0"> | |
<items> | |
<FXCollections fx:factory="observableArrayList"> | |
<String fx:value="9:00 AM" /> | |
<String fx:value="12:00 AM" /> | |
<String fx:value="3:00 PM" /> | |
<String fx:value="5:00 PM" /> | |
<String fx:value="7:00 pM" /> | |
<String fx:value="OTHER" /> | |
</FXCollections> | |
</items> | |
</ComboBox> | |
<Label text="Description" /> | |
<TextArea fx:id="description" prefHeight="212.0" prefWidth="292.0" /> | |
<Button fx:id="timeButton" mnemonicParsing="false" prefHeight="53.0" prefWidth="152.0" text="Create" /> | |
</children> | |
<padding> | |
<Insets left="10.0" right="10.0" /> | |
</padding> | |
</VBox> | |
<TableView fx:id="timetable" prefHeight="502.0" prefWidth="904.0"> | |
<columns> | |
<TableColumn fx:id="timeDays" prefWidth="146.0" text="Days" /> | |
<TableColumn fx:id="timeTimeFrom" minWidth="0.0" prefWidth="148.0" text="Time From" /> | |
<TableColumn fx:id="timeTimeTo" prefWidth="149.0" text="Time To" /> | |
<TableColumn fx:id="timeTimeDes" prefWidth="405.0" text="Description" /> | |
</columns> | |
</TableView> | |
</children> | |
</HBox> | |
</children> | |
</AnchorPane> | |
</content> | |
</Tab> | |
</tabs> | |
</TabPane> | |
</children> | |
</HBox> |
View အတွက်ကတော့ ဒီလောက်ပါပဲ။ ဒီထဲမှာ XML ဖိုင်အရှည်ကြီးတွေတွေ့တော့ လန့်မသွားပါနဲ့။ အဲ့ဒါတွေဟာ ကျွှန်တော်ရေးထားတာမဟုတ်ပါဘူး။ Scene Builder ကိုသုံးပြီး Drug And Drop နဲ့ ရေးထားတာပါ။ XML ဖိုင်ကတော့ သူ့ဟာသူ Generate လုပ်ပေးတာပါ။ နောက်နေ့တွေမှပဲ Database Design ရေးပုံနဲ့ အပလီကုဒ်ရေးပုံတွေကို ဆက်ပြီးဖော်ပြသွားပါဦးမယ်။
လေးစားစွာဖြင့်
မင်းလွင်
အရမ္းေကာင္းတဲ့ ပုိစ္။ ေနာက္တစ္ခါ ျပန္လာပီး ေလ့လာအုံးမယ္။ အရမ္းလဲ ေက်းဇူးတင္ပါတယ္ဗ်
ReplyDelete