SFR : Nouvelles fonctions

This commit is contained in:
Michael RICOIS 2013-08-26 07:06:27 +00:00
parent 878c3d89fc
commit 114d997b39

View File

@ -230,10 +230,10 @@ class Metier_Sfr
); );
//Valeurs à remplir //Valeurs à remplir
protected $ValIsCAC = null; protected $ValIsCAC = 0;
protected $ValTypeEntrep = null; protected $ValTypeEntrep = null;
protected $ValIsAdmin = null; protected $ValIsAdmin = 0;
protected $ValIsEtranger = null; protected $ValIsEtranger = 0;
protected $ValEffectif = null; protected $ValEffectif = null;
protected $ValNAF = null; protected $ValNAF = null;
protected $ValFJ = null; protected $ValFJ = null;
@ -246,10 +246,25 @@ class Metier_Sfr
protected $ValEntrepRecente = null; protected $ValEntrepRecente = null;
protected $ValContratDate = null; protected $ValContratDate = null;
protected $ValContratAge = null;
protected $ValIR = null; protected $ValIR = null;
/**
* Indicateur VERT, ORANGE, ROUGE
* @var int
*/
protected $ValFEU = null; protected $ValFEU = null;
/**
* Prise d'ordre
* @var int
*/
protected $ValPO = null; protected $ValPO = null;
/**
* Commentaire
* @var string
*/
protected $ValComment = null; protected $ValComment = null;
protected $dateCalculIndiscore; protected $dateCalculIndiscore;
@ -421,6 +436,10 @@ class Metier_Sfr
if ($this->debug) file_put_contents('sfr.log', "INDISCORE = ".$this->ValIndiscore."\n", FILE_APPEND); if ($this->debug) file_put_contents('sfr.log', "INDISCORE = ".$this->ValIndiscore."\n", FILE_APPEND);
//Gestion non prospect - assignation des varaibles
//VarContratDate - ValIR
//Rules //Rules
$ruleType = array( 'VORP' , 'VORD' , 'PO'); $ruleType = array( 'VORP' , 'VORD' , 'PO');
foreach ( $ruleType as $type ) { foreach ( $ruleType as $type ) {
@ -582,7 +601,7 @@ class Metier_Sfr
break; break;
case 'LIST': case 'LIST':
if ( in_array($this->{'Val'.$var}, $valueReal) ) { if ( $valueReal !==null && in_array($this->{'Val'.$var}, $valueReal) ) {
return true; return true;
} }
return false; return false;
@ -653,6 +672,33 @@ class Metier_Sfr
return $this->dateCalculIndiscore; return $this->dateCalculIndiscore;
} }
public function getValDebug()
{
return array(
'ValIsCAC' => $this->ValIsCAC,
'ValTypeEntrep' => $this->ValTypeEntrep,
'ValIsAdmin' => $this->ValIsAdmin,
'ValIsEtranger' => $this->ValIsEtranger,
'ValEffectif' => $this->ValEffectif,
'ValNAF' => $this->ValNAF,
'ValFJ' => $this->ValFJ,
'ValRJ' => $this->ValRJ,
'ValLJ' => $this->ValLJ,
'ValSV' => $this->ValSV,
'ValIndiscore' => $this->ValIndiscore,
'ValInseeActif' => $this->ValInseeActif,
'ValInseeAge' => $this->ValInseeAge,
'ValEntrepRecente' => $this->ValEntrepRecente,
'dateCalculIndiscore' => $this->dateCalculIndiscore,
);
}
public function setVal($name, $value)
{
$this->{'Val'.$name} = $value;
}
/** /**
* *
*/ */