Mise a jours de giant
This commit is contained in:
parent
66f6129f89
commit
270a61f57d
@ -26,15 +26,9 @@ class GiantController extends Zend_Controller_Action
|
||||
}
|
||||
|
||||
public function searchAction()
|
||||
{
|
||||
$user = new Utilisateur();
|
||||
$rechercheParams = new RechercheHistorique();
|
||||
if (count($rechercheParams->liste()) > 0)
|
||||
{
|
||||
$recherche = $rechercheParams->item(0);
|
||||
$type = $recherche['type'];
|
||||
$params = $recherche['params'];
|
||||
}
|
||||
{
|
||||
$user = new Utilisateur();
|
||||
$params = $this->getRequest()->getParam('params');
|
||||
$search = new GiantRechercheController($params['pays'], $this->TestIndication);
|
||||
$result = $search->Liste($params, $this->getRequest()->getParam('page'));
|
||||
$this->view->label = $search->getObjet()->getLabelDesc();
|
||||
@ -59,24 +53,16 @@ class GiantController extends Zend_Controller_Action
|
||||
$type = $recherche['type'];
|
||||
$params = $recherche['params'];
|
||||
}
|
||||
$Commande = new Commandes();
|
||||
$Utilisateur = new Utilisateur();
|
||||
$listeCommandes = $Commande->getCommandesByLogin($Utilisateur->getLogin());
|
||||
$i = 1;
|
||||
$liste .= '<b>Liste de vos commandes :</b><br /><br /><ul>';
|
||||
foreach($listeCommandes as $commande) {
|
||||
$total = $total + $commande['price'];
|
||||
$liste .= '<li>';
|
||||
$liste .= $i++.'- '. GiantFunction::getFlag($commande['pays']).' '.WDate::dateT('Y-m-d', 'd/m/Y', $commande['date']).' '.$commande['typeReport'].' '.$commande['price'].' euros';
|
||||
$liste .= '</li>';
|
||||
}
|
||||
$liste .= '</ul>';
|
||||
$Commande = new Commandes();
|
||||
$Utilisateur = new Utilisateur();
|
||||
$listeCommandes = $Commande->getCommandesByLogin($Utilisateur->getLogin());
|
||||
$total = 0;
|
||||
$liste = GiantFunction::divCommande($listeCommandes, $total);
|
||||
$ListeRapport = new GiantRechercheController($params['pays'], $this->TestIndication);
|
||||
$result = $ListeRapport->ListeRapport($this->getRequest()->getParam('CompanyId'));
|
||||
ChromePhp::log($result);
|
||||
$this->view->total = $total;
|
||||
$this->view->listeCommandes = $liste;
|
||||
$this->view->modification = $ListeRapport->getModification($result->MonitoringOptions->MonitoringOption[0]);
|
||||
$this->view->modification = (isset($result->MonitoringOptions))?($ListeRapport->getModification($result->MonitoringOptions->MonitoringOption[0])):null;
|
||||
$this->view->description = $ListeRapport->getDescription();
|
||||
$this->view->raisonSociale = $this->getRequest()->getParam('raisonSociale');
|
||||
$this->view->listeRapport = $result;
|
||||
@ -113,7 +99,7 @@ class GiantController extends Zend_Controller_Action
|
||||
$CommandeP->rapportId = 1;
|
||||
$CommandeP->pays = 'fr';
|
||||
|
||||
if(!$Commande->getCommandeExistToday($CommandeP->login, $CommandeP->date, $CommandeP->rapportId, $CommandeP->typeReport)) {
|
||||
if(!$Commande->getCommandeExistToday($CommandeP->login, $CommandeP->date, $CommandeP->rapportId, $CommandeP->typeReport, $CommandeP->pays)) {
|
||||
$Commande->setCommandes($CommandeP);
|
||||
}
|
||||
$this->_forward('rapport', 'giant', null, array('idRapport' => $id));
|
||||
@ -122,32 +108,16 @@ class GiantController extends Zend_Controller_Action
|
||||
public function rapportAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$result = unserialize(base64_decode($request->getParam('idRapport')));
|
||||
|
||||
$rechercheParams = new RechercheHistorique();
|
||||
if (count($rechercheParams->liste()) > 0)
|
||||
{
|
||||
$recherche = $rechercheParams->item(0);
|
||||
$type = $recherche['type'];
|
||||
$params = $recherche['params'];
|
||||
}
|
||||
$result =
|
||||
$result = unserialize(base64_decode($request->getParam('idRapport')));
|
||||
$identiteController = new GiantIdentiteController($result);
|
||||
$identiteController->ficheAction();
|
||||
$fiche = $identiteController->getObjet('fiche');
|
||||
$fiche['Vat'] = $fiche['Vat']->VatNumber;
|
||||
$fiche['CompanyName'] = $fiche['CompanyName']->_;
|
||||
$fiche['CompanyAddress'] = $fiche['CompanyAddress']->HouseNumber.' '.$fiche['CompanyAddress']->Street.'<br />'.$fiche['CompanyAddress']->PostCode.' '.$fiche['CompanyAddress']->City;
|
||||
$fiche['TelephoneNumber'] = $fiche['TelephoneNumber']->_;
|
||||
$fiche['IncorporationDate'] = WDate::dateT($fiche['IncorporationDate']->format, 'd/m/Y', $fiche['IncorporationDate']->_);
|
||||
$fiche['UnifiedLegalForm'] = $fiche['LegalForm']->UnifiedLegalForm;
|
||||
$fiche['LegalForm'] = $fiche['LegalForm']->CountryLegalForm->_;
|
||||
$fiche['WebAddress'] = '<a href="http://'.$fiche['WebAddress'].'">'.$fiche['WebAddress'].'</a>';
|
||||
$fiche['EmailAddress'] = '<a href="mailto:'.$fiche['EmailAddress'].'">'.$fiche['EmailAddress'].'</a>';
|
||||
$fiche['ValideNumber'] = GiantFunction::checkVat(substr($fiche['Vat'], 2), $request->getParam('Pays'));
|
||||
|
||||
$this->view->rapport = $result;
|
||||
$this->view->rapportType = $this->getRequest()->getParam('Type');
|
||||
$giantConstroller = new GiantControllerLib();
|
||||
$fiche = $giantConstroller->getInformationGenerale($result);
|
||||
|
||||
//$this->view->report = $result;
|
||||
$this->view->reportType = $this->getRequest()->getParam('Type');
|
||||
$this->view->fiche = $fiche;
|
||||
}
|
||||
}
|
@ -33,13 +33,13 @@ class Application_Model_CommandesGiants extends Zend_Db_Table_Abstract
|
||||
return ($result);
|
||||
}
|
||||
|
||||
public function getCommandesGiantLoginDateReportType($login, $date, $rapportId, $type)
|
||||
public function getCommandesGiantLoginDateReportType($login, $date, $rapportId, $type, $pays)
|
||||
{
|
||||
$sql = $this->select()
|
||||
->where('login = ?', $login)
|
||||
->where('date = ?', $date)
|
||||
->where('rapportId = ?', $rapportId)
|
||||
->where('typeReport = ?', $type);
|
||||
->where('pays = ?', $pays);
|
||||
$result = $this->getAdapter()->fetchRow($sql);
|
||||
return ($result['id']);
|
||||
}
|
||||
|
@ -33,6 +33,7 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($this->listeRapport)):?>
|
||||
<h1>Liste des rapports<img style="margin-top:4px;float:right" src="/themes/default/images/giant/expanded.gif" ></h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
@ -58,7 +59,7 @@
|
||||
<?php endforeach;?>
|
||||
</td>
|
||||
<td class="StyleInfoData" width="300px">
|
||||
<a id="r<?php echo $i?>" class="idpr" href="/giant/commandes/Pays/<?php echo $this->Pays; ?>/Type/<?php echo $rapport->DataSetType->_?>/CompanyId/<?php echo $this->CompanyId;?>/Language/<?php echo $language;?>" >Consulter le rapport en immédiat</a>
|
||||
<a id="r<?php echo $i?>" class="idpr" href="/giant/commandes/Pays/<?php echo $this->Pays; ?>/Type/<?php echo $rapport->DataSetType->_?>/CompanyId/<?php echo $this->CompanyId;?>/Language/en<?php //echo $language;?>" >Consulter le rapport en immédiat</a>
|
||||
<div id="pr<?php echo $i?>" class="hide" style="display:none;">
|
||||
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
|
||||
</div>
|
||||
@ -68,6 +69,8 @@
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if(!empty($this->listeRapport->InvestigationOptions)): ?>
|
||||
<h1>Liste des investigations<img style="margin-top:4px;float:right" src="/themes/default/images/giant/expanded.gif" ></h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
@ -114,4 +117,5 @@
|
||||
<?php endif;?>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
@ -0,0 +1,188 @@
|
||||
<h2>1. Informations d'entreprise générales</h2>
|
||||
<div class="paragraph">
|
||||
<pre>
|
||||
<?php //print_r($this->report); ?>
|
||||
</pre>
|
||||
<span style="text-decoration:underline;font-size:18px;color:#3366FF;font-weight:800">Données officielles</span><br /><br />
|
||||
<ul style="font-size:13px;margin-left:3%;list-style: none">
|
||||
<li><b>Nom d'entreprise </b> <span style="float:right"><?php echo $this->report->CompanyName?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Numéro de TVA </b> <span style="float:right"><?php echo $this->report->Vat?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Forme juridique actuelle </b> <span style="float:right"><?php echo $this->report->LegalForm.' / '.$this->report->UnifiedLegalForm;?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Date de constitution </b> <span style="float:right"><?php echo $this->report->IncorporationDate?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Etat de l'entreprise </b> <span style="float:right"><?php echo $this->report->CompanyStatus?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>No. Siret </b> <span style="float:right"><?php echo $this->report->CompanyId?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
</ul>
|
||||
<br />
|
||||
<span style="text-decoration:underline;font-size:18px;color:#3366FF;font-weight:800">Données de contact</span><br /><br />
|
||||
<ul style="font-size:13px;margin-left:3%;list-style: none">
|
||||
<li><b>Numéro de téléphone </b> <span style="float:right"><?php echo $this->report->TelephoneNumber?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Numéro de fax </b> <span style="float:right"><?php echo $this->report->Telefax?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Adresse Email </b> <span style="float:right"><?php echo $this->report->EmailAddress?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Site internet </b> <span style="float:right"><?php echo $this->report->WebAddress?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
<li><b>Adresse </b> <span style="float:right"><?php echo $this->report->CompanyAddress?></span></li>
|
||||
<hr style="border:1px dotted silver" />
|
||||
</ul>
|
||||
<br />
|
||||
<?php if(!empty($this->report->activity)):?>
|
||||
<span style="text-decoration:underline;font-size:18px;color:#3366FF;font-weight:800">Activités</span><br /><br />
|
||||
<table style="margin-left: 19px;" width="97%">
|
||||
<tr>
|
||||
<td style="font-size:13px;"><b>Code</b></td>
|
||||
<td style="float:right;font-size:13px;padding-left:5px"><b>Activité</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->activity as $code => $activity): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<ul style="font-size:13px;list-style: none">
|
||||
<li><span ><?php echo $code?></span></li>
|
||||
</ul>
|
||||
</td>
|
||||
<td style="padding-left:5px">
|
||||
<ul style="font-size:13px;list-style: none;">
|
||||
<?php if(strlen($activity) < 50): ?>
|
||||
<li style="float:right"><span ><i><?php echo $activity?></i></span></li>
|
||||
<?php else: ?>
|
||||
<li style="float:right;cursor:help" class="tooltip" title="<?php echo $activity;?>" style="float:right">
|
||||
<span ><i><?php echo substr($activity, 0, 50);?>...</i></span>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
<br />
|
||||
<?php if(!empty($this->report->Employees)):?>
|
||||
<span style="text-decoration:underline;font-size:18px;color:#3366FF;font-weight:800">Personnel</span><br /><br />
|
||||
<table style="font-size:13px;margin-left: 19px;" width="97%">
|
||||
<tr>
|
||||
<td><b>Année</b></td>
|
||||
<td><b>Total des travailleurs employés</b></td>
|
||||
<td><b>Équivalent temps plein</b></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->Employees as $year => $employees): ?>
|
||||
<tr>
|
||||
<td><?php echo $year;?></td>
|
||||
<td><?php echo $employees['TotalStaffEmployed'];?> </td>
|
||||
<td><?php echo $employees['FulltimeEquivalent'];?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
<br />
|
||||
<?php if(!empty($this->report->ProductName)):?>
|
||||
<span style="text-decoration:underline;font-size:18px;color:#3366FF;font-weight:800">Noms de produit</span><br /><br />
|
||||
<table style="margin-left: 19px;" width="97%">
|
||||
<tr>
|
||||
<td style="font-size:13px;"><b>Source</b></td>
|
||||
<td width="100%" style="font-size:13px;padding-left:5px"><b>Produit</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->ProductName as $ProductName): ?>
|
||||
<tr>
|
||||
<td style="font-size:13px;"><?php echo (empty($ProductName->source)?'NC':$ProductName->source);?></td>
|
||||
<td style="padding-left:5px" width="100%">
|
||||
<ul style="font-size:13px;list-style: none;">
|
||||
<?php if(strlen($ProductName->_) < 50): ?>
|
||||
<li style="float:right"><span ><i><?php echo $ProductName->_?></i></span></li>
|
||||
<?php else: ?>
|
||||
<li style="float:right;cursor:help" class="tooltip" title="<?php echo $ProductName->_;?>" style="float:right">
|
||||
<span ><i><?php echo substr($ProductName->_, 0, 80);?>...</i></span>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<h2>2. Avis de crédit</h2>
|
||||
<div class="paragraph">
|
||||
<?php foreach($this->report->CreditRecommendation as $credit):?>
|
||||
<table style="margin-left: 19px;" width="97%">
|
||||
<tr>
|
||||
<td style="font-size:13px;"><b>Date</b></td>
|
||||
<td style="font-size:13px;float:right"><?php echo (empty($credit->Date->_))?'NC':$credit->Date->_; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:13px;"><b>Recommandation</b></td>
|
||||
<td style="font-size:13px;float:right"><?php echo (empty ($credit->AmountAdvised))?'NC':$credit->AmountAdvised->_ . ' '.$credit->AmountAdvised->currency; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size:13px;"><b>Evaluation</b></td>
|
||||
<td style="font-size:13px;float:right"><?php echo (empty($credit->RiskClasses->CommonRiskClass->RatingValue))?'NC':$credit->RiskClasses->CommonRiskClass->RatingValue ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<i><?php echo (empty($credit->RiskClasses->CommonRiskClass->Description[0]))?'NC':$credit->RiskClasses->CommonRiskClass->Description[0]->_;?></i>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php foreach ($credit->RiskClasses->ProviderRiskClass as $ProviderRiskClass):?>
|
||||
<tr>
|
||||
<td style="font-size:13px;"><b><?php echo (empty($ProviderRiskClass->RatingName->_))?'NC':$ProviderRiskClass->RatingName->_; ?></b></td>
|
||||
<td style="font-size:13px;float:right"><?php echo (empty($ProviderRiskClass->RatingValue))?'NC':$ProviderRiskClass->RatingValue; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><i><?php echo (empty($ProviderRiskClass->Description[0]->_))?'NC':$ProviderRiskClass->Description[0]->_; ?></i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<h2>3. Compte Annuels</h2>
|
||||
|
||||
<h2>4. Position financiére</h2>
|
||||
|
||||
<h2>5. Comportement de paiement</h2>
|
||||
|
||||
<h2>6. Structure de l'entreprise</h2>
|
||||
|
||||
<h2>7. Dirigeants</h2>
|
||||
|
||||
<h2>8. Comparaison avec valeurs similaires</h2>
|
||||
|
||||
<h2>9. Historique</h2>
|
@ -1,18 +1,14 @@
|
||||
<div id="center">
|
||||
<h1>Fiche</h1>
|
||||
<h2>Identité</h2>
|
||||
<div class="paragraph">
|
||||
<?php echo $this->partial('giant/partials/rowIdentite.phtml', null, array('fiche'=> $this->fiche));?>
|
||||
</div>
|
||||
<?php switch($this->rapportType) {
|
||||
<?php switch($this->reportType) {
|
||||
case 'Full':
|
||||
echo $this->partial('giant/partials/rapports/full.phtml', null, array('rapport' => $this->rapport));
|
||||
echo $this->partial('giant/partials/rapports/full.phtml', null, array('report' => $this->fiche));
|
||||
break;
|
||||
case 'Compact':
|
||||
echo $this->partial('giant/partials/rapports/compact.phtml', null, array('rapport' => $this->rapport));
|
||||
echo $this->partial('giant/partials/rapports/compact.phtml', null, array('report' => $this->report));
|
||||
break;
|
||||
case 'CreditRecommendation':
|
||||
echo $this->partial('giant/partials/rapports/creditrecommendation.phtml', null, array('rapport' => $this->rapport));
|
||||
echo $this->partial('giant/partials/rapports/creditrecommendation.phtml', null, array('report' => $this->report));
|
||||
break;
|
||||
} ?>
|
||||
</div>
|
@ -44,10 +44,10 @@ Class Commandes
|
||||
return ($commandes->getCommandesGiantByLoginAndDate($login, $date));
|
||||
}
|
||||
|
||||
public function getCommandeExistToday($login, $date, $rapportId, $type)
|
||||
public function getCommandeExistToday($login, $date, $rapportId, $type, $pays)
|
||||
{
|
||||
$commande = new Application_Model_CommandesGiants($this->db);
|
||||
$result = $commande->getCommandesGiantLoginDateReportType($login, $date, $rapportId, $type);
|
||||
$result = $commande->getCommandesGiantLoginDateReportType($login, $date, $rapportId, $type, $pays);
|
||||
if(!empty($result))
|
||||
return (true);
|
||||
return (false);
|
||||
|
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
Class GiantDirigeantController extends GiantControllerLib
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function listeAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function histoAction()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
<?php
|
||||
Class GiantFinanceController extends GiantControllerLib
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function bilanAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function ratiosAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function banqueAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function participationAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function syntheseAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function comportementAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function rsyntheseAction()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -1,21 +1,62 @@
|
||||
<?php
|
||||
require_once('Partials/AvisDeCredit.php');
|
||||
require_once('Partials/ComparaisonValeurs.php');
|
||||
require_once('Partials/ComportementPaiement.php');
|
||||
require_once('Partials/ComptesAnnuels.php');
|
||||
require_once('Partials/Dirigeant.php');
|
||||
require_once('Partials/Historique.php');
|
||||
require_once('Partials/InformationGenerale.php');
|
||||
require_once('Partials/PositionFinanciere.php');
|
||||
require_once('Partials/StructureEntreprise.php');
|
||||
|
||||
Class GiantControllerLib
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
protected function parcourTableau($array)
|
||||
{
|
||||
$tableau = array();
|
||||
|
||||
foreach($array as $key => $element){
|
||||
|
||||
if((is_array($element)) && (($element instanceof stdClass)))
|
||||
GiantControllerLib::parcourTableau($element);
|
||||
else
|
||||
return $element;
|
||||
}
|
||||
}
|
||||
|
||||
public function getStructureEntreprise($report) {
|
||||
$StructureEntreprise = new StructureEntreprise($report);
|
||||
return ($StructureEntreprise);
|
||||
}
|
||||
|
||||
public function getPositionFinanciere($report) {
|
||||
$PositionFinanciere = new PositionFinanciere($report);
|
||||
return ($PositionFinanciere);
|
||||
}
|
||||
|
||||
public function getInformationGenerale($report) {
|
||||
$InformationGenerale = new InformationGenerale($report);
|
||||
return ($InformationGenerale->getDatas());
|
||||
}
|
||||
|
||||
public function getHistorique($report) {
|
||||
$Historique = new Historique($report);
|
||||
return ($Historique);
|
||||
}
|
||||
|
||||
public function getDirigeant($report) {
|
||||
$Dirigeant = new Dirigeant($report);
|
||||
return ($Dirigeant);
|
||||
}
|
||||
|
||||
public function getComportementPaiement($report) {
|
||||
$ComportementPaiement = new ComportementPaiement($report);
|
||||
return ($ComportementPaiement);
|
||||
}
|
||||
|
||||
public function getComptesAnnuels($report) {
|
||||
$ComptesAnnuels = new ComptesAnnuels($report);
|
||||
return ($ComptesAnnuels);
|
||||
}
|
||||
}
|
10
library/Giant/Controller/Partials/AvisDeCredit.php
Normal file
10
library/Giant/Controller/Partials/AvisDeCredit.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
Class AvisDeCredit
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
15
library/Giant/Controller/Partials/ComparaisonValeurs.php
Normal file
15
library/Giant/Controller/Partials/ComparaisonValeurs.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of ComparaisonValeurs
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class ComparaisonValeurs {
|
||||
//put your code here
|
||||
}
|
||||
?>
|
15
library/Giant/Controller/Partials/ComportementPaiement.php
Normal file
15
library/Giant/Controller/Partials/ComportementPaiement.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of ComportementPaiement
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class ComportementPaiement {
|
||||
//put your code here
|
||||
}
|
||||
?>
|
15
library/Giant/Controller/Partials/ComptesAnnuels.php
Normal file
15
library/Giant/Controller/Partials/ComptesAnnuels.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of ComptesAnnuels
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class ComptesAnnuels {
|
||||
//put your code here
|
||||
}
|
||||
?>
|
15
library/Giant/Controller/Partials/Dirigeant.php
Normal file
15
library/Giant/Controller/Partials/Dirigeant.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of Dirigeant
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class Dirigeant {
|
||||
//put your code here
|
||||
}
|
||||
?>
|
15
library/Giant/Controller/Partials/Historique.php
Normal file
15
library/Giant/Controller/Partials/Historique.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of Historique
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class Historique {
|
||||
//put your code here
|
||||
}
|
||||
?>
|
82
library/Giant/Controller/Partials/InformationGenerale.php
Normal file
82
library/Giant/Controller/Partials/InformationGenerale.php
Normal file
@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of InformationGenerale
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class InformationGenerale
|
||||
{
|
||||
private $report;
|
||||
private $block = array('block1' => array('CompanyName', 'Vat',
|
||||
'LegalForm', 'IncorporationDate',
|
||||
'CompanyStatus', 'CompanyId'
|
||||
),
|
||||
'block2' => array('TelephoneNumber', 'Telefax',
|
||||
'EmailAddress', 'WebAddress',
|
||||
'Address'
|
||||
));
|
||||
|
||||
public function __construct($report)
|
||||
{
|
||||
$this->report = $report->DataSet->Company;
|
||||
$this->report->Vat = $this->report->Vat->VatNumber;
|
||||
$this->report->CompanyName = $this->report->CompanyName[0]->_;
|
||||
$this->report->CompanyAddress = $this->report->CompanyAddress[0]->HouseNumber.' '.$this->report->CompanyAddress[0]->Street.' - '.$this->report->CompanyAddress[0]->PostCode.' '.$this->report->CompanyAddress[0]->City;
|
||||
$this->report->TelephoneNumber = $this->report->TelephoneNumber[0]->_;
|
||||
$this->report->Telefax = $this->report->Telefax[0];
|
||||
$this->report->IncorporationDate = WDate::dateT($this->report->IncorporationDate->format, 'd/m/Y', $this->report->IncorporationDate->_);
|
||||
$this->report->UnifiedLegalForm = $this->report->LegalForm[0]->UnifiedLegalForm;
|
||||
$this->report->LegalForm = $this->report->LegalForm[0]->CountryLegalForm->_;
|
||||
$this->report->WebAddress = '<a href="http://'.$this->report->WebAddress.'">'.$this->report->WebAddress.'</a>';
|
||||
$this->report->EmailAddress = '<a href="mailto:'.$this->report->EmailAddress.'">'.$this->report->EmailAddress.'</a>';
|
||||
$this->report->activity = $this->getActivity($this->report->Operations);
|
||||
$this->report->Employees = $this->getEmployees($this->report->Employees);
|
||||
$this->report->ProductName = $this->report->Operations->ProductName;
|
||||
//$this->report->ValideNumber = GiantFunction::checkVat(substr($this->report->Vat, 2), $request->getParam('Pays'));
|
||||
$this->generateStructur();
|
||||
}
|
||||
|
||||
public function getEmployees($Employees)
|
||||
{
|
||||
$employees = array();
|
||||
foreach($Employees as $employed) {
|
||||
$employees[$employed->Period->StartDate->_] =
|
||||
array('TotalStaffEmployed' => (empty($employed->TotalStaffEmployed))?'NC':$employed->TotalStaffEmployed,
|
||||
'FulltimeEquivalent' => (empty($employed->FulltimeEquivalent))?'NC':$employed->FulltimeEquivalent);
|
||||
}
|
||||
return ($employees);
|
||||
}
|
||||
|
||||
public function getActivity($Operations)
|
||||
{
|
||||
$activity = array();
|
||||
if(isset($Operations->IndustryCode)) {
|
||||
foreach($Operations->IndustryCode as $operation) {
|
||||
$activity = array_merge(
|
||||
array((empty($operation->NaceCode))?'NC':' '.$operation->NaceCode => (empty($operation->Description->_))?'NC':$operation->Description->_), $activity);
|
||||
}
|
||||
}
|
||||
return ($activity);
|
||||
}
|
||||
|
||||
public function getDatas()
|
||||
{
|
||||
return ($this->report);
|
||||
}
|
||||
public function generateStructur()
|
||||
{
|
||||
foreach($this->block as $elements) {
|
||||
foreach($elements as $element) {
|
||||
if(empty ($this->report->$element))
|
||||
$this->report->$element = 'N/C';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
15
library/Giant/Controller/Partials/PositionFinanciere.php
Normal file
15
library/Giant/Controller/Partials/PositionFinanciere.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of PositionFinanciere
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class PositionFinanciere {
|
||||
//put your code here
|
||||
}
|
||||
?>
|
15
library/Giant/Controller/Partials/StructureEntreprise.php
Normal file
15
library/Giant/Controller/Partials/StructureEntreprise.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Description of StructureEntreprise
|
||||
*
|
||||
* @author divx
|
||||
*/
|
||||
class StructureEntreprise {
|
||||
//put your code here
|
||||
}
|
||||
?>
|
@ -20,7 +20,7 @@ Class GiantRechercheController extends GiantFunctionController
|
||||
$this->Provider->CountryCode = $CountryCode;
|
||||
$this->Provider->ProviderId = parent::setCountryCode($CountryCode, $this->listAutorized);
|
||||
$this->Provider->TestIndication = $TestIndication;
|
||||
$this->soapG = new WSgiant($this->Provider);
|
||||
$this->soapG = new WSgiant($this->Provider);
|
||||
}
|
||||
|
||||
public function Liste($parametres, $page)
|
||||
@ -63,13 +63,13 @@ Class GiantRechercheController extends GiantFunctionController
|
||||
$advancedParametres->StartRow = $page;
|
||||
$advancedParametres->NumRows = parent::getNumRows();
|
||||
|
||||
((strlen($parametres['siret']) == 9) ? $id = 'CompanyRegisterNumber' : $id = 'CompanyId');
|
||||
//((strlen($parametres['siret']) == 9) ? $id = 'CompanyRegisterNumber' : $id = 'CompanyId');
|
||||
$labelForm = array(
|
||||
'siret' => "$id",
|
||||
'siret' => 'CompanyId',
|
||||
'raisonSociale' => 'RegisteredName',
|
||||
'numero' => 'HouseNumber',
|
||||
'voie' => 'Street',
|
||||
'cpVille' => 'City'
|
||||
'cpVille' => 'City'
|
||||
);
|
||||
|
||||
foreach ($parametres as $champ => $parametre) {
|
||||
@ -113,7 +113,6 @@ Class GiantRechercheController extends GiantFunctionController
|
||||
{
|
||||
$this->CreditData = new CreditData($this->soapG, $CompanyId);
|
||||
$result = $this->CreditData->getMethode('RetreiveOptions', array($CompanyId));
|
||||
|
||||
return ($result);
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<?php
|
||||
Class GiantScoringController extends GiantControllerLib
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function creditrecommendationAction()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
define("DATA_SET_VERSION", 1.0);
|
||||
define("DATA_SET_VERSION", '1.0');
|
||||
|
||||
Class CreditData extends GiantFunction
|
||||
{
|
||||
@ -39,13 +39,11 @@ Class CreditData extends GiantFunction
|
||||
$parametres->CompanyId = $this->companyId;
|
||||
$parametres->DataSetType = $DataSetType;
|
||||
$parametres->DataSetVersion = DATA_SET_VERSION;
|
||||
$parametres->Version = $Version;
|
||||
$parametres->LanguageCode = $LanguageCode;
|
||||
try {
|
||||
$result = $this->soapG->OrderDataSet($parametres);
|
||||
} catch (SoapFault $soapFault) {
|
||||
echo 'Erreur Soap : '.$soapFault->getMessage();}
|
||||
|
||||
return ($result);
|
||||
}
|
||||
|
||||
@ -57,7 +55,6 @@ Class CreditData extends GiantFunction
|
||||
$result = $this->soapG->RetrieveOrderStatus($parametres);
|
||||
} catch (SoapFault $soapFault) {
|
||||
echo 'Erreur Soap : '.$soapFault->getMessage();}
|
||||
|
||||
return ($result);
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,20 @@
|
||||
<?php
|
||||
Class GiantFunction
|
||||
{
|
||||
public function divCommande($listeCommandes, &$total)
|
||||
{
|
||||
$i = 1;
|
||||
$liste .= '<b>Liste de vos commandes :</b><br /><br /><ul>';
|
||||
foreach($listeCommandes as $commande) {
|
||||
$total = $total + $commande['price'];
|
||||
$liste .= '<li>';
|
||||
$liste .= $i++.'- '. GiantFunction::getFlag($commande['pays']).' '.WDate::dateT('Y-m-d', 'd/m/Y', $commande['date']).' '.$commande['typeReport'].' '.$commande['price'].' euros';
|
||||
$liste .= '</li>';
|
||||
}
|
||||
$liste .= '</ul>';
|
||||
return ($liste);
|
||||
}
|
||||
|
||||
public function getFlag($flag)
|
||||
{
|
||||
return ('<img src="/themes/default/images/drapeaux/'.$flag.'.png" />');
|
||||
|
BIN
public/themes/default/images/drapeaux/de.png
Executable file
BIN
public/themes/default/images/drapeaux/de.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 545 B |
BIN
public/themes/default/images/drapeaux/it.png
Executable file
BIN
public/themes/default/images/drapeaux/it.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 420 B |
@ -29,4 +29,13 @@ $(document).ready( function()
|
||||
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
|
||||
});
|
||||
});
|
||||
$('li.tooltip').each(function(){
|
||||
var title = $(this).attr('title');
|
||||
$(this).attr('title', '');
|
||||
$(this).qtip( {
|
||||
content: title,
|
||||
style: { width: 500, name: 'cream' },
|
||||
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user