issue #0001687: get ProviderOrderId from db

This commit is contained in:
Arman KYOKCHAN 2013-08-21 14:01:45 +00:00
parent 939e12ad2c
commit 56f3a99dad
5 changed files with 22 additions and 1 deletions

View File

@ -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):

View File

@ -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);
}
}
?>

View File

@ -96,6 +96,7 @@ par
</tr>
</thead>
<tbody>
<?php foreach ($this->val_siren as $monitor) {?>
<pre><? print_r($monitor);?></pre>
<tr>

View File

@ -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();

View File

@ -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);
}
}
?>