<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.SeparatorMenuItem?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>

<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.qst.dms.ui.TableFXML">
    <children>
        <MenuBar>
            <menus>
                <Menu mnemonicParsing="false" text="操作">
                    <items>
                        <MenuItem mnemonicParsing="false" onAction="#toInfoInputFrame" text="采集数据" />
                        <MenuItem mnemonicParsing="false" onAction="#matchedAcquisitionLogData" text="匹配日志数据" />
                        <MenuItem mnemonicParsing="false" onAction="#matchedAcquisitionTransportData" text="匹配物流数据" />
                        <MenuItem mnemonicParsing="false" onAction="#saveData" text="保存数据" />
                        <MenuItem mnemonicParsing="false" onAction="#sandData" text="发送数据" />
                        <MenuItem mnemonicParsing="false" onAction="#toTableFrame" text="显示数据" />
                  <SeparatorMenuItem mnemonicParsing="false" />
                  <MenuItem mnemonicParsing="false" onAction="#updateFlushTime" text="设置更新时间" />
                    </items>
                </Menu>
                <Menu mnemonicParsing="false" text="帮助">
                    <items>
                        <MenuItem mnemonicParsing="false" text="查看帮助" />
                        <MenuItem mnemonicParsing="false" text="关于" />
                    </items>
                </Menu>
            </menus>
        </MenuBar>
        <AnchorPane prefHeight="375.0" prefWidth="600.0">
            <children>
                <ToolBar prefHeight="40.0" prefWidth="600.0">
                    <items>
                        <Button fx:id="collectDataButton" mnemonicParsing="false" onAction="#toInfoInputFrame" text="采集数据" />
                        <Button fx:id="matchLogButton" mnemonicParsing="false" onAction="#matchedAcquisitionLogData" text="匹配日志数据" />
                        <Button fx:id="matchTransportButton" mnemonicParsing="false" onAction="#matchedAcquisitionTransportData" text="匹配物流数据" />
                        <Button fx:id="saveDataButton" mnemonicParsing="false" onAction="#saveData" text="保存数据" />
                        <Button fx:id="sandDataButton" mnemonicParsing="false" onAction="#sandData" text="发送数据" />
                        <Button fx:id="showDataButton" mnemonicParsing="false" onAction="#toTableFrame" text="显示数据" />
                    </items>
                </ToolBar>
                <TabPane fx:id="tablePane" layoutY="40.0" prefHeight="335.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE">
                    <tabs>
                        <Tab text="日志">
                            <content>
                                <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="284.0" prefWidth="600.0">
                           <children>
                              <TableView fx:id="logTable" prefHeight="287.0" prefWidth="600.0" AnchorPane.bottomAnchor="19.5" AnchorPane.topAnchor="0.0">
                                <columns>
                                  <TableColumn fx:id="logUsername" prefWidth="150.0" text="用户名" />
                                  <TableColumn fx:id="loginTime" minWidth="0.0" prefWidth="190.0" text="登录时间" />
                                    <TableColumn fx:id="logoutTime" prefWidth="190.0" text="登出时间" />
                                    <TableColumn fx:id="logAddress" prefWidth="69.0" text="登录地点" />
                                </columns>
                              </TableView>
                              <Label fx:id="logSQLLabel" layoutX="29.0" layoutY="284.0" prefHeight="19.5" prefWidth="600.0" text="就绪" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" />
                           </children>
                                </AnchorPane>
                            </content>
                        </Tab>
                        <Tab text="物流">
                            <content>
                                <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="289.0" prefWidth="600.0">
                           <children>
                              <TableView fx:id="transportTable" prefHeight="309.0" prefWidth="600.0" AnchorPane.bottomAnchor="19.5" AnchorPane.topAnchor="0.0">
                                <columns>
                                  <TableColumn fx:id="transID" prefWidth="68.66662347316742" text="物流ID" />
                                  <TableColumn fx:id="transTime" prefWidth="176.0" text="采集时间" />
                                    <TableColumn fx:id="transAddress" prefWidth="90.0" text="目的地" />
                                    <TableColumn fx:id="transState" prefWidth="50.0" text="状态" />
                                    <TableColumn fx:id="transHandler" prefWidth="75.0" text="经手人" />
                                    <TableColumn fx:id="transReceiver" prefWidth="75.0" text="收货人" />
                                    <TableColumn fx:id="transType" prefWidth="60.66668701171875" text="物流类型" />
                                </columns>
                              </TableView>
                              <Label fx:id="transportSQLLabel" layoutX="57.0" layoutY="284.0" prefHeight="19.5" prefWidth="600.0" text="就绪" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" />
                           </children>
                                </AnchorPane>
                            </content>
                        </Tab>
                    </tabs>
                </TabPane>
            </children>
        </AnchorPane>
    </children>
</VBox>
