issue #0001676: Request price log in database
This commit is contained in:
parent
ee0b820a3a
commit
69f8751f06
@ -27,6 +27,16 @@ Class GiantControllerLib
|
||||
$Rapport = new Rapports($Pays, $TestIndication);
|
||||
$CommandeP = new stdClass();
|
||||
|
||||
switch ($Utilisateur->getIdClient()) {
|
||||
case '0':
|
||||
$price = 0;
|
||||
break;
|
||||
case '1':
|
||||
$price = 7;
|
||||
break;
|
||||
default:
|
||||
$price = 10;
|
||||
}
|
||||
$id = $Rapport->getRapportExist($CompanyId, $Type, $Language);
|
||||
if(empty($id)) {
|
||||
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
||||
@ -44,7 +54,7 @@ Class GiantControllerLib
|
||||
$CommandeP->login = $Utilisateur->getLogin();
|
||||
$CommandeP->date = date("Y-m-d");
|
||||
$CommandeP->typeReport = $function->getTypeReport($Type);
|
||||
$CommandeP->price = 0;
|
||||
$CommandeP->price = $price;
|
||||
$CommandeP->pays = strtolower($Pays);
|
||||
$CommandeP->rapportId = $report_id[0]['id'];
|
||||
//$CommandeP->lang = $Utilisateur->getLang();
|
||||
@ -58,7 +68,7 @@ Class GiantControllerLib
|
||||
|
||||
return ($id);
|
||||
}
|
||||
|
||||
|
||||
public function startmonitoring($CompanyId, $CategorieName, $EventType, $PreferredStartDate, $PreferredEndDate, $Version, $LanguageCode,$Pays,$TestIndication,$CompanyName)
|
||||
{
|
||||
$Utilisateur = new Scores_Utilisateur();
|
||||
@ -85,22 +95,22 @@ Class GiantControllerLib
|
||||
} else {
|
||||
$CommandeP->ActualEndDate = date('Y-m-d', strtotime('+6 month'));
|
||||
}
|
||||
|
||||
|
||||
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
||||
$result = $rapport->GetStartMonitoring($CompanyId, $CategorieName, $EventType, $PreferredStartDate, $PreferredEndDate, $Version, $LanguageCode);
|
||||
|
||||
|
||||
$CommandeP->InternalOrderId = $result->Order->InternalOrderId;
|
||||
$Commande->setMonitoring($CommandeP);
|
||||
return ($result);
|
||||
}
|
||||
|
||||
|
||||
public function stopmonitoring($CompanyId, $PreferredEndDate,$InternalOrderId,$Pays,$TestIndication)
|
||||
{
|
||||
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
||||
$result = $rapport->GetStopMonitoring($CompanyId, $PreferredEndDate,$InternalOrderId);
|
||||
return ($result);
|
||||
}
|
||||
|
||||
|
||||
public function updatemonitoring($CompanyId, $InternalOrderId, $CategorieName, $EventType, $PreferredStartDate, $Version, $LanguageCode, $Pays,$TestIndication)
|
||||
{
|
||||
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
||||
@ -124,7 +134,7 @@ Class GiantControllerLib
|
||||
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
||||
$result = $rapport->GetRetriveMonitoring($CompanyId, $StartFrom,$InternalOrderId,$EventType);
|
||||
return ($result);
|
||||
}
|
||||
}
|
||||
protected function parcourTableau($array)
|
||||
{
|
||||
$tableau = array();
|
||||
@ -310,8 +320,8 @@ Class GiantRechercheController extends GiantFunction
|
||||
$result = $this->CreditData->getMethode('StopMonitoring', array($CompanyId, $PreferredEndDate, $InternalOrderId));
|
||||
return ($result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function GetUpdateMonitoring($CompanyId, $InternalOrderId, $CategorieName, $EventType, $PreferredStartDate, $Version, $LanguageCode)
|
||||
{
|
||||
$this->CreditData = new CreditData($this->soapG, $CompanyId);
|
||||
|
Loading…
Reference in New Issue
Block a user