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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox prefHeight="680.0" prefWidth="1100.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
      fx:controller="com.ecep.contract.controller.project.ProjectManagerWindowController">
    <children>
        <MenuBar VBox.vgrow="NEVER">
            <menus>
                <Menu text="文件(_F)">
                    <items>
                        <MenuItem text="新建项目…(_N)" onAction="#onCreateNewProjectAction"/>
                        <MenuItem text="文件重置…(_R)" onAction="#onReBuildFilesAction" disable="true"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem text="首选项…(_P)" disable="true"/>
                    </items>
                </Menu>
                <Menu text="设置(_S)">
                    <MenuItem text="项目类型管理(_P)" onAction="#onOpenProjectTypeManagerAction"/>
                    <MenuItem text="销售类型管理(_S)" onAction="#onOpenSaleTypeManagerAction"/>
                    <MenuItem text="用户行业管理(_I)" onAction="#onOpenUsedIndustryManagerAction"/>
                    <MenuItem text="产品类型管理(_T)" onAction="#onOpenProductTypeManagerAction"/>
                    <MenuItem text="产品用途管理(_U)" onAction="#onOpenProductUsageManagerAction"/>
                </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="saleTypeSelector" 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>
            </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"
                                     sortType="DESCENDING"/>
                        <TableColumn fx:id="saleTypeColumn" prefWidth="95.0" text="销售类型"/>
                        <TableColumn fx:id="codeColumn" prefWidth="100.0" text="项目编号"/>
                        <TableColumn fx:id="nameColumn" prefWidth="250.0" text="项目名称"/>
                        <TableColumn fx:id="customerColumn" prefWidth="250.0" text="客户"/>
                        <TableColumn fx:id="useBidColumn" prefWidth="50" text="投标"/>
                        <TableColumn fx:id="useOfferColumn" prefWidth="50" text="报价"/>
                        <TableColumn fx:id="amountColumn" prefWidth="120" text="项目金额" style="-fx-alignment: center-right;"/>
                        <TableColumn fx:id="productTypeColumn" prefWidth="79" text="产品类型"/>
                        <TableColumn fx:id="projectTypeColumn" prefWidth="79" text="项目类型"/>
                        <TableColumn fx:id="createdColumn" prefWidth="90.0" sortType="DESCENDING"
                                     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>
