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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane fx:id="root" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="com.ecep.contract.controller.inventory.InventoryTabSkinHistoryPrice">
    <children>
        <VBox AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0"
              AnchorPane.topAnchor="5.0">
            <children>
                <HBox spacing="3.0">
                    <children>
                        <TextField fx:id="searchKeyField" promptText="检索关键字"/>
                        <Button fx:id="searchBtn" mnemonicParsing="false" text="检索"/>
                        <Separator orientation="VERTICAL"/>
                        <Button fx:id="refreshBtn" text="更新(_R)"/>
                    </children>
                    <padding>
                        <Insets bottom="10.0" left="7.0" right="10.0" top="10.0"/>
                    </padding>
                </HBox>
                <TableView fx:id="table" prefHeight="300.0" VBox.vgrow="ALWAYS">
                    <columns>
                        <TableColumn fx:id="idColumn" prefWidth="75.0" text="ID" visible="false"/>
                        <TableColumn fx:id="yearColumn" prefWidth="75.0" text="年度" style="-fx-alignment: center;"/>
                        <TableColumn prefWidth="75.0" text="年度最新价格">
                            <columns>
                                <TableColumn text="销售价格">
                                    <columns>
                                        <TableColumn fx:id="latestSaleTaxColumn" prefWidth="45.0"
                                                     style="-fx-alignment: center-right;" text="税率%"/>
                                        <TableColumn fx:id="latestSalePriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="未税"/>
                                        <TableColumn fx:id="latestSaleTaxPriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="含税"/>
                                        <TableColumn fx:id="latestSalePriceDateColumn" prefWidth="75.0" text="日期"/>
                                    </columns>
                                </TableColumn>
                                <TableColumn text="采购价格">
                                    <columns>
                                        <TableColumn fx:id="latestPurchaseTaxColumn" prefWidth="45.0"
                                                     style="-fx-alignment: center-right;" text="税率%"/>
                                        <TableColumn fx:id="latestPurchasePriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="未税"/>
                                        <TableColumn fx:id="latestPurchaseTaxPriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="含税"/>
                                        <TableColumn fx:id="latestPurchasePriceDateColumn" prefWidth="75.0"
                                                     text="日期"/>
                                    </columns>
                                </TableColumn>
                            </columns>
                        </TableColumn>
                        <TableColumn text="最高价格">
                            <columns>
                                <TableColumn prefWidth="75.0" text="销售价格">
                                    <columns>
                                        <TableColumn fx:id="maxSaleTaxColumn" prefWidth="45.0"
                                                     style="-fx-alignment: center-right;" text="税率%"/>
                                        <TableColumn fx:id="maxSalePriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="未税价格"/>
                                        <TableColumn fx:id="maxSaleTaxPriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="含税价格"/>
                                        <TableColumn fx:id="maxSalePriceDateColumn" prefWidth="75.0" text="日期"/>
                                    </columns>
                                </TableColumn>
                                <TableColumn prefWidth="75.0" text="采购价格">
                                    <columns>
                                        <TableColumn fx:id="maxPurchaseTaxColumn" prefWidth="45.0"
                                                     style="-fx-alignment: center-right;" text="税率%"/>
                                        <TableColumn fx:id="maxPurchasePriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="未税价格"/>
                                        <TableColumn fx:id="maxPurchaseTaxPriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="含税价格"/>
                                        <TableColumn fx:id="maxPurchasePriceDateColumn" prefWidth="75.0" text="日期"/>
                                    </columns>
                                </TableColumn>
                            </columns>
                        </TableColumn>
                        <TableColumn text="最低价格">
                            <columns>
                                <TableColumn prefWidth="75.0" text="销售价格">
                                    <columns>
                                        <TableColumn fx:id="miniSaleTaxColumn" prefWidth="45.0"
                                                     style="-fx-alignment: center-right;" text="税率%"/>
                                        <TableColumn fx:id="miniSalePriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="未税价格"/>
                                        <TableColumn fx:id="miniSaleTaxPriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="含税价格"/>
                                        <TableColumn fx:id="miniSalePriceDateColumn" prefWidth="75.0" text="日期"/>
                                    </columns>
                                </TableColumn>
                                <TableColumn prefWidth="75.0" text="采购价格">
                                    <columns>
                                        <TableColumn fx:id="miniPurchaseTaxColumn" prefWidth="45.0"
                                                     style="-fx-alignment: center-right;" text="税率%"/>
                                        <TableColumn fx:id="miniPurchasePriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="未税价格"/>
                                        <TableColumn fx:id="miniPurchaseTaxPriceColumn" prefWidth="120.0"
                                                     style="-fx-alignment: center-right;" text="含税价格"/>
                                        <TableColumn fx:id="miniPurchasePriceDateColumn" prefWidth="75.0" text="日期"/>
                                    </columns>
                                </TableColumn>
                            </columns>
                        </TableColumn>
                    </columns>
                </TableView>
                <Pane prefHeight="50.0">
                    <children>
                        <Label layoutX="14.0" layoutY="7.0" text="按照年度统计分析"/>
                    </children>
                </Pane>
            </children>
        </VBox>
    </children>
</AnchorPane>
