<?xml version="1.0" encoding="UTF-8"?
>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<?import [Link]?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity"
minWidth="-Infinity" prefHeight="800.0" prefWidth="1280.0"
xmlns="[Link] xmlns:fx="[Link]
fx:controller="[Link]
oller">
<top>
<HBox prefHeight="100.0" prefWidth="200.0" spacing="10.0"
[Link]="CENTER_LEFT">
<padding>
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
</padding>
<children>
<FlowPane hgap="8.0" prefHeight="227.0" prefWidth="181.0"
vgap="8.0" [Link]="ALWAYS">
<children>
<DatePicker promptText="Từ ngày" fx:id="fromDatePicker" />
<DatePicker promptText="Đến ngày" fx:id="toDatePicker" />
<ComboBox prefWidth="150.0" promptText="Bác sĩ"
fx:id="doctorFilter" />
<ComboBox prefWidth="150.0" promptText="Phòng (nếu có)"
fx:id="roomFilter" />
<ComboBox prefWidth="150.0" promptText="Trạng thái"
fx:id="statusFilter" />
<TextField promptText="Tìm BN/SĐT/Mã hẹn" fx:id="qSearch" />
<Button mnemonicParsing="false" text="Lọc"
fx:id="applyFilterBtn" onAction="#onApplyFilter" />
<Button mnemonicParsing="false" text="Xóa lọc"
fx:id="resetFilterBtn" onAction="#onResetFilter" />
<Region prefHeight="26.0" prefWidth="835.0" />
<Button mnemonicParsing="false" text="Tạo hẹn"
fx:id="createBtn" onAction="#onCreate" />
<Button mnemonicParsing="false" text="Duyệt"
fx:id="confirmBtn" onAction="#onConfirm" />
<Button mnemonicParsing="false" text="Hủy" fx:id="cancelBtn"
onAction="#onCancel" />
<MenuButton mnemonicParsing="false" text="Thao tác khác"
fx:id="moreActionsBtn">
<items>
<MenuItem mnemonicParsing="false" text="Chuyển bác
sĩ..." />
<MenuItem mnemonicParsing="false" text="Gửi SMS..." />
<MenuItem mnemonicParsing="false" text="Xuất CSV..." />
</items>
</MenuButton>
</children>
</FlowPane>
</children>
</HBox>
</top>
<center>
<SplitPane dividerPositions="0.6869524405506884" prefHeight="160.0"
prefWidth="200.0" [Link]="CENTER">
<items>
<VBox prefHeight="200.0" prefWidth="677.0" spacing="8.0">
<padding>
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
</padding>
<children>
<HBox alignment="CENTER_LEFT" prefHeight="74.0"
prefWidth="859.0" spacing="8.0">
<children>
<Label text="Danh sách hẹn" />
<Region prefHeight="200.0" prefWidth="578.0"
[Link]="ALWAYS" />
<CheckBox mnemonicParsing="false" text="Chỉ hiện xung
đột" />
<Button mnemonicParsing="false" text="Làm mới"
fx:id="refreshBtn" onAction="#onRefresh" />
</children>
</HBox>
<TableView prefHeight="200.0" prefWidth="730.0"
tableMenuButtonVisible="true" [Link]="ALWAYS"
fx:id="appointmentTable">
<columns>
<TableColumn prefWidth="60.0" text="ID" fx:id="colId" />
<TableColumn prefWidth="120.0" text="Thời gian"
fx:id="colTime" />
<TableColumn prefWidth="100.0" text="Ngày"
fx:id="colDate" />
<TableColumn prefWidth="200.0" text="Bệnh nhân"
fx:id="colPatient" />
<TableColumn prefWidth="180.0" text="Bác sĩ"
fx:id="colDoctor" />
<TableColumn prefWidth="180.0" text="Dịch vụ"
fx:id="colService" />
<TableColumn prefWidth="100.0" text="Phòng"
fx:id="colRoom" />
<TableColumn prefWidth="120.0" text="Trạng thái"
fx:id="colStatus" />
<TableColumn prefWidth="200.0" text="Ghi chú"
fx:id="colNote" />
</columns>
<columnResizePolicy>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
</columnResizePolicy>
</TableView>
</children>
</VBox>
<TabPane prefHeight="200.0" prefWidth="200.0"
tabClosingPolicy="UNAVAILABLE">
<tabs>
<Tab text="Chi tiết">
<content>
<VBox spacing="8.0">
<padding>
<Insets bottom="12.0" left="12.0" right="12.0"
top="12.0" />
</padding>
<children>
<GridPane hgap="12.0" vgap="8.0">
<columnConstraints>
<ColumnConstraints percentWidth="35.0" />
<ColumnConstraints percentWidth="65.0" />
</columnConstraints>
<children>
<Label text="Mã hẹn" [Link]="0"
[Link]="0" />
<TextField fx:id="txtId" editable="false"
[Link]="0" [Link]="1" />
<Label text="Ngày" [Link]="1"
[Link]="0" />
<DatePicker fx:id="datePicker"
[Link]="1" [Link]="1" />
<Label text="Giờ bắt đầu" [Link]="2"
[Link]="0" />
<TextField fx:id="startTimeField"
[Link]="2" [Link]="1" />
<Label text="Giờ kết thúc"
[Link]="3" [Link]="0" />
<TextField fx:id="endTimeField"
[Link]="3" [Link]="1" />
<Label text="Bệnh nhân" [Link]="4"
[Link]="0" />
<HBox spacing="8.0" [Link]="4"
[Link]="1">
<children>
<TextField fx:id="patientField"
editable="false" [Link]="ALWAYS" />
<Button text="Chọn..."
fx:id="choosePatientBtn" onAction="#onChoosePatient" />
</children>
</HBox>
<Label text="Bác sĩ" [Link]="5"
[Link]="0" />
<ComboBox fx:id="doctorCombo"
prefWidth="200.0" [Link]="5" [Link]="1" />
<Label text="Dịch vụ" [Link]="6"
[Link]="0" />
<ComboBox fx:id="serviceCombo"
prefWidth="200.0" [Link]="6" [Link]="1" />
<Label text="Phòng" [Link]="7"
[Link]="0" />
<ComboBox fx:id="roomCombo"
prefWidth="200.0" [Link]="7" [Link]="1" />
<Label text="Trạng thái" [Link]="8"
[Link]="0" />
<ComboBox fx:id="statusCombo"
prefWidth="200.0" [Link]="8" [Link]="1" />
<Label text="Ghi chú" [Link]="9"
[Link]="0" />
<TextArea fx:id="noteArea" prefRowCount="3"
[Link]="9" [Link]="1" />
</children>
</GridPane>
<HBox alignment="CENTER_RIGHT" spacing="8.0"
[Link]="ALWAYS">
<children>
<Button text="Lưu thay đổi" fx:id="saveBtn"
onAction="#onSave" />
<Button text="Hoàn tác" fx:id="revertBtn"
onAction="#onRevert" />
<Button text="Xóa hẹn" fx:id="deleteBtn"
onAction="#onDelete" />
</children>
</HBox>
</children>
</VBox>
</content>
</Tab>
<Tab text="Timeline">
<content>
<VBox spacing="8.0">
<padding>
<Insets bottom="12.0" left="12.0" right="12.0"
top="12.0" />
</padding>
<children>
<Label text="Diễn tiến" />
<ListView fx:id="timelineList"
[Link]="ALWAYS" />
<HBox alignment="CENTER_RIGHT" spacing="8.0">
<children>
<Button text="Gửi SMS nhắc hẹn"
fx:id="sendSmsBtn" onAction="#onSendSms" />
<Button text="Gửi Email" fx:id="sendEmailBtn"
onAction="#onSendEmail" />
</children>
</HBox>
</children>
</VBox>
</content>
</Tab>
<Tab text="Ghi chú">
<content>
<VBox spacing="8.0">
<padding>
<Insets bottom="12.0" left="12.0" right="12.0"
top="12.0" />
</padding>
<children>
<TextArea fx:id="extraNoteArea"
[Link]="ALWAYS" />
<HBox alignment="CENTER_RIGHT" spacing="8.0">
<children>
<Button text="Lưu ghi chú" fx:id="saveNoteBtn"
onAction="#onSaveNote" />
</children>
</HBox>
</children>
</VBox>
</content>
</Tab>
</tabs>
</TabPane>
</items>
</SplitPane>
</center>
<bottom>
<HBox alignment="CENTER_LEFT" prefHeight="30.0" prefWidth="200.0"
spacing="10.0" [Link]="CENTER">
<padding>
<Insets bottom="6.0" left="8.0" right="8.0" top="6.0" />
</padding>
<children>
<Label fx:id="lblSummary" text="Tổng: 0 hẹn | Hiển thị: 0" />
<Region [Link]="ALWAYS" />
<Button fx:id="firstPageBtn" text="⟪" onAction="#onFirstPage" />
<Button fx:id="prevPageBtn" text="‹" onAction="#onPrevPage" />
<Label fx:id="lblPage" text="Trang 1/1" />
<Button fx:id="nextPageBtn" text="›" onAction="#onNextPage" />
<Button fx:id="lastPageBtn" text="⟫" onAction="#onLastPage" />
</children>
</HBox>
</bottom>
</BorderPane>