ajout gestion bilan confidentiel
This commit is contained in:
parent
45434cdd18
commit
438c98ba01
@ -364,7 +364,7 @@ class Metier_Partenaires_MBilans
|
||||
$where.= " LIMIT 0, $nbMaxBilans";
|
||||
}
|
||||
|
||||
$fields = "typeBilan, dateProvPartenaire, dateExercice, dateExercicePre, dureeExercice, dureeExercicePre, monnaieOrigine, dateInsert, partenaire";
|
||||
$fields = "typeBilan, dateProvPartenaire, dateExercice, dateExercicePre, dureeExercice, dureeExercicePre, monnaieOrigine, dateInsert, partenaire, confidentiel";
|
||||
$listeNb = 0;
|
||||
try {
|
||||
$listeSql = "SELECT $fields FROM jo.bilans WHERE $where";
|
||||
@ -392,6 +392,7 @@ class Metier_Partenaires_MBilans
|
||||
'dureeExercicePre' => $bil['dureeExercicePre'],
|
||||
'monnaie' => $bil['monnaieOrigine'],
|
||||
'source' => $bil['partenaire'],
|
||||
'confidentiel' => $bil['confidentiel'],
|
||||
);
|
||||
$tabTri[''.$bil['dateExercice'].'-'.$bil['typeBilan']] = $bil['typeBilan'].$millesime;
|
||||
}
|
||||
|
@ -4330,6 +4330,7 @@ class Entreprise extends Scores_Ws_Server
|
||||
$element->dureeExercicePre = $bilan['dureeExercicePre'];
|
||||
$element->monnaie = $bilan['monnaie'];
|
||||
$element->source = $bilan['source'];
|
||||
$element->confidentiel = $bilan['confidentiel'];
|
||||
$tabRet[] = $element;
|
||||
}
|
||||
|
||||
|
@ -2366,6 +2366,11 @@ class ListeBilans
|
||||
* @var int
|
||||
*/
|
||||
public $source;
|
||||
|
||||
/** Confidentialité du bilan (1 si confidentiel, 0 sinon)
|
||||
* @var int
|
||||
*/
|
||||
public $confidentiel;
|
||||
}
|
||||
|
||||
class SetSurveillanceReturn
|
||||
@ -2550,6 +2555,11 @@ class Bilan
|
||||
*/
|
||||
public $SOURCE;
|
||||
|
||||
/** Bilan confidentiel ou non
|
||||
* @var string
|
||||
*/
|
||||
public $TOP_CONFIDENTIEL;
|
||||
|
||||
/** Tableau de postes du bilan dans le formalisme associé au Type de bilan
|
||||
* @var BilanPoste[]
|
||||
*/
|
||||
|
@ -1386,10 +1386,12 @@ class Saisie extends Scores_Ws_Server
|
||||
* Postes et Information du bilan
|
||||
* @param string $step (normal|nocheck|onlycheck)
|
||||
* Etape
|
||||
* @param string $confidentiel (0: non|idCient: oui)
|
||||
* Confidentialité
|
||||
* @return int
|
||||
* @throws SoapFault
|
||||
*/
|
||||
public function setBilan($siren, $cloture, $type, $data, $step = null)
|
||||
public function setBilan($siren, $cloture, $type, $data, $step = null, $confidentiel=0)
|
||||
{
|
||||
$this->authenticate();
|
||||
|
||||
@ -1485,7 +1487,7 @@ class Saisie extends Scores_Ws_Server
|
||||
'unite' => $data->unite,
|
||||
'postes' => $data->postes,
|
||||
'partenaire' => 1,
|
||||
'confidentiel' => 0,
|
||||
'confidentiel' => $confidentiel,
|
||||
'dateInsert' => date('YmdHis'),
|
||||
);
|
||||
|
||||
@ -1532,7 +1534,7 @@ class Saisie extends Scores_Ws_Server
|
||||
'unite' => $data->unite,
|
||||
'postes' => $data->postes,
|
||||
'partenaire' => 1,
|
||||
'confidentiel' => 0,
|
||||
'confidentiel' => $confidentiel,
|
||||
'dateInsert' => date('YmdHis'),
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user