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

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.text.Font?>
<?import org.controlsfx.control.ListSelectionView?>

<BorderPane fx:id="root" prefHeight="500.0" prefWidth="800.0" 
xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1" 
fx:controller="com.ecep.contract.controller.vendor.group.VendorGroupWindowController">
  <center>
    <TabPane fx:id="tabPane" tabClosingPolicy="UNAVAILABLE" tabMaxWidth="100.0" tabMinWidth="40.0">
      <tabs>
        <Tab fx:id="baseInfoTab" text="基本信息">
          <content>
            <ScrollPane fitToHeight="true" fitToWidth="true" pannable="true">
              <content>
                <VBox>
                  <children>
                    <GridPane 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" vgrow="NEVER"/>
                        <RowConstraints fillHeight="false" minHeight="30.0" prefHeight="30.0" vgrow="NEVER"/>
                        <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308" minHeight="30.0" prefHeight="100.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.margin>
                            <Insets/>
                          </GridPane.margin>
                        </TextField>
                        <Label text="编号" GridPane.rowIndex="1"/>
                        <TextField fx:id="codeField" GridPane.columnIndex="1" GridPane.rowIndex="1"/>
                        <Label text="启用" GridPane.rowIndex="3"/>
                        <CheckBox fx:id="activeField" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="3"/>
                        <Label fx:id="versionLabel" text="\@Version" GridPane.rowIndex="5"/>
                        <HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="5">
                          <children>

                                                    </children>
                        </HBox>
                        <Label text="备注" GridPane.rowIndex="4"/>
                        <TextArea fx:id="descriptionField" prefHeight="200.0" prefRowCount="5" prefWidth="200.0" GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="4"/>
                        <Label text="供应商比价" GridPane.rowIndex="2"/>
                        <VBox spacing="5.0" GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="2">
                          <children>
                            <CheckBox fx:id="priceComparisonField" mnemonicParsing="false" text="是否启用供应商比价流程"/>
                            <CheckBox fx:id="requireQuotationSheetForBidField" layoutX="10.0" layoutY="10.0" mnemonicParsing="false" text="选中的供应商是否可以不要求提供单独的报价表"/>
                            <Label text="开启供应商比价流程，按照制度要求，需三方比价，供应商需提供报价"/>
                          </children>
                          <GridPane.margin>
                            <Insets bottom="6.0" top="6.0"/>
                          </GridPane.margin>
                        </VBox>
                      </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="requireFilesTab" text="必须的文件">
          <content>
            <HBox>
              <children>
                <ListSelectionView fx:id="fileTypesField">
                  <sourceHeader>
                    <Label text="可选功能"/>
                  </sourceHeader>
                  <targetHeader>
                    <Label text="已选功能"/>
                  </targetHeader>
                  <targetFooter>
                    <Button disable="true" text="保存"/>
                  </targetFooter>
                </ListSelectionView>
                <VBox spacing="8.0" HBox.hgrow="ALWAYS">
                  <children>
                    <Label text="功能详情"/>
                    <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minWidth="100.0">
                      <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 hgrow="ALWAYS" maxWidth="1.7976931348623157E308" minWidth="50.0" prefWidth="180.0"/>
                        <ColumnConstraints/>
                      </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" maxHeight="1.7976931348623157E308" minHeight="30.0" prefHeight="100.0" vgrow="NEVER"/>
                        <RowConstraints fillHeight="false" maxHeight="1.7976931348623157E308" minHeight="30.0" prefHeight="42.0" vgrow="NEVER"/>
                      </rowConstraints>
                      <children>
                        <Label text="频率"/>
                        <TextField fx:id="frequencyField" GridPane.columnIndex="1">
                          <GridPane.margin>
                            <Insets/>
                          </GridPane.margin>
                        </TextField>
                        <HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="7">
                          <children>
                            <Button fx:id="saveBtn1" disable="true" mnemonicParsing="false" text="保存"/>
                          </children>
                        </HBox>
                      </children>
                    </GridPane>
                  </children>
                  <HBox.margin>
                    <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
                  </HBox.margin>
                </VBox>
              </children>
            </HBox>
          </content>
        </Tab>
      </tabs>
    </TabPane>
  </center>

  <top>
    <ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
      <items>
        <Button fx:id="saveBtn" disable="true" text="保存(_S)"/>
      </items>
    </ToolBar>
  </top>

  <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>
