issue #0001372 : Modify interface because data structure has changed
This commit is contained in:
parent
9ac92188a9
commit
1ad8fa272f
@ -1,5 +1,5 @@
|
||||
[local]
|
||||
webservices.interne.wsdl = "http://webservice-2.4.sd.dev/interne/v0.4?wsdl-auto"
|
||||
webservices.interne.wsdl = "http://webservice-2.4.sd.dev/interne/v0.5?wsdl-auto"
|
||||
webservices.interne.options.soap_version = SOAP_1_2
|
||||
webservices.entreprise.wsdl = "http://webservice-2.4.sd.dev/entreprise/v0.8?wsdl-auto"
|
||||
webservices.entreprise.options.soap_version = SOAP_1_2
|
||||
@ -11,7 +11,7 @@ webservices.pieces.wsdl = "http://webservice-2.4.sd.dev/pieces/v0.1?wsdl-auto"
|
||||
webservices.pieces.options.soap_version = SOAP_1_2
|
||||
|
||||
[sdsrvdev01]
|
||||
webservices.interne.wsdl = "http://webservice-2.4.sd.lan/interne/v0.4?wsdl-auto"
|
||||
webservices.interne.wsdl = "http://webservice-2.4.sd.lan/interne/v0.5?wsdl-auto"
|
||||
webservices.interne.options.soap_version = SOAP_1_2
|
||||
webservices.entreprise.wsdl = "http://webservice-2.4.sd.lan/entreprise/v0.8?wsdl-auto"
|
||||
webservices.entreprise.options.soap_version = SOAP_1_2
|
||||
@ -23,7 +23,7 @@ webservices.pieces.wsdl = "http://webservice-2.4.sd.lan/pieces/v0.1?wsdl-auto"
|
||||
webservices.pieces.options.soap_version = SOAP_1_2
|
||||
|
||||
[sd-25137]
|
||||
webservices.interne.wsdl = "http://wse.scores-decisions.com:8081/interne/v0.4?wsdl"
|
||||
webservices.interne.wsdl = "http://wse.scores-decisions.com:8081/interne/v0.5?wsdl"
|
||||
webservices.interne.options.soap_version = SOAP_1_2
|
||||
webservices.entreprise.wsdl = "http://wse.scores-decisions.com:8081/entreprise/v0.7?wsdl"
|
||||
webservices.entreprise.options.soap_version = SOAP_1_2
|
||||
@ -35,7 +35,7 @@ webservices.pieces.wsdl = "http://wse.scores-decisions.com:8081/pieces/v0.1?wsdl
|
||||
webservices.pieces.options.soap_version = SOAP_1_2
|
||||
|
||||
[celeste]
|
||||
webservices.interne.wsdl = "http://wse.scores-decisions.com:8081/interne/v0.4?wsdl"
|
||||
webservices.interne.wsdl = "http://wse.scores-decisions.com:8081/interne/v0.5?wsdl"
|
||||
webservices.interne.options.soap_version = SOAP_1_2
|
||||
webservices.entreprise.wsdl = "http://wse.scores-decisions.com:8081/entreprise/v0.7?wsdl"
|
||||
webservices.entreprise.options.soap_version = SOAP_1_2
|
||||
@ -47,7 +47,7 @@ webservices.pieces.wsdl = "http://wse.scores-decisions.com:8081/pieces/v0.1?wsdl
|
||||
webservices.pieces.options.soap_version = SOAP_1_2
|
||||
|
||||
[celeste-staging]
|
||||
webservices.interne.wsdl = "http://wsrec.scores-decisions.com:8000/interne/v0.4?wsdl"
|
||||
webservices.interne.wsdl = "http://wsrec.scores-decisions.com:8000/interne/v0.5?wsdl"
|
||||
webservices.interne.options.soap_version = SOAP_1_2
|
||||
webservices.entreprise.wsdl = "http://wsrec.scores-decisions.com:8000/entreprise/v0.7?wsdl"
|
||||
webservices.entreprise.options.soap_version = SOAP_1_2
|
||||
|
@ -1487,50 +1487,100 @@ class SaisieController extends Zend_Controller_Action
|
||||
$siren = $request->getParam('siren');
|
||||
$mode = $request->getParam('mode');
|
||||
$type = $request->getParam('type');
|
||||
$idLien = $request->getParam('idLien', null);
|
||||
|
||||
$session = new SessionEntreprise($siren);
|
||||
$rs = $session->getRaisonSociale();
|
||||
|
||||
//Création de la première référence lien
|
||||
$ws = new WsScores();
|
||||
|
||||
$infos = array(
|
||||
'siren' => $siren,
|
||||
'actif' => 1,
|
||||
'PpPm' => 'PM',
|
||||
'RS' => $rs,
|
||||
'civilite' => '',
|
||||
'nom' => '',
|
||||
'prenom' => '',
|
||||
'naissance_nom' => '',
|
||||
'naissance_date' => '',
|
||||
'naissance_dept_pays' => '',
|
||||
'naissance_lieu' => '',
|
||||
'nat' => '',
|
||||
'adresse_num' => '',
|
||||
'adresse_btq' => '',
|
||||
'adresse_codvoie' => '',
|
||||
'adresse_libvoie' => '',
|
||||
'adresse_comp' => '',
|
||||
'adresse_cp' => '',
|
||||
'adresse_ville' => '',
|
||||
'adresse_pays' => '',
|
||||
'refDoc' => '',
|
||||
'dateSaisie' => date('YmdHis'),
|
||||
'capital' => '',
|
||||
'deviseCapital' => 'EUR',
|
||||
'nbActions' => '',
|
||||
'idLoc1Type' => '',
|
||||
'idLoc1Num' => '',
|
||||
'idLoc2Type' => '',
|
||||
'idLoc2Num' => '',
|
||||
'idLoc3Type' => '',
|
||||
'idLoc3Num' => '',
|
||||
$detention = array(
|
||||
'+' => 'Major.',
|
||||
'-' => 'Minor.',
|
||||
'C' => 'Contrôle',
|
||||
'S' => 'Solde',
|
||||
'F' => 'Fusion',
|
||||
'P' => 'Projet de fusion',
|
||||
);
|
||||
$this->view->assign('detention', $detention);
|
||||
|
||||
$idNewLien = $ws->setLienRef(json_encode($infos));
|
||||
if (is_int($idNewLien)) {
|
||||
$this->view->assign('id1', $idNewLien);
|
||||
|
||||
$ws = new WsScores();
|
||||
//Mode = delete
|
||||
/*
|
||||
id du lien pour récupérer les informations
|
||||
- rs1, siren1, rs2, siren2
|
||||
*/
|
||||
if ($mode == 'delete') {
|
||||
|
||||
|
||||
}
|
||||
//Mode = edit / add
|
||||
/*
|
||||
id du lien pour récupérer les informations
|
||||
- siren, rs actuel
|
||||
- Liste des documents de référence
|
||||
- Liste des types d'identifiant par pays sdv1.tabIdLocal
|
||||
*/
|
||||
elseif ($mode == 'edit') {
|
||||
|
||||
$result = $ws->getSaisieLien($idLien);
|
||||
$infos = json_decode($result, true);
|
||||
|
||||
Zend_Registry::get('firebug')->info($infos);
|
||||
|
||||
if ($type=='actionnaire') {
|
||||
$this->view->assign('id1', $infos['idPar']);
|
||||
$this->view->assign('id2', $infos['idAct']);
|
||||
} elseif (type=='participation') {
|
||||
$this->view->assign('id2', $infos['idPar']);
|
||||
$this->view->assign('id1', $infos['idAct']);
|
||||
}
|
||||
|
||||
$this->view->assign('PDetention', $infos['PDetention']);
|
||||
$this->view->assign('Pvote', $infos['Pvote']);
|
||||
$this->view->assign('MajMin', $infos['MajMin']);
|
||||
|
||||
} else {
|
||||
|
||||
//Création de la première référence lien
|
||||
$infos = array(
|
||||
'siren' => $siren,
|
||||
'actif' => 1,
|
||||
'PpPm' => 'PM',
|
||||
'RS' => $rs,
|
||||
'civilite' => '',
|
||||
'nom' => '',
|
||||
'prenom' => '',
|
||||
'naissance_nom' => '',
|
||||
'naissance_date' => '',
|
||||
'naissance_dept_pays' => '',
|
||||
'naissance_lieu' => '',
|
||||
'nat' => '',
|
||||
'adresse_num' => '',
|
||||
'adresse_btq' => '',
|
||||
'adresse_codvoie' => '',
|
||||
'adresse_libvoie' => '',
|
||||
'adresse_comp' => '',
|
||||
'adresse_cp' => '',
|
||||
'adresse_ville' => '',
|
||||
'adresse_pays' => '',
|
||||
'refDoc' => '',
|
||||
'dateSaisie' => date('YmdHis'),
|
||||
'capital' => '',
|
||||
'deviseCapital' => 'EUR',
|
||||
'nbActions' => '',
|
||||
'idLoc1Type' => '',
|
||||
'idLoc1Num' => '',
|
||||
'idLoc2Type' => '',
|
||||
'idLoc2Num' => '',
|
||||
'idLoc3Type' => '',
|
||||
'idLoc3Num' => '',
|
||||
);
|
||||
|
||||
$idNewLien = $ws->setLienRef(json_encode($infos));
|
||||
if (is_int($idNewLien)) {
|
||||
$this->view->assign('id1', $idNewLien);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Affichage
|
||||
@ -1538,28 +1588,8 @@ class SaisieController extends Zend_Controller_Action
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('mode', $mode);
|
||||
$this->view->assign('type', $type);
|
||||
|
||||
$idLien = $request->getParam('id', null);
|
||||
$this->view->assign('idLien', $idLien);
|
||||
|
||||
|
||||
|
||||
//Mode = delete
|
||||
/*
|
||||
id du lien pour récupérer les informations
|
||||
- rs1, siren1, rs2, siren2
|
||||
|
||||
*/
|
||||
|
||||
//Mode = edit / add
|
||||
/*
|
||||
id du lien pour récupérer les informations
|
||||
- siren, rs actuel
|
||||
- Liste des documents de référence
|
||||
- Liste des types d'identifiant par pays sdv1.tabIdLocal
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function liensearchAction()
|
||||
@ -1589,7 +1619,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
public function lienetrangerAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
ksort($this->selectPays);
|
||||
asort($this->selectPays);
|
||||
$this->view->assign('countries', $this->selectPays);
|
||||
}
|
||||
|
||||
@ -1607,8 +1637,6 @@ class SaisieController extends Zend_Controller_Action
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$params = $this->getRequest()->getParams();
|
||||
|
||||
Zend_Registry::get('firebug')->info($params);
|
||||
|
||||
//Construct reference informations
|
||||
|
||||
@ -1623,7 +1651,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
$params['civilite'] = '';
|
||||
$params['nom'] = '';
|
||||
$params['prenom'] = '';
|
||||
$params['naissance_nom'] = '';
|
||||
$params['nom_usage'] = '';
|
||||
$params['naissance_date'] = '';
|
||||
$params['naissance_dept_pays'] = '';
|
||||
$params['naissance_lieu'] = '';
|
||||
@ -1642,7 +1670,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
$params['civilite'] = '';
|
||||
$params['nom'] = '';
|
||||
$params['prenom'] = '';
|
||||
$params['naissance_nom'] = '';
|
||||
$params['nom_usage'] = '';
|
||||
$params['naissance_date'] = '';
|
||||
$params['naissance_dept_pays'] = '';
|
||||
$params['naissance_lieu'] = '';
|
||||
@ -1657,23 +1685,24 @@ class SaisieController extends Zend_Controller_Action
|
||||
'civilite' => $params['civilite'],
|
||||
'nom' => $params['nom'],
|
||||
'prenom' => $params['prenom'],
|
||||
'naissance_nom' => $params['naissance_nom'],
|
||||
'nom_usage' => $params['nom_usage'],
|
||||
'naissance_date' => $params['naissance_date'],
|
||||
'naissance_dept_pays' => $params['naissance_dept_pays'],
|
||||
'naissance_lieu' => $params['naissance_lieu'],
|
||||
'nat' => $params['nat'],
|
||||
'adresse_num' => $params['adresse_num'],
|
||||
'adresse_btq' => $params['adresse_btq'],
|
||||
'adresse_codvoie' => $params['adresse_codvoie'],
|
||||
'adresse_libvoie' => $params['adresse_libvoie'],
|
||||
'adresse_comp' => $params['adresse_comp'],
|
||||
'adresse_cp' => $params['adresse_cp'],
|
||||
'adresse_ville' => $params['adresse_ville'],
|
||||
'adresse_pays' => $params['adresse_pays'],
|
||||
'refDoc' => $params['refDoc'],
|
||||
'adresse_num' => empty($params['adresse_num']) ? '' : $params['adresse_num'],
|
||||
'adresse_btq' => empty($params['adresse_btq']) ? '' : $params['adresse_btq'],
|
||||
'adresse_codvoie' => empty($params['adresse_codvoie']) ? '' : $params['adresse_codvoie'],
|
||||
'adresse_libvoie' => empty($params['adresse_libvoie']) ? '' : $params['adresse_libvoie'],
|
||||
'adresse_comp' => empty($params['adresse_comp']) ? '' : $params['adresse_comp'],
|
||||
'adresse_cp' => empty($params['adresse_cp']) ? '' : $params['adresse_cp'],
|
||||
'adresse_ville' => empty($params['adresse_ville']) ? '' : $params['adresse_ville'],
|
||||
'adresse_pays' => empty($params['adresse_pays']) ? '' : $params['adresse_pays'],
|
||||
'refDoc' => empty($params['refDoc']) ? '' : $params['refDoc'],
|
||||
'dateSaisie' => date('YmdHis'),
|
||||
'capital' => $params['capital'],
|
||||
'deviseCapital' => 'EUR',
|
||||
'dateCapital' => empty($params['dateCapital']) ? '' : WDate::dateT('d/m/Y', 'Ymd', $params['dateCapital']),
|
||||
'nbActions' => $params['nbActions'],
|
||||
'idLoc1Type' => $params['idLoc1Type'],
|
||||
'idLoc1Num' => $params['idLoc1Num'],
|
||||
@ -1681,8 +1710,16 @@ class SaisieController extends Zend_Controller_Action
|
||||
'idLoc2Num' => $params['idLoc2Num'],
|
||||
'idLoc3Type' => $params['idLoc3Type'],
|
||||
'idLoc3Num' => $params['idLoc3Num'],
|
||||
'bilMillesime' => $params['bilMillesime'],
|
||||
'bilDev' => 'EUR',
|
||||
'bilFL' => $params['bilFL'],
|
||||
'bilHN' => $params['bilHN'],
|
||||
'bilFPr' => $params['bilFPr'],
|
||||
'bilEE' => $params['bilEE'],
|
||||
);
|
||||
|
||||
Zend_Registry::get('firebug')->info($params);
|
||||
|
||||
$ws = new WsScores();
|
||||
$idNewLien = $ws->setLienRef(json_encode($infos), $params['idLien']);
|
||||
|
||||
@ -1704,27 +1741,44 @@ class SaisieController extends Zend_Controller_Action
|
||||
|
||||
$params = $this->getRequest()->getParams();
|
||||
|
||||
if ($params['type']=='actionnaire') {
|
||||
$idAct = $params['id2'];
|
||||
$idPar = $params['id1'];
|
||||
} elseif ($params['type']=='participation') {
|
||||
$idPar = $params['id2'];
|
||||
$idAct = $params['id1'];
|
||||
}
|
||||
|
||||
$infos = array(
|
||||
'id1' => '',
|
||||
'id2' => '',
|
||||
'actif' => 1,
|
||||
'ActionPart' => $params['ActionPart'],
|
||||
'Pmin' => '',
|
||||
'Pmax' => '',
|
||||
'MajMin' => '',
|
||||
'id2' => '',
|
||||
'dateLien' => '',
|
||||
'dateInsert' => '',
|
||||
'idAct' => $idAct,
|
||||
'PDetention' => $params['PDetention'],
|
||||
'Pvote' => $params['Pvote'],
|
||||
'MajMin' => $params['MajMin'],
|
||||
'idPar' => $idPar,
|
||||
'dateEffetLien' => empty($params['dateEffetLien']) ? date('Ymd') : $params['dateEffetLien'],
|
||||
'docRef' => empty($params['docRef']) ? '' : $params['docRef'],
|
||||
'dateDocRef' => empty($params['dateDocRef']) ? '' : $params['dateDocRef'],
|
||||
);
|
||||
|
||||
Zend_Registry::get('firebug')->info($infos);
|
||||
|
||||
$ws = new WsScores();
|
||||
//$idNewLien = $ws->setLien(json_encode($infos), $params['idLien']);
|
||||
$idNewLien = $ws->setLien(json_encode($infos), $params['idLien']);
|
||||
if (is_int($idNewLien)){
|
||||
$this->view->assign('result', array('id'=>$idNewLien, 'error'=>''));
|
||||
} else {
|
||||
$this->view->assign('result', array('id'=>0, 'error'=>$idNewLien));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function countryidAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
$code = $request->getParam('code');
|
||||
$ws = new WsScores();
|
||||
$result = $ws->getCountryId($code);
|
||||
$this->view->assign('identifiant', $result->item);
|
||||
}
|
||||
|
||||
}
|
@ -75,13 +75,13 @@
|
||||
<?php if ($this->edition) {?>
|
||||
<?php if ($part == 'actionnaires') {?>
|
||||
<td>
|
||||
<a class="dialog" title="Modifier actionnaire" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'actionnaire','mode'=>'edit','siren'=>$this->siren,'id'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
|
||||
<a class="dialog" title="Supprimer actionnaire" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'actionnaire','mode'=>'delete','siren'=>$this->siren,'id'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
|
||||
<a class="dialog" title="Modifier actionnaire" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'actionnaire','mode'=>'edit','siren'=>$this->siren,'idLien'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
|
||||
<a class="dialog" title="Supprimer actionnaire" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'actionnaire','mode'=>'delete','siren'=>$this->siren,'idLien'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
|
||||
</td>
|
||||
<?php } else {?>
|
||||
<td>
|
||||
<a class="dialog" title="Modifier participation" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'participation','mode'=>'edit','siren'=>$this->siren,'id'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
|
||||
<a class="dialog" title="Supprimer participation" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'participation','mode'=>'delete','id'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
|
||||
<a class="dialog" title="Modifier participation" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'participation','mode'=>'edit','siren'=>$this->siren,'idLien'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
|
||||
<a class="dialog" title="Supprimer participation" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'participation','mode'=>'delete','idLien'=>$lien->id), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
|
||||
</td>
|
||||
<?php }?>
|
||||
|
||||
@ -150,8 +150,13 @@ $('a.dialog').on('click', function(){
|
||||
if ($('input[name=id1]').length>0 || $('input[name=id2]').length>0) {
|
||||
var form = $('form[name=lien]');
|
||||
$.post(form.attr('action'), form.serialize(), function(data){
|
||||
|
||||
});
|
||||
if(data.error==''){
|
||||
//Remove button
|
||||
$('form[name=lien]').replaceWith('<b>Lien créé id = '+data.id+'</b>');
|
||||
} else {
|
||||
$('form[name=lien]').replaceWith(data.error);
|
||||
}
|
||||
}, 'json').error(function(){ alert('Unknow error'); });
|
||||
} else {
|
||||
alert("Quelque chose manque !");
|
||||
}
|
||||
|
1
application/views/default/scripts/saisie/countryid.phtml
Normal file
1
application/views/default/scripts/saisie/countryid.phtml
Normal file
@ -0,0 +1 @@
|
||||
<?=json_encode($this->identifiant);
|
@ -26,20 +26,12 @@ div#etranger { display:none; }
|
||||
.ui-widget-content a {color:blue; text-decoration:underline;}
|
||||
</style>
|
||||
|
||||
<form name="lien" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'liensave'),null, true)?>" method="post">
|
||||
<input type="hidden" name="idLien" value="<?=$this->idLien?>" />
|
||||
<input type="hidden" name="id1" value="<?=$this->id1?>" />
|
||||
|
||||
<?php if ($this->type=='actionnaire') {?>
|
||||
|
||||
<?php if ( $this->mode == 'add' ) { ?>
|
||||
|
||||
<?php if ( $this->mode == 'add' ) {?>
|
||||
<div class="fieldgrp">Saisie d'un actionnaire pour la société <?=$this->rs?> (<?=$this->siren?>)</div>
|
||||
<?=$this->render('saisie/lienfiche.phtml')?>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<?php if ($this->mode == 'edit') {?>
|
||||
<?php } elseif ($this->mode == 'edit') {?>
|
||||
<div class="fieldgrp">Modification d'un actionnaire pour la société <?=$this->rs?> (<?=$this->siren?>)</div>
|
||||
<?php } else {?>
|
||||
<div class="fieldgrp">
|
||||
@ -48,33 +40,31 @@ div#etranger { display:none; }
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<form name="lien" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'liensave'),null, true)?>" method="post">
|
||||
<input type="hidden" name="idLien" value="<?=$this->idLien?>" />
|
||||
<input type="hidden" name="id1" value="<?=$this->id1?>" />
|
||||
|
||||
<?php if ($this->mode=='edit' || $this->mode=='delete') {?>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Document de référence :</label>
|
||||
<div class="field">
|
||||
<select name=""><option>-</option></select>
|
||||
<select name="refDoc"><option value="">-</option></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Date du document ou date de cloture l'exercice :</label>
|
||||
<div class="field">
|
||||
<input type="text" name="" value="" /> (JJ/MM/AAAAA)
|
||||
<input type="text" name="dateSaisie" value="<?=$this->dateSaisie?>" /> (JJ/MM/AAAAA)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Date du changement :</label>
|
||||
<div class="field">
|
||||
<input type="text" name="" value="" /> (JJ/MM/AAAAA)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Motif du changement :</label>
|
||||
<div class="field">
|
||||
<select name="">
|
||||
<option>-</option>
|
||||
<option value="">-</option>
|
||||
<option>Fusion</option>
|
||||
<option>Cession de parts</option>
|
||||
<option>Acte SSP</option>
|
||||
@ -89,51 +79,41 @@ div#etranger { display:none; }
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->mode=='add' || $this->mode=='edit') {?>
|
||||
|
||||
<fieldset>
|
||||
<legend>Liens</legend>
|
||||
|
||||
<input type="hidden" name="ActionPart" value="1" />
|
||||
<input type="hidden" name="type" value="actionnaire" />
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Pourcentage</label>
|
||||
<div class="field">
|
||||
<input type="text" name="Pmin" value="" size="3"/> %
|
||||
<input type="text" name="PDetention" value="<?=$this->PDetention?>" size="3"/> %
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Détention</label>
|
||||
<div class="field">
|
||||
<input type="radio"/>Major.
|
||||
<input type="radio"/>Minor.
|
||||
<select name="MajMin">
|
||||
<?php foreach( $this->detention as $val => $lib ) {?>
|
||||
<?php $select = ''; if ($val==$this->MajMin) { $select = ' selected'; }?>
|
||||
<option value="<?=$val?>"<?=$select?>><?=$lib?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Droit de vote</label>
|
||||
<div class="field">
|
||||
<input type="text"/> %
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nombre d'actions</label>
|
||||
<div class="field">
|
||||
<input type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Montant détenu</label>
|
||||
<div class="field">
|
||||
<input type="text"/> euros
|
||||
<input type="text" name="Pvote" value="<?=$this->Pvote?>"/> %
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<?php }?>
|
||||
|
||||
</form>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->type=='participation') {?>
|
||||
@ -141,10 +121,11 @@ div#etranger { display:none; }
|
||||
<?php if ( $this->mode == 'add' ) { ?>
|
||||
|
||||
<div class="fieldgrp">Saisie d'une participation pour la société <?=$this->rs?> (<?=$this->siren?>)</div>
|
||||
|
||||
<?=$this->render('saisie/lienfiche.phtml')?>
|
||||
|
||||
<?php } else {?>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->mode=='edit' || $this->mode=='delete') {?>
|
||||
|
||||
<?php if ($this->mode == 'edit') {?>
|
||||
<div class="fieldgrp">Modification d'une participation pour la société <?=$this->rs?> (<?=$this->siren?>)</div>
|
||||
@ -156,49 +137,45 @@ div#etranger { display:none; }
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
|
||||
<?php if ($this->mode=='add' || $this->mode=='edit') {?>
|
||||
<form name="lien" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'liensave'),null, true)?>" method="post">
|
||||
<input type="hidden" name="idLien" value="<?=$this->idLien?>" />
|
||||
<input type="hidden" name="id1" value="<?=$this->id1?>" />
|
||||
|
||||
<fieldset>
|
||||
<legend>Liens</legend>
|
||||
|
||||
<input type="hidden" name="ActionPart" value="2" />
|
||||
<input type="hidden" name="type" value="participation" />
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Pourcentage</label>
|
||||
<div class="field">
|
||||
<input type="text" name="Pmin" value="" size="3"/> %
|
||||
<input type="text" name="PDetention" value="<?=$this->PDetention?>" size="3"/> %
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Détention</label>
|
||||
<div class="field">
|
||||
<input type="radio"/>Major.
|
||||
<input type="radio"/>Minor.
|
||||
<select name="MajMin">
|
||||
<?php foreach( $this->detention as $val => $lib ) {?>
|
||||
<?php $select = ''; if ($val==$this->MajMin) { $select = ' selected'; }?>
|
||||
<option value="<?=$val?>"<?=$select?>><?=$lib?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Droit de vote</label>
|
||||
<div class="field">
|
||||
<input type="text" /> %
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nombre d'actions</label>
|
||||
<div class="field">
|
||||
<input type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Montant détenu</label>
|
||||
<div class="field">
|
||||
<input type="text"/> euros
|
||||
<input type="text" name="Pvote" value="<?=$this->Pvote?>"/> %
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
@ -209,4 +186,4 @@ Erreur.
|
||||
|
||||
<?php }?>
|
||||
|
||||
</form>
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<div class="fieldgrp">
|
||||
<label>Pays</label>
|
||||
<div class="field">
|
||||
<select>
|
||||
<option>-</option>
|
||||
<select name="adresse_pays">
|
||||
<option value="">-</option>
|
||||
<?php foreach($this->countries as $code => $lib) {?>
|
||||
<option value="<?=$code?>"><?=$lib?></option>
|
||||
<?php }?>
|
||||
@ -10,14 +10,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Identifiant local</label>
|
||||
<div class="field">
|
||||
<input type="text"/> <select></select> <a href="#">[+]</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="blocIdLocal"></div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse</label>
|
||||
@ -39,14 +32,41 @@
|
||||
<div class="fieldgrp">
|
||||
<label>CP</label>
|
||||
<div class="field">
|
||||
<input type="text"/>
|
||||
<input type="text" name="adresse_cp"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Ville</label>
|
||||
<div class="field">
|
||||
<input type="text"/>
|
||||
<input type="text" name="adresse_ville"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('select[name=adresse_pays]').change(function(e){
|
||||
AddSelectCountry($(this).val());
|
||||
});
|
||||
|
||||
$('div#blocIdLocal').on('click', 'a.addIdLocal', function(e){
|
||||
e.preventDefault();
|
||||
var country = $('select[name=adresse_pays]').val();
|
||||
AddSelectCountry(country, $(this).attr('href'));
|
||||
});
|
||||
|
||||
function AddSelectCountry(code, n){
|
||||
if (!n) { n=1; }
|
||||
var html = '';
|
||||
$.getJSON('/saisie/countryid', {code: code}, function(data){
|
||||
var option = '';
|
||||
$.each(data, function(i, item){
|
||||
option = option + '<option value="'+item.internalId+'">'+item.name+'</option>';
|
||||
});
|
||||
if (option!=''){
|
||||
html = '<div class="fieldgrp"><label>Identifiant local</label>'+
|
||||
'<div class="field"><input type="text" name="idLoc'+n+'Num"/>'+
|
||||
'<select name="idLoc'+n+'Type">'+option+'</select><a href="'+n+'" class="addIdLocal">[+]</a></div></div>';
|
||||
}
|
||||
$('div#blocIdLocal').append(html);
|
||||
});
|
||||
}
|
||||
</script>
|
@ -19,7 +19,7 @@
|
||||
<div class="fieldgrp">
|
||||
<label>Siren</label>
|
||||
<div class="field">
|
||||
<input type="text" name="siren"/> <a href="#">Obtention Raison Sociale</a>
|
||||
<input type="text" name="siren"/> <a id="infors" href="#">Obtention Raison Sociale</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -39,21 +39,21 @@
|
||||
<div class="fieldgrp">
|
||||
<label>au capital de</label>
|
||||
<div class="field">
|
||||
<input type="text" name="capital" /> euros, en date du <input type="text" value="undefined"/>
|
||||
<input type="text" name="capital" /> euros, en date du <input type="text" name="dateCapital" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>découpé en</label>
|
||||
<div class="field">
|
||||
<input type="text" name="nbActions" /> action(s) de <input type="text" value="undefined"/> euros nominale
|
||||
<input type="text" name="nbActions" value="" /> action(s), en date du <input type="text" name="dateNbActions" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Document de référence :</label>
|
||||
<div class="field">
|
||||
<select><option>-</option></select> en date du <input type="text"/>
|
||||
<select><option value="">-</option></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -66,28 +66,28 @@
|
||||
<div class="fieldgrp">
|
||||
<label>Chiffre d'affaires</label>
|
||||
<div class="field">
|
||||
<input type="text"/> euros
|
||||
<input type="text" name="bilFL"/> euros
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Résultat Net</label>
|
||||
<div class="field">
|
||||
<input type="text"/> euros
|
||||
<input type="text" name="bilHN"/> euros
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Fonds Propres</label>
|
||||
<div class="field">
|
||||
<input type="text"/> euros
|
||||
<input type="text" name="bilFPr"/> euros
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Total Bilan</label>
|
||||
<div class="field">
|
||||
<input type="text"/> euros
|
||||
<input type="text" name="bilEE"/> euros
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -112,16 +112,18 @@ $('input.autocomplete').autocomplete({
|
||||
);
|
||||
},
|
||||
select: function(event, ui) {
|
||||
$('div#searchFiche').replaceWith('<b>Fiche sélectionné id = '+ui.item.value+'.</b><input type="hidden" name="id2" value="'+ui.item.value+'"/>');
|
||||
$('form[name=lien]').prepend('<input type="hidden" name="id2" value="'+ui.item.value+'"/>');
|
||||
$('div#searchFiche').replaceWith('<b>Fiche créée id = '+ui.item.value+'</b>');
|
||||
}
|
||||
});
|
||||
|
||||
$('form[name=saveLienRef]').submit(function(e){
|
||||
e.preventDefault();
|
||||
var form = $(this);
|
||||
$.post(form.attr('action'), form.serialize(), function(data){
|
||||
alert(data.id);
|
||||
if(data.error==''){
|
||||
$('div#searchFiche').replaceWith('<b>Fiche créée id = '+data.id+'</b><input type="hidden" name="id2" value="'+data.id+'"/>');
|
||||
$('form[name=lien]').prepend('<input type="hidden" name="id2" value="'+data.id+'"/>');
|
||||
$('div#searchFiche').replaceWith('<b>Fiche créée id = '+data.id+'</b>');
|
||||
} else {
|
||||
$('div#searchFiche').replaceWith(data.error);
|
||||
}
|
||||
@ -146,6 +148,21 @@ $('a.lienRef').click(function(e){
|
||||
$('div#lienRef').load(url);
|
||||
|
||||
});
|
||||
|
||||
$('a#infors').click(function(e){
|
||||
e.preventDefault();
|
||||
alert('OK');
|
||||
var siren = $('form[name=saveLienRef] input[name=siren]').val();
|
||||
if(siren.length==9) {
|
||||
$.post('/dashboard/rs', {siren: siren }, function success(data) {
|
||||
$('form[name=saveLienRef] input[name=nom]').val(data);
|
||||
});
|
||||
} else {
|
||||
alert('Siren faux!');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</div>
|
@ -3,7 +3,7 @@
|
||||
<div class="fieldgrp">
|
||||
<label>Nom d'usage</label>
|
||||
<div class="field">
|
||||
<input type="text" name="naissance_nom"/>
|
||||
<input type="text" name="nom_usage"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -1 +1 @@
|
||||
<?php
|
||||
<?=json_encode($this->result)?>
|
||||
|
@ -138,7 +138,25 @@ class WsScores
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getSaisieLien($id)
|
||||
{
|
||||
$params = new stdClass();
|
||||
$params->id = $id;
|
||||
$client = $this->loadClient('saisie');
|
||||
try {
|
||||
$reponse = $client->getLien($params);
|
||||
return $reponse->getLienResult;
|
||||
} catch (SoapFault $fault) {
|
||||
Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring);
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function setLien($infos, $id = null)
|
||||
@ -159,7 +177,6 @@ class WsScores
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function setLienRef($infos, $id = null)
|
||||
|
Loading…
Reference in New Issue
Block a user