Issue #0001788: [Dirigeants Opérationnels] utilisation de jo.bodacc_fonctions
This commit is contained in:
parent
e042c987b8
commit
5ec7c860ff
@ -144,19 +144,15 @@ class DirigeantController extends Zend_Controller_Action
|
||||
|
||||
$param = array('id'=>$this->id);
|
||||
$infos = $ws->searchDirigeantsOp(json_encode($param));
|
||||
|
||||
$liste = $infos->item;
|
||||
|
||||
$fct = json_decode($ws->getCatalogFctDir(), true);
|
||||
|
||||
foreach($liste as $key=>$val)
|
||||
{
|
||||
|
||||
$item = new stdClass();
|
||||
$item->RS = $ws->getIdentiteLight($val->siren);
|
||||
$item->siren = $val->siren;
|
||||
$item->nic = $val->nic;
|
||||
$item->libFct = $fct[intval($val->codFct)]['libelle'];
|
||||
$item->libFct = $val->libFct;
|
||||
$entListe[] = $item;
|
||||
}
|
||||
|
||||
|
@ -2525,19 +2525,19 @@ class SaisieController extends Zend_Controller_Action
|
||||
|
||||
switch ($mode) {
|
||||
case 'add':
|
||||
$fonction = $this->fctDir();
|
||||
$fonction = $ws->getCatalogFctDir();
|
||||
|
||||
$this->view->assign('fonction', $fonction);
|
||||
$this->view->assign('fonction', json_decode($fonction));
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
$fonction = $this->fctDir();
|
||||
$fonction = $ws->getCatalogFctDir();
|
||||
$infos = $ws->getDirigeantsOp($siren, $id);
|
||||
|
||||
$this->view->assign('fonction', $fonction);
|
||||
$this->view->assign('fonction', json_decode($fonction));
|
||||
$this->view->assign('infos', $infos->item[0]);
|
||||
break;
|
||||
|
||||
|
||||
case 'del':
|
||||
$infos = $ws->getDirigeantsOp($siren, $id);
|
||||
break;
|
||||
@ -2575,7 +2575,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
'nom_usage' => $params['nom_usage'],
|
||||
'dateNais' => $newDate,
|
||||
'lieuNais' => $params['naiss_lieu'],
|
||||
'codFct' => $params['codFct'],
|
||||
'codFct' => str_pad($params['codFct'], 4, 0, STR_PAD_LEFT),
|
||||
'tel' => $params['tel'],
|
||||
'fax' => $params['fax'],
|
||||
'email' => $params['email']
|
||||
|
Loading…
Reference in New Issue
Block a user