| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138 |
- Version =20
- VersionRequired =20
- Begin Form
- DividingLines = NotDefault
- AllowDesignChanges = NotDefault
- DefaultView =0
- PictureAlignment =2
- DatasheetGridlinesBehavior =3
- GridY =10
- Width =12703
- DatasheetFontHeight =11
- ItemSuffix =56
- Right =15330
- Bottom =12345
- DatasheetGridlinesColor =14806254
- Filter ="[CodeAgent]='AAA' AND [PeriodeValidite]=1"
- RecSrcDt = Begin
- 0x76711b6daf39e440
- End
- RecordSource ="SELECT tbl_Agents.CodeAgent, tbl_Agents.Nom, tbl_Agents.PeriodeValidite, tbl_Age"
- "nts.Grade, tbl_Agents.Catégorie, tbl_Agents.RémunérationBase, tbl_Agents.Groupe,"
- " tbl_Agents.ResidenceAdmin, tbl_Agents.ResidenceFamiliale, tbl_Agents.Telephone,"
- " tbl_Agents.Matricule, tbl_Agents.TypeVehicule, tbl_Agents.DateAutorisationVP, t"
- "bl_Agents.PuissanceFiscVP, tbl_Agents.NbKmAutorisesVP, tbl_Agents.TypeVirement F"
- "ROM tbl_Agents; "
- OnOpen ="[Event Procedure]"
- DatasheetFontName ="Calibri"
- FilterOnLoad =0
- ShowPageMargins =0
- DisplayOnSharePointSite =1
- DatasheetAlternateBackColor =15921906
- DatasheetGridlinesColor12 =0
- FitToScreen =1
- DatasheetBackThemeColorIndex =1
- BorderThemeColorIndex =3
- ThemeFontIndex =1
- ForeThemeColorIndex =0
- AlternateBackThemeColorIndex =1
- AlternateBackShade =95.0
- Begin
- Begin Label
- BackStyle =0
- FontSize =11
- FontName ="Calibri"
- ThemeFontIndex =1
- BackThemeColorIndex =1
- BorderThemeColorIndex =0
- BorderTint =50.0
- ForeThemeColorIndex =0
- ForeTint =50.0
- GridlineThemeColorIndex =1
- GridlineShade =65.0
- End
- Begin CommandButton
- Width =1701
- Height =283
- FontSize =11
- FontWeight =400
- FontName ="Calibri"
- ForeThemeColorIndex =0
- ForeTint =75.0
- GridlineThemeColorIndex =1
- GridlineShade =65.0
- UseTheme =1
- Shape =1
- Gradient =12
- BackThemeColorIndex =4
- BackTint =60.0
- BorderLineStyle =0
- BorderColor =16777215
- BorderThemeColorIndex =4
- BorderTint =60.0
- ThemeFontIndex =1
- HoverThemeColorIndex =4
- HoverTint =40.0
- PressedThemeColorIndex =4
- PressedShade =75.0
- HoverForeThemeColorIndex =0
- HoverForeTint =75.0
- PressedForeThemeColorIndex =0
- PressedForeTint =75.0
- End
- Begin TextBox
- AddColon = NotDefault
- FELineBreak = NotDefault
- BorderLineStyle =0
- Width =1701
- LabelX =-1701
- FontSize =11
- FontName ="Calibri"
- AsianLineBreak =1
- BackThemeColorIndex =1
- BorderThemeColorIndex =1
- BorderShade =65.0
- ThemeFontIndex =1
- ForeThemeColorIndex =0
- ForeTint =75.0
- GridlineThemeColorIndex =1
- GridlineShade =65.0
- End
- Begin ListBox
- BorderLineStyle =0
- Width =1701
- Height =1417
- LabelX =-1701
- FontSize =11
- FontName ="Calibri"
- AllowValueListEdits =1
- InheritValueList =1
- ThemeFontIndex =1
- BackThemeColorIndex =1
- BorderThemeColorIndex =1
- BorderShade =65.0
- ForeThemeColorIndex =0
- ForeTint =75.0
- GridlineThemeColorIndex =1
- GridlineShade =65.0
- End
- Begin ComboBox
- AddColon = NotDefault
- BorderLineStyle =0
- Width =1701
- LabelX =-1701
- FontSize =11
- FontName ="Calibri"
- AllowValueListEdits =1
- InheritValueList =1
- ThemeFontIndex =1
- BackThemeColorIndex =1
- BorderThemeColorIndex =1
- BorderShade =65.0
- ForeThemeColorIndex =2
- ForeShade =50.0
- GridlineThemeColorIndex =1
- GridlineShade =65.0
- End
- Begin FormHeader
- Height =510
- BackColor =15849926
- Name ="EntêteFormulaire"
- AlternateBackThemeColorIndex =1
- AlternateBackShade =95.0
- BackThemeColorIndex =2
- BackTint =20.0
- Begin
- Begin Label
- OverlapFlags =85
- Left =170
- Top =56
- Width =3986
- Height =334
- FontSize =13
- BorderColor =8355711
- Name ="Étiquette20"
- Caption ="Création d'un nouvel agent"
- GridlineColor =10921638
- LayoutCachedLeft =170
- LayoutCachedTop =56
- LayoutCachedWidth =4156
- LayoutCachedHeight =390
- ForeTint =100.0
- End
- End
- End
- Begin Section
- Height =8787
- BackColor =14270637
- Name ="Détail"
- AlternateBackColor =15921906
- AlternateBackThemeColorIndex =1
- AlternateBackShade =95.0
- Begin
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =917
- Top =1530
- Width =3066
- Height =315
- ColumnWidth =3225
- BorderColor =10921638
- ForeColor =4210752
- Name ="Nom"
- ControlSource ="Nom"
- GridlineColor =10921638
- LayoutCachedLeft =917
- LayoutCachedTop =1530
- LayoutCachedWidth =3983
- LayoutCachedHeight =1845
- Begin
- Begin Label
- OverlapFlags =85
- Left =175
- Top =1530
- Width =585
- Height =315
- BorderColor =8355711
- Name ="Étiquette1"
- Caption ="Nom:"
- GridlineColor =10921638
- LayoutCachedLeft =175
- LayoutCachedTop =1530
- LayoutCachedWidth =760
- LayoutCachedHeight =1845
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =2561
- Top =2040
- Width =1431
- Height =315
- TabIndex =1
- BorderColor =10921638
- ForeColor =4210752
- Name ="Grade"
- ControlSource ="Grade"
- GridlineColor =10921638
- LayoutCachedLeft =2561
- LayoutCachedTop =2040
- LayoutCachedWidth =3992
- LayoutCachedHeight =2355
- Begin
- Begin Label
- OverlapFlags =85
- Left =180
- Top =2040
- Width =890
- Height =315
- BorderColor =8355711
- Name ="Étiquette2"
- Caption ="Grade:"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =2040
- LayoutCachedWidth =1070
- LayoutCachedHeight =2355
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =2561
- Top =2437
- Width =1431
- Height =315
- TabIndex =2
- BorderColor =10921638
- ForeColor =4210752
- Name ="Catégorie"
- ControlSource ="Catégorie"
- GridlineColor =10921638
- LayoutCachedLeft =2561
- LayoutCachedTop =2437
- LayoutCachedWidth =3992
- LayoutCachedHeight =2752
- Begin
- Begin Label
- OverlapFlags =85
- Left =180
- Top =2437
- Width =1080
- Height =315
- BorderColor =8355711
- Name ="Étiquette3"
- Caption ="Catégorie:"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =2437
- LayoutCachedWidth =1260
- LayoutCachedHeight =2752
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =2561
- Top =2834
- Width =1431
- Height =315
- TabIndex =3
- BorderColor =10921638
- ForeColor =4210752
- Name ="RémunérationBase"
- ControlSource ="RémunérationBase"
- GridlineColor =10921638
- LayoutCachedLeft =2561
- LayoutCachedTop =2834
- LayoutCachedWidth =3992
- LayoutCachedHeight =3149
- Begin
- Begin Label
- OverlapFlags =85
- Left =180
- Top =2834
- Width =2310
- Height =315
- BorderColor =8355711
- Name ="Étiquette4"
- Caption ="Rémunération de base:"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =2834
- LayoutCachedWidth =2490
- LayoutCachedHeight =3149
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =2578
- Top =3231
- Width =1401
- Height =315
- TabIndex =4
- BorderColor =10921638
- ForeColor =4210752
- Name ="Groupe"
- ControlSource ="Groupe"
- GridlineColor =10921638
- LayoutCachedLeft =2578
- LayoutCachedTop =3231
- LayoutCachedWidth =3979
- LayoutCachedHeight =3546
- Begin
- Begin Label
- OverlapFlags =85
- Left =180
- Top =3231
- Width =795
- Height =315
- BorderColor =8355711
- Name ="Étiquette5"
- Caption ="Groupe"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =3231
- LayoutCachedWidth =975
- LayoutCachedHeight =3546
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =7606
- Top =1530
- Width =4191
- Height =750
- TabIndex =5
- BorderColor =10921638
- ForeColor =4210752
- Name ="ResidenceAdmin"
- ControlSource ="ResidenceAdmin"
- GridlineColor =10921638
- LayoutCachedLeft =7606
- LayoutCachedTop =1530
- LayoutCachedWidth =11797
- LayoutCachedHeight =2280
- Begin
- Begin Label
- OverlapFlags =85
- Left =5005
- Top =1530
- Width =2490
- Height =315
- BorderColor =8355711
- Name ="Étiquette6"
- Caption ="Résidence administrative:"
- GridlineColor =10921638
- LayoutCachedLeft =5005
- LayoutCachedTop =1530
- LayoutCachedWidth =7495
- LayoutCachedHeight =1845
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =7606
- Top =2380
- Width =4191
- Height =780
- TabIndex =6
- BorderColor =10921638
- ForeColor =4210752
- Name ="ResidenceFamiliale"
- ControlSource ="ResidenceFamiliale"
- GridlineColor =10921638
- LayoutCachedLeft =7606
- LayoutCachedTop =2380
- LayoutCachedWidth =11797
- LayoutCachedHeight =3160
- Begin
- Begin Label
- OverlapFlags =85
- Left =4998
- Top =2380
- Width =2040
- Height =315
- BorderColor =8355711
- Name ="Étiquette7"
- Caption ="Résidence familiale:"
- GridlineColor =10921638
- LayoutCachedLeft =4998
- LayoutCachedTop =2380
- LayoutCachedWidth =7038
- LayoutCachedHeight =2695
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =7606
- Top =3344
- Width =3411
- Height =315
- TabIndex =7
- BorderColor =10921638
- ForeColor =4210752
- Name ="Telephone"
- ControlSource ="Telephone"
- GridlineColor =10921638
- LayoutCachedLeft =7606
- LayoutCachedTop =3344
- LayoutCachedWidth =11017
- LayoutCachedHeight =3659
- Begin
- Begin Label
- OverlapFlags =85
- Left =5005
- Top =3340
- Width =1140
- Height =315
- BorderColor =8355711
- Name ="Étiquette9"
- Caption ="Téléphone:"
- GridlineColor =10921638
- LayoutCachedLeft =5005
- LayoutCachedTop =3340
- LayoutCachedWidth =6145
- LayoutCachedHeight =3655
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =2560
- Top =3627
- Width =1431
- Height =315
- TabIndex =8
- BorderColor =10921638
- ForeColor =4210752
- Name ="Matricule"
- ControlSource ="Matricule"
- GridlineColor =10921638
- LayoutCachedLeft =2560
- LayoutCachedTop =3627
- LayoutCachedWidth =3991
- LayoutCachedHeight =3942
- Begin
- Begin Label
- OverlapFlags =85
- Left =180
- Top =3628
- Width =960
- Height =315
- BorderColor =8355711
- Name ="Étiquette10"
- Caption ="Matricule"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =3628
- LayoutCachedWidth =1140
- LayoutCachedHeight =3943
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =3984
- Top =5102
- Width =1641
- Height =315
- TabIndex =9
- BorderColor =10921638
- ForeColor =4210752
- Name ="DateAutorisationVP"
- ControlSource ="DateAutorisationVP"
- StatusBarText ="Date de l'autorisation d'utiliser le véhicule personnel"
- GridlineColor =10921638
- LayoutCachedLeft =3984
- LayoutCachedTop =5102
- LayoutCachedWidth =5625
- LayoutCachedHeight =5417
- Begin
- Begin Label
- OverlapFlags =85
- Left =180
- Top =5101
- Width =3630
- Height =315
- BorderColor =8355711
- Name ="Étiquette12"
- Caption ="Date de l'autorisation de circuler:"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =5101
- LayoutCachedWidth =3810
- LayoutCachedHeight =5416
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =3978
- Top =5499
- Width =1641
- Height =315
- ColumnWidth =2640
- TabIndex =10
- BorderColor =10921638
- ForeColor =4210752
- Name ="PuissanceFiscVP"
- ControlSource ="PuissanceFiscVP"
- StatusBarText ="Puissance Fiscale Réelle du VP"
- GridlineColor =10921638
- LayoutCachedLeft =3978
- LayoutCachedTop =5499
- LayoutCachedWidth =5619
- LayoutCachedHeight =5814
- Begin
- Begin Label
- OverlapFlags =85
- Left =175
- Top =5500
- Width =2430
- Height =315
- BorderColor =8355711
- Name ="Étiquette13"
- Caption ="Puissance fiscale (en CV):"
- GridlineColor =10921638
- LayoutCachedLeft =175
- LayoutCachedTop =5500
- LayoutCachedWidth =2605
- LayoutCachedHeight =5815
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =3978
- Top =5895
- Width =1641
- Height =315
- TabIndex =11
- BorderColor =10921638
- ForeColor =4210752
- Name ="NbKmAutorisesVP"
- ControlSource ="NbKmAutorisesVP"
- StatusBarText ="Nombre de Km que l'agent est autorisé à parcourir avec son VP"
- GridlineColor =10921638
- LayoutCachedLeft =3978
- LayoutCachedTop =5895
- LayoutCachedWidth =5619
- LayoutCachedHeight =6210
- Begin
- Begin Label
- OverlapFlags =85
- Left =175
- Top =5890
- Width =2310
- Height =315
- BorderColor =8355711
- Name ="Étiquette14"
- Caption ="Nombr de Km autorisés:"
- GridlineColor =10921638
- LayoutCachedLeft =175
- LayoutCachedTop =5890
- LayoutCachedWidth =2485
- LayoutCachedHeight =6205
- ForeTint =100.0
- End
- End
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =7606
- Top =3798
- Width =3411
- Height =315
- TabIndex =13
- BorderColor =10921638
- ForeColor =4210752
- Name ="TypeVirement"
- ControlSource ="TypeVirement"
- GridlineColor =10921638
- LayoutCachedLeft =7606
- LayoutCachedTop =3798
- LayoutCachedWidth =11017
- LayoutCachedHeight =4113
- Begin
- Begin Label
- OverlapFlags =85
- Left =5005
- Top =3805
- Width =1770
- Height =315
- BorderColor =8355711
- Name ="Étiquette15"
- Caption ="Type de virement:"
- GridlineColor =10921638
- LayoutCachedLeft =5005
- LayoutCachedTop =3805
- LayoutCachedWidth =6775
- LayoutCachedHeight =4120
- ForeTint =100.0
- End
- End
- End
- Begin ComboBox
- OverlapFlags =85
- IMESentenceMode =3
- ColumnCount =2
- Left =2334
- Top =4648
- Width =3288
- Height =315
- TabIndex =14
- BorderColor =10921638
- ForeColor =4138256
- ColumnInfo ="\"\";\"\";\"\";\"\";\"10\";\"510\""
- Name ="TypeVehicule"
- ControlSource ="TypeVehicule"
- RowSourceType ="Table/Query"
- RowSource ="SELECT tbl_Listes.CodeChoix, tbl_Listes.LibelleChoix, tbl_Listes.TableListe, tbl"
- "_Listes.ChampListe FROM tbl_Listes WHERE (((tbl_Listes.TableListe)='tbl_Agents')"
- " AND ((tbl_Listes.ChampListe)='TypeVehicule')); "
- ColumnWidths ="0;2835"
- GridlineColor =10921638
- LayoutCachedLeft =2334
- LayoutCachedTop =4648
- LayoutCachedWidth =5622
- LayoutCachedHeight =4963
- Begin
- Begin Label
- OverlapFlags =85
- Left =180
- Top =4648
- Width =1710
- Height =315
- BorderColor =8355711
- Name ="Étiquette22"
- Caption ="Type de véhicule:"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =4648
- LayoutCachedWidth =1890
- LayoutCachedHeight =4963
- ForeTint =100.0
- End
- End
- End
- Begin Label
- FontUnderline = NotDefault
- OverlapFlags =85
- Left =180
- Top =1133
- Width =789
- Height =340
- FontSize =12
- FontWeight =700
- BorderColor =8355711
- Name ="Étiquette23"
- Caption ="Poste:"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =1133
- LayoutCachedWidth =969
- LayoutCachedHeight =1473
- ForeTint =100.0
- End
- Begin Label
- FontUnderline = NotDefault
- OverlapFlags =85
- Left =5005
- Top =1135
- Width =1485
- Height =345
- FontSize =12
- FontWeight =700
- BorderColor =8355711
- Name ="Étiquette24"
- Caption ="Coordonnées:"
- GridlineColor =10921638
- LayoutCachedLeft =5005
- LayoutCachedTop =1135
- LayoutCachedWidth =6490
- LayoutCachedHeight =1480
- ForeTint =100.0
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =4308
- Top =510
- Width =1819
- Height =300
- ColumnOrder =3
- FontWeight =700
- TabIndex =12
- BorderColor =10921638
- Name ="NvelleDate"
- Format ="Short Date"
- GridlineColor =10921638
- LayoutCachedLeft =4308
- LayoutCachedTop =510
- LayoutCachedWidth =6127
- LayoutCachedHeight =810
- ForeTint =100.0
- End
- Begin Label
- FontUnderline = NotDefault
- OverlapFlags =85
- Left =180
- Top =4195
- Width =2085
- Height =345
- FontSize =12
- FontWeight =700
- BorderColor =8355711
- Name ="Étiquette25"
- Caption ="Véhicule personnel:"
- GridlineColor =10921638
- LayoutCachedLeft =180
- LayoutCachedTop =4195
- LayoutCachedWidth =2265
- LayoutCachedHeight =4540
- ForeTint =100.0
- End
- Begin Label
- FontUnderline = NotDefault
- OverlapFlags =85
- Left =165
- Top =510
- Width =4035
- Height =345
- FontSize =12
- FontWeight =700
- BorderColor =8355711
- Name ="Étiquette47"
- Caption ="Ces données seront valides à partir du:"
- GridlineColor =10921638
- LayoutCachedLeft =165
- LayoutCachedTop =510
- LayoutCachedWidth =4200
- LayoutCachedHeight =855
- ForeTint =100.0
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =2097
- Top =113
- Width =1086
- Height =315
- FontWeight =700
- TabIndex =15
- BorderColor =10921638
- Name ="CodeAgent"
- ControlSource ="CodeAgent"
- GridlineColor =10921638
- LayoutCachedLeft =2097
- LayoutCachedTop =113
- LayoutCachedWidth =3183
- LayoutCachedHeight =428
- ForeTint =100.0
- Begin
- Begin Label
- FontUnderline = NotDefault
- OverlapFlags =85
- Left =165
- Top =120
- Width =1815
- Height =315
- FontSize =12
- FontWeight =700
- BorderColor =8355711
- Name ="Étiquette0"
- Caption ="Code de l'agent:"
- GridlineColor =10921638
- LayoutCachedLeft =165
- LayoutCachedTop =120
- LayoutCachedWidth =1980
- LayoutCachedHeight =435
- ForeTint =100.0
- End
- End
- End
- Begin Label
- OverlapFlags =93
- Left =170
- Top =6836
- Width =7365
- Height =585
- BorderColor =8355711
- Name ="Étiquette50"
- Caption ="Si l'agent a déja parcouru des kilomètres avec son véhicule personnel lors de la"
- " création, veuillez en saisir la quantité ici:"
- GridlineColor =10921638
- LayoutCachedLeft =170
- LayoutCachedTop =6836
- LayoutCachedWidth =7535
- LayoutCachedHeight =7421
- ForeTint =100.0
- End
- Begin TextBox
- OverlapFlags =223
- IMESentenceMode =3
- Left =3973
- Top =7086
- Width =1294
- Height =315
- TabIndex =16
- BorderColor =10921638
- ForeColor =4210752
- Name ="KmSuppl"
- DefaultValue ="0"
- GridlineColor =10921638
- ShowDatePicker =0
- LayoutCachedLeft =3973
- LayoutCachedTop =7086
- LayoutCachedWidth =5267
- LayoutCachedHeight =7401
- End
- Begin Label
- FontUnderline = NotDefault
- OverlapFlags =85
- Left =170
- Top =6387
- Width =2250
- Height =345
- FontSize =12
- FontWeight =700
- BorderColor =8355711
- Name ="Étiquette52"
- Caption ="Kilomètres initiaux:"
- GridlineColor =10921638
- LayoutCachedLeft =170
- LayoutCachedTop =6387
- LayoutCachedWidth =2420
- LayoutCachedHeight =6732
- ForeTint =100.0
- End
- Begin TextBox
- OverlapFlags =85
- IMESentenceMode =3
- Left =231
- Top =7879
- Width =5222
- Height =585
- TabIndex =17
- BorderColor =10921638
- ForeColor =4210752
- Name ="MotifKmSuppl"
- GridlineColor =10921638
- LayoutCachedLeft =231
- LayoutCachedTop =7879
- LayoutCachedWidth =5453
- LayoutCachedHeight =8464
- Begin
- Begin Label
- OverlapFlags =85
- Left =175
- Top =7541
- Width =5490
- Height =315
- BorderColor =8355711
- Name ="Étiquette54"
- Caption ="(Optionnel)Raison d'être des kilomètres supplémentaires:"
- GridlineColor =10921638
- LayoutCachedLeft =175
- LayoutCachedTop =7541
- LayoutCachedWidth =5665
- LayoutCachedHeight =7856
- ForeTint =100.0
- End
- End
- End
- Begin Label
- OverlapFlags =215
- Left =5272
- Top =7086
- Width =510
- Height =284
- BorderColor =8355711
- Name ="Étiquette55"
- Caption ="Km"
- GridlineColor =10921638
- LayoutCachedLeft =5272
- LayoutCachedTop =7086
- LayoutCachedWidth =5782
- LayoutCachedHeight =7370
- ForeTint =100.0
- End
- End
- End
- Begin FormFooter
- Height =623
- BackColor =14270637
- Name ="PiedFormulaire"
- AlternateBackThemeColorIndex =1
- AlternateBackShade =95.0
- Begin
- Begin CommandButton
- OverlapFlags =85
- Left =7993
- Top =113
- Width =1647
- Height =403
- ForeColor =4210752
- Name ="CmdOK"
- Caption ="Créer"
- OnClick ="[Event Procedure]"
- GridlineColor =10921638
- LayoutCachedLeft =7993
- LayoutCachedTop =113
- LayoutCachedWidth =9640
- LayoutCachedHeight =516
- Gradient =0
- BackColor =15921906
- BackThemeColorIndex =1
- BackTint =100.0
- BackShade =95.0
- BorderColor =14136213
- HoverColor =15060409
- PressedColor =9592887
- HoverForeColor =4210752
- PressedForeColor =4210752
- WebImagePaddingLeft =2
- WebImagePaddingTop =2
- WebImagePaddingRight =1
- WebImagePaddingBottom =1
- End
- Begin CommandButton
- OverlapFlags =85
- Left =9977
- Top =113
- Width =1647
- Height =403
- TabIndex =1
- ForeColor =4210752
- Name ="Annuler"
- Caption ="Annuler"
- OnClick ="[Event Procedure]"
- GridlineColor =10921638
- LayoutCachedLeft =9977
- LayoutCachedTop =113
- LayoutCachedWidth =11624
- LayoutCachedHeight =516
- Gradient =0
- BackColor =15921906
- BackThemeColorIndex =1
- BackTint =100.0
- BackShade =95.0
- BorderColor =14136213
- HoverColor =15060409
- PressedColor =9592887
- HoverForeColor =4210752
- PressedForeColor =4210752
- WebImagePaddingLeft =2
- WebImagePaddingTop =2
- WebImagePaddingRight =1
- WebImagePaddingBottom =1
- End
- End
- End
- End
- End
- CodeBehindForm
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = True
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Compare Database
- Private Sub Annuler_Click()
- Dim avertissement As Integer
- Dim sql, CodeAgent As String
- If MsgBox("Attention, les données saisies seront perdues. Voulez-vous continuer?", vbYesNo) = vbNo Then Exit Sub
- CodeAgent = Me.CodeAgent
- If DCount("JourRH", "tbl_formDep", "[CodeAgent]='" & CodeAgent & "'") > 0 Or DCount("JourRH", "tbl_formHS", "[CodeAgent]='" & CodeAgent & "'") > 0 Then
- MsgBox "Des données RH ont été importées pour cet agent, l'opération de suppression est annulée"
- Exit Sub
- End If
- avertissement = Nz(parametre("AvertSQL"), 1)
- If avertissement = 0 Then DoCmd.SetWarnings False
- sql = "DELETE * FROM tbl_Agents WHERE [CodeAgent]='" & CodeAgent & "';"
- DoCmd.RunSQL sql
- sql = "DELETE * FROM tbl_PeriodeAgent WHERE [CodeAgent]='" & CodeAgent & "';"
- DoCmd.RunSQL sql
- sql = "DELETE * FROM tbl_KmSuppl WHERE [CodeAgent]='" & CodeAgent & "';"
- DoCmd.RunSQL sql
- DoCmd.SetWarnings True
- DoCmd.Close
- End Sub
- Private Sub Form_Open(Cancel As Integer)
- Dim rs As DAO.Recordset
- Dim CodeAgent As String
- 'l'ajout d'un nouvel agent implique l'ajout d'une ligne à la table agent, ainsi que d'une ligne à la table tbl_PeriodeAgent.
- 'La création de cette ligne implique de connaitre la date à partir de laquelle ce nouvel agent est opérationnel
- 'si cette date n'est pas en janvier, une ligne doit être ajoutée aux tables tbl_FormDep et tbl_FormHS qui servira de conditions initiales
- Me.NvelleDate = "01/" & Format(Month(Now()), "00") & "/" & Year(Now())
- CodeAgent = Nz(InputBox("Veuillez saisir le code de l'agent à ajouter:"), "")
- If CodeAgent = "" Then
- MsgBox "Opération Annulée"
- DoCmd.Close
- Exit Sub
- End If
- 'Création d'une nouvelle ligne dans tbl_Agents
- Set rs = CurrentDb.OpenRecordset("tbl_Agents")
- rs.AddNew
- rs![CodeAgent] = CodeAgent
- rs![PeriodeValidite] = 1
- rs.Update
- 'on place l'enregistrement du formulaire sur ce nouvel enregistrement
- Me.FilterOn = False
- Me.Filter = "[CodeAgent]='" & CodeAgent & "' AND [PeriodeValidite]=1"
- Me.FilterOn = True
- Me.Refresh
- End Sub
- Private Sub CmdOK_Click()
- Dim rs As DAO.Recordset
- Dim NvelleDate As Date
- Dim CodeAgent As String
- CodeAgent = Me.CodeAgent
- NvelleDate = CDate(Me.NvelleDate)
- If IsNull(NvelleDate) Then
- Me.NvelleDate.BackColor = 12566463
- Exit Sub
- End If
- NvPeriode = NvellePeriode("tbl_PeriodeAgent", CodeAgent, NvelleDate)
- If NvPeriode = 0 Then
- MsgBox "Erreur lors de la création de la nouvelle période de validité."
- Exit Sub
- End If
- If Nz(Me.KmSuppl, 0) <> 0 Then
- Set rs = CurrentDb.OpenRecordset("tbl_KmSuppl")
- rs.AddNew
- rs![CodeAgent] = CodeAgent
- rs![anneeRH] = Year(NvelleDate)
- rs![KmSuppl] = Me.KmSuppl
- rs![Motif] = Nz(Me.MotifKmSuppl, "")
- rs.Update
- End If
- Call CreerMsg(13, , CodeAgent)
- MsgBox "L'agent " & CodeAgent & " a été créé."
- DoCmd.Close
- End Sub
|