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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.text.Font?>
<VBox prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
      fx:controller="com.ecep.contract.controller.contract.ContractVerifyWindowController">
    <children>
        <MenuBar VBox.vgrow="NEVER">
            <menus>
                <Menu mnemonicParsing="false" text="File">
                    <items>
                        <MenuItem mnemonicParsing="false" text="New"/>
                        <MenuItem mnemonicParsing="false" text="Open…"/>
                        <Menu mnemonicParsing="false" text="Open Recent"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem mnemonicParsing="false" text="Close"/>
                        <MenuItem mnemonicParsing="false" text="Save"/>
                        <MenuItem mnemonicParsing="false" text="Save As…"/>
                        <MenuItem mnemonicParsing="false" text="Revert"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem mnemonicParsing="false" text="Preferences…"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem mnemonicParsing="false" text="Quit"/>
                    </items>
                </Menu>
                <Menu text="导出(_E)">
                    <items>
                        <MenuItem mnemonicParsing="false" text="导出当前验证结果…"
                                  onAction="#onExportVerifyResultAsFileAction"/>
                    </items>
                </Menu>
                <Menu mnemonicParsing="false" text="Help">
                    <items>
                        <MenuItem mnemonicParsing="false" text="About MyHelloApp"/>
                    </items>
                </Menu>
            </menus>
        </MenuBar>
        <ToolBar prefHeight="40.0" prefWidth="200.0">
            <items>
                <Label text="提交日期："/>
                <DatePicker fx:id="setupDateBeginSelector" prefHeight="23.0" prefWidth="100.0" promptText="起始日期"/>
                <Label layoutX="10.0" layoutY="18.0" text="至"/>
                <DatePicker fx:id="setupDateEndSelector" layoutX="10.0" layoutY="14.0" prefHeight="23.0"
                            prefWidth="100.0" promptText="截至日期"/>
                <MenuButton mnemonicParsing="false" text="选项">
                    <items>
                        <CheckMenuItem fx:id="verifyCompanyStatusChecker" mnemonicParsing="false" selected="true"
                                       text="验证公司营业状态"/>
                        <CheckMenuItem fx:id="verifyCompanyPathChecker" mnemonicParsing="false" selected="true"
                                       text="验证公司目录"/>
                        <CheckMenuItem fx:id="verifyCompanyCreditChecker" mnemonicParsing="false" selected="true"
                                       text="验证公司资信"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <CheckMenuItem fx:id="verifyCustomerChecker" mnemonicParsing="false" selected="true"
                                       text="验证客户"/>
                        <CheckMenuItem fx:id="verifyCustomerFileChecker" mnemonicParsing="false" selected="true"
                                       text="验证客户文件"/>
                        <CheckMenuItem fx:id="verifyCustomerSubContractDateChecker" mnemonicParsing="false"
                                       text="验证客户采购合同日期"/>

                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <CheckMenuItem fx:id="verifyVendorChecker" mnemonicParsing="false" selected="true"
                                       text="验证供应商"/>
                        <CheckMenuItem fx:id="verifyVendorFileChecker" mnemonicParsing="false" selected="true"
                                       text="验证供应商文件"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <CheckMenuItem fx:id="onlyShowVerifiedChecker" mnemonicParsing="false" selected="true"
                                       text="只显示未通过的"/>
                    </items>
                </MenuButton>
                <Button mnemonicParsing="false" onAction="#onVerifyAction" text="开始验证">
                    <tooltip>
                        <Tooltip text="Empty Tooltip"/>
                    </tooltip>
                </Button>
            </items>
        </ToolBar>
        <AnchorPane VBox.vgrow="ALWAYS">
            <children>
                <Label alignment="CENTER" layoutX="155.0" layoutY="177.0" style="&#10;"
                       text="Drag components from Library here…" textAlignment="CENTER" textFill="#9f9f9f"
                       wrapText="true">
                    <font>
                        <Font size="18.0"/>
                    </font>
                </Label>
                <TableView fx:id="viewTable" layoutX="55.0" layoutY="25.0" prefHeight="200.0" prefWidth="200.0"
                           AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0"
                           AnchorPane.topAnchor="5.0">
                    <columns>
                        <TableColumn fx:id="viewTable_codeColumn" maxWidth="150.0" prefWidth="90.0" text="合同号"/>
                        <TableColumn fx:id="viewTable_nameColumn" maxWidth="500.0" prefWidth="200.0" text="合同名"/>
                        <TableColumn fx:id="viewTable_employeeColumn" maxWidth="120.0" prefWidth="85.0" text="业务员"/>
                        <TableColumn fx:id="viewTable_setupDateColumn" maxWidth="120.0" prefWidth="85.0"
                                     text="合同提交日期"/>
                        <TableColumn fx:id="viewTable_stateColumn" prefWidth="380.0" text="状态"/>
                    </columns>
                    <columnResizePolicy>
                        <TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
                    </columnResizePolicy>
                    <contextMenu>
                        <ContextMenu>
                            <items>
                                <MenuItem mnemonicParsing="false" onAction="#onShowContractDetailAction"
                                          text="合同详情"/>
                                <MenuItem mnemonicParsing="false" onAction="#onContractReVerifyAction" text="重新验证"/>
                            </items>
                        </ContextMenu>
                    </contextMenu>
                </TableView>
            </children>
        </AnchorPane>
        <HBox id="HBox" alignment="CENTER_LEFT" prefWidth="800.0" spacing="5.0">
            <children>
                <Label fx:id="leftStatusLabel" maxHeight="1.7976931348623157E308" text="Left status"
                       HBox.hgrow="ALWAYS">
                    <font>
                        <Font size="11.0" fx:id="x3"/>
                    </font>
                    <textFill>
                        <Color red="0.625" green="0.625" blue="0.625" fx:id="x4"/>
                    </textFill>
                </Label>
                <Pane HBox.hgrow="ALWAYS"/>
                <Label fx:id="rightStatusLabel" font="$x3" text="Right status" textFill="$x4" HBox.hgrow="NEVER"/>
            </children>
            <padding>
                <Insets bottom="3.0" left="3.0" right="3.0" top="3.0"/>
            </padding>
        </HBox>
    </children>
</VBox>
