production/Societes/envoyx/Tarifs/Modele/Police_d_sodciete.php
2026-03-04 01:48:40 +00:00

57 lines
1.7 KiB
PHP
Executable File

<?php
require_once 'Framework/Modele.php';
class Police_d_sodciete extends Modele {
public function getCollegesCpLienParente($idPolice)
{
$sql = 'call sp_collesges_d_police_lien_parente(?);';
// $sql = 'call sp_collesges_d_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarantiesCollegesCP($idPolice)
{
$sql = 'call sp_garanties_colleges_d_police(?);';
$garantiescolleges = $this->executerRequete($sql, array($idPolice));
return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getGarantiesCollegesCpLienParente($idPolice)
{
// $sql = 'call sp_garanties_colleges_d_police(?);';
$sql = 'call sp_garanties_colleges_d_police_lien_parente(?);';
$garantiescolleges = $this->executerRequete($sql, array($idPolice));
return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC);
}
public function gettableauPrestationsCP($idPolice)
{
$sql = 'call sp_tableau_prestation_d_police(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function gettableauPrestationsCpLienParente($idPolice)
{
// $sql = 'call sp_tableau_prestation_d_police(?);';
$sql = 'call sp_tableau_prestation_d_police_lien_parente(?);';
$colleges = $this->executerRequete($sql, array($idPolice));
return $colleges->fetchAll(PDO::FETCH_ASSOC);
}
public function getEnteteCP($idPolice)
{
$sql = 'call sp_entete_devis(?);';
$entete = $this->executerRequete($sql, array($idPolice));
return $entete->fetch(PDO::FETCH_ASSOC);
}
}