| API / APIs Radiofréquence | |
| Version ACE : 1.3 | |
|
Package : Standard Sous-programme Basic : gnc_rf_affect_miss_rec |
Fonctionnalité :SCE Mobile |
| Schémas d’entrée et de sortie : | voir en fin de document. |
Cette API permet d’affecter une mission de réception RF à un agent RF.
API imbriquées : aucune.
Contraintes et limites de fonctionnement (hors périmètre)
| RAS. |
Paramétrage (PPE)
| GESMIS - |
| CODE | PARAMÈTRE | DESCRIPTION |
| 2 / RFREC03006 | The RF reception mission is not found. | |
| 3 / ELT_PASTRO | LOPR | The RF operator 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 ».
Read the RF reception missions affected to an operator - reading cycle on LMIS table with an activity type = ‘2’ (lmis.ltypact = ‘2’), an entity type = ‘1’ (lmis.typentite = ‘1’) end a status = ‘5’ (lmis.statut = ‘5’).
If the mission is found.
Call the funciton 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 received parameter ‘operator’.
The mission is considered as found.
If the mission is not found.
Read the created RF reception missions - reading cycle on LMIS table with an activity type = ‘2’ (lmis.ltypact = ‘2’), an entity type = ‘1’ (lmis.typentite = ‘1’) end a status = ‘1’ (lmis.statut = ‘1’).
If the mission is found.
Call the funciton 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.
Read the blocked RF reception missions - reading cycle on LMIS table with an activity type = ‘2’ (lmis.ltypact = ‘2’), an entity type = ‘1’ (lmis.typentite = ‘1’) end a status = ‘2’ (lmis.statut = ‘2’).
If the mission is found.
Call the function 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 or equal to 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.unimis = operator, lmis.statut = ‘5’).
Modify the mission with the used equipment (lmis.prfequip = lopr.prfequip, lmis.idequip = lopr.idequip).
Else.
The API returns an error code 2 and an error message «RFREC03006».
| NOM DU PARAMÈTRE | FORMAT | OBL O/N | REMARQUE |
| typtie | Char(3) | O | Depot type |
| sigtie | Char(12) | O | Depot ID |
| numrec | Number | O | Reception number |
| operateur | Char(8) | O | Operator ID |
| NOM DU PARAMÈTRE | TYPE | FORMAT | TAILLE | OBL O/N | REMARQUE |
| Aucun paramètre |