<?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 fx:id="root" maxHeight="900" maxWidth="1024" minHeight="300" minWidth="200" 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.company.bank_account.BankAccountWindowController">
    <center>
        <TabPane fx:id="tabPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minWidth="150.0"
                 tabClosingPolicy="UNAVAILABLE" tabMaxWidth="100.0" tabMinWidth="40.0">
            <tabs>
                <Tab fx:id="baseInfoTab" text="基本信息">
                    <content>
                        <ScrollPane fitToHeight="true" fitToWidth="true" maxHeight="1.7976931348623157E308"
                                    maxWidth="1.7976931348623157E308" minWidth="150.0" pannable="true">
                            <content>
                                <VBox maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308"
                                      minHeight="600.0" minWidth="150.0">
                                    <children>
                                        <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308"
                                                  minWidth="150.0" 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" maxHeight="1.7976931348623157E308"
                                                                minHeight="30.0" prefHeight="80.0" vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0"
                                                                vgrow="NEVER"/>
                                                <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                                minHeight="30.0" prefHeight="42.0" vgrow="NEVER"/>
                                            </rowConstraints>
                                            <children>
                                                <Label text="公司"/>
                                                <HBox GridPane.columnIndex="1">
                                                    <children>
                                                        <TextField fx:id="companyField" HBox.hgrow="ALWAYS"/>
                                                        <Button fx:id="relativeCompanyBtn" mnemonicParsing="false"
                                                                text="打开"/>
                                                    </children>
                                                </HBox>

                                                <Label text="银行" GridPane.rowIndex="1"/>
                                                <TextField fx:id="bankField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="1"/>


                                                <Label text="开户行" GridPane.rowIndex="2"/>
                                                <TextField fx:id="openingBankField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="2">
                                                    <GridPane.margin>
                                                        <Insets/>
                                                    </GridPane.margin>
                                                </TextField>

                                                <Label text="账号" GridPane.rowIndex="3"/>
                                                <TextField fx:id="bankAccountField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="3"/>

                                                <Label layoutX="20.0" layoutY="28.0" text="备注" GridPane.rowIndex="4"/>
                                                <TextArea fx:id="descriptionField" GridPane.columnIndex="1"
                                                          GridPane.columnSpan="3" GridPane.rowIndex="4"/>

                                                <HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1"
                                                      GridPane.columnSpan="3" GridPane.rowIndex="6">
                                                    <children>

                                                    </children>
                                                </HBox>
                                                <Label fx:id="versionLabel" text="\@Version" GridPane.rowIndex="6"/>


                                                <Label text="创建日期" GridPane.rowIndex="5"/>
                                                <TextField fx:id="createdField" promptText="yyyy-MM-dd"
                                                           GridPane.columnIndex="1" GridPane.rowIndex="5"/>
                                            </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="entityTab" text="往来记录" disable="true">
                    <content>
                        <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
                            <children>
                                <VBox AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="5.0"
                                      AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="5.0">
                                    <children>
                                        <HBox spacing="3.0">
                                            <children>
                                                <Button mnemonicParsing="false" text="重置"/>
                                            </children>
                                            <padding>
                                                <Insets bottom="10.0" left="7.0" right="10.0" top="10.0"/>
                                            </padding>
                                        </HBox>
                                        <TableView fx:id="entityTable" editable="true" minHeight="200.0"
                                                   prefHeight="400.0" VBox.vgrow="ALWAYS">
                                            <columns>
                                                <TableColumn fx:id="entityTable_idColumn" prefWidth="75.0" text="ID"/>
                                                <TableColumn fx:id="entityTable_catalogColumn" text="客户分组"/>
                                                <TableColumn fx:id="entityTable_nameColumn" prefWidth="280.0"
                                                             text="客户名称"/>
                                                <TableColumn fx:id="entityTable_abbNameColumn" prefWidth="180.0"
                                                             text="客户别名"/>
                                                <TableColumn fx:id="entityTable_codeColumn" prefWidth="100.0"
                                                             text="系统编号"/>
                                                <TableColumn fx:id="entityTable_developDateColumn" prefWidth="90.0"
                                                             text="发展日期"/>
                                                <TableColumn fx:id="entityTable_creatorColumn" prefWidth="100.0"
                                                             text="创建人"/>
                                                <TableColumn fx:id="entityTable_modifyDateColumn" prefWidth="90.0"
                                                             text="修改日期"/>
                                                <TableColumn fx:id="entityTable_modifierColumn" prefWidth="100.0"
                                                             text="修改人"/>
                                                <TableColumn fx:id="entityTable_updatedDateColumn" prefWidth="100.0"
                                                             text="同步日期"/>
                                            </columns>
                                            <contextMenu>
                                                <ContextMenu>
                                                    <items>
                                                        <MenuItem fx:id="entityTable_menu_refresh"
                                                                  mnemonicParsing="false" text="刷新"/>
                                                        <MenuItem fx:id="entityTable_menu_del" mnemonicParsing="false"
                                                                  text="删除"/>
                                                    </items>
                                                </ContextMenu>
                                            </contextMenu>
                                        </TableView>
                                        <Pane prefHeight="50.0">
                                            <children>
                                                <Label layoutX="14.0" layoutY="7.0" text="关联U8系统中的客户定义"/>
                                            </children>
                                        </Pane>
                                    </children>
                                </VBox>
                            </children>
                        </AnchorPane>
                    </content>
                </Tab>
            </tabs>
        </TabPane>
    </center>
    <top>
        <ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
            <items>
                <Button fx:id="saveBtn" disable="true" text="保存(_S)"/>
            </items>
        </ToolBar>
    </top>
    <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>
