SD-35
This commit is contained in:
parent
a04ea0844d
commit
c531173db2
@ -477,7 +477,7 @@ class JuridiqueController extends Zend_Controller_Action
|
||||
$this->view->assign('message', $infos);
|
||||
}
|
||||
|
||||
$objAnnonces = $infos->result->item;
|
||||
$objAnnonces = isset($infos->result->item)?$infos->result->item:null;
|
||||
$annonces = array();
|
||||
if (count($objAnnonces)>0) {
|
||||
foreach ( $objAnnonces as $item ) {
|
||||
|
@ -493,7 +493,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
$this->view->assign('ListeTribunaux', $listeTribunaux);
|
||||
/**
|
||||
* table des événements en dur
|
||||
* @todo verifier si liste à jour
|
||||
* @todo verifier si liste à jour derniere maj : ?
|
||||
*/
|
||||
$selectEvent = array(
|
||||
'1100', '1101' , '1200', '1201', '1300', '1301', '1302', '1303', '1304', '1305', '1306',
|
||||
@ -2415,6 +2415,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
else {
|
||||
|
||||
if ( $request->isPost() ) {
|
||||
$message='';
|
||||
// check values one more time
|
||||
$paramlist = array(
|
||||
'siren' => 'Siren',
|
||||
@ -2434,7 +2435,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
// end checking values
|
||||
|
||||
if(!isset($params['delete'])) $params['delete']=false;
|
||||
if ( $message == '' ) {
|
||||
$message = $ws->setScoreCutoff(
|
||||
$params['siren'],
|
||||
@ -2922,6 +2923,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
$ws = new Scores_Ws_Client('saisie', '0.2');
|
||||
$result = $ws->getRib($params);
|
||||
}
|
||||
$this->view->assign('oldvals', json_encode($result));
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('mode', $mode);
|
||||
$this->view->assign('banques', $result);
|
||||
@ -2943,6 +2945,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
'numCompte' => str_replace(' ', '',$request->getParam('num_compte')),
|
||||
'bic' => str_replace(' ', '',$request->getParam('bic_swift')),
|
||||
'iban' => str_replace(' ', '',$request->getParam('iban')),
|
||||
'oldvals' => $request->getParam('oldvals'),
|
||||
'mode' => $request->getParam('mode'),
|
||||
);
|
||||
$params->infos=json_encode($values);
|
||||
@ -2957,33 +2960,6 @@ class SaisieController extends Zend_Controller_Action
|
||||
die;
|
||||
}
|
||||
|
||||
public function testwsAction(){
|
||||
$c = Zend_Registry::get('config');
|
||||
$wsdl = 'http://webservice.sd.dev/saisie/v0.2?wsdl-auto';
|
||||
$options = array( '0.2' => array(
|
||||
'setRib' => array(
|
||||
'debug' => true,
|
||||
'log' => 'mail',
|
||||
),
|
||||
),
|
||||
);
|
||||
$options['features'] = SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS;
|
||||
$options['compression'] = SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE;
|
||||
$options['login'] = 'cdelbos';
|
||||
$options['password'] = 'coucou';
|
||||
if (APPLICATION_ENV == 'development'){
|
||||
$options['cache_wsdl'] = WSDL_CACHE_NONE;
|
||||
}
|
||||
$options['trace'] = true;
|
||||
$options['encoding'] = 'utf-8';
|
||||
$client = false;
|
||||
$client = new SoapClient($wsdl, $options);
|
||||
$params = new stdClass();
|
||||
$params->infos=json_encode(array('siren' => '809613144','mode' => 'add', 'codeBanque' => '20041'));
|
||||
$reponse = $client->setRib($params);
|
||||
var_dump($reponse);die;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div id="center">
|
||||
<?php if ($message!='') { ?>
|
||||
<?php if (isset($message) && $message!='') { ?>
|
||||
<div style="margin:5px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<?=$message?></p>
|
||||
|
@ -26,17 +26,17 @@ if ( $this->saisie['source']=='JT' ){ $select = 'selected'; }
|
||||
|
||||
<div id="dateParution">
|
||||
<label>Date de parution <font color="Red">*</font></label>
|
||||
<input class="date" type="text" name="jugement[dateParution]" size="10" maxlength="10" value="<?=$this->saisie['dateParution']?>" />
|
||||
<input class="date" type="text" name="jugement[dateParution]" size="10" maxlength="10" value="<?=isset($this->saisie['dateParution'])?$this->saisie['dateParution']:''?>" />
|
||||
<span class="left">(Format JJ/MM/AAAA)</span>
|
||||
</div>
|
||||
|
||||
<div id="numParution">
|
||||
<label>N° de parution</label>
|
||||
<input type="text" name="jugement[numParution]" size="10" maxlength="10" value="<?=$this->saisie['numParution']?>" />
|
||||
<input type="text" name="jugement[numParution]" size="10" maxlength="10" value="<?=isset($this->saisie['numParution'])?$this->saisie['numParution']:''?>" />
|
||||
</div>
|
||||
|
||||
<label>Date évènement / jugement<font color="Red">*</font></label>
|
||||
<input class="date" type="text" name="jugement[dateJuge]" size="10" maxlength="10" value="<?=$this->saisie['dateJugement']?>" />
|
||||
<input class="date" type="text" name="jugement[dateJuge]" size="10" maxlength="10" value="<?=isset($this->saisie['dateJugement'])?$this->saisie['dateJugement']:''?>" />
|
||||
<span class="left">(Format JJ/MM/AAAA)</span>
|
||||
|
||||
<label>Tribunal <font color="Red">*</font></label>
|
||||
|
@ -16,6 +16,7 @@ $lbanque = (array)json_decode($this->banques);
|
||||
<form name="saveRiban" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'ribansave'),null, true)?>" method="post">
|
||||
<input type="hidden" name="mode" value="<?=$this->mode?>" />
|
||||
<input type="hidden" name="siren" value="<?=$this->siren?>" />
|
||||
<input type="hidden" name="oldvals value="<?=$this->oldvals?>" />
|
||||
<?php if($this->mode == 'add' || $this->mode == 'edit'){?>
|
||||
<div class="fieldgrp">
|
||||
<label>Siren</label>
|
||||
@ -163,8 +164,8 @@ $('#dialog').dialog({ buttons: [
|
||||
var form = $('form[name=saveRiban]');
|
||||
$.post(form.attr('action'), form.serialize(), function(data){
|
||||
form.replaceWith(data);
|
||||
}).done(function(data){ alert(data);
|
||||
}).fail(function(){ alert('Unknow error'); });
|
||||
}).done(function(data){ $('.ui-dialog-buttonset').hide();
|
||||
}).fail(function(){ });
|
||||
} },
|
||||
{ text: "Annuler", click: function() { $(this).dialog("close"); } }
|
||||
] });
|
||||
|
@ -255,7 +255,7 @@ class Annonces
|
||||
} else {
|
||||
$tabSource = explode('-', $ann->BodaccCode);
|
||||
$source = $tabSource[0];
|
||||
$idSource = $tabSource[1];
|
||||
$idSource = isset($tabSource[1])?$tabSource[1]:null;
|
||||
if ($source[0] == 'B') {
|
||||
$title = 'Source BODACC ' . $ann->BodaccNum . ' ' .
|
||||
substr($source,-1) . ' ' .
|
||||
@ -316,7 +316,7 @@ class Annonces
|
||||
$lib.= $even->LibEven;
|
||||
$tabSource = explode('-', $ann->BodaccCode);
|
||||
$source = $tabSource[0];
|
||||
$idSource = $tabSource[1];
|
||||
$idSource = isset($tabSource[1])?$tabSource[1]:null;
|
||||
$numEven = $even->CodeEven*1;
|
||||
if ($numEven>3000 && $numEven<3999) {
|
||||
if (isset($ann->dateEffet)){
|
||||
|
Loading…
Reference in New Issue
Block a user