issue #0001659: Retrive Monitoring log
This commit is contained in:
parent
b90595e080
commit
9e8928ce2d
@ -315,7 +315,8 @@ class GiantController extends Zend_Controller_Action
|
|||||||
$this->getRequest()->getParam('InternalOrderId'),
|
$this->getRequest()->getParam('InternalOrderId'),
|
||||||
$this->getRequest()->getParam('Pays'),
|
$this->getRequest()->getParam('Pays'),
|
||||||
$this->TestIndication,
|
$this->TestIndication,
|
||||||
$this->getRequest()->getParam('monitor_type')
|
$this->getRequest()->getParam('monitor_type'),
|
||||||
|
$this->getRequest()->getParam('CompanyName')
|
||||||
);
|
);
|
||||||
$this->view->result = $result;
|
$this->view->result = $result;
|
||||||
|
|
||||||
|
11
application/models/RetriveGiants.php
Normal file
11
application/models/RetriveGiants.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Application_Model_RetriveGiants extends Zend_Db_Table_Abstract
|
||||||
|
{
|
||||||
|
protected $_name = 'retrive_giants';
|
||||||
|
}
|
||||||
|
?>
|
@ -107,10 +107,22 @@ Class GiantControllerLib
|
|||||||
$result = $rapport->GetUpdateMonitoring($CompanyId, $InternalOrderId, $CategorieName, $EventType, $PreferredStartDate, $Version, $LanguageCode);
|
$result = $rapport->GetUpdateMonitoring($CompanyId, $InternalOrderId, $CategorieName, $EventType, $PreferredStartDate, $Version, $LanguageCode);
|
||||||
return ($result);
|
return ($result);
|
||||||
}
|
}
|
||||||
public function retrivemonitoring($CompanyId, $StartFrom,$InternalOrderId,$Pays,$TestIndication,$EventType)
|
public function retrivemonitoring($CompanyId, $StartFrom,$InternalOrderId,$Pays,$TestIndication,$EventType,$CompanyName)
|
||||||
{
|
{
|
||||||
|
$Utilisateur = new Scores_Utilisateur();
|
||||||
|
$Commande = new Commandes();
|
||||||
|
$CommandeP = new stdClass();
|
||||||
|
$CommandeP->login = $Utilisateur->getLogin();
|
||||||
|
$CommandeP->CompanyId = $CompanyId;
|
||||||
|
$CommandeP->CompanyName = $CompanyName;
|
||||||
|
$CommandeP->StartFrom = $StartFrom;
|
||||||
|
$CommandeP->Pays = $Pays;
|
||||||
|
$CommandeP->TestIndication = $TestIndication;
|
||||||
|
$CommandeP->Type = $EventType;
|
||||||
|
$CommandeP->InternalOrderId = $InternalOrderId;
|
||||||
|
$Commande->setRetrive($CommandeP);
|
||||||
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
||||||
$result = $rapport->GetretriveMonitoring($CompanyId, $StartFrom,$InternalOrderId,$EventType);
|
$result = $rapport->GetRetriveMonitoring($CompanyId, $StartFrom,$InternalOrderId,$EventType);
|
||||||
return ($result);
|
return ($result);
|
||||||
}
|
}
|
||||||
protected function parcourTableau($array)
|
protected function parcourTableau($array)
|
||||||
|
@ -44,6 +44,20 @@ Class Commandes
|
|||||||
);
|
);
|
||||||
$commandes->insert($data);
|
$commandes->insert($data);
|
||||||
}
|
}
|
||||||
|
public function setRetrive($parametres)
|
||||||
|
{
|
||||||
|
$commandes = new Application_Model_RetriveGiants();
|
||||||
|
$data = array( 'login' => $parametres->login,
|
||||||
|
'CompanyId' => $parametres->CompanyId,
|
||||||
|
'CompanyName' => $parametres->CompanyName,
|
||||||
|
'Pays' => $parametres->Pays,
|
||||||
|
'TestIndication' => $parametres->TestIndication,
|
||||||
|
'InternalOrderId' => $parametres->InternalOrderId,
|
||||||
|
'Type' => $parametres->Type,
|
||||||
|
'StartFrom' => $parametres->StartFrom,
|
||||||
|
);
|
||||||
|
$commandes->insert($data);
|
||||||
|
}
|
||||||
public function getCommandesByLogin($login)
|
public function getCommandesByLogin($login)
|
||||||
{
|
{
|
||||||
$commandes = new Application_Model_CommandesGiants();
|
$commandes = new Application_Model_CommandesGiants();
|
||||||
|
Loading…
Reference in New Issue
Block a user