<?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" prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/22"
            xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="com.ecep.contract.controller.company.CompanyWindowController">
    <top>
        <ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
            <items>
                <Button onAction="#onCompanyOpenInExplorerAction" text="打开目录(_F)"/>
                <Button onAction="#onCompanyCompositeUpdateAction" text="合并更新(_U)"/>
                <Button fx:id="saveBtn" disable="true" text="保存(_S)"/>
                <Button onAction="#onCompanyVerifyAction" text="合规检测(_V)"/>
                <!-- tooltip="从集团相关方平台和用友系统中导入" -->
            </items>
        </ToolBar>
    </top>
    <center>
        <TabPane fx:id="tabPane" tabClosingPolicy="UNAVAILABLE" tabMaxWidth="100.0" tabMinWidth="40.0">
            <tabs>
                <Tab fx:id="baseInfoTab" closable="false" text="工商信息">
                    <content>
                        <ScrollPane fitToWidth="true">
                            <content>
                                <GridPane minHeight="-Infinity" minWidth="0.0">
                                    <columnConstraints>
                                        <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="200.0"
                                                           minWidth="80.0" prefWidth="120.0"/>
                                        <ColumnConstraints hgrow="ALWAYS" maxWidth="1.7976931348623157E308"
                                                           minWidth="100.0" prefWidth="200.0"/>
                                        <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="200.0"
                                                           minWidth="80.0" prefWidth="120.0"/>
                                        <ColumnConstraints hgrow="ALWAYS" maxWidth="1.7976931348623157E308"
                                                           minWidth="100.0" prefWidth="200.0"/>
                                    </columnConstraints>
                                    <rowConstraints>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="30.0"
                                                        prefHeight="30.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="60.0" minHeight="60.0"
                                                        prefHeight="60.0" vgrow="NEVER"/>
                                        <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                        minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                    </rowConstraints>
                                    <children>
                                        <Label text="企业名称"/>
                                        <Label text="统一社会信用代码" GridPane.columnIndex="2" GridPane.rowIndex="2"/>
                                        <Label text="经营状态" GridPane.rowIndex="3"/>
                                        <TextField fx:id="uidField" GridPane.columnIndex="3" GridPane.rowIndex="2"/>
                                        <TextField fx:id="entStatusField" GridPane.columnIndex="1"
                                                   GridPane.rowIndex="3"/>
                                        <TextField fx:id="nameField" GridPane.columnIndex="1" GridPane.columnSpan="3"/>
                                        <Label layoutX="20.0" layoutY="28.0" text="简称" GridPane.rowIndex="2"/>
                                        <Label layoutX="20.0" layoutY="58.0" text="成立日期" GridPane.columnIndex="2"
                                               GridPane.rowIndex="8"/>
                                        <Label layoutX="20.0" layoutY="28.0" text="备注" GridPane.rowIndex="12"/>
                                        <DatePicker fx:id="setupDateField" layoutX="202.0" layoutY="114.0"
                                                    promptText="yyyy-MM-dd" GridPane.columnIndex="3"
                                                    GridPane.rowIndex="8"/>
                                        <TextField fx:id="shortNameField" layoutX="202.0" layoutY="24.0"
                                                   GridPane.columnIndex="1" GridPane.rowIndex="2"/>
                                        <Label layoutX="56.0" layoutY="118.0" text="类型" GridPane.columnIndex="2"
                                               GridPane.rowIndex="3"/>
                                        <TextField fx:id="entTypeField" layoutX="140.0" layoutY="114.0"
                                                   GridPane.columnIndex="3" GridPane.rowIndex="3"/>
                                        <TextField fx:id="industryField" GridPane.columnIndex="1"
                                                   GridPane.columnSpan="3" GridPane.rowIndex="4"/>
                                        <Label text="所属行业" GridPane.rowIndex="4"/>
                                        <Label text="登记电话" GridPane.rowIndex="5"/>
                                        <Label text="存储目录" GridPane.rowIndex="9"/>
                                        <TextField fx:id="pathField" GridPane.columnIndex="1" GridPane.columnSpan="3"
                                                   GridPane.rowIndex="9">
                                            <GridPane.margin>
                                                <Insets left="24.0"/>
                                            </GridPane.margin>
                                        </TextField>
                                        <CheckBox fx:id="pathExistField" mnemonicParsing="false"
                                                  GridPane.columnIndex="1" GridPane.rowIndex="9"/>
                                        <Label text="创建日期" GridPane.rowIndex="11"/>
                                        <DatePicker fx:id="createdDateField" promptText="yyyy-MM-dd"
                                                    GridPane.columnIndex="1" GridPane.rowIndex="11"/>
                                        <Label text="登记地址" GridPane.rowIndex="6"/>
                                        <Label text="通讯地址" GridPane.columnIndex="2" GridPane.rowIndex="6"/>
                                        <TextField fx:id="telephoneField" GridPane.columnIndex="1"
                                                   GridPane.rowIndex="5"/>
                                        <TextField fx:id="regAddressField" GridPane.columnIndex="1"
                                                   GridPane.rowIndex="6"/>
                                        <TextField fx:id="addressField" GridPane.columnIndex="3" GridPane.rowIndex="6"/>
                                        <Label text="注册资本" GridPane.columnIndex="2" GridPane.rowIndex="7"/>
                                        <HBox GridPane.columnIndex="3" GridPane.rowIndex="7">
                                            <children>
                                                <TextField fx:id="registeredCapitalField" HBox.hgrow="ALWAYS"/>
                                                <TextField fx:id="registeredCapitalCurrencyField"/>
                                            </children>
                                        </HBox>
                                        <Label text="法定代表人" GridPane.rowIndex="7"/>
                                        <TextField fx:id="legalRepresentativeField" GridPane.columnIndex="1"
                                                   GridPane.rowIndex="7"/>
                                        <Label text="营业期限" GridPane.rowIndex="8"/>
                                        <HBox GridPane.columnIndex="1" GridPane.rowIndex="8">
                                            <children>
                                                <DatePicker fx:id="operationPeriodBeginField" promptText="yyyy-MM-dd"
                                                            HBox.hgrow="ALWAYS"/>
                                                <Label minWidth="-Infinity" text="至">
                                                    <HBox.margin>
                                                        <Insets left="5.0" right="5.0" top="4.0"/>
                                                    </HBox.margin>
                                                </Label>
                                                <DatePicker fx:id="operationPeriodEndField" promptText="yyyy-MM-dd"
                                                            HBox.hgrow="ALWAYS"/>
                                            </children>
                                        </HBox>
                                        <TextArea fx:id="memoField" prefHeight="200.0" prefWidth="200.0" wrapText="true"
                                                  GridPane.columnIndex="1" GridPane.columnSpan="3"
                                                  GridPane.rowIndex="12"/>

                                        <Label fx:id="versionLabel" text="\@Version" GridPane.rowIndex="13"/>
                                        <HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1"
                                              GridPane.columnSpan="3" GridPane.rowIndex="10">
                                            <children>
                                                <Button fx:id="companyPathCreateBtn" mnemonicParsing="false"
                                                        text="创建目录"/>
                                                <Button fx:id="companyPathChangeBtn" mnemonicParsing="false"
                                                        text="变更目录"/>
                                                <Button fx:id="companyPathSameAsNameBtn" mnemonicParsing="false"
                                                        text="与企业名称同名"/>
                                            </children>
                                        </HBox>
                                        <Button fx:id="companyRenameBtn" mnemonicParsing="false" text="企业更名"
                                                GridPane.columnIndex="3" GridPane.halignment="RIGHT"
                                                GridPane.rowIndex="1"/>
                                        <Label text="区域" GridPane.columnIndex="2" GridPane.rowIndex="5"/>
                                        <TextField fx:id="districtField" GridPane.columnIndex="3"
                                                   GridPane.rowIndex="5"/>
                                    </children>
                                </GridPane>
                            </content>
                            <padding>
                                <Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
                            </padding>
                        </ScrollPane>
                    </content>
                </Tab>
                <Tab fx:id="oldNameTab" text="曾用名/别名">
                </Tab>
                <Tab fx:id="contactTab" text="联系人">
                </Tab>
                <Tab fx:id="blackReasonTab" text="黑名单">
                </Tab>
                <Tab fx:id="bankAccountTab" text="银行账户">
                </Tab>
                <Tab fx:id="customerTab" text="客户">
                    <content>
                        <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
                            <children>
                                <Pane fx:id="customerTab_pane1" layoutX="21.0" layoutY="21.0" prefHeight="150.0"
                                      prefWidth="400.0" AnchorPane.topAnchor="21.0">
                                    <children>
                                        <Label layoutX="32.0" layoutY="32.0" text="已关联"/>
                                        <Button fx:id="customerTab_openBtn" layoutX="250.0" layoutY="58.0"
                                                mnemonicParsing="false" prefWidth="80.0" text="打开"/>
                                    </children>
                                </Pane>
                                <Pane fx:id="customerTab_pane2" layoutX="21.0" layoutY="164.0" prefHeight="150.0"
                                      prefWidth="400.0" visible="false" AnchorPane.topAnchor="21.0">
                                    <children>
                                        <Label layoutX="32.0" layoutY="32.0" text="未关联"/>
                                        <Button fx:id="customerTab_createBtn" layoutX="250.0" layoutY="58.0"
                                                mnemonicParsing="false" prefWidth="80.0" text="创建"/>
                                    </children>
                                </Pane>
                            </children>
                        </AnchorPane>
                    </content>
                </Tab>
                <Tab fx:id="vendorTab" text="供应商">
                    <content>
                        <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
                            <children>
                                <Pane fx:id="vendorTab_pane1" layoutX="21.0" layoutY="21.0" prefHeight="150.0"
                                      prefWidth="400.0" AnchorPane.topAnchor="21.0">
                                    <children>
                                        <Label layoutX="32.0" layoutY="32.0" text="已关联"/>
                                        <Button fx:id="vendorTab_openBtn" layoutX="250.0" layoutY="58.0"
                                                mnemonicParsing="false" prefWidth="80.0" text="打开"/>
                                    </children>
                                </Pane>
                                <Pane fx:id="vendorTab_pane2" layoutX="21.0" layoutY="164.0" prefHeight="150.0"
                                      prefWidth="400.0" visible="false" AnchorPane.topAnchor="21.0">
                                    <children>
                                        <Label layoutX="32.0" layoutY="32.0" text="未关联"/>
                                        <Button fx:id="vendorTab_createBtn" layoutX="250.0" layoutY="58.0"
                                                mnemonicParsing="false" prefWidth="80.0" text="创建"/>
                                    </children>
                                </Pane>
                            </children>
                        </AnchorPane>
                    </content>
                </Tab>
                <Tab fx:id="contractTab" text="合同"/>
                <Tab fx:id="fileTab" text="文件"/>
                <Tab fx:id="invoiceTab" text="发票"/>
                <Tab fx:id="purchaseBillVoucherTab" text="采购账单"/>
                <Tab fx:id="otherTab" text="其他"/>
            </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>
