/**
  * @name getModeleLot($pParam)
  * @return DetailProduitResponse
  * @desc Retourne les Modèles de lot d'un produit
  */
 public function getModeleLot($pParam)
 {
     $lVr = NomProduitCatalogueValid::validDelete($pParam);
     if ($lVr->getValid()) {
         $lId = $pParam['idNomProduit'];
         $lModelesLot = ModeleLotViewManager::selectByIdNomProduit($lId);
         $lAbonnementService = new AbonnementService();
         $lResponse = new ModelesLotResponse();
         $lResponse->setModelesLot($lModelesLot);
         $lDetailAbonnement = $lAbonnementService->getProduitByIdNom($lId);
         $lNvLots = array();
         foreach ($lDetailAbonnement->getLots() as $lLot) {
             $lAbonnement = $lAbonnementService->getAbonnementSurLot($lLot->getId());
             $lLotAbonnementMarcheVO = new LotAbonnementMarcheVO();
             $lLotAbonnementMarcheVO->setId($lLot->getId());
             $lLotAbonnementMarcheVO->setIdProduitAbonnement($lLot->getIdProduitAbonnement());
             $lLotAbonnementMarcheVO->setTaille($lLot->getTaille());
             $lLotAbonnementMarcheVO->setPrix($lLot->getPrix());
             if (!is_null($lAbonnement[0]->getCptAboId())) {
                 $lLotAbonnementMarcheVO->setReservation(true);
             }
             array_push($lNvLots, $lLotAbonnementMarcheVO);
         }
         $lDetailAbonnement->setLots($lNvLots);
         $lResponse->setDetailAbonnement($lDetailAbonnement);
         return $lResponse;
     }
     return $lVr;
 }
 /**
  * @name getDetailProduitModifier($pParam)
  * @desc Donne le détail d'un produit
  */
 public function getDetailProduitModifier($pParam)
 {
     $lVr = ListeProduitValid::validGetDetailProduit($pParam);
     if ($lVr->getValid()) {
         $lAbonnementService = new AbonnementService();
         $lResponse = new DetailProduitModifierResponse();
         $lProduit = $lAbonnementService->getDetailProduit($pParam["id"]);
         $lNvLots = array();
         foreach ($lProduit[0]->getLots() as $lLot) {
             $lAbon = $lAbonnementService->getAbonnementSurLot($lLot->getId());
             $lNvLot = new LotAbonnementMarcheVO();
             $lNvLot->setId($lLot->getId());
             $lNvLot->setIdProduitAbonnement($lLot->getIdProduitAbonnement());
             $lNvLot->setTaille($lLot->getTaille());
             $lNvLot->setPrix($lLot->getPrix());
             if (!is_null($lAbon[0]->getCptAboIdProduitAbonnement())) {
                 $lNvLot->setReservation(true);
             }
             array_push($lNvLots, $lNvLot);
         }
         $lProduit[0]->setLots($lNvLots);
         $lResponse->setProduit($lProduit);
         //	$lProduit = $lAbonnementService->getProduit($pParam["id"]);
         $lResponse->setUnite(ModeleLotViewManager::selectByIdNomProduit($lProduit[0]->getProAboIdNomProduit()));
         return $lResponse;
     }
     return $lVr;
 }