Issue #0001889: [IndiScore] indiscorehistoAction avec sa vue et les éléments de l'impression
This commit is contained in:
parent
8a4a358174
commit
af093374f7
@ -89,6 +89,36 @@ class EvaluationController extends Zend_Controller_Action
|
||||
fwrite($fChart, $c->makeChart2('png'));
|
||||
fclose($fChart);
|
||||
}
|
||||
|
||||
public function indiscorehistoAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
$ws = new WsScores();
|
||||
|
||||
$this->view->headTitle()->prepend('Historique indiScore');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
|
||||
$histoScores = $ws->getScoresHisto($this->siret, 'indiscore');
|
||||
$infos = $ws->getIdentiteLight($this->siret);
|
||||
|
||||
if ($histoScores->nbReponses>1)
|
||||
{
|
||||
foreach($histoScores->result->item as $score)
|
||||
{
|
||||
$scoreVals[] = $score->value;
|
||||
}
|
||||
|
||||
$this->scoresHistoChart($scoreVals, substr($this->siret, 0,9), $histoScores->type);
|
||||
|
||||
$this->view->assign('scores', $histoScores->result->item);
|
||||
$this->view->assign('type', $histoScores->type);
|
||||
}
|
||||
|
||||
$this->view->assign('infos', $infos);
|
||||
$this->view->assign('typeScore', $user->getTypeScore());
|
||||
$this->view->assign('AutrePage', $autrePage);
|
||||
$this->view->assign('exportObjet', $histoScores);
|
||||
}
|
||||
|
||||
/**
|
||||
* IndiScore
|
||||
@ -122,42 +152,6 @@ class EvaluationController extends Zend_Controller_Action
|
||||
} else {
|
||||
$infos = $this->getRequest()->getParam('infos');
|
||||
}
|
||||
|
||||
$histoScores = $ws->getScoresHisto($this->siret, 'indiscore');
|
||||
|
||||
if ($histoScores->nbReponses>1)
|
||||
{
|
||||
foreach($histoScores->result as $score)
|
||||
{
|
||||
$scoreVals[] = $score->value;
|
||||
}
|
||||
|
||||
$source = array(
|
||||
'ajout' => $this->view->translate(''),
|
||||
'ancien' => $this->view->translate(''),
|
||||
'bilans1' => $this->view->translate('publication bilan'),
|
||||
'bilans2' => $this->view->translate('publication bilan'),
|
||||
'bilansasso'=> $this->view->translate(''),
|
||||
'bodacc' => $this->view->translate('publication bodacc'),
|
||||
'collecte' => $this->view->translate('publication légale'),
|
||||
'dirigeants'=> $this->view->translate('modification de l\'administration'),
|
||||
'impayes' => $this->view->translate(''),
|
||||
'insee' => $this->view->translate('modification identitaire'),
|
||||
'jour' => $this->view->translate(''),
|
||||
'liens' => $this->view->translate('mise à jour de la structure du groupe'),
|
||||
'modifenc' => $this->view->translate(''),
|
||||
'privileges'=> $this->view->translate(''),
|
||||
'regulier' => $this->view->translate('modification identitaire'),
|
||||
'rncs' => $this->view->translate('')
|
||||
);
|
||||
|
||||
$this->scoresHistoChart($scoreVals, substr($this->siret, 0,9), $histoScores->type);
|
||||
|
||||
$this->view->assign('source', $source);
|
||||
$this->view->assign('scores', $histoScores->result);
|
||||
$this->view->assign('type', $histoScores->type);
|
||||
}
|
||||
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('typeScore', $user->getTypeScore());
|
||||
$this->view->assign('indiscore', $infos);
|
||||
|
@ -33,10 +33,17 @@
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"> </td>
|
||||
<td width="350" class="StyleInfoData" style="text-align: right;">
|
||||
<a href=<?=$this->url(array('controller'=>'evaluation', 'action'=>'indiscorehisto', 'siret' => $this->siret)); ?>>
|
||||
<?=$this->translate('Consulter l\'historique des IndiScore');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<h2>Dénomination sociale & coordonnées</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
@ -235,30 +242,6 @@ if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2><?=$this->translate('Historique des scores');?></h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<?php if($this->scores) {?>
|
||||
<td class="StyleInfoData">
|
||||
<ol>
|
||||
<?php foreach($this->scores as $score){?>
|
||||
<?php $date = new Zend_Date($score->date, 'yyyy-MM-dd');?>
|
||||
<?php $motif = ($score->motif!='' && $this->source[$score->motif]!='')?" (".$this->source[$score->motif].")":'';?>
|
||||
<li style="margin: 0px; padding: 3px;"><?=$date->toString('dd/MM/yyyy').' - '.$score->value.$motif?></li>
|
||||
<?php }?>
|
||||
</ol>
|
||||
<img src="/themes/default/images/charts/scoresHisto-<?=substr($this->siret, 0,9);?>-<?=$this->type;?>.png" />
|
||||
</td>
|
||||
<?php } else {?>
|
||||
<td class="StyleInfoData"><?=$this->translate('Aucune information sur l\'historique disponible.');?></td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<h2>Conclusion</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
|
@ -0,0 +1,56 @@
|
||||
<div id="center">
|
||||
|
||||
<h1><?=$this->translate('HISTORIQUE INDISCORE')?></h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate('Numéro identifiant Siren')?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->infos->Siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate('Dénomination sociale')?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->infos->Nom?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2><?=$this->translate('Historique des scores');?></h2>
|
||||
<div class="paragraph">
|
||||
<?php if($this->scores) {?>
|
||||
<style>
|
||||
.indiScore td{padding: 3px; text-align: center;}
|
||||
.indiScore tr:nth-child(even) {background-color: #FCFCFC;}
|
||||
.indiScore tr:nth-child(odd) {background-color: #F2F2F2;}
|
||||
.indiScore tr:nth-child(1) {color: #444; background-color: #bfbfcc; text-align: center; font-weight: bold;}
|
||||
.indiScore td.txt {text-align: left; padding-left: 30px;}
|
||||
</style>
|
||||
<table class="indiScore" align="center" style="width: 440px;">
|
||||
<tr>
|
||||
<td width="20px"><?=$this->translate('No'); ?></td>
|
||||
<td width="80px"><?=$this->translate('Date'); ?></td>
|
||||
<td width="80px"><?=$this->translate('IndiScore'); ?></td>
|
||||
<td><?=$this->translate('Motif de changement'); ?></td>
|
||||
</tr>
|
||||
<?php foreach($this->scores as $score){?>
|
||||
<tr>
|
||||
<td class="StyleInfoData"><?=++$count; ?></td>
|
||||
<td class="StyleInfoData">
|
||||
<?php $date = new Zend_Date($score->date, 'yyyy-MM-dd');?>
|
||||
<?=$date->toString('dd/MM/yyyy');?>
|
||||
</td>
|
||||
<td class="StyleInfoData"><?=$score->value;?> </td>
|
||||
<td class="StyleInfoData txt"><?=($score->motif!='')?$score->motif:'';?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<p style="text-align: center;">
|
||||
<!-- img src="/themes/default/images/charts/scoresHisto-<?=$this->infos->Siren;?>-<?=$this->type;?>.png" / --></p>
|
||||
<?php } else {?>
|
||||
<div class="StyleInfoData"><?=$this->translate('Aucune information sur l\'historique disponible.');?></div>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?=$this->render('cgu.phtml', $this->cgu);?>
|
||||
</div>
|
@ -25,6 +25,7 @@ class Scores_Export_Print
|
||||
'juridique-competences' => 'siret,id,type',
|
||||
'juridique-marques' => 'siret,id,idObject',
|
||||
'evaluation-indiscore' => 'siret,id',
|
||||
'evaluation-indiscorehisto' => 'siret,id',
|
||||
'evaluation-indiscore2' => 'siret,id',
|
||||
'evaluation-indiscore3' => 'siret,id',
|
||||
'evaluation-scoring' => 'siret,id',
|
||||
@ -59,6 +60,7 @@ class Scores_Export_Print
|
||||
'juridique-competences' => 'siret,id,type',
|
||||
'juridique-marques' => 'siret,id,idObject',
|
||||
'evaluation-indiscore' => 'siret,id',
|
||||
'evaluation-indiscorehisto' => 'siret,id',
|
||||
'evaluation-indiscore2' => 'siret,id',
|
||||
'evaluation-indiscore3' => 'siret,id',
|
||||
'evaluation-scoring' => 'siret,id',
|
||||
@ -91,6 +93,7 @@ class Scores_Export_Print
|
||||
'juridique-competences' => 'siret,id,type',
|
||||
'juridique-marques' => 'siret,id,idObject',
|
||||
'evaluation-indiscore' => 'siret,id',
|
||||
'evaluation-indiscorehisto' => 'siret,id',
|
||||
'evaluation-indiscore2' => 'siret,id',
|
||||
'evaluation-indiscore3' => 'siret,id',
|
||||
'evaluation-valorisation' => 'siret,id',
|
||||
|
Loading…
Reference in New Issue
Block a user