<?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="680.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/22"
            xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="com.ecep.contract.controller.project.ProjectWindowController">
    <top>
        <ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
            <items>
                <Button fx:id="refreshBtn" text="刷新(_R)"/>
                <Button fx:id="saveBtn" disable="true" text="保存(_S)"/>
                <Button fx:id="deleteBtn" layoutX="54.0" layoutY="14.0" mnemonicParsing="false" text="删除"/>
            </items>
        </ToolBar>
    </top>
    <center>
        <TabPane fx:id="tabPane" tabClosingPolicy="UNAVAILABLE" tabMaxWidth="100.0" tabMinWidth="40.0">
            <tabs>
                <Tab fx:id="baseInfoTab" text="基本信息">
                    <content>
                        <ScrollPane 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" 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" 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="项目名称"/>
                                                <TextField fx:id="nameField" GridPane.columnIndex="1"
                                                           GridPane.columnSpan="3"/>
                                                <HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1"
                                                      GridPane.columnSpan="3" GridPane.rowIndex="13">
                                                    <children>

                                                    </children>
                                                </HBox>
                                                <Label fx:id="versionLabel" text="\@Version" GridPane.rowIndex="13"/>
                                                <Label text="项目编码" GridPane.rowIndex="1"/>
                                                <TextField fx:id="codeField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="1"/>
                                                <Label text="创建日期" GridPane.rowIndex="12"/>
                                                <Label text="项目类型" GridPane.rowIndex="5"/>
                                                <DatePicker fx:id="createdField" GridPane.columnIndex="1"
                                                            GridPane.rowIndex="12"/>
                                                <Label text="投标/报价" GridPane.columnIndex="2" GridPane.rowIndex="2"/>
                                                <Label text="项目地址" GridPane.rowIndex="8"/>
                                                <TextField fx:id="addressField" GridPane.columnIndex="1"
                                                           GridPane.columnSpan="3" GridPane.rowIndex="8"/>
                                                <Label text="备注" GridPane.rowIndex="10"/>
                                                <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>
                                                <HBox spacing="12.0" GridPane.columnIndex="3" GridPane.rowIndex="2">
                                                    <children>
                                                        <CheckBox fx:id="useBidField" mnemonicParsing="false"
                                                                  text="投标"/>
                                                        <CheckBox fx:id="useOfferField" mnemonicParsing="false"
                                                                  text="报价"/>
                                                    </children>
                                                </HBox>
                                                <Label text="付款方式" GridPane.columnIndex="2" GridPane.rowIndex="4"/>
                                                <CheckBox fx:id="standardPayWayField" mnemonicParsing="false"
                                                          text="标准付款方式" GridPane.columnIndex="3"
                                                          GridPane.rowIndex="4"/>
                                                <Label text="产品用途类型" GridPane.rowIndex="7"/>
                                                <ComboBox fx:id="industryField" prefWidth="150.0"
                                                          GridPane.columnIndex="1" GridPane.rowIndex="6"/>
                                                <Label text="销售类型" GridPane.rowIndex="2"/>
                                                <Label text="最终用户行业类型" GridPane.rowIndex="6"/>
                                                <Label text="预计开工时间" GridPane.rowIndex="9"/>
                                                <Label text="预计完工时间" GridPane.columnIndex="2"
                                                       GridPane.rowIndex="9"/>
                                                <Label text="交货签收方式" GridPane.rowIndex="3"/>
                                                <Label text="产品类型" GridPane.rowIndex="4"/>
                                                <HBox GridPane.columnIndex="1" GridPane.rowIndex="2">
                                                    <children>
                                                        <ComboBox fx:id="saleTypeField" minWidth="100.0"
                                                                  prefWidth="100.0"/>
                                                        <TextField fx:id="codeYearField" alignment="CENTER_RIGHT"
                                                                   layoutX="160.0" layoutY="10.0" maxWidth="30.0"
                                                                   minWidth="30.0" prefWidth="30.0" promptText="00"/>
                                                        <TextField fx:id="codeSequenceNumberField"
                                                                   alignment="CENTER_RIGHT" maxWidth="38.0"
                                                                   minWidth="38.0" prefWidth="38.0" promptText="000"/>
                                                        <Button mnemonicParsing="false"
                                                                onAction="#onGetNextCodeSNAction" text="+"/>
                                                    </children>
                                                </HBox>
                                                <ComboBox fx:id="projectTypeField" prefWidth="150.0"
                                                          GridPane.columnIndex="1" GridPane.rowIndex="5"/>
                                                <ComboBox fx:id="productTypeField" prefWidth="150.0"
                                                          GridPane.columnIndex="1" GridPane.rowIndex="4"/>
                                                <ComboBox fx:id="deliverySignMethodField" prefWidth="150.0"
                                                          GridPane.columnIndex="1" GridPane.rowIndex="3"/>
                                                <ComboBox fx:id="productUsageField" prefWidth="150.0"
                                                          GridPane.columnIndex="1" GridPane.rowIndex="7"/>
                                                <Label text="申请人" GridPane.rowIndex="11"/>
                                                <Label text="审核人" GridPane.columnIndex="2" GridPane.rowIndex="11"/>
                                                <TextField fx:id="applicantField" GridPane.columnIndex="1"
                                                           GridPane.rowIndex="11"/>
                                                <TextField fx:id="authorizerField" GridPane.columnIndex="3"
                                                           GridPane.rowIndex="11"/>
                                                <DatePicker fx:id="plannedStartTimeField" layoutX="130.0"
                                                            layoutY="424.0" GridPane.columnIndex="1"
                                                            GridPane.rowIndex="9"/>
                                                <DatePicker fx:id="plannedCompletionTimeField" layoutX="130.0"
                                                            layoutY="254.0" GridPane.columnIndex="3"
                                                            GridPane.rowIndex="9"/>
                                                <Label text="项目金额" GridPane.columnIndex="2" GridPane.rowIndex="3"/>
                                                <TextField fx:id="amountField" GridPane.columnIndex="3"
                                                           GridPane.rowIndex="3"/>
                                                <Label text="现场勘察" GridPane.columnIndex="2" GridPane.rowIndex="5"/>
                                                <CheckBox fx:id="investigationField" mnemonicParsing="false"
                                                          text="现场勘察" GridPane.columnIndex="3"
                                                          GridPane.rowIndex="5"/>
                                                <Label text="项目交底" GridPane.columnIndex="2" GridPane.rowIndex="6"/>
                                                <CheckBox fx:id="investigationField1" mnemonicParsing="false"
                                                          text="项目交底" GridPane.columnIndex="3"
                                                          GridPane.rowIndex="6"/>
                                            </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="companyTab" text="客户信息">
                </Tab>
                <Tab fx:id="costTab" text="成本">
                </Tab>
                <Tab fx:id="quotationApprovalTab" text="报价">
                </Tab>
                <Tab fx:id="bidTab" text="投标">
                    <content>
                        <Label text="投标报价、审批"/>
                    </content>
                </Tab>
                <Tab fx:id="contractTab" text="相关合同">
                </Tab>
                <Tab fx:id="fundPlanTab" text="资金计划">
                </Tab>
                <Tab fx:id="satisfactionTab" text="顾客满意度">
                </Tab>
                <Tab text="发货">
                    <content>
                        <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"/>
                    </content>
                </Tab>
                <Tab fx:id="fileTab" text="表单">
                    <content>
                        <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
                            <children>
                                <HBox spacing="3.0">
                                    <children>
                                        <Button mnemonicParsing="false" onAction="#onFileReBuildingAction" text="重置"/>
                                    </children>
                                    <padding>
                                        <Insets bottom="10.0" left="7.0" right="10.0" top="10.0"/>
                                    </padding>
                                </HBox>
                                <TableView fx:id="fileTable" layoutX="48.0" layoutY="26.0" prefHeight="487.0"
                                           prefWidth="900.0" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="5.0"
                                           AnchorPane.rightAnchor="5.0" AnchorPane.topAnchor="42.0">
                                    <columns>
                                        <TableColumn fx:id="fileTable_idColumn" prefWidth="75.0" text="ID"/>
                                        <TableColumn fx:id="fileTable_typeColumn" text="类型"/>
                                        <TableColumn fx:id="fileTable_filePathColumn" prefWidth="300.0" text="文件"/>
                                        <TableColumn fx:id="fileTable_applyDateColumn" prefWidth="150.0"
                                                     text="生效日期"/>
                                        <TableColumn fx:id="fileTable_descriptionColumn" prefWidth="200.0"
                                                     text="有效日期"/>
                                    </columns>
                                    <contextMenu>
                                        <ContextMenu onShowing="#onFileTableContextMenuShowing">
                                            <items>
                                                <MenuItem mnemonicParsing="false" onAction="#onFileTableRefreshAction"
                                                          text="刷新"/>
                                                <MenuItem mnemonicParsing="false" onAction="#onFileTableDeleteAction"
                                                          text="删除"/>
                                            </items>
                                        </ContextMenu>
                                    </contextMenu>
                                </TableView>
                            </children>
                        </AnchorPane>
                    </content>
                </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">
                    <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>
