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

<?import javafx.scene.image.*?>
<?import javafx.scene.shape.*?>
<?import javafx.scene.text.*?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.collections.*?>

<AnchorPane id="AnchorPane" fx:id="PaneDevisAjouter" minHeight="642.0" minWidth="796.0" prefHeight="642.0" prefWidth="796.0" styleClass="AnchorPane-Default" stylesheets="@../../Public/CSS/StylePrincipal.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controllers.DevisClt.DevisAjouterController">
   <children>
      <Pane fx:id="TitrePane" prefHeight="52.0" prefWidth="796.0" styleClass="pane2hautdroit" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
         <children>
            <HBox alignment="BOTTOM_LEFT" layoutX="23.0" layoutY="13.1787109375">
               <children>
                  <Text fx:id="TitrePrincipale" layoutX="23.0" layoutY="34.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Devis">
                     <font>
                        <Font name="Arial" size="23.0" />
                     </font>
                  </Text>
                  <Text layoutX="176.0" layoutY="31.0" strokeType="OUTSIDE" strokeWidth="0.0" text="  ">
                     <font>
                        <Font name="Arial" size="15.0" />
                     </font>
                  </Text>
                  <Text fx:id="TitreSecondaire" layoutX="163.0" layoutY="34.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Ajouter">
                     <font>
                        <Font name="Arial" size="15.0" />
                     </font>
                  </Text>
               </children>
            </HBox>
         </children>
      </Pane>
      <AnchorPane layoutX="10.0" layoutY="121.0" minHeight="177.0" minWidth="766.0" prefHeight="177.0" prefWidth="766.0" style="-fx-border-color: #35aa47;" styleClass="panel-default" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0">
         <children>
            <AnchorPane prefHeight="30.0" prefWidth="200.0" style="-fx-background-color: #35aa47;" styleClass="panel-default-titre" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
               <children>
                  <Text fill="WHITE" fontSmoothingType="LCD" layoutX="44.0" layoutY="19.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Information Client">
                     <font>
                        <Font name="System Bold" size="14.0" />
                     </font>
                  </Text>
                  <ImageView fitHeight="20.0" fitWidth="28.0" layoutX="6.0" layoutY="5.0">
                     <image>
                        <Image url="@../../Public/icon/Client.png" />
                     </image>
                  </ImageView>
                  <GridPane layoutX="635.0" layoutY="-1.0" prefHeight="30.0" prefWidth="46.0" AnchorPane.rightAnchor="15.0">
                    <columnConstraints>
                      <ColumnConstraints halignment="RIGHT" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                    </columnConstraints>
                    <rowConstraints>
                      <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                     <children>
                        <Button fx:id="ClientDefault" mnemonicParsing="false" onAction="#ClientRessetDefautButtonAction" prefHeight="25.0" prefWidth="27.0" visible="false" />
                     </children>
                  </GridPane>
               </children>
            </AnchorPane>
            <GridPane layoutX="8.0" layoutY="33.0" prefHeight="137.0" prefWidth="762.0" AnchorPane.bottomAnchor="8.0" AnchorPane.leftAnchor="7.0" AnchorPane.rightAnchor="7.0" AnchorPane.topAnchor="38.0">
               <children>
                  <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Adresse" GridPane.columnIndex="3">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Date" GridPane.columnIndex="6">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="TextPrenom" strokeType="OUTSIDE" strokeWidth="0.0" text="Prénom" GridPane.rowIndex="4">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Num Télé 2" GridPane.columnIndex="3" GridPane.rowIndex="4">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Règlement" GridPane.columnIndex="6" GridPane.rowIndex="4">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="ErreurClientEntrepriseContactNom" fill="#f20606" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
                     <font>
                        <Font name="System Bold" size="12.0" />
                     </font>
                  </Text>
                  <Text fx:id="ErreurClientEntrepriseContactPrenom" fill="#f20606" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="4" GridPane.rowIndex="1">
                     <font>
                        <Font name="System Bold" size="12.0" />
                     </font>
                  </Text>
                  <Text fx:id="ErreurClientEntrepriseContactCIN" fill="#f20606" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="7" GridPane.rowIndex="1">
                     <font>
                        <Font name="System Bold" size="12.0" />
                     </font>
                  </Text>
                  <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Nom" GridPane.rowIndex="2">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Num Télé 1" GridPane.columnIndex="3" GridPane.rowIndex="2">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Fin Validité" GridPane.columnIndex="6" GridPane.rowIndex="2">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <TextField fx:id="DevisNom" prefHeight="30.0" prefWidth="122.0" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                  <TextField fx:id="DevisPrenom" prefHeight="30.0" prefWidth="122.0" GridPane.columnIndex="1" GridPane.rowIndex="4" />
                  <TextField fx:id="DevisAdresse" prefHeight="30.0" prefWidth="122.0" GridPane.columnIndex="4" />
                  <TextField fx:id="DevisTELE1" prefHeight="30.0" prefWidth="122.0" GridPane.columnIndex="4" GridPane.rowIndex="2" />
                  <TextField fx:id="DevisTELE2" prefHeight="30.0" prefWidth="122.0" GridPane.columnIndex="4" GridPane.rowIndex="4" />
                  <DatePicker fx:id="DateCreation" prefHeight="30.0" GridPane.columnIndex="7" />
                  <DatePicker fx:id="DateFinValidite" prefHeight="30.0" GridPane.columnIndex="7" GridPane.rowIndex="2" />
                  <ComboBox fx:id="ModeReglement" prefHeight="30.0" prefWidth="153.0" styleClass="liste-select" GridPane.columnIndex="7" GridPane.rowIndex="4">
                      <items>
                            <FXCollections fx:factory="observableArrayList">
                                <String fx:value="Comptant" />
                                <String fx:value="Facilité" />
                            </FXCollections>
                        </items>
                  </ComboBox>          
                  <Button fx:id="ClientExisteDejat" mnemonicParsing="false" onAction="#ClientExisteDejatButtonAction" prefHeight="30.0" prefWidth="124.0" styleClass="btn-black" text="Client existe " textAlignment="CENTER" GridPane.columnIndex="1">
                    <graphic>
                        <ImageView>
                            <image>
            <!--                    <Image url="@/Public/icon/iconadd.png" />   -->
                            </image>                            
                        </ImageView>
                    </graphic>
                  </Button>
                  <Text fx:id="CltExistNom" strokeType="OUTSIDE" strokeWidth="0.0" visible="false" GridPane.columnIndex="1" GridPane.rowIndex="2">
                     <font>
                        <Font name="Arial Bold" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="CltExistPrenom" strokeType="OUTSIDE" strokeWidth="0.0" visible="false" GridPane.columnIndex="1" GridPane.rowIndex="4">
                     <font>
                        <Font name="Arial Bold" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="CltExistAdresse" strokeType="OUTSIDE" strokeWidth="0.0" visible="false" GridPane.columnIndex="4">
                     <font>
                        <Font name="Arial Bold" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="CltExistTELE1" strokeType="OUTSIDE" strokeWidth="0.0" visible="false" GridPane.columnIndex="4" GridPane.rowIndex="2">
                     <font>
                        <Font name="Arial Bold" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="CltExistTELE2" strokeType="OUTSIDE" strokeWidth="0.0" visible="false" GridPane.columnIndex="4" GridPane.rowIndex="4">
                     <font>
                        <Font name="Arial Bold" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="CltExistCode" strokeType="OUTSIDE" strokeWidth="0.0" visible="false" GridPane.columnIndex="1">
                     <font>
                        <Font name="Arial Bold" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="TextCltExistCode" strokeType="OUTSIDE" strokeWidth="0.0" text="Code" visible="false">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
                  <Text fx:id="TextMatricule" strokeType="OUTSIDE" strokeWidth="0.0" text="Matricule" visible="false" GridPane.rowIndex="4">
                     <font>
                        <Font name="Arial" size="13.0" />
                     </font>
                  </Text>
               </children>
               <columnConstraints>
                  <ColumnConstraints hgrow="SOMETIMES" maxWidth="80.0" minWidth="80.0" prefWidth="80.0" />
                  <ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" minWidth="130.0" prefWidth="130.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="75.0" />
                  <ColumnConstraints hgrow="SOMETIMES" maxWidth="80.0" minWidth="80.0" prefWidth="80.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="130.0" prefWidth="130.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="75.0" />
                  <ColumnConstraints hgrow="SOMETIMES" maxWidth="80.0" minWidth="80.0" prefWidth="80.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="130.0" prefWidth="130.0" />
               </columnConstraints>
               <rowConstraints>
                  <RowConstraints maxHeight="30.0" minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
                  <RowConstraints maxHeight="25.0" minHeight="10.0" prefHeight="20.0" vgrow="SOMETIMES" />
                  <RowConstraints maxHeight="37.0" minHeight="10.0" prefHeight="32.0" vgrow="SOMETIMES" />
                  <RowConstraints maxHeight="37.0" minHeight="10.0" prefHeight="19.0" vgrow="SOMETIMES" />
                  <RowConstraints maxHeight="30.0" minHeight="30.0" prefHeight="30.0" vgrow="SOMETIMES" />
               </rowConstraints>
            </GridPane>
         </children>
      </AnchorPane>
      <AnchorPane id="AnchorPane" layoutX="10.0" layoutY="374.0" prefHeight="258.0" prefWidth="776.0" styleClass="panel-bleu" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="374.0">
         <children>
            <AnchorPane prefHeight="30.0" prefWidth="600.0" styleClass="panel-bleu-titre" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
               <children>
                  <Text fill="WHITE" fontSmoothingType="LCD" layoutX="27.0" layoutY="22.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Liste des Produits">
                     <font>
                        <Font name="Verdana Bold" size="12.0" />
                     </font>
                  </Text>
                  <Line endX="10.0" layoutX="10.0" layoutY="12.0" startX="-2.0" stroke="WHITE" strokeWidth="2.0" />
                  <Line endX="10.0" layoutX="10.0" layoutY="17.0" startX="-2.0" stroke="WHITE" strokeWidth="2.0" />
                  <Line endX="10.0" layoutX="10.0" layoutY="22.0" startX="-2.0" stroke="WHITE" strokeWidth="2.0" />
               </children>
            </AnchorPane>
            <TableView fx:id="TableViewListeProduitDevis" layoutX="1.0" layoutY="30.0" prefHeight="212.0" prefWidth="573.0" style="-fx-border-color: #FFFFFF;" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="30.0">
               <columnResizePolicy>
                  <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
               </columnResizePolicy>
               <columns>
                  <TableColumn fx:id="TabColDevisReference" maxWidth="330.0" minWidth="110.0" prefWidth="110.0" text="Référence" />
                  <TableColumn fx:id="TabColDevisDesignaton" maxWidth="489.0" minWidth="163.0" prefWidth="163.0" text="Désignation" />
                  <TableColumn fx:id="TabColDevisQuantite" maxWidth="225.0" minWidth="75.0" prefWidth="75.0" text="Quantité" />
                  <TableColumn fx:id="TabColDevisPrixHT" maxWidth="222.0" minWidth="74.0" prefWidth="74.0" text="P.U.H.T" />
                  <TableColumn fx:id="TabColDevisRemise" maxWidth="264.0" minWidth="88.0" prefWidth="88.0" text="Remise(%)" />
                  <TableColumn fx:id="TabColDevisTotalHT" maxWidth="210.0" minWidth="70.0" prefWidth="70.0" text="Total H.T" />
                  <TableColumn fx:id="TabColDevisTVA" maxWidth="132.0" minWidth="44.0" prefWidth="44.0" text="TVA" />
                  <TableColumn fx:id="TabColDevisTotalTTC" maxWidth="261.0" minWidth="87.0" prefWidth="87.0" text="Total TTC" />
                  <TableColumn fx:id="TabColDevisAddAction" maxWidth="180.0" minWidth="59.0" prefWidth="59.0" text="Action" />
               </columns>
            </TableView>
         </children>
      </AnchorPane>
      
      <Button fx:id="EnregisterDevis" layoutX="14.0" layoutY="64.0" mnemonicParsing="false" onAction="#SaveDevisButtonAction" prefHeight="42.0" prefWidth="155.0" styleClass="btn-primary" text="Enregister  Devis">
        <graphic>
            <ImageView>
                <image>
        <!--            <Image url="@/Public/icon/iconsave.png" />  -->
                </image>                            
            </ImageView>
        </graphic>
      </Button>
      <StackPane layoutX="44.0" layoutY="329.0" prefHeight="35.0" prefWidth="710.0" AnchorPane.leftAnchor="44.0" AnchorPane.rightAnchor="42.0">
         <children>
            <Button fx:id="RechercheProduit" mnemonicParsing="false" onAction="#RechercheProduitButtonAction" prefHeight="35.0" prefWidth="180.0" styleClass="btn-black" text="Rechercher  Produit">
                <graphic>
                    <ImageView>
                        <image>
            <!--                <Image url="@/Public/icon/detailbutton.png" />   -->
                        </image>                            
                    </ImageView>
                </graphic>
            </Button>
         </children>
      </StackPane>
      <Button layoutX="14.0" layoutY="339.0" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" onAction="#AddLigneButtonAction" prefHeight="30.0" prefWidth="30.0" styleClass="btn-black" text="+">
         <font>
            <Font size="13.0" />
         </font>
      </Button>
      <GridPane layoutX="180.0" layoutY="54.0" prefHeight="60.0" prefWidth="602.0" AnchorPane.leftAnchor="180.0" AnchorPane.rightAnchor="14.0">
         <children>
            <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Total Hors Tax Net" GridPane.columnIndex="9">
               <font>
                  <Font name="Arial Bold" size="13.0" />
               </font>
            </Text>
            <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Remise" GridPane.columnIndex="3">
               <font>
                  <Font name="Arial Bold" size="13.0" />
               </font>
            </Text>
            <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Total TVA" GridPane.columnIndex="5">
               <font>
                  <Font name="Arial Bold" size="13.0" />
               </font>
            </Text>
            <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Timbre" wrappingWidth="43.341796875" GridPane.columnIndex="7">
               <font>
                  <Font name="Arial Bold" size="13.0" />
               </font>
            </Text>
            <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Net A Payer" GridPane.columnIndex="1">
               <font>
                  <Font name="Arial Bold" size="16.0" />
               </font>
            </Text>
            <Text fx:id="DevisNetAPayer" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
               <font>
                  <Font name="Arial Bold" size="15.0" />
               </font>
            </Text>
            <Text fx:id="DevisRemise" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="3" GridPane.rowIndex="1">
               <font>
                  <Font name="Arial" size="13.0" />
               </font>
            </Text>
            <Text fx:id="DevisTotalTVA" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="5" GridPane.rowIndex="1">
               <font>
                  <Font name="Arial" size="13.0" />
               </font>
            </Text>
            <Text fx:id="DevisTimbre" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="7" GridPane.rowIndex="1">
               <font>
                  <Font name="Arial" size="13.0" />
               </font>
            </Text>
            <Text fx:id="DevisTotalHTNet" strokeType="OUTSIDE" strokeWidth="0.0" GridPane.columnIndex="9" GridPane.rowIndex="1">
               <font>
                  <Font name="Arial" size="13.0" />
               </font>
            </Text>
         </children>
         <columnConstraints>
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="150.0" minWidth="10.0" prefWidth="147.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="100.0" minWidth="30.0" prefWidth="30.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="134.0" minWidth="0.0" prefWidth="63.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="100.0" minWidth="30.0" prefWidth="30.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="136.0" minWidth="10.0" prefWidth="102.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="100.0" minWidth="30.0" prefWidth="30.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="105.0" minWidth="10.0" prefWidth="80.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="100.0" minWidth="30.0" prefWidth="30.0" />
            <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="134.0" minWidth="10.0" prefWidth="124.0" />
         </columnConstraints>
         <rowConstraints>
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
         </rowConstraints>
      </GridPane>
   </children>
</AnchorPane>
