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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>

<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.ComboBox?>
<BorderPane id="root" fx:id="root" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="700.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1"
 fx:controller="com.ecep.contract.controller.contract.ContractInvoiceWindowController">
    <top>
        <HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="900.0" spacing="10.0">
            <Button fx:id="saveBtn" mnemonicParsing="false" text="保存">
                <HBox.margin>
                    <Insets left="10.0" />
                </HBox.margin>
            </Button>
            <Button mnemonicParsing="false" onAction="#refresh" text="刷新">
                <HBox.margin>
                    <Insets left="10.0" />
                </HBox.margin>
            </Button>
            <Label fx:id="statusLabel" prefWidth="200.0">
                <HBox.margin>
                    <Insets left="10.0" />
                </HBox.margin>
            </Label>
        </HBox>
    </top>
    <center>
        <TabPane fx:id="tabPane" prefHeight="660.0" prefWidth="900.0" tabClosingPolicy="UNAVAILABLE">
            <Tab fx:id="baseInfoTab" text="基本信息">
                <ScrollPane fitToWidth="true">
                    <VBox maxWidth="800.0" prefWidth="800.0">
                        <GridPane hgap="10.0" vgap="10.0">
                            <columnConstraints>
                                <ColumnConstraints halignment="RIGHT" hgrow="NEVER" prefWidth="100.0" />
                                <ColumnConstraints hgrow="ALWAYS" minWidth="0.0" prefWidth="200.0" />
                                <ColumnConstraints halignment="RIGHT" hgrow="NEVER" prefWidth="100.0" />
                                <ColumnConstraints hgrow="ALWAYS" minWidth="0.0" prefWidth="200.0" />
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints prefHeight="30.0" vgrow="NEVER" />
                                <RowConstraints prefHeight="30.0" vgrow="NEVER" />
                                <RowConstraints prefHeight="30.0" vgrow="NEVER" />
                                <RowConstraints prefHeight="30.0" vgrow="NEVER" />
                                <RowConstraints prefHeight="30.0" vgrow="NEVER" />
                                <RowConstraints prefHeight="30.0" vgrow="NEVER" />
                                <RowConstraints prefHeight="100.0" vgrow="ALWAYS" />
                            </rowConstraints>
                            <Label text="ID:" GridPane.columnIndex="0" GridPane.rowIndex="0" />
                            <Label fx:id="idLabel" GridPane.columnIndex="1" GridPane.rowIndex="0" />
                            <Label text="发票编号:" GridPane.columnIndex="2" GridPane.rowIndex="0" />
                            <TextField fx:id="codeField" GridPane.columnIndex="3" GridPane.rowIndex="0" />
                            <Label text="发票名称:" GridPane.columnIndex="0" GridPane.rowIndex="1" />
                            <TextField fx:id="nameField" GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="1" />
                            <Label text="合同ID:" GridPane.columnIndex="0" GridPane.rowIndex="2" />
                            <TextField fx:id="contractField" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                            <Label text="合同项目ID:" GridPane.columnIndex="2" GridPane.rowIndex="2" />
            <TextField fx:id="contractItemField" GridPane.columnIndex="3" GridPane.rowIndex="2" />
            <Label text="发票ID:" GridPane.columnIndex="0" GridPane.rowIndex="3" />
            <TextField fx:id="invoiceField" GridPane.columnIndex="1" GridPane.rowIndex="3" />
            <Label text="发票金额:" GridPane.columnIndex="2" GridPane.rowIndex="3" />
                            <TextField fx:id="amountField" GridPane.columnIndex="3" GridPane.rowIndex="3" />
            <Label text="发票日期:" GridPane.columnIndex="0" GridPane.rowIndex="4" />
            <DatePicker fx:id="invoiceDatePicker" GridPane.columnIndex="1" GridPane.rowIndex="4" />
            <Label text="发票类型:" GridPane.columnIndex="2" GridPane.rowIndex="4" />
            <ComboBox fx:id="invoiceTypeComboBox" GridPane.columnIndex="3" GridPane.rowIndex="4" />
                            <Label text="发票状态:" GridPane.columnIndex="0" GridPane.rowIndex="5" />
            <ComboBox fx:id="statusComboBox" GridPane.columnIndex="1" GridPane.rowIndex="5" />
            <Label text="用友ID:" GridPane.columnIndex="2" GridPane.rowIndex="5" />
            <TextField fx:id="ufIdField" GridPane.columnIndex="3" GridPane.rowIndex="5" />
            <Label text="开票单位:" GridPane.columnIndex="0" GridPane.rowIndex="6" />
            <TextField fx:id="invoiceUnitField" GridPane.columnIndex="1" GridPane.rowIndex="6" />
                            <Label text="接收单位:" GridPane.columnIndex="2" GridPane.rowIndex="6" />
            <TextField fx:id="receiveUnitField" GridPane.columnIndex="3" GridPane.rowIndex="6" />
            <Label text="备注:" GridPane.columnIndex="0" GridPane.rowIndex="7" />
            <TextArea fx:id="remarkTextArea" GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="7" />
                        </GridPane>
                        <VBox.margin>
                            <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
                        </VBox.margin>
                    </VBox>
                </ScrollPane>
            </Tab>
            <Tab fx:id="entityTab" text="实体信息" />
        </TabPane>
    </center>
</BorderPane>