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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox prefHeight="680.0" prefWidth="1120.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
      fx:controller="com.ecep.contract.controller.contract.ContractManagerWindowController">
    <children>
        <MenuBar VBox.vgrow="NEVER">
            <menus>
                <Menu text="文件(_F)">
                    <items>
                        <MenuItem text="新建…(_N)" onAction="#onCreateNewContractAction"/>
                        <MenuItem text="合同文件重置…(_R)" onAction="#onContractFilesRebuildAction"/>
                        <MenuItem text="合同同步…(_S)" onAction="#onContractRepairAllAction"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem text="首选项…(_P)" disable="true"/>
                    </items>
                </Menu>
                <Menu text="合规(_V)">
                    <items>
                        <MenuItem text="合规验证(_V)" onAction="#onVerifyAction"/>
                    </items>
                </Menu>
                <Menu text="帮助(_H)">
                    <items>
                        <MenuItem mnemonicParsing="false" text="About MyHelloApp"/>
                    </items>
                </Menu>
            </menus>
        </MenuBar>
        <ToolBar prefHeight="40.0" prefWidth="200.0">
            <items>
                <ComboBox fx:id="groupSelector" editable="true" prefWidth="100.0" promptText="分组选择"/>
                <TextField fx:id="searchKeyField" promptText="检索关键字"/>
                <Button fx:id="searchBtn" mnemonicParsing="false" text="检索"/>
                <Separator orientation="VERTICAL">
                    <HBox.margin>
                        <Insets/>
                    </HBox.margin>
                </Separator>
                <CheckBox fx:id="composeViewBtn" selected="true" text="合并显示"/>
            </items>
        </ToolBar>
        <AnchorPane prefHeight="248.0" prefWidth="2239.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" prefWidth="60.0" text="ID"/>
                        <TableColumn fx:id="codeColumn" prefWidth="150.0" text="合同编号"/>
                        <TableColumn fx:id="nameColumn" prefWidth="260" text="名称"/>
                        <TableColumn fx:id="amountColumn" prefWidth="90" text="合同金额" style="-fx-alignment: center-right;"/>
                        <TableColumn fx:id="parentCodeColumn" prefWidth="100.0" text="主合同"/>
                        <TableColumn fx:id="companyColumn" prefWidth="150.0" text="签订单位"/>
                        <TableColumn fx:id="employeeColumn" text="业务员"/>
                        <TableColumn fx:id="setupDateColumn" sortType="DESCENDING" text="提交日期"/>
                        <TableColumn fx:id="orderDateColumn" text="签订日期"/>
                        <TableColumn fx:id="startDateColumn" text="开始日期"/>
                        <TableColumn fx:id="createdColumn" prefWidth="130" sortType="DESCENDING" text="创建时间"/>
                        <TableColumn fx:id="groupColumn" text="分组"/>
                        <TableColumn fx:id="typeColumn" text="分类"/>
                        <TableColumn fx:id="kindColumn" text="性质"/>
                    </columns>
                </TableView>
            </children>
        </AnchorPane>
        <fx:include source="../part-footer.fxml" fx:id="footer"/>
    </children>
</VBox>
