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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="com.ecep.contract.controller.vendor.approved_list.VendorApprovedListTabSkinVendors">
    <children>
        <HBox spacing="3.0">
            <children>
                <ComboBox fx:id="typeSelector" prefWidth="100.0" promptText="分类选择"/>
                <TextField fx:id="searchKeyField" promptText="检索关键字"/>
                <Button fx:id="searchBtn" mnemonicParsing="false" text="检索"/>
                <Separator orientation="VERTICAL"/>
                <Button disable="true" mnemonicParsing="false" onAction="#onVendorTableCreateNewAction" text="添加"/>
                <MenuButton mnemonicParsing="false" text="选项">
                    <items>
                        <Menu text="日志">
                            <items>
                                <CheckMenuItem fx:id="logUnqualifiedVendorChecker" mnemonicParsing="false"
                                               selected="true" text="不合格供应商"/>
                                <CheckMenuItem fx:id="logTypicallyVendorNoThreeYearContractChecker"
                                               mnemonicParsing="false" selected="true" text="一般供应商三年无合同"/>
                                <CheckMenuItem fx:id="logTypicallyVendorNoThreeYearContractDetailChecker"
                                               mnemonicParsing="false" selected="true" text="一般供应商三年无合同详情"/>
                                <CheckMenuItem fx:id="logUnqualifiedVendorRemoveChecker" mnemonicParsing="false"
                                               selected="true" text="移除不合格供应商"/>
                            </items>
                        </Menu>

                        <CheckMenuItem fx:id="verifyVendorChecker" mnemonicParsing="false" selected="true"
                                       text="验证供应商"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <CheckMenuItem fx:id="onlyShowVerifiedChecker" mnemonicParsing="false" selected="true"
                                       text="只显示未通过的"/>
                        <CustomMenuItem hideOnClick="false" text="Unspecified Action">
                            <content>
                                <Spinner fx:id="qualifiedVendorEveryYearMinContractsSpinner" editable="true"
                                         initialValue="2" max="100" min="1" prefWidth="80.0" promptText="1123"/>
                            </content>
                        </CustomMenuItem>
                    </items>
                </MenuButton>
                <Button layoutX="336.0" layoutY="20.0" mnemonicParsing="false" onAction="#onVendorTableImportAction"
                        text="导入">
                    <tooltip>
                        <Tooltip text="从现有的供应商数据库中导入符合要求的供应商"/>
                    </tooltip>
                </Button>
            </children>
            <padding>
                <Insets bottom="10.0" left="7.0" right="10.0" top="10.0"/>
            </padding>
        </HBox>
        <TableView fx:id="table" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="5.0"
                   AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="42.0">
            <columns>
                <TableColumn fx:id="idColumn" minWidth="50.0" prefWidth="60.0" text="ID"/>
                <TableColumn fx:id="typeColumn" text="分类"/>
                <TableColumn fx:id="vendorColumn" maxWidth="1.7976931348623157E308" minWidth="80.0"
                             prefWidth="300.0" text="供方"/>
                <TableColumn fx:id="descriptionColumn" editable="false" minWidth="100.0" prefWidth="200.0"
                             text="备注"/>
            </columns>
            <contextMenu>
                <ContextMenu>
                    <items>
                        <MenuItem mnemonicParsing="false" onAction="#onVendorTableRefreshAction" text="刷新"/>
                        <MenuItem mnemonicParsing="false" onAction="#onVendorTableUpdateAction" text="更新"/>
                        <Menu fx:id="vendorTableContextChangeTypeMenu" mnemonicParsing="false" text="变更类型为">
                        </Menu>
                        <MenuItem mnemonicParsing="false" onAction="#onVendorTableShowVendorAction" text="查看供应商"/>
                        <MenuItem mnemonicParsing="false" onAction="#onVendorTableDeleteAction" text="删除"/>
                    </items>
                </ContextMenu>
            </contextMenu>
            <columnResizePolicy>
                <TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/>
            </columnResizePolicy>
        </TableView>
    </children>
</AnchorPane>