<?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.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>

<VBox prefHeight="800.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1" 
fx:controller="com.ecep.contract.controller.customer.CompanyCustomerEvaluationFormFileWindowController">
   <children>
      <MenuBar>
        <menus>
          <Menu mnemonicParsing="false" text="File">
            <items>
              <MenuItem mnemonicParsing="false" text="Close" />
            </items>
          </Menu>
          <Menu mnemonicParsing="false" text="Edit">
            <items>
              <MenuItem mnemonicParsing="false" text="Delete" />
            </items>
          </Menu>
          <Menu mnemonicParsing="false" text="Help">
            <items>
              <MenuItem mnemonicParsing="false" text="About" />
            </items>
          </Menu>
        </menus>
      </MenuBar>
      <SplitPane fx:id="splitPane" dividerPositions="0.5" prefHeight="160.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
        <items>
            <ScrollPane fx:id="leftPane" fitToHeight="true" fitToWidth="true" pannable="true">
                  <ImageView fx:id="imageView" fitHeight="600.0" fitWidth="500.0" pickOnBounds="true" preserveRatio="true" AnchorPane.bottomAnchor="3.0" AnchorPane.leftAnchor="3.0" AnchorPane.rightAnchor="6.0" AnchorPane.topAnchor="3.0">
                  </ImageView>
            </ScrollPane>
            <GridPane hgap="5.0" vgap="3.0">
              <columnConstraints>
                <ColumnConstraints halignment="RIGHT" hgrow="SOMETIMES" minWidth="10.0" prefWidth="80.0" />
                <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
              </columnConstraints>
              <rowConstraints>
                <RowConstraints minHeight="28.0" prefHeight="30.0" vgrow="SOMETIMES" />
                <RowConstraints minHeight="28.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="28.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="28.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="28.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="28.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="28.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="248.0" prefHeight="250.0" vgrow="SOMETIMES" />
                  <RowConstraints minHeight="63.0" prefHeight="65.0" vgrow="SOMETIMES" />
                  <RowConstraints maxHeight="100.0" minHeight="98.0" prefHeight="100.0" vgrow="SOMETIMES" />
                  <RowConstraints maxHeight="30.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="1.7976931348623157E308" minHeight="10.0" prefHeight="10.0" vgrow="ALWAYS" />
              </rowConstraints>
               <children>
                  <Label text="文件" GridPane.rowIndex="1" />
                  <Label text="ID" />
                  <Label fx:id="idField" text="10000" GridPane.columnIndex="1" />
                  <TextField fx:id="filePathField" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                  <Label text="可编辑文件" GridPane.rowIndex="2" />
                  <Label text="生效日期" GridPane.rowIndex="3" />
                  <Label text="有效" GridPane.rowIndex="4" />
                  <Label text="备注" GridPane.rowIndex="9" />
                  <CheckBox fx:id="validField" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="4" />
                  <TextField fx:id="editFilePathField" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                  <DatePicker fx:id="signDateField" GridPane.columnIndex="1" GridPane.rowIndex="3" />
                  <TextArea prefHeight="46.0" prefWidth="341.0" GridPane.columnIndex="1" GridPane.rowIndex="9" />
                  <Label text="经济指标" GridPane.rowIndex="5" />
                  <Label text="综合指标" GridPane.rowIndex="6" />
                  <Label text="资信指标" GridPane.rowIndex="7" />
                  <HBox alignment="CENTER_LEFT" spacing="6.0" GridPane.columnIndex="1" GridPane.rowIndex="5">
                     <children>
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="VIP客户" userData="VIP">
                           <toggleGroup>
                              <ToggleGroup fx:id="catalog" />
                           </toggleGroup>
                        </RadioButton>
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" text="A类客户" toggleGroup="$catalog" userData="A" />
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" text="B类客户" toggleGroup="$catalog" userData="B" />
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" text="C类客户" toggleGroup="$catalog" userData="C" />
                     </children>
                  </HBox>
                  <HBox alignment="CENTER_LEFT" layoutX="115.0" layoutY="175.0" spacing="6.0" GridPane.columnIndex="1" GridPane.rowIndex="6">
                     <children>
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="较好" userData="较好">
                           <toggleGroup>
                              <ToggleGroup fx:id="level" />
                           </toggleGroup>
                        </RadioButton>
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" text="好" toggleGroup="$level" userData="好" />
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" text="一般" toggleGroup="$level" userData="一般" />
                        <RadioButton mnemonicParsing="false" prefWidth="140.0" text="差" toggleGroup="$level" userData="差" />
                     </children>
                  </HBox>
                  <VBox spacing="5.0" GridPane.columnIndex="1" GridPane.rowIndex="7">
                     <children>
                        <Label text="1. 在行业内的资信口碑" />
                        <HBox alignment="CENTER_LEFT" spacing="6.0">
                           <children>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="(50)好" userData="50">
                                 <toggleGroup>
                                    <ToggleGroup fx:id="score1" />
                                 </toggleGroup>
                              </RadioButton>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(30)教好" toggleGroup="$score1" userData="30" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(20)一般" toggleGroup="$score1" userData="20" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(10)差" toggleGroup="$score1" userData="10" />
                           </children>
                        </HBox>
                        <Label text="2. 自身的支付实力">
                           <VBox.margin>
                              <Insets top="12.0" />
                           </VBox.margin></Label>
                        <HBox alignment="CENTER_LEFT" layoutX="10.0" layoutY="30.0" spacing="6.0">
                           <children>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="(50)好" userData="50">
                                 <toggleGroup>
                                    <ToggleGroup fx:id="score2" />
                                 </toggleGroup>
                              </RadioButton>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(30)教好" toggleGroup="$score2" userData="30" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(20)一般" toggleGroup="$score2" userData="20" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(10)差" toggleGroup="$score2" userData="10" />
                           </children>
                        </HBox>
                        <Label text="3. 每笔贷款是否按时到账">
                           <VBox.margin>
                              <Insets top="12.0" />
                           </VBox.margin></Label>
                        <HBox alignment="CENTER_LEFT" layoutX="10.0" layoutY="71.0" spacing="6.0">
                           <children>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="(50)是" userData="50">
                                 <toggleGroup>
                                    <ToggleGroup fx:id="score3" />
                                 </toggleGroup>
                              </RadioButton>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(30)否" toggleGroup="$score3" userData="30" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(20)不稳定" toggleGroup="$score3" userData="20" />
                           </children>
                        </HBox>
                        <Label text="4. 合同付款方式">
                           <VBox.margin>
                              <Insets top="12.0" />
                           </VBox.margin></Label>
                        <HBox alignment="CENTER_LEFT" layoutX="10.0" layoutY="112.0" spacing="6.0">
                           <children>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="(50)电汇" userData="50">
                                 <toggleGroup>
                                    <ToggleGroup fx:id="score4" />
                                 </toggleGroup>
                              </RadioButton>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(30)电子银行承兑" toggleGroup="$score4" userData="30" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(20)资质银行承兑" toggleGroup="$score4" userData="20" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(10)其他" toggleGroup="$score4" userData="10" />
                           </children>
                        </HBox>
                        <Label text="5. 订单频率">
                           <VBox.margin>
                              <Insets top="12.0" />
                           </VBox.margin></Label>
                        <HBox alignment="CENTER_LEFT" layoutX="10.0" layoutY="153.0" spacing="6.0">
                           <children>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="(50)约每季度一次" userData="50">
                                 <toggleGroup>
                                    <ToggleGroup fx:id="score5" />
                                 </toggleGroup>
                              </RadioButton>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(30)约每半年一次" toggleGroup="$score5" userData="30" />
                               <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(20)约每年一次" toggleGroup="$score5" userData="20">
                               </RadioButton>
                               <RadioButton mnemonicParsing="false" prefWidth="140.0" text="(10)不稳定" toggleGroup="$score5" userData="10" />
                           </children>
                        </HBox>
                     </children>
                  </VBox>
                  <Label text="资信等级" GridPane.rowIndex="8" />
                  <VBox spacing="6.0" GridPane.columnIndex="1" GridPane.rowIndex="8">
                     <children>
                        <Label fx:id="totalCreditScoreLabel" text="合计总分：" />
                        <HBox alignment="CENTER_LEFT" spacing="6.0">
                           <children>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" selected="true" text="★★★★" userData="4">
                                 <toggleGroup>
                                    <ToggleGroup fx:id="creditLevel" />
                                 </toggleGroup>
                              </RadioButton>
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="★★★" toggleGroup="$creditLevel" userData="3" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="★★" toggleGroup="$creditLevel" userData="2" />
                              <RadioButton mnemonicParsing="false" prefWidth="140.0" text="★" toggleGroup="$creditLevel" userData="1" />
                           </children>
                        </HBox>
                        <Label text="★★★★≤200分，★★★≤150分，★★≤100分，★≤60分" />
                     </children>
                  </VBox>
                  <Button mnemonicParsing="false" onAction="#onSaveAction" text="保存" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.rowIndex="10" />
               </children>
               <padding>
                  <Insets right="5.0" />
               </padding>
            </GridPane>
        </items>
      </SplitPane>
   </children>
</VBox>
