/**
  * @name getListeAchat($pParam)
  * @return ListeAchatResponse
  * @desc Retourne la liste des Achats.
  */
 public function getListeAchat($pParam)
 {
     $lVr = AchatValid::validRechercheListeAchat($pParam);
     if ($lVr->getValid()) {
         $lDateDebut = NULL;
         if (!empty($pParam['dateDebut'])) {
             $lDateDebut = $pParam['dateDebut'];
         }
         $lDateFin = NULL;
         if (!empty($pParam['dateFin'])) {
             $lDateFin = $pParam['dateFin'];
         }
         $lIdMarche = NULL;
         if (!empty($pParam['idMarche'])) {
             $lIdMarche = $pParam['idMarche'];
         }
         $lListeAchatResponse = new ListeAchatResponse();
         $lAchatService = new AchatService();
         $lListeAchatResponse->setListeAchat($lAchatService->rechercheListeAchat($lDateDebut, $lDateFin, $lIdMarche));
         return $lListeAchatResponse;
     }
     return $lVr;
 }
 /**
  * @name supprimerAchat($pParam)
  * @return AchatVR
  * @desc Supprime un achat
  */
 public function supprimerAchat($pParam)
 {
     $lVr = AchatValid::validDelete($pParam);
     if ($lVr->getValid()) {
         $lAchatService = new AchatService();
         $lAchatService->delete($pParam['id']);
     }
     return $lVr;
 }