Function EventNotify (Id As Integer, sParam As String) As Integer
Dim Ret%
Select Case Id
Case 0
XasTrace "EventNotify --->xFleetMsgErr" + sParam
Case 1
Ret = EvtForcedClick(sParam)
Case 2
XasTrace "EventNotify --->2-------->" + sParam
Case 101 'Rechercher de Proximité
XasTrace "EventNotify --->2-------->" + sParam
Ret = xPopRech(1, Id, sParam)
Case 102 'Recherche de proximité
XasTrace "EventNotify --->2-------->" + sParam
Ret = xPopRech(2, Id, sParam)
Case 104
XasTrace "EventNotify --->Les dix dernières positions-------->" + sParam
Case 105
XasTrace "EventNotify --->Depuis le début de la journée-------->" + sParam
Case 110 'Recherche de proximité
XasTrace "EventNotify --->2-------->" + sParam
Ret = xPopRech(3, Id, "")
Case 111 'Recherche de proximité
XasTrace "EventNotify --->2-------->" + sParam
If GlobModeObject = 0 Then
GlobModeObject = 1
Else
GlobModeObject = 0
End If
Case 112 'Flip Flop Trajet
GlobModeObject = 0
'Case 104 'Les dix dernières positions
' s = Date$
' Ret = CComponent("aMission").RAPGetLastRapport(GetCharByIndice(sData, ";", 2), s, 1)
' If Ret = True Then
' sData = "XasFireEvent('Id" + XasGetIdCtrl(BtBord(Index), "aMission.ForOnglet(1)", 0) + "','click',200);" + Chr$(13) + Chr$(10)
' Ret = XasUserSetProperties(BtBord(0), 206, sData) 'Before Update
' Else
' Ret = aMapMsgErr(200 + Index, "Aucun rapport", sData)
' End If
'Case 105 'Depuis le début de la journée
' s = Date$
' Ret = CComponent("aMission").RAPGetLastRapport(GetCharByIndice(sData, ";", 2), s, 0)
' If Ret = True Then
' sData = "XasFireEvent('Id" + XasGetIdCtrl(BtBord(Index), "aMission.ForOnglet(2)", 0) + "','click',200);" + Chr$(13) + Chr$(10)
' Ret = XasUserSetProperties(BtBord(0), 206, sData) 'Before Update
' Else
' Ret = aMapMsgErr(200 + Index, "Aucun rapport", sData)
' End If
Case 201
Ret = xPopDialogue(2, 1, sParam)
Ret = CCompoEnvelop("FleMap").xLocalCLear(0)
Case Else
Ret = GestionFleMap(Id, sParam)
End Select
End Function
|