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

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox prefHeight="680.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
      fx:controller="com.ecep.contract.controller.inventory.InventoryManagerWindowController">
    <children>
        <MenuBar VBox.vgrow="NEVER">
            <menus>
                <Menu text="文件(_F)">
                    <items>
                        <MenuItem onAction="#onCreateNewAction" text="新建…(_N)"/>
                        <MenuItem onAction="#onSyncAction" text="同步…(_R)"/>
                        <SeparatorMenuItem mnemonicParsing="false"/>
                        <MenuItem mnemonicParsing="false" text="Preferences…"/>
                    </items>
                </Menu>
                <Menu text="帮助(_H)">
                    <items>
                        <MenuItem mnemonicParsing="false" text="关于…"/>
                    </items>
                </Menu>
            </menus>
        </MenuBar>
        <ToolBar prefHeight="40.0" prefWidth="200.0">
            <items>
                <TextField fx:id="searchKeyField" promptText="检索关键字"/>
                <Button fx:id="searchBtn" mnemonicParsing="false" text="检索"/>
            </items>
        </ToolBar>
        <AnchorPane prefHeight="248.0" prefWidth="1000.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="50.0" text="ID"/>
                        <TableColumn fx:id="catalogColumn" prefWidth="90" text="分类"/>
                        <TableColumn fx:id="nameColumn" prefWidth="180" text="名称"/>
                        <TableColumn fx:id="specificationColumn" prefWidth="180" text="规格"/>
                        <TableColumn fx:id="unitColumn" prefWidth="70" text="单位" style="-fx-alignment: center;"/>
                        <TableColumn text="采购">
                            <columns>
                                <TableColumn fx:id="purchaseTaxRateColumn" prefWidth="70" text="税率%"
                                             style="-fx-alignment: center-right;"/>
                                <TableColumn fx:id="purchasePriceColumn" prefWidth="110" text="价格"
                                             style="-fx-alignment: center-right;"/>
                            </columns>
                        </TableColumn>
                        <TableColumn text="销售">
                            <columns>
                                <TableColumn fx:id="saleTaxRateColumn" prefWidth="70" text="税率%"
                                             style="-fx-alignment: center-right;"/>
                                <TableColumn fx:id="salePriceColumn" prefWidth="110" text="价格"
                                             style="-fx-alignment: center-right;"/>
                            </columns>
                        </TableColumn>

                        <TableColumn fx:id="createTimeColumn" prefWidth="110" text="创建日期"/>
                        <TableColumn fx:id="updateDateColumn" prefWidth="130" text="更新时间"/>
                        <TableColumn fx:id="descriptionColumn" prefWidth="100" text="说明"/>
                        <TableColumn fx:id="codeColumn" prefWidth="50.0" text="编号 *"/>
                    </columns>
                </TableView>
            </children>
        </AnchorPane>
        <fx:include source="../part-footer.fxml" fx:id="footer"/>
    </children>
</VBox>
