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

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.image.Image?>
<?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.Pane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<AnchorPane id="AnchorPane" fx:id="BonSortieDetail" 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/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controllers.Stock.BondeSortieDetailController">
    <children>
      <Pane fx:id="TitrePane" prefHeight="52.0" prefWidth="796.0" styleClass="pane2hautdroit" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="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="Stock">
                     <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="Bon de sortie / Détail">
                     <font>
                        <Font name="Arial" size="15.0" />
                     </font>
                  </Text>
               </children>
            </HBox>
         </children>
      </Pane>
      <AnchorPane layoutX="10.0" layoutY="62.0" prefHeight="70.0" prefWidth="776.0" style="-fx-background-color: #2dcb73; -fx-background-radius: 5; -fx-border-color: #2ECC71; -fx-border-radius: 5;" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0">
         <children>
            <Text fill="WHITE" layoutX="83.0" layoutY="27.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Succès:">
               <font>
                  <Font name="Arial" size="26.0" />
               </font>
            </Text>
            <ImageView fitHeight="29.0" fitWidth="35.0" layoutX="21.0" layoutY="8.0">
               <image>
                  <Image url="@../../Public/icon/icon-success.png" />
               </image>
            </ImageView>
            <Text fill="WHITE" layoutX="186.0" layoutY="26.0" strokeType="OUTSIDE" strokeWidth="0.0" text="La bon de sortie à été créer avec succées avec les paramétres suivant:">
               <font>
                  <Font name="Arial Bold" size="16.0" />
               </font>
            </Text>
            <GridPane layoutX="21.0" layoutY="43.0" prefHeight="26.0" prefWidth="750.0" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="0.0">
              <columnConstraints>
                <ColumnConstraints hgrow="SOMETIMES" minWidth="122.0" prefWidth="122.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="179.0" prefWidth="179.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="139.0" prefWidth="139.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="121.0" prefWidth="121.0" />
                  <ColumnConstraints hgrow="SOMETIMES" minWidth="208.0" prefWidth="208.0" />
              </columnConstraints>
              <rowConstraints>
                <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
              </rowConstraints>
               <children>
                  <HBox GridPane.columnIndex="4">
                     <children>
                        <Text fill="WHITE" layoutX="581.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Transporteur: ">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                        <Text fx:id="transporteur" fill="WHITE" layoutX="694.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" translateY="1.0">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                     </children>
                  </HBox>
                  <HBox GridPane.columnIndex="3">
                     <children>
                        <Text fill="WHITE" layoutX="479.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Heur: ">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                        <Text fx:id="heur" fill="WHITE" layoutX="530.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" translateY="1.0">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                     </children>
                  </HBox>
                  <HBox spacing="2.0" GridPane.columnIndex="2">
                     <children>
                        <Text fill="WHITE" layoutX="321.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Date: ">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                        <Text fx:id="date" fill="WHITE" layoutX="369.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" translateY="1.0">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                     </children>
                  </HBox>
                  <HBox spacing="2.0" GridPane.columnIndex="1">
                     <children>
                        <Text fill="WHITE" layoutX="112.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Récepteur: ">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                        <Text fx:id="recepteur" fill="WHITE" layoutX="206.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                     </children>
                  </HBox>
                  <HBox prefHeight="26.0" prefWidth="106.0">
                     <children>
                        <Text fill="WHITE" layoutX="112.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Code: ">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                        <Text fx:id="id" fill="WHITE" layoutX="206.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0">
                           <font>
                              <Font name="Arial Bold" size="16.0" />
                           </font>
                        </Text>
                     </children>
                  </HBox>
               </children>
            </GridPane>
         </children></AnchorPane>
      <AnchorPane id="AnchorPane" layoutX="17.0" layoutY="200.0" prefHeight="420.0" prefWidth="776.0" styleClass="panel-bleu" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="212.0">
         <children>
            <AnchorPane prefHeight="35.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 ( Sortie )">
                     <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="TableViewListeProduitBon" prefHeight="212.0" prefWidth="573.0" style="-fx-border-color: #FFFFFF;" AnchorPane.bottomAnchor="1.0" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="29.0">
               <columnResizePolicy>
                  <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
               </columnResizePolicy>
               <columns>
                  <TableColumn fx:id="TabColBonReference" maxWidth="400.0" minWidth="100.0" prefWidth="100.0" text="Référence" />
                  <TableColumn fx:id="TabColBonDesignaton" maxWidth="400.0" minWidth="170.0" prefWidth="170.0" text="Désignation" />
                  <TableColumn fx:id="TabColBonMarque" maxWidth="300.0" minWidth="110.0" prefWidth="110.0" text="Marque" />
                  <TableColumn fx:id="TabColBonCategorie" maxWidth="300.0" minWidth="120.0" prefWidth="120.0" text="Catégorie" />
                  <TableColumn fx:id="TabColBonTVA" maxWidth="70.0" minWidth="70.0" prefWidth="70.0" text="TVA" />
                  <TableColumn fx:id="TabColBonPrixTTC" maxWidth="150.0" minWidth="100.0" prefWidth="100.0" text="Prix TTC" />
                  <TableColumn fx:id="TabColBonQuantiteTTC" maxWidth="80.0" minWidth="80.0" text="Quantité" />
               </columns>
            </TableView>
         </children>
      </AnchorPane>
      <GridPane layoutX="10.0" layoutY="143.0" prefHeight="52.0" prefWidth="776.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0">
        <columnConstraints>
            <ColumnConstraints hgrow="SOMETIMES" maxWidth="269.0" minWidth="240.0" prefWidth="269.0" />
            <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="300.0" />
            <ColumnConstraints hgrow="SOMETIMES" maxWidth="69.0" minWidth="69.0" prefWidth="69.0" />
          <ColumnConstraints hgrow="SOMETIMES" maxWidth="69.0" minWidth="69.0" prefWidth="69.0" />
          <ColumnConstraints hgrow="SOMETIMES" maxWidth="69.0" minWidth="69.0" prefWidth="69.0" />
        </columnConstraints>
        <rowConstraints>
          <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
        </rowConstraints>
         <children>
            <Button mnemonicParsing="false" onAction="#PrintBonSortieButtonAction" prefHeight="55.0" prefWidth="58.0" styleClass="icon-Print" GridPane.columnIndex="2" />
            <Button mnemonicParsing="false" prefHeight="55.0" prefWidth="58.0" styleClass="icon-Excel" visible="false" GridPane.columnIndex="3" />
            <Button mnemonicParsing="false" onAction="#PDFBonSortieButtonAction" prefHeight="55.0" prefWidth="58.0" styleClass="icon-PDF" GridPane.columnIndex="4" />
            <Button fx:id="RecreerBD" mnemonicParsing="false" onAction="#NewBonSortieButtonAction" prefHeight="44.0" prefWidth="259.0" styleClass="btn-primary" text="Créer une nouvelle bon de sortie" />
         </children>
      </GridPane>
   </children>
</AnchorPane>
