<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox prefHeight="680.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
      fx:controller="com.ecep.contract.controller.employee.EmployeeManagerWindowController">
    <children>
        <MenuBar VBox.vgrow="NEVER">
            <menus>
                <Menu text="文件(_F)">
                    <items>
                        <MenuItem onAction="#onCreateNewAction" text="新建…(_N)"/>
                        <MenuItem onAction="#onSyncFromU8Action" text="同步…(_S)"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem mnemonicParsing="false" text="Preferences…"/>
                    </items>
                </Menu>
                <Menu text="帮助(_H)">
                    <items>
                        <MenuItem text="关于…(_A)"/>
                    </items>
                </Menu>
            </menus>
        </MenuBar>
        <ToolBar prefHeight="40.0" prefWidth="200.0">
            <items>
                <TextField fx:id="searchKeyField" promptText="检索关键字"/>
                <Button fx:id="searchBtn" mnemonicParsing="false" text="检索"/>
                <Separator/>
                <CheckBox fx:id="activeCheckBox" mnemonicParsing="false" text="启用" selected="true"/>
            </items>
        </ToolBar>
        <AnchorPane prefHeight="248.0" prefWidth="1000.0" VBox.vgrow="ALWAYS">
            <children>
                <TableView fx:id="table" layoutX="52.0" layoutY="14.0" prefHeight="200.0" prefWidth="200.0"
                           AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
                           AnchorPane.topAnchor="0.0">
                    <columns>
                        <TableColumn fx:id="idColumn" maxWidth="100.0" prefWidth="60.0" text="ID"/>
                        <TableColumn fx:id="nameColumn" maxWidth="300" minWidth="50.0" prefWidth="120.0" text="名称"/>
                        <TableColumn fx:id="accountColumn" maxWidth="200.0" minWidth="50.0" prefWidth="150.0"
                                     text="账号"/>
                        <TableColumn fx:id="departmentColumn" maxWidth="300.0" minWidth="100.0" prefWidth="180.0"
                                     text="部门"/>
                        <TableColumn fx:id="emailColumn" maxWidth="300.0" minWidth="100.0" prefWidth="180.0"
                                     text="邮箱"/>
                        <TableColumn fx:id="createdColumn" maxWidth="100.0" minWidth="50.0" sortType="DESCENDING"
                                     text="创建日期"/>
                        <TableColumn fx:id="entryDateColumn" maxWidth="100.0" minWidth="50.0" text="入职日期"/>
                        <TableColumn fx:id="leaveDateColumn" maxWidth="100.0" minWidth="50.0" text="离职日期"/>
                        <TableColumn fx:id="codeColumn" minWidth="50.0" text="U8系统编号"/>
                        <TableColumn fx:id="aliasColumn" maxWidth="300" minWidth="50.0" prefWidth="120.0" text="别名"/>
                        <TableColumn fx:id="activeColumn" maxWidth="100.0" minWidth="50.0" text="启用"/>
                    </columns>
                    <contextMenu>
                        <ContextMenu>
                            <items>
                                <MenuItem mnemonicParsing="false" onAction="#onBaseTableRefreshAction" text="刷新"/>
                            </items>
                        </ContextMenu>
                    </contextMenu>
                    <columnResizePolicy>
                        <TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
                    </columnResizePolicy>
                </TableView>
            </children>
        </AnchorPane>
        <fx:include source="../part-footer.fxml" fx:id="footer"/>
    </children>
</VBox>
