| API / APIs Radiofréquence | |
| Version ACE : 1.4 | |
|
Package : Standard Sous-programme Basic : gnc_rf_affect_miss_dec_egx |
Fonctionnalité :SCE Mobile |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet d'affecter une mission RF de déchargement à un opérateur RF.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| GESMIS - |
| CODE | PARAMÈTRE | DESCRIPTION |
| 3 / ELT_PASTRO | lopr, typtie, sigtie, operateur | The RF operator is not found. |
| 2 | The RF unloading mission is not found. |
Read the RF operator data (LOPR) with the input parameters (typtie, sigtie, operator).
If the RF operator does not exist, the API returns an error code 3 and an error message «ELT_PASTRO».
For each unloading mission (LMIS.ltypact = 1) affected to an operator (lmis.statut =5) for the reception (lmis.typentite = 1 and lmis.identite = numrec)
If the mission is found.
Call the functon gnc_rf_controle_valid_mission (with the found mission data), as so to control the validity of the mission.
If the mission is not valid.
Delete the mission.
If the mission is valid and the ID of the operator assigned to the mission (lmis.utimis) is the same as the operator ID from the RF operator data (LOPR.idopr).
The mission is considered as found.
If the mission is not found.
For each created (lmis.statut = 1) unloading mission (lmis.ltypact = 1) for the reception (lmis.typentite = 1 and lmis.identite = numrec)
If the mission is found.
Call the functon gnc_rf_controle_valid_mission (with the found mission data), as so to control the validity of the mission.
If the mission is not valid.
Delete the mission.
Else
The mission is considered as found.
If the mission is not found.
For each blocked (LMIS.statut = 2 ) unloading mission (lmis.ltypact = 1) for the reception (lmis.typentite = 1 and lmis.identite = numrec)
If the mission is found.
Call the functon gnc_rf_controle_valid_mission (with the found mission data), as so to control the validity of the mission.
If the mission is not valid.
Delete the mission.
If the mission is valid and the blocking starting date is less than the system date.
The mission is considered as found.
If the mission is found.
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 = operator, 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.
Else.
The API returns an error code 2.
| NOM DU PARAMÈTRE | FORMAT | OBL O/N | REMARQUE |
| Typtie | Char(3) | O | Third-party type |
| Sigtie | Char(12) | O | Third-party ID |
| Numrec | Number | O | Reception Number |
| Operateur | Char(8) | O | Operator |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| ParamOut1 | Number | Created mission ID (LMIS .idmission) |