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