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

<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<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.cost.ProjectCostWindowController">
    <top>
        <ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
            <items>
                <Button onAction="#onRefreshAction" text="刷新(_R)"/>
                <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 VBox.vgrow="NEVER">
                                        <columnConstraints>
                                            <ColumnConstraints halignment="CENTER" hgrow="NEVER" prefWidth="120.0"/>
                                            <ColumnConstraints hgrow="ALWAYS" prefWidth="180.0"/>
                                            <ColumnConstraints halignment="CENTER" hgrow="NEVER" prefWidth="120.0"/>
                                            <ColumnConstraints hgrow="ALWAYS" 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" maxHeight="30.0" minHeight="30.0"
                                                            prefHeight="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" minHeight="12.0" prefHeight="12.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="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="80.0" prefHeight="80.0" vgrow="NEVER"/>
                                            <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308"
                                                            minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                                        </rowConstraints>
                                        <children>

                                            <HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1"
                                                  GridPane.columnSpan="3" GridPane.rowIndex="6"/>
                                            <Label text="营业税及附加费金额" GridPane.columnIndex="2"
                                                   GridPane.rowIndex="6"/>
                                            <Label text="印花税金额" GridPane.columnIndex="2" GridPane.rowIndex="5"/>
                                            <Label text="营业税及附加费" GridPane.rowIndex="6"/>
                                            <HBox GridPane.columnIndex="1" GridPane.rowIndex="6">
                                                <children>
                                                    <TextField fx:id="taxAndSurchargesField" alignment="CENTER_RIGHT"
                                                               text="11"/>
                                                    <Label text="\%">
                                                        <HBox.margin>
                                                            <Insets left="5.0" top="4.0"/>
                                                        </HBox.margin>
                                                    </Label>
                                                </children>
                                            </HBox>
                                            <Label text="付款方式" GridPane.rowIndex="1"/>
                                            <HBox GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="1"
                                                  GridPane.valignment="CENTER">
                                                <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.rowIndex="2"/>
                                            <HBox GridPane.columnIndex="1" GridPane.columnSpan="3"
                                                  GridPane.rowIndex="2">
                                                <children>
                                                    <CheckBox fx:id="standardContractTextField" mnemonicParsing="false"
                                                              text="标准合同文本">
                                                        <HBox.margin>
                                                            <Insets right="6.0" top="3.0"/>
                                                        </HBox.margin>
                                                    </CheckBox>
                                                    <TextField fx:id="noStandardContractTextField"
                                                               promptText="非标付款文本" HBox.hgrow="ALWAYS"/>
                                                </children>
                                            </HBox>
                                            <TextField fx:id="stampTaxFeeField" alignment="CENTER_RIGHT"
                                                       editable="false" promptText="0.00" styleClass="fee"
                                                       GridPane.columnIndex="3" GridPane.rowIndex="5"/>
                                            <Label text="印花税" GridPane.rowIndex="5"/>
                                            <HBox layoutX="430.0" layoutY="236.0" GridPane.columnIndex="1"
                                                  GridPane.rowIndex="5">
                                                <children>
                                                    <TextField fx:id="stampTaxField" alignment="CENTER_RIGHT"
                                                               text="0.03"/>
                                                    <Label text="\%">
                                                        <HBox.margin>
                                                            <Insets left="5.0" top="4.0"/>
                                                        </HBox.margin>
                                                    </Label>
                                                </children>
                                            </HBox>
                                            <TextField fx:id="taxAndSurchargesFeeField" alignment="CENTER_RIGHT"
                                                       editable="false" styleClass="fee" GridPane.columnIndex="3"
                                                       GridPane.rowIndex="6"/>
                                            <Label text="毛利率" GridPane.rowIndex="9"/>
                                            <HBox GridPane.columnIndex="1" GridPane.rowIndex="9">
                                                <children>
                                                    <TextField fx:id="grossProfitMarginField" alignment="CENTER_RIGHT"
                                                               styleClass="fee"/>
                                                    <Label text="\%">
                                                        <HBox.margin>
                                                            <Insets left="5.0" top="4.0"/>
                                                        </HBox.margin>
                                                    </Label>
                                                </children>
                                            </HBox>
                                            <Label text="申请时间" GridPane.columnIndex="2" GridPane.rowIndex="10"/>
                                            <Label text="申请人" GridPane.rowIndex="10"/>
                                            <Label text="审批人" GridPane.rowIndex="11"/>
                                            <Label text="不含税进项总金额" GridPane.rowIndex="8"/>
                                            <TextField fx:id="applicantField" GridPane.columnIndex="1"
                                                       GridPane.rowIndex="10"/>
                                            <TextField fx:id="authorizerField" GridPane.columnIndex="1"
                                                       GridPane.rowIndex="11"/>
                                            <TextField fx:id="applyTimeField" promptText="yyyy-MM-dd hh:mm:ss"
                                                       GridPane.columnIndex="3" GridPane.rowIndex="10"/>
                                            <TextField fx:id="authorizationTimeField" promptText="yyyy-MM-dd hh:mm:ss"
                                                       GridPane.columnIndex="3" GridPane.rowIndex="11"/>
                                            <Label text="备注" GridPane.rowIndex="13"/>
                                            <TextArea fx:id="descriptionField" GridPane.columnIndex="1"
                                                      GridPane.columnSpan="3" GridPane.rowIndex="13">
                                                <GridPane.margin>
                                                    <Insets bottom="3.0" top="3.0"/>
                                                </GridPane.margin>
                                            </TextArea>
                                            <Label text="含税进项总金额" GridPane.rowIndex="7"/>
                                            <Label text="含税出项总金额" GridPane.columnIndex="2"
                                                   GridPane.rowIndex="7"/>
                                            <Label text="不含税出项总金额" GridPane.columnIndex="2"
                                                   GridPane.rowIndex="8"/>
                                            <TextField fx:id="inTaxAmountField" alignment="CENTER_RIGHT"
                                                       editable="false" styleClass="fee" GridPane.columnIndex="1"
                                                       GridPane.rowIndex="7"/>
                                            <TextField fx:id="inExclusiveTaxAmountField" alignment="CENTER_RIGHT"
                                                       editable="false" styleClass="fee" GridPane.columnIndex="1"
                                                       GridPane.rowIndex="8"/>
                                            <TextField fx:id="outTaxAmountField" alignment="CENTER_RIGHT"
                                                       editable="false" styleClass="fee" GridPane.columnIndex="3"
                                                       GridPane.rowIndex="7"/>
                                            <TextField fx:id="outExclusiveTaxAmountField" alignment="CENTER_RIGHT"
                                                       editable="false" styleClass="fee" GridPane.columnIndex="3"
                                                       GridPane.rowIndex="8"/>
                                            <Label text="审批时间" GridPane.columnIndex="2" GridPane.rowIndex="11"/>
                                            <Label text="审批文件" GridPane.rowIndex="12"/>
                                            <HBox spacing="5.0" GridPane.columnIndex="1" GridPane.columnSpan="3"
                                                  GridPane.rowIndex="12">
                                                <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>
                                        </children>
                                        <VBox.margin>
                                            <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/>
                                        </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>
    <bottom>
        <HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0">
            <children>
                <Label fx:id="leftStatusLabel" maxHeight="1.7976931348623157E308" text="Left status"
                       HBox.hgrow="ALWAYS">
                </Label>
                <Pane HBox.hgrow="ALWAYS"/>
                <Label fx:id="rightStatusLabel" text="Right status" HBox.hgrow="NEVER"/>
            </children>
            <padding>
                <Insets bottom="3.0" left="3.0" right="3.0" top="3.0"/>
            </padding>
        </HBox>
    </bottom>
</BorderPane>
