1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
| Private Sub ChangeGrafs_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
Private Sub cmdFirst_Click()
Form3.Show
End Sub
Private Sub cmdPrevious_Click()
statistique.Show
End Sub
Private Sub Command2_Click()
MSChart1.Visible = True
ChangeGrafs.Visible = True
Adodc1.RecordSource = "SELECT brouillé,COUNT (brouillé) From brouillage GROUP BY brouillé"
Adodc1.Refresh
Adodc1.Caption = Adodc1.RecordSource
Adodc1.Recordset.MoveNext
End Sub
code2:
Private Sub DataGrid1_Click()
End Sub
Private Sub dernier_Click()
Adodc1.Recordset.MoveLast
End Sub
Private Sub Image2_Click()
End Sub
Private Sub Image3_Click()
Fermeture.Show
End Sub
Private Sub menu_Click()
FRMMENU.Show
End Sub
Private Sub menuprincipal_Click()
Form3.Show
End Sub
Private Sub précédent_Click()
Adodc1.Recordset.MovePrevious
End Sub
Private Sub premier_Click()
Adodc1.Recordset.MoveFirst
End Sub
Private Sub Quitter_Click()
Fermeture.Show
End Sub
Private Sub suivant_Click()
Adodc1.Recordset.MoveNext
End Sub
code3:
Private Sub cmdFirst_Click()
Form3.Show
End Sub
Private Sub cmdPrevious_Click()
statistique.Show
End Sub
Private Sub Command1_Click()
Adodc1.RecordSource = "SELECT datedeplainte,COUNT (datedeplainte) as nombre_de_interevntion From brouillage GROUP BY datedeplainte"
Adodc1.Refresh
Adodc1.Caption = Adodc1.RecordSource
DataGrid2.Visible = True
End Sub
Private Sub Command2_Click()
Adodc1.RecordSource = "SELECT Brouillé ,COUNT (Brouillé) as nombre_de_reclamation From brouillage GROUP BY Brouillé"
Adodc1.Refresh
Adodc1.Caption = Adodc1.RecordSource
DataGrid3.Visible = True
End Sub
Private Sub DataGrid1_Click()
On Error GoTo err
If IsNull(Me.Adodc1.Recordset!Intervenants) Then
Me.Text4.Text = ""
Else
Me.Text4.Text = (Me.Adodc1.Recordset!Intervenants)
End If
If IsNull(Me.Adodc1.Recordset!Date_intervention) Then
Me.Text2.Text = ""
Else
Me.Text2.Text = (Me.Adodc1.Recordset!Date_intervention)
End If
GoTo fin
err:
MsgBox "Erreur 1"
fin:
End Sub
Private Sub DataGrid1_HeadClick(ByVal ColIndex As Integer)
On Error GoTo err
Select Case ColIndex
Case 1
Me.Adodc1.Recordset.Sort = "[N° de licence]"
Case 2
Me.Adodc1.Recordset.Sort = "[Intervenant]"
End Select
Me.Adodc1.Recordset.Requery
GoTo fin
err:
MsgBox "Erreur 6"
fin:
End Sub
Sub affichage()
On Error Resume Next
Text1 = Adodc1.Recordset.Fields(1)
End Sub
Private Sub Label2_Click()
code4:
Private Sub Command1_Click()
FRMMENU.Show
End Sub
Private Sub Command4_Click()
Fermeture.Show
End Sub
Private Sub Command3_Click()
statistique.Show
End Sub
Private Sub Image1_Click()
Fermeture.Show
End Sub
code5:
Option Explicit
Dim p As Integer
Public LoginSucceeded As Boolean
Private Sub cmdCancel_Click()
' Affecte la valeur False à la variable globale
' pour indiquer l'échec de la connexion.
'LoginSucceeded = False
'Me.Hide
'Debut.Hide
End
End Sub
Private Sub cmdOK_Click()
' Vérifie si le mot de passe est correct.
If txtPassword = "karim" And txtUserName = "chaouachi" Then
' Placer le code ici pour signaler
' à la procédure appelante la réussite de la fonction.
' Définir une variable globale est plus facile.
LoginSucceeded = True
Me.Hide
Chargement.Show
Else
If p > 1 Then
JouerLeFichier App.Path + "\" & "_ERREUR.WAV"
MsgBox "Mot de passe et/ou Nom Utulisateur non valide(s), réessayez !", , "Connexion"
p = p - 1
Text1.Text = "Il vous rèstes " & p & " essai(s)"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
Else
JouerLeFichier App.Path + "\" & "malfound.wav"
MsgBox "Vous n'étes pas autorisez ,L'application doit fermer !", vbCritical, "Connexion"
Me.Hide
Debut.Hide
End If
End If
End Sub
Private Sub Form_Load()
p = 3
Text1.Text = "Vous avez 3 essai(s)"
frmLogin.Visible = False
Debut.Show
Splash.Show
Splash.SetFocus
Call DelayTime(1) 'Délais de 2 Sec
Splash.SetFocus
Call DelayTime(1) 'Délais 1 Sec
Unload Splash
Splash2.Show
Splash2.SetFocus
Call DelayTime(1) 'Délais de 2 Sec
Splash2.SetFocus
Call DelayTime(1) 'Délais 1 Sec
Unload Splash2
splash3.Show
splash3.SetFocus
Call DelayTime(1) 'Délais de 2 Sec
splash3.SetFocus
Call DelayTime(1) 'Délais 1 Sec
Unload splash3
frmLogin.Visible = True
frmLogin.SetFocus
End Sub
Private Sub Image2_Click()
End Sub
code6:
Private Sub cmdPrevious_Click()
Form3.Show
End Sub
Private Sub cmdReload_Click()
frmbackup.Show
Unload Me
End Sub
Private Sub cmdReload_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1(2).BackColor = &HFF00FF
End Sub
Private Sub cmdSort_Click()
Form1.Show
Unload Me
End Sub
Private Sub cmdSort_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1(3).BackColor = &HFF00FF
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Shape1(5).BackColor = &H0&
Shape1(0).BackColor = &H0&
Shape1(1).BackColor = &H0&
Shape1(2).BackColor = &H0&
Shape1(3).BackColor = &H0&
Shape1(4).BackColor = &H0&
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
Label2.Caption = KeyAscii
End Sub
code7:
Private Sub Form_Unload(Cancel As Integer)
Set Splash = Nothing
End Sub
code8:
Private Sub cmdPrevious_Click()
Form3.Show
End Sub
Private Sub Command1_Click()
Form2.Show
End Sub
Private Sub Command2_Click()
ChangeGraf.Show
End Sub
Private Sub FondEcran_Click(Index As Integer)
End Sub
Private Sub his_Click()
graphe.Show
End Sub
Private Sub Image1_Click()
Fermeture.Show
End Sub
Private Sub quit_Click()
Fermeture.Show
End Sub
Private Sub table_Click()
tableau.Show |
Partager