issue #0001687: get ProviderOrderId from db
This commit is contained in:
parent
939e12ad2c
commit
56f3a99dad
@ -334,11 +334,13 @@ class GiantController extends Zend_Controller_Action
|
||||
{
|
||||
$this->view->headScript()->appendFile('/themes/default/scripts/giant_monitoring.js', 'text/javascript');
|
||||
$giantController = new GiantControllerLib();
|
||||
$resultDB = $giantController->retrivDB();
|
||||
$result = $giantController->retrive(
|
||||
1,
|
||||
$this->TestIndication,
|
||||
'RetrieveMonitoringEventsForCustomer'
|
||||
);
|
||||
$this->view->resultDB = $resultDB;
|
||||
$this->view->result = $result;
|
||||
$merged =Array();
|
||||
foreach ($result->MonitoringEvents->MonitoringEvent as $MonitoringEvent):
|
||||
|
@ -8,6 +8,12 @@ class Application_Model_MonitoringGiants extends Zend_Db_Table_Abstract
|
||||
{
|
||||
protected $_name = 'monitoring_giants';
|
||||
|
||||
public function getRetrive($companyId, $Language)
|
||||
{
|
||||
$sql = $this->select();
|
||||
$result = $this->getAdapter()->fetchAll($sql);
|
||||
return ($result);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
@ -96,6 +96,7 @@ par
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($this->val_siren as $monitor) {?>
|
||||
<pre><? print_r($monitor);?></pre>
|
||||
<tr>
|
||||
|
@ -136,6 +136,13 @@ Class GiantControllerLib
|
||||
$result = $rapport->GetRetriveMonitoring($CompanyId, $StartFrom,$InternalOrderId,$EventType);
|
||||
return ($result);
|
||||
}
|
||||
|
||||
public function retrivDB()
|
||||
{
|
||||
$Rapport = new Rapports();
|
||||
$id = $Rapport->getRetrive();
|
||||
return $id;
|
||||
}
|
||||
public function retrive($StartFrom,$TestIndication,$EventType)
|
||||
{
|
||||
$Utilisateur = new Scores_Utilisateur();
|
||||
|
@ -115,12 +115,17 @@ Class Rapports
|
||||
$id = $rapports->getReportByIdAndType($companyId, $this->enumerations[$type], $Language);
|
||||
return ($id);
|
||||
}
|
||||
|
||||
public function getRapportExistId($companyId, $Language)
|
||||
{
|
||||
$rapports = new Application_Model_RapportsGiants();
|
||||
$id = $rapports->getReportById($companyId, $Language);
|
||||
return ($id);
|
||||
}
|
||||
public function getRetrive()
|
||||
{
|
||||
$rapports = new Application_Model_MonitoringGiants();
|
||||
$id = $rapports->getRetrive();
|
||||
return ($id);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user