API RF AFF_ECL_X

  Version ACE : 1.4

Package : Standard

Sous-programme Basic : gnc_rf_affect_miss_ecl_egx

Fonctionnalité :SCE Mobile
Schémas d’entrée et de sortie : voir en fin de document.

Cette API permet d’affecter une mission d’éclatement à un agent (champ « operateur »).

API imbriquées : aucune. Cette API est appelée par « gnc_rf_recherche_eclatement ».

Contraintes et limites de fonctionnement (hors périmètre)

RAS.

Paramétrage (PPE)

GESMIS -

Cas d'erreur

CODE PARAMÈTRE DESCRIPTION
3 / ELT_PASTRO “lopr”, typtie, sigtie, operateur The RF operator is not found.

Détail de l'API

Read the RF operator data (LOPR) with the input parameters (typtie, sigtie, idopr).

If the RF operator does not exist, the API returns an error code 3 and an error message «ELT_PASTRO».

Read the RF mission data (LMIS) with the input parameters (typtie, sigtie, idmission).

If the activity is changed (lopr.idact != lmis.idact).

Save the mission data (lhstopr).

Modify the operator context (lopr).

Assign the mission to the operator (lmis.utimis = idopr, lmis.statut = ‘5’).

Modify the mission with the used equipment (lmis.prfequip = lopr.prfequip, lmis.idequip = lopr.idequip).

Call the function gnc_rf_memorise_utimis, as so to store the operator assigned to the mission in the lmis parameterised field refered by the GESMIS.D1 if presented or in the first parameterized field otherwise.

Paramètres en entrée

NOM DU PARAMÈTRE FORMAT OBL O/N REMARQUE
typtie Char(3) O Third-party type
sigtie Char(12) O Third-party ID
idmission Number O Mission ID
idopr Char(8) O Operator ID
Paramètres en sortie
NOM DU PARAMÈTRE TYPE FORMAT TAILLE OBL O/N REMARQUE
ParamOut1   Number     Identifiant de la mission affectée