[FogBugz #83] sxconnexion.asmx #145
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Assigned To: Frederik Benoist
Project: CAISSE
Area: awcaisse
Category: Bogue
Priority: A étudier
Event ID: 642
Date: 2013-08-29T14:59:30Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Event ID: 641
Date: 2013-08-29T14:55:42Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Event ID: 640
Date: 2013-08-29T14:54:27Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
<<Bouton déconnexion>>
C:\projets\DotSoft\CaisseAuto\awCaisse\Vues\cfCaisse.vb
Au final ce sera la propriété pForcageDeconnecter de cSurveilleConnection.vb qui sera appellée.
Private Sub CmdConnexion_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdConnexion.Click
' BSS 13/07/2010 - Demander une confirmation avant de dconnecter l'application
If Not cApplication.psSurveilleInternet.pForcageDeconnecter AndAlso cfMessage.msShowDialog(True, True, False, False, "Dconnection", "Voulez-vous vraiment passer en mode dconnect?", Nothing, cfMessage.eTypImage.Question) <> DialogResult.Yes Then Exit Sub
App.mAction(bInterface.PluginApp.IPlugin.actions.deconnection_caisse, App.pTicketGestionCourant.pTicketEntete.pEmployes.pIdEmploye)
cApplication.psForcerModeDeconnecter = Not cApplication.psForcerModeDeconnecter
If cApplication.psForcerModeDeconnecter Then
cApplication.psSurveilleInternet.pForcageDeconnecter = True
'Me.CmdConnexion.mClignotementBoutonLancer()
Me.CmdConnexion.Text = cLangueService.pCaisse.mLireLibelle("cfCaisse", "conexioncaisse", "C")
Me.CmdConnexion.ImageIndex = 2
Else
cApplication.psSurveilleInternet.pForcageDeconnecter = False
'Me.CmdConnexion.mClignotementBoutonStop()
Me.CmdConnexion.Text = cLangueService.pCaisse.mLireLibelle("cfCaisse", "deconexioncaisse", "D")
Me.CmdConnexion.ImageIndex = 3
End If
End Sub
Event ID: 639
Date: 2013-08-29T14:38:32Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Event ID: 638
Date: 2013-08-29T14:09:31Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
C:\projets\DotSoft\CaisseAuto\bInternet\cInternet.vb
Private Shared Function pIsServeurRepond(ByVal IdStructure As Long, ByVal IdCaisse As Long, Optional ByVal AdressServeur As String = "") As Boolean
If AdressServeur.Length = 0 Then
AdressServeur = cInternet.vAdresseServeur
If AdressServeur.Length = 0 Then Throw New Exception("L'adresse du serveur n'a encore jamais t renseigne.")
Else
cInternet.vAdresseServeur = AdressServeur
End If
Try
'tester le service web qui retourne True
Using Sw As New swConnexion.swConnexion()
Sw.Url = AdressServeur
Sw.Timeout = cInternet.vsTimeOut
cInternet.vDateServeur = Sw.mIsServeurDisponible()
Return cInternet.psIsConnectedTous(True)
End Using
Event ID: 637
Date: 2013-08-29T13:41:49Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
C:\projets\DotSoft\CaisseAuto\bCaisse\cCaisse.vb
' Charger le fichier de configuration
Dim document As Xml.XmlDocument = msLireConfiguration(vCaisse)
cConfigurationCaisse.msCharger(document)
Event ID: 636
Date: 2013-08-29T12:50:37Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
C:\projets\DotSoft\CaisseAuto\awCaisse\Code\cApplication.vb
Public Event eConnexion(ByVal IsConnected As Boolean)
'Public WithEvents vSurveilleInternet As bInternet.cSurveilleConnection
Public Sub mInitialiseSurveillanceInternet(ByVal IPServeur As String)
bApplication.cApplication.vsSurveilleInternet = New bInternet.cSurveilleConnection(4000, CInt(cConfigLocal.psIdStructure), CInt(cConfigLocal.psIdCaisse), "http://" & IPServeur & "/swConnexion.asmx")
bInternet.cSurveilleConnection.psInstanceEnCours = bApplication.cApplication.vsSurveilleInternet
RaiseEvent eConnexion(bApplication.cApplication.vsSurveilleInternet.pIsConnected)
'Me.vSurveilleInternet.Dispose()
End Sub
Event ID: 635
Date: 2013-08-29T12:49:23Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
C:\projets\DotSoft\CaisseAuto\bCore\Configuration\cConfigurationCaisse.vb
''' <summary> Donne le time out de connexion pour check la connexion au SW web </summary>
Public ReadOnly Property pParaTimeOutVerifConnexion() As Integer
Get
Return msLireEntier("root/timeout", 4000)
End Get
End Property
Pas utilisé à priori ...
Event ID: 634
Date: 2013-08-29T12:45:33Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
C:\projets\DotSoft\CaisseAuto\bInternet\cSurveilleConnection.vb
Public Sub New(ByVal Temps As Integer, ByVal IdStructure As Integer, ByVal IdCaisse As Integer, Optional ByVal AdressServeur As String = "")
Me.vAdressServeur = AdressServeur
Me.vIdStructure = IdStructure
Me.vIdCaisse = IdCaisse
Me.vNetWork = New Microsoft.VisualBasic.Devices.Network
Me.vIsConnected = cInternet.pIsConnected(IdStructure, IdCaisse, AdressServeur, Me.vNetWork)
Me.vTemporisation = Temps
TaThreadVerifConnect.BeginInvoke(Nothing, Nothing)
End Sub
Event ID: 633
Date: 2013-08-29T12:44:05Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
http://swduplik-4-0.gzsi.local/swConnexion.asmx
C:\projets\DotSoft\CaisseAuto\bInternet\cInternet.vb
Le plus "important" est la classe cInternet. Elle contient propriété : pIsConnected
le thread "TaThreadVerifConnect" dans cSurveilleConnection.vb qui tourne toutes les 4 secondes appelle cette propriété.
Dans cApplication.vb on a "psForcerModeDeconnecter" et une propriéte : psIsConnected
Public Shared Function psIsConnected() As Boolean
If vsForcerModeDeconnecte Then Return False
If vsSurveilleInternet Is Nothing Then Return False
Return vsSurveilleInternet.pIsConnected
End Function
Event ID: 323
Date: 2013-02-06T15:34:25Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Event ID: 322
Date: 2013-02-06T15:19:16Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Envoi : Content-Length: 298
Retour : Content-Length: 420
Event ID: 321
Date: 2013-02-06T15:18:45Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Event ID: 316
Date: 2013-02-06T15:02:42Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist
Event ID: 315
Date: 2013-02-06T15:02:42Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist