SD-29 ajout de champs en 4-5

This commit is contained in:
Claire DELBOS 2017-03-30 11:23:44 +02:00
parent 370fe4ae05
commit f1e51cf91c

View File

@ -2104,22 +2104,25 @@ function etablissementlisteMultiple($siren, $nic, $values = false)
function contentieuxlisteEntete()
{
return array(
'dateEnrolement',
'codNatureDemande',
'dateAffaire',
'categorieAffaire',
'typeAffaire',
'natureDemande',
'nomDemandeur',
'nomDefendeur',
'etatAffaire',
'statutAffaire',
'codeGreffe',
'nomGreffe',
'representants',
'nomsRepresentants'
);
}
function contentieuxlisteMultiple($siren, $nic=0, $values = false)
{
global $iDb;
$conn = Zend_Registry::get('doctrine');
$sql='select dateEnrolement,codNatureDemande,natureDemande,nomDemandeur,nomDefendeur,etatAffaire,codeGreffe,nomGreffe
$sql='select dateEnrolement as dateAffaire,typeAffaireEnum as categorieAffaire,codNatureDemande as typeAffaire,natureDemande,nomDemandeur,
nomDefendeur,etatAffaire as statutAffaire,codeGreffe,nomGreffe,representants,rep0nom as nomsRepresentants
from greffes_affaires_siren s inner join greffes_affaires a using(id) where entSiren=:siren';
try {
$stmt=$conn->prepare($sql);