/**
  * @name modifierPaiement($pParam)
  * @desc modifie un paiement
  */
 public function modifierPaiement($pParam)
 {
     $lVr = SuiviPaiementValid::validModifierPaiement($pParam);
     if ($lVr->getValid()) {
         $lOperationService = new OperationService();
         $lOperationInitiale = $lOperationService->getDetail($pParam["id"]);
         $lOperationInitiale->setTypePaiement($pParam["typePaiement"]);
         $lOperationInitiale->setMontant($pParam["montant"]);
         $lChampComplementaire = array();
         foreach ($pParam['champComplementaire'] as $lChamp) {
             if (!is_null($lChamp)) {
                 array_push($lChampComplementaire, OperationChampComplementaireToVO::convertFromArray($lChamp));
             }
         }
         $lOperationInitiale->setChampComplementaire($lChampComplementaire);
         $lOperationService->set($lOperationInitiale);
     }
     return $lVr;
 }
 /**
  * @name convertFromArray($pArray)
  * @param array()
  * @desc Convertit le array en objet OperationDetailVO
  */
 public static function convertFromArray($pArray)
 {
     if (isset($pArray['id'])) {
         $lId = $pArray['id'];
     } else {
         $lId = NULL;
     }
     if (isset($pArray['idCompte'])) {
         $lIdCompte = $pArray['idCompte'];
     } else {
         $lIdCompte = NULL;
     }
     if (isset($pArray['montant'])) {
         $lMontant = $pArray['montant'];
     } else {
         $lMontant = NULL;
     }
     if (isset($pArray['libelle'])) {
         $lLibelle = $pArray['libelle'];
     } else {
         $lLibelle = NULL;
     }
     if (isset($pArray['date'])) {
         $lDate = $pArray['date'];
     } else {
         $lDate = NULL;
     }
     if (isset($pArray['typePaiement'])) {
         $lTypePaiement = $pArray['typePaiement'];
     } else {
         $lTypePaiement = NULL;
     }
     if (isset($pArray['type'])) {
         $lType = $pArray['type'];
     } else {
         $lType = NULL;
     }
     if (isset($pArray['dateMaj'])) {
         $lDateMaj = $pArray['dateMaj'];
     } else {
         $lDateMaj = NULL;
     }
     if (isset($pArray['idLogin'])) {
         $lIdLogin = $pArray['idLogin'];
     } else {
         $lIdLogin = NULL;
     }
     if (isset($pArray['tppId'])) {
         $lTppId = $pArray['tppId'];
     } else {
         $lTppId = NULL;
     }
     if (isset($pArray['tppType'])) {
         $lTppType = $pArray['tppType'];
     } else {
         $lTppType = NULL;
     }
     if (isset($pArray['tppChampComplementaire'])) {
         $lTppChampComplementaire = $pArray['tppChampComplementaire'];
     } else {
         $lTppChampComplementaire = NULL;
     }
     if (isset($pArray['tppVisible'])) {
         $lTppVisible = $pArray['tppVisible'];
     } else {
         $lTppVisible = NULL;
     }
     if (isset($pArray['champComplementaire'])) {
         $lChampComplementaire = array();
         foreach ($pArray['champComplementaire'] as $lChamp) {
             if (!is_null($lChamp)) {
                 $lChampVo = OperationChampComplementaireToVO::convertFromArray($lChamp);
                 $lChampComplementaire[$lChampVo->getChcpId()] = $lChampVo;
             }
         }
     } else {
         $lChampComplementaire = array();
     }
     return new OperationDetailVO($lId, $lIdCompte, $lMontant, $lLibelle, $lDate, $lTypePaiement, $lType, $lDateMaj, $lIdLogin, $lTppId, $lTppType, $lTppChampComplementaire, $lTppVisible, $lChampComplementaire);
 }