Rattrapage indiScore
This commit is contained in:
parent
a901bfee8e
commit
3be1c2bdf3
@ -208,13 +208,24 @@ class Legal_EvaluationController extends Zend_Controller_Action
|
||||
$this->view-> PrintHtml = true;
|
||||
$this->view-> PrintPdf = true;
|
||||
|
||||
$bornes = array(
|
||||
'indiScore' => array('min' => 0, 'max' => 20, 'rouge' => 7, 'orange' => 10),
|
||||
'scoreDir' => array('min' => 0, 'max' => 100, 'rouge' => 45, 'orange' => 56),
|
||||
'scoreConf' => array('min' => 0, 'max' => 100, 'rouge' => 45, 'orange' => 56),
|
||||
'scoreZ' => array('min' => -3, 'max' => 3, 'rouge' => -0.25, 'orange' => 0.125),
|
||||
'scoreCH' => array('min' => -4.5, 'max' => 16, 'rouge' => 3.75, 'orange' => 10),
|
||||
'scoreAfdcc1' => array('min' => -7, 'max' => 7, 'rouge' => 0, 'orange' => 1),
|
||||
'scoreAfdcc2' => array('min' => -3, 'max' => 2, 'rouge' => -1, 'orange' => 0.5),
|
||||
'scoreAltman' => array('min' => -2, 'max' => 8, 'rouge' => 0, 'orange' => 2.7),
|
||||
'scoreCCF' => array('min' => 500, 'max' => 5000, 'rouge' => 2160, 'orange' => 3450 ),
|
||||
);
|
||||
$this->view->assign('bornes', $bornes);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkPerm('INDISCORE') && !$user->checkPerm('INDISCOREP')) {
|
||||
$this->forward('perms', 'error');
|
||||
}
|
||||
|
||||
|
||||
|
||||
$request = $this->getRequest();
|
||||
$autrePage = $request->getParam('apage');
|
||||
|
||||
@ -266,8 +277,8 @@ class Legal_EvaluationController extends Zend_Controller_Action
|
||||
|
||||
//autorisation print
|
||||
$this->view->Printable = true;
|
||||
$this->view-> PrintHtml = true;
|
||||
$this->view-> PrintPdf = true;
|
||||
$this->view->PrintHtml = true;
|
||||
$this->view->PrintPdf = true;
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkPerm('INDISCORE2') && !$user->checkPerm('INDISCORE2P')) {
|
||||
@ -441,8 +452,8 @@ class Legal_EvaluationController extends Zend_Controller_Action
|
||||
|
||||
//autorisation print
|
||||
$this->view->Printable = true;
|
||||
$this->view-> PrintHtml = true;
|
||||
$this->view-> PrintPdf = true;
|
||||
$this->view->PrintHtml = true;
|
||||
$this->view->PrintPdf = true;
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P'))
|
||||
@ -1040,8 +1051,8 @@ class Legal_EvaluationController extends Zend_Controller_Action
|
||||
|
||||
//autorisation print
|
||||
$this->view->Printable = true;
|
||||
$this->view-> PrintHtml = true;
|
||||
$this->view-> PrintPdf = true;
|
||||
$this->view->PrintHtml = true;
|
||||
$this->view->PrintPdf = true;
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P'))
|
||||
|
@ -212,8 +212,15 @@ if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
|
||||
Compte tenu des informations disponibles auprès des sources officielles
|
||||
Scores et Décisions présente la conclusion suivante :</span><br/>
|
||||
<?php
|
||||
switch($this->typeScore)
|
||||
{
|
||||
$color = '';
|
||||
if ($this->indiscore->Indiscore20 < $this->bornes['indiScore']['rouge']) {
|
||||
$color = ' indiscore-red';
|
||||
} elseif ($this->indiscore->Indiscore20 < $this->bornes['indiScore']['orange']) {
|
||||
$color = ' indiscore-orange';
|
||||
} else {
|
||||
$color = ' indiscore-green';
|
||||
}
|
||||
switch($this->typeScore) {
|
||||
case '20':
|
||||
$maxIndiscore = $this->typeScore;
|
||||
$indiscore = $this->indiscore->Indiscore20;
|
||||
@ -225,18 +232,16 @@ if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
|
||||
break;
|
||||
}
|
||||
?>
|
||||
<h3 style="font-size:13px"><b>LE SCORE EST DE <?php echo $indiscore;?> SUR <?php echo $maxIndiscore;?> POINTS</b></h3>
|
||||
<h3 class="indiscore<?=$color?>">LE SCORE EST DE <?=$indiscore?> SUR <?=$maxIndiscore?> POINTS</h3>
|
||||
<?php
|
||||
if($this->indiscore->infoEncours != '' && !is_numeric($this->indiscore->encours) && $this->indiscore->encours == 'N/A'){ ?>
|
||||
<h3><?php echo $this->indiscore->infoEncours;?></h3>
|
||||
<?php
|
||||
}else{ ?>
|
||||
<?php
|
||||
if ($indiscore!=0) { ?>
|
||||
<i>La tendance de la note est <?php echo $this->indiscore->TendanceIndiscore;?></i>
|
||||
<h3 style="font-size:13px"><b>L'ENCOURS MAXIMUM CONSEILLÉ EST DE <?php echo round($this->indiscore->encours / 1000);?> K€</b></h3>
|
||||
<h3><?=$this->indiscore->infoEncours?></h3>
|
||||
<?php } else{ ?>
|
||||
<?php if ($indiscore != 0) {?>
|
||||
<i>La tendance de la note est <?=$this->indiscore->TendanceIndiscore?></i>
|
||||
<h3 class="indiscore">L'ENCOURS MAXIMUM CONSEILLÉ EST DE <?=round($this->indiscore->encours / 1000)?> K€</h3>
|
||||
<?php } ?>
|
||||
<h3><?php echo $this->indiscore->infoEncours;?></h3>
|
||||
<h3><?=$this->indiscore->infoEncours?></h3>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -95,31 +95,24 @@ Aucun bilan disponible.
|
||||
<td width="30"></td>
|
||||
<td width="200">Situation juridique</td>
|
||||
<td class="StyleInfoData" width="350">
|
||||
<?php if ($this->SituationJuridique == 'P'):?>
|
||||
<a href="<?=$this->url(array('module'=>'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'annonces',
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
))?>">
|
||||
<font color="red">
|
||||
<b>En procédure collective</b>
|
||||
</font>
|
||||
</a>
|
||||
<?php if($this->dateRadiation != ''):?>
|
||||
<br/>Radié du RCS le <?php echo $this->dateRadiation;?>
|
||||
<?php endif;?>
|
||||
<?php elseif ($this->SituationJuridique == 'RR'):?>
|
||||
Radié du RCS <?php if($this->dateRadiation != ''):?>
|
||||
le <?php echo $this->dateRadiation;?>
|
||||
<?php endif;?>
|
||||
<?php elseif ($this->SituationJuridique == 'RP'):?>
|
||||
Radiation publiée <?php if($this->dateRadiation != ''):?>
|
||||
le <?php echo $this->dateRadiation;?>
|
||||
<?php endif;?>
|
||||
<?php else:?>
|
||||
<?php if ($this->SituationJuridique == 'P') {?>
|
||||
<a href="<?=$this->url(array('module'=>'legal', 'controller' => 'juridique',
|
||||
'action' => 'annonces', 'siret' => $this->siret, 'id' => $this->id))?>">
|
||||
<font color="red"><b>En procédure collective</b></font></a>
|
||||
<?php if($this->dateRadiation != '') {?>
|
||||
<br/>Radié du RCS le <?=$this->dateRadiation?>
|
||||
<?php }?>
|
||||
<?php elseif ($this->SituationJuridique == 'RR') {?>
|
||||
Radié du RCS <?php if($this->dateRadiation != '') {?>
|
||||
le <?=$this->dateRadiation;?>
|
||||
<?php }?>
|
||||
<?php elseif ($this->SituationJuridique == 'RP') {?>
|
||||
Radiation publiée <?php if($this->dateRadiation != '') {?>
|
||||
le <?=$this->dateRadiation?>
|
||||
<?php }?>
|
||||
<?php } else {?>
|
||||
Aucune procédure enregistrée à ce jour par nos services.
|
||||
<?php endif;?>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -128,7 +121,7 @@ Aucun bilan disponible.
|
||||
<h3>Scores et encours</h3>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php foreach ($this->scores as $name => $score):?>
|
||||
<?php foreach ($this->scores as $name => $score) {?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="250"><?=$score[1]?></td>
|
||||
@ -141,7 +134,7 @@ Aucun bilan disponible.
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td>Encours conseillé</td>
|
||||
|
@ -775,6 +775,23 @@ h3 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
h3.indiscore {
|
||||
font-weight:bold;
|
||||
font-size:13px;
|
||||
}
|
||||
|
||||
h3.indiscore-green {
|
||||
color:green;
|
||||
}
|
||||
|
||||
h3.indiscore-orange {
|
||||
color:orange;
|
||||
}
|
||||
|
||||
h3.indiscore-red {
|
||||
color:red;
|
||||
}
|
||||
|
||||
h3 u {
|
||||
font-size: 13px;
|
||||
color: #535353;
|
||||
|
Loading…
Reference in New Issue
Block a user