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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.Text?>
<BorderPane fx:id="root" prefHeight="580.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/22"
            xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="com.ecep.contract.controller.project.quotation.ProjectQuotationWindowController">
    <top>
        <ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
            <items>
                <Button mnemonicParsing="false" onAction="#onRefreshAction" text="刷新"/>
                <Button fx:id="saveBtn" disable="true" text="保存(_S)"/>
                <Separator/>
                <Button fx:id="importExcelBtn" disable="true" mnemonicParsing="false" text="Excel表单导入"/>
                <Button fx:id="exportExcelBtn" mnemonicParsing="false" text="导出Excel表单"/>
            </items>
        </ToolBar>
    </top>
    <center>
        <TabPane tabClosingPolicy="UNAVAILABLE" tabMaxWidth="100.0" tabMinWidth="40.0">
            <tabs>
                <Tab fx:id="baseInfoTab" text="基本信息">
                    <ScrollPane fitToWidth="true" pannable="true">
                        <content>
                            <VBox>
                                <children>
                                    <GridPane maxHeight="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" 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" minHeight="80.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" vgrow="NEVER"/>
                                        </rowConstraints>
                                        <children>
                                            <Label text="资信评估" GridPane.rowIndex="1"/>
                                            <HBox spacing="3.0" GridPane.columnIndex="1" GridPane.columnSpan="3"
                                                  GridPane.rowIndex="1">
                                                <children>
                                                    <TextField fx:id="evaluationFileField" HBox.hgrow="ALWAYS"/>
                                                    <Button fx:id="evaluationFileBtn" mnemonicParsing="false"
                                                            text="查看"/>
                                                </children>
                                            </HBox>
                                            <Label text="客户资信 2" GridPane.rowIndex="2"/>
                                            <HBox fx:id="levelGroup" spacing="18.0" GridPane.columnIndex="1"
                                                  GridPane.columnSpan="3" GridPane.rowIndex="2">
                                                <children>
                                                    <RadioButton fx:id="good_radio_btn" mnemonicParsing="false"
                                                                 text="良好"/>
                                                    <RadioButton fx:id="bad_radio_btn" mnemonicParsing="false"
                                                                 text="一般"/>
                                                    <RadioButton fx:id="poor_radio_btn" layoutX="100.0" layoutY="10.0"
                                                                 mnemonicParsing="false" text="较差" />
                                                </children>
                                            </HBox>
                                            <Label text="付款方式" GridPane.rowIndex="4"/>
                                            <HBox GridPane.columnIndex="1" GridPane.columnSpan="3"
                                                  GridPane.rowIndex="4">
                                                <children>
                                                    <CheckBox fx:id="standardPayWayField" mnemonicParsing="false"
                                                              text="标准付款方式">
                                                        <HBox.margin>
                                                            <Insets right="6.0" top="3.0"/>
                                                        </HBox.margin>
                                                    </CheckBox>
                                                    <TextField fx:id="noStandardPayWayTextField"
                                                               promptText="非标付款文本" HBox.hgrow="ALWAYS"/>
                                                </children>
                                            </HBox>
                                            <Label text="申请时间" GridPane.columnIndex="2" GridPane.rowIndex="7"/>
                                            <Label text="报价金额" GridPane.rowIndex="5"/>
                                            <TextField fx:id="amountField" GridPane.columnIndex="1"
                                                       GridPane.rowIndex="5"/>
                                            <TextField fx:id="applyTimeField" promptText="yyyy-MM-dd hh:mm:ss"
                                                       GridPane.columnIndex="3" GridPane.rowIndex="7"/>
                                            <Label text="申请人" GridPane.rowIndex="7"/>
                                            <Label text="审批时间" GridPane.columnIndex="2" GridPane.rowIndex="8"/>
                                            <Label text="审批人" GridPane.rowIndex="8"/>
                                            <TextField fx:id="authorizationTimeField" promptText="yyyy-MM-dd hh:mm:ss"
                                                       GridPane.columnIndex="3" GridPane.rowIndex="8"/>
                                            <TextField fx:id="applicantField" GridPane.columnIndex="1"
                                                       GridPane.rowIndex="7"/>
                                            <TextField fx:id="authorizerField" GridPane.columnIndex="1"
                                                       GridPane.rowIndex="8"/>
                                            <VBox spacing="3.0" GridPane.columnSpan="4" GridPane.halignment="LEFT"
                                                  GridPane.rowIndex="12">
                                                <children>
                                                    <Text strokeType="OUTSIDE" strokeWidth="0.0" text="备注："/>
                                                    <Text strokeType="OUTSIDE" strokeWidth="0.0"
                                                          text="1. 所有报价审批表均需递交给销售总监审批，客户资信评价为一般且不是标准付款方式的需财务经理审批，客户资信评价为差的需财务经理+总经理审批"
                                                          wrappingWidth="600.0"/>
                                                    <Text fill="RED" strokeType="OUTSIDE" strokeWidth="0.0"
                                                          text="2. 客户资信和资信等级转换关系：良好≥4;一般:2~3;较差≤1"
                                                          wrappingWidth="600.0"/>
                                                </children>
                                            </VBox>
                                            <Label text="审批文件" GridPane.rowIndex="9"/>
                                            <HBox spacing="5.0" GridPane.columnIndex="1" GridPane.columnSpan="3"
                                                  GridPane.rowIndex="9">
                                                <children>
                                                    <TextField fx:id="authorizationFileField" editable="false"
                                                               HBox.hgrow="ALWAYS"/>
                                                    <Button fx:id="openFileBtn" mnemonicParsing="false" text="打开"/>
                                                    <Button fx:id="changeFileBtn" mnemonicParsing="false" text="更换"/>
                                                </children>
                                            </HBox>
                                            <TextArea fx:id="descriptionField" GridPane.columnIndex="1"
                                                      GridPane.columnSpan="3" GridPane.rowIndex="10">
                                                <GridPane.margin>
                                                    <Insets bottom="3.0" top="3.0"/>
                                                </GridPane.margin>
                                            </TextArea>
                                            <Label text="备注" GridPane.rowIndex="10"/>
                                        </children>
                                        <VBox.margin>
                                            <Insets/>
                                        </VBox.margin>
                                    </GridPane>
                                </children>
                            </VBox>
                        </content>
                        <padding>
                            <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
                        </padding>
                    </ScrollPane>
                </Tab>
<!--                <Tab fx:id="itemTab" text="成本内容">-->
<!--                </Tab>-->
                <Tab fx:id="approvalTab" text="审批">
                </Tab>
                <Tab fx:id="otherTab" text="其他">
                </Tab>
            </tabs>
        </TabPane>

    </center>
</BorderPane>
