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
| '----------------------------------------------------------------------------
' demarrage_anomalies : PREPARATION DE TOUTES LES TABLES DE BASE DES CALCULS'
' '
'----------------------------------------------------------------------------
Public Function demarrage_anomalies()
On Error GoTo demarrage_anomalies_Err
Dim appel_fonction As Boolean
'dans le module "mo_vidage"
appel_fonction = vidage()
'RECHARGE LES TABLES AVEC LES NOUVELLES DATES DE SAISIE
'------------------------------------------------------
' ra_t_GTJOUR
DoCmd.OpenQuery "ra_t_GTJOUR", acNormal, acAdd
'MsgBox "Requete ra_t_gtjour finie"
' ra_t_GTPRECT
DoCmd.OpenQuery "ra_t_GTPRECT", acNormal, acAdd
'MsgBox "Requête ra_t_GTPRECT finie"
' ra_t_absjour
DoCmd.OpenQuery "ra_t_absjour", acNormal, acAdd
'MsgBox "Requête ra_t_absjour finie"
' ra_t_peextend
DoCmd.OpenQuery "ra_t_peextend", acNormal, acAdd
'MsgBox "Requête ra_t_peextend finie"
' ra_t_peextend_faux
DoCmd.OpenQuery "ra_t_peextend_faux", acNormal, acAdd
'MsgBox "Requête ra_t_peextend_faux finie"
' ra_t_sans_complement_CH
DoCmd.OpenQuery "ra_t_sans_complement_CH", acNormal, acAdd
'MsgBox "Requête ra_t_sans_complement_CH finie"
' ra_t_sans_complement_HN
DoCmd.OpenQuery "ra_t_sans_complement_HN", acNormal, acAdd
'MsgBox "Requête ra_t_sans_complement_HN finie"
' rcreat_t_abs_heure
DoCmd.OpenQuery "rcreat_t_abs_heure", acNormal, acEdit
'MsgBox "Requête rcreat_t_abs_heure finie"
' ra_T_abs_heure_jour
DoCmd.OpenQuery "ra_T_abs_heure_jour", acNormal, acAdd
'MsgBox "Requête ra_T_abs_heure_jour finie"
' ra_T_abs_jour_heure
DoCmd.OpenQuery "ra_T_abs_jour_heure", acNormal, acAdd
'MsgBox "Requête ra_T_abs_jour_heure finie"
' ra_t_abs_heures_perm
DoCmd.OpenQuery "ra_t_abs_heures_perm", acNormal, acAdd
'MsgBox "Requête ra_t_abs_heures_perm finie"
' ra_t_droit_conges
'----> Cette requête est supprimée car elle est déjà lancée dans la fonction conges()
'DoCmd.OpenQuery "ra_t_droit_conges", acNormal, acAdd
'MsgBox "Requête ra_t_droit_conges finie"
' ra_t_AJO
DoCmd.OpenQuery "ra_t_AJO", acNormal, acAdd
'MsgBox "Requête ra_t_AJO finie"
'rcreat_horaire_pompier
DoCmd.OpenQuery "rcreat_horaire_pompier", acNormal, acAdd
'MsgBox "Requête rcreat_horaire_pompier finie"
'rcreat_t_liste_pompier_horaire
DoCmd.OpenQuery "rcreat_t_liste_pompier_horaire", acNormal, acAdd
'MsgBox "Requête rcreat_t_liste_pompier_horaire finie"
'creation liste pompiers ayant modifier changés de calendrier ds période saisie
DoCmd.OpenQuery "rcreat_t_liste_pompier_horaire_histo", acNormal, acAdd
'MsgBox "Requête rcreat_t_liste_pompier_horaire_histo finie"
'invalider les enregistrements suite à ce dernier changt
DoCmd.OpenQuery "MAJ_t_liste_pompier_horaire_non_valide", acNormal, acAdd
'MsgBox "Requête MAJ_t_liste_pompier_horaire_non_valide finie"
'rcreat_t_pompier_I_R70_repos
DoCmd.OpenQuery "rcreat_t_pompier_I_R70_repos", acNormal, acAdd
'MsgBox "Requête rcreat_t_pompier_I_R70_repos finie"
'MsgBox "début des fonctions"
'APPEL DES FONCTIONS
'-------------------
'dans le module "mo_factionnaire"
appel_fonction = factions()
'MsgBox "fonction factions finie"
'dans le module "mo_pointage"
appel_fonction = pointage()
'MsgBox "fonction pointage finie"
'ds le module "mo_pointage_dejeuner"
appel_fonction = pointage_dejeuner()
'MsgBox "fonction pointage_dejeuner finie"
'dans le module "mo_conges"
appel_fonction = conges()
'MsgBox "fonction conges finie"
'dans le module "mo_maladie"
appel_fonction = maladie()
'MsgBox "fonction maladie finie"
'dans le module "mo_heures_negatives"
appel_fonction = heures_negatives()
'MsgBox "fonction heures_negatives finie"
'dans le module "mo_BOR_RCL_pris"
appel_fonction = BOR_RCL_pris()
'MsgBox "fonction BOR_RCL_pris finie"
'MsgBox "traitement terminé"
demarrage_anomalies_Exit:
Exit Function
demarrage_anomalies_Err:
MsgBox Error$
Resume demarrage_anomalies_Exit
End Function |
Partager