<?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.vendor.CompanyVendorManagerWindowController">
    <children>
        <MenuBar VBox.vgrow="NEVER">
            <menus>
                <Menu mnemonicParsing="false" text="供应商">
                    <items>
                        <MenuItem mnemonicParsing="false" text="新建…" onAction="#onCreateNewVendorAction"/>
                    </items>
                </Menu>
                <Menu mnemonicParsing="false" text="文件">
                    <items>
                        <MenuItem mnemonicParsing="false" text="重置…" onAction="#onFileReBuildingAction"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem mnemonicParsing="false" text="Preferences…"/>
                    </items>
                </Menu>
                <Menu mnemonicParsing="false" text="供应商名录">
                    <items>
                        <MenuItem mnemonicParsing="false" text="供应商名录管理…"
                                  onAction="#onOpenApprovedVendorListWindowAction"/>
                    </items>
                </Menu>
                <Menu text="合规(_V)">
                    <items>
                        <MenuItem text="合规验证…(_V)" onAction="#onVerifyAction"/>
                    </items>
                </Menu>
                <Menu text="设置(_S)">
                    <MenuItem text="采购类型管理(_G)" onAction="#onOpenVendorGroupManagerAction"/>
                </Menu>
                <Menu mnemonicParsing="false" text="帮助">
                    <items>
                        <MenuItem mnemonicParsing="false" text="About MyHelloApp"/>
                    </items>
                </Menu>
            </menus>
        </MenuBar>
        <HBox spacing="3.0">
            <children>
                <ComboBox fx:id="typeSelector" 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>
            </children>
            <VBox.margin>
                <Insets/>
            </VBox.margin>
            <padding>
                <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
            </padding>
        </HBox>
        <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" maxWidth="100.0" prefWidth="60.0" text="ID"
                                     sortType="DESCENDING"/>
                        <TableColumn fx:id="companyColumn" minWidth="50.0" prefWidth="220.0" text="公司名称"/>
                        <TableColumn fx:id="typeColumn" minWidth="50.0" prefWidth="110.0" text="分类"/>
                        <TableColumn fx:id="purchaseColumn" minWidth="50.0" prefWidth="220.0" text="产品或服务"/>
                        <TableColumn fx:id="developDateColumn" maxWidth="120.0" minWidth="50.0" text="开发日期"/>
                        <TableColumn fx:id="pathColumn" minWidth="50.0" prefWidth="250.0" text="文件目录"/>
                        <TableColumn fx:id="createdColumn" minWidth="50.0" prefWidth="150.0" text="创建日期"/>
                        <TableColumn fx:id="catalogColumn" minWidth="50.0" prefWidth="75.0" text="分组"/>
                        <TableColumn fx:id="codeColumn" maxWidth="200.0" minWidth="50.0" prefWidth="150.0"
                                     text="供应商编号"/>
                    </columns>
                    <contextMenu>
                        <ContextMenu>
                            <items>
                                <MenuItem mnemonicParsing="false" onAction="#onBaseTableRefreshAction" text="刷新"/>
                            </items>
                        </ContextMenu>
                    </contextMenu>
                </TableView>
            </children>
        </AnchorPane>
        <fx:include source="../../part-footer.fxml" fx:id="footer"/>
    </children>
</VBox>
