Issue #0001788: [Dirigeants Opérationnels] utilisation de jo.bodacc_fonctions

This commit is contained in:
Aram HARUTYUNYAN 2014-03-20 06:33:54 +00:00
parent e042c987b8
commit 5ec7c860ff
2 changed files with 7 additions and 11 deletions

View File

@ -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;
}

View File

@ -2525,16 +2525,16 @@ 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;
@ -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']