Cadastre : Test affichage
This commit is contained in:
parent
978c11bd20
commit
4e6b6f1830
@ -1024,11 +1024,11 @@ class EvaluationController extends Zend_Controller_Action
|
||||
|
||||
require_once 'Scores/RapportComment.php';
|
||||
$rapportComment = new RapportComment($siren, $this->id,
|
||||
$infos->Indiscore->tabCommentaires->item,
|
||||
$infos->RatiosInfos,
|
||||
$infos->RatiosBilansInfos,
|
||||
$infos->RatiosSecteur,
|
||||
$infos->Indiscore->tabVariables
|
||||
$infos->Indiscore->tabCommentaires->item,
|
||||
$infos->RatiosInfos,
|
||||
$infos->RatiosBilansInfos,
|
||||
$infos->RatiosSecteur,
|
||||
$infos->Indiscore->tabVariables
|
||||
);
|
||||
$this->view->assign('comment',$rapportComment->out());
|
||||
|
||||
@ -1050,8 +1050,13 @@ class EvaluationController extends Zend_Controller_Action
|
||||
$ws = new Scores_Ws_Client('entreprise', '0.9');
|
||||
$params = new stdClass();
|
||||
$params->companyId = $siren;
|
||||
$response = $ws->getCadastrePatrimoine($params);
|
||||
$this->view->List = $response->item;
|
||||
|
||||
try {
|
||||
$response = $ws->getCadastrePatrimoine($params);
|
||||
$this->view->List = $response->item;
|
||||
} catch (Exception $e) {
|
||||
$this->view->MsgTxt = $e->getMessage();
|
||||
}
|
||||
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('id', $this->id);
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
<h1>PATRIMOINE FONCIER</h1>
|
||||
|
||||
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
@ -18,9 +17,15 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php if ($this->MsgTxt) {?>
|
||||
|
||||
<div class="paragraph"><?=$this->MsgTxt?></div>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<h2>Propriétés baties</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Rôle</th>
|
||||
@ -40,7 +45,7 @@
|
||||
<tbody>
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
<?php foreach($this->List as $p) {?>
|
||||
<?php if ($p->Type == 'locaux') {?>
|
||||
<?php if ($p->Type == 'local') {?>
|
||||
<tr>
|
||||
<td><?=$p->Role?></td>
|
||||
<td><?=$p->Departement?></td>
|
||||
@ -57,15 +62,15 @@
|
||||
<td><?=$p->Batiment?></td>
|
||||
<td><?=$p->Ent?></td>
|
||||
<td><?=$p->Niveau?></td>
|
||||
<td><?=$p->SurfaceTotal?></td>
|
||||
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php if (count($p->SurfaceDetail->item) > 0) {?>
|
||||
<?php foreach($p->SurfaceDetail->item as $s) {?>
|
||||
<tr>
|
||||
<td colspan="10"></td>
|
||||
<td><?=$s->Surface?></td>
|
||||
<td><?=$s->NatureLabel?></td>
|
||||
<td colspan="10" align="right"><i>Detail</i></td>
|
||||
<td><?=number_format($s->Surface, 0, ",", " ")?></td>
|
||||
<td><?=$s->Label?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
@ -78,7 +83,7 @@
|
||||
|
||||
<h2>Propriétés non baties</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Rôle</th>
|
||||
@ -95,7 +100,7 @@
|
||||
<tbody>
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
<?php foreach($this->List as $p) {?>
|
||||
<?php if ($p->Type == 'parcelles') {?>
|
||||
<?php if ($p->Type == 'parcelle') {?>
|
||||
<tr>
|
||||
<td><?=$p->Role?></td>
|
||||
<td><?=$p->Departement?></td>
|
||||
@ -109,15 +114,15 @@
|
||||
<?=empty($p->AdresseType) ? '' : $p->AdresseType.' ' ; ?>
|
||||
<?=empty($p->AdresseLib) ? '' : $p->AdresseLib.' ' ; ?>
|
||||
</td>
|
||||
<td><?=$p->SurfaceTotal?></td>
|
||||
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php if (count($p->SurfaceDetail->item) > 0) {?>
|
||||
<?php foreach($p->SurfaceDetail->item as $s) {?>
|
||||
<tr>
|
||||
<td colspan="10"></td>
|
||||
<td><?=$s->Surface?></td>
|
||||
<td><?=$s->NatureLabel?></td>
|
||||
<td colspan="7" align="right"><i>Detail</i></td>
|
||||
<td><?=number_format($s->Surface, 0, ",", " ")?></td>
|
||||
<td><?=$s->Label?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
@ -128,4 +133,6 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
||||
</div>
|
@ -31,6 +31,7 @@ return array(
|
||||
),
|
||||
'getCadastrePatrimoine' => array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('0902'),
|
||||
'log' => 'mail',
|
||||
)
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user