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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.text.Font?>
<BorderPane prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="com.ecep.contract.controller.contract.purchase_bill.PurchaseBillVoucherWindowController">
    <top>
        <ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
            <items>
                <Button fx:id="saveBtn" disable="true" text="保存(_S)"/>
            </items>
        </ToolBar>
    </top>
    <center>
        <TabPane fx:id="tabPane" tabClosingPolicy="UNAVAILABLE" tabMaxWidth="100.0" tabMinWidth="40.0">
            <tabs>
                <Tab fx:id="baseInfoTab" text="基本信息">
                    <content>
                        <ScrollPane fitToHeight="true" fitToWidth="true" pannable="true">
                            <content>
                                <VBox>
                                    <children>
                                        <GridPane VBox.vgrow="NEVER">
                                            <columnConstraints>
                                                <ColumnConstraints halignment="CENTER" hgrow="NEVER" maxWidth="200.0"
                                                                   minWidth="80.0" prefWidth="120.0"/>
                                                <ColumnConstraints hgrow="ALWAYS" maxWidth="1.7976931348623157E308"
                                                                   minWidth="50.0" prefWidth="180.0"/>
                                                <ColumnConstraints halignment="CENTER" hgrow="NEVER" maxWidth="200.0"
                                                                   minWidth="80.0" prefWidth="120.0"/>
                                                <ColumnConstraints hgrow="ALWAYS" maxWidth="1.7976931348623157E308"
                                                                   minWidth="50.0" prefWidth="180.0"/>
                                            </columnConstraints>
                                            <rowConstraints>
                                                <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0"
                                                                vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0"
                                                                vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0"
                                                                vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0"
                                                                vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0"
                                                                vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0"
                                                                vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                                minHeight="30.0" prefHeight="80.0" vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                                minHeight="30.0" prefHeight="42.0" vgrow="NEVER"/>
                                            </rowConstraints>
                                            <children>
                                                <Label text="订单号#"/>
                                                <Label text="采购订单编号" GridPane.rowIndex="1"/>
                                                <TextField fx:id="refIdField" GridPane.columnIndex="1"/>
                                                <TextField fx:id="codeField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="1"/>
                                                <Label layoutX="20.0" layoutY="28.0" text="备注" GridPane.rowIndex="6"/>
                                                <TextArea fx:id="descriptionField" GridPane.columnIndex="1"
                                                          GridPane.columnSpan="3" GridPane.rowIndex="6"/>
                                                <HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1"
                                                      GridPane.columnSpan="3" GridPane.rowIndex="7">
                                                    <children>

                                                    </children>
                                                </HBox>
                                                <Label fx:id="versionLabel" text="\@Version" GridPane.rowIndex="7"/>
                                                <Label text="制单人" GridPane.rowIndex="2"/>
                                                <Label text="制单日期" GridPane.columnIndex="2" GridPane.rowIndex="2"/>
                                                <Label text="审核人" GridPane.rowIndex="3"/>
                                                <Label text="审核日期" GridPane.columnIndex="2" GridPane.rowIndex="3"/>
                                                <TextField fx:id="makerField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="2"/>
                                                <TextField fx:id="makeDateField" GridPane.columnIndex="3"
                                                           GridPane.rowIndex="2"/>
                                                <TextField fx:id="verifierField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="3"/>
                                                <TextField fx:id="verifierDateField" GridPane.columnIndex="3"
                                                           GridPane.rowIndex="3"/>
                                                <Label text="修改人" GridPane.rowIndex="4"/>
                                                <Label text="修改日期" GridPane.columnIndex="2" GridPane.rowIndex="4"/>
                                                <Label text="关闭人" GridPane.rowIndex="5"/>
                                                <Label text="关闭日期" GridPane.columnIndex="2" GridPane.rowIndex="5"/>
                                                <TextField fx:id="modifierField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="4"/>
                                                <TextField fx:id="modifierDateField" GridPane.columnIndex="3"
                                                           GridPane.rowIndex="4"/>
                                                <TextField fx:id="closerField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="5"/>
                                                <TextField fx:id="closerDateField" GridPane.columnIndex="3"
                                                           GridPane.rowIndex="5"/>
                                                <Label text="业务员" GridPane.columnIndex="2" GridPane.rowIndex="1"/>
                                                <TextField fx:id="employeeField" GridPane.columnIndex="3"
                                                           GridPane.rowIndex="1"/>
                                            </children>
                                            <VBox.margin>
                                                <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
                                            </VBox.margin>
                                        </GridPane>
                                        <Pane prefHeight="50.0" prefWidth="200.0"/>
                                    </children>
                                </VBox>
                            </content>
                        </ScrollPane>
                    </content>
                </Tab>
                <Tab fx:id="itemTab" text="发票条目">
                </Tab>
            </tabs>
        </TabPane>
    </center>

    <bottom>
        <HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0">
            <children>
                <Label fx:id="leftStatusLabel" maxHeight="1.7976931348623157E308" text="Left status"
                       HBox.hgrow="ALWAYS">
                    <font>
                        <Font size="11.0" fx:id="x3"/>
                    </font>
                    <textFill>
                        <Color red="0.625" green="0.625" blue="0.625" fx:id="x4"/>
                    </textFill>
                </Label>
                <Pane HBox.hgrow="ALWAYS"/>
                <Label fx:id="rightStatusLabel" font="$x3" text="Right status" textFill="$x4" HBox.hgrow="NEVER"/>
            </children>
            <padding>
                <Insets bottom="3.0" left="3.0" right="3.0" top="3.0"/>
            </padding>
        </HBox>
    </bottom>
</BorderPane>
