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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.ecep.contract.controller.project.ApplyNewProjectWindowController">
    <VBox AnchorPane.bottomAnchor="8.0" AnchorPane.leftAnchor="8.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="8.0">
        <children>
            <GridPane VBox.vgrow="ALWAYS">
                <columnConstraints>
                    <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="100.0" minWidth="10.0" prefWidth="100.0" />
                    <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="150.0" />
               <ColumnConstraints hgrow="SOMETIMES" minWidth="10.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 minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                </rowConstraints>
                <children>
                    <Label text="项目类型:"/>
                    <ComboBox fx:id="saleTypeComboBox" prefWidth="200.0" promptText="请选择项目类型"
                              GridPane.columnIndex="1"/>
                    <Label text="年份:" GridPane.rowIndex="1"/>
                    <TextField fx:id="codeYearField" GridPane.columnIndex="1" GridPane.rowIndex="1"/>
                    <Label fx:id="codeYearLabel" text="默认为当前年的后2位" GridPane.columnIndex="2" GridPane.rowIndex="1">
                        <GridPane.margin>
                            <Insets left="6.0"/>
                        </GridPane.margin>
                    </Label>
                    <Label text="项目序号:" GridPane.rowIndex="2"/>
                    <TextField fx:id="codeSequenceNumberField" GridPane.columnIndex="1" GridPane.rowIndex="2"/>
                    <Label fx:id="codeSequenceNumberLabel" text="自动获取后续编号" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="2">
                        <GridPane.margin>
                            <Insets left="6.0"/>
                        </GridPane.margin>
                    </Label>
                    <Label text="编号预览:" GridPane.rowIndex="3"/>
                    <Label fx:id="codePreviewLabel" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="3"/>
                    <Label fx:id="codeLabel" wrapText="true" GridPane.columnIndex="2" GridPane.rowIndex="3">
                        <GridPane.margin>
                            <Insets left="6.0"/>
                        </GridPane.margin>
                    </Label>


                    <Label text="申请人:" GridPane.rowIndex="4"/>
                    <Label fx:id="applicantLabel" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="4"/>
                </children>
            </GridPane>
            <HBox alignment="CENTER" prefHeight="50.0" spacing="5.0">
                <children>
                    <Button fx:id="cancelBtn" cancelButton="true" text="取消申请(_C)" />
                    <Button fx:id="applyBtn" defaultButton="true" text="确认申请(_O)" />
                </children>
            </HBox>
        </children>
    </VBox>
</AnchorPane>
