frm_MAJAgent.bas 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184
  1. Version =20
  2. VersionRequired =20
  3. Begin Form
  4. DividingLines = NotDefault
  5. FilterOn = NotDefault
  6. AllowDesignChanges = NotDefault
  7. DefaultView =0
  8. PictureAlignment =2
  9. DatasheetGridlinesBehavior =3
  10. GridY =10
  11. Width =11970
  12. DatasheetFontHeight =11
  13. ItemSuffix =47
  14. Right =10395
  15. Bottom =12345
  16. DatasheetGridlinesColor =14806254
  17. Filter ="[CodeAgent]='T5' AND [PeriodeValidite]=1"
  18. RecSrcDt = Begin
  19. 0x8fb1b13eb636e440
  20. End
  21. RecordSource ="SELECT tbl_Agents.CodeAgent, tbl_Agents.Nom, tbl_Agents.PeriodeValidite, tbl_Age"
  22. "nts.Grade, tbl_Agents.Catégorie, tbl_Agents.RémunérationBase, tbl_Agents.Groupe,"
  23. " tbl_Agents.ResidenceAdmin, tbl_Agents.ResidenceFamiliale, tbl_Agents.Telephone,"
  24. " tbl_Agents.Matricule, tbl_Agents.TypeVehicule, tbl_Agents.DateAutorisationVP, t"
  25. "bl_Agents.PuissanceFiscVP, tbl_Agents.NbKmAutorisesVP, tbl_Agents.TypeVirement F"
  26. "ROM tbl_Agents; "
  27. AfterUpdate ="[Event Procedure]"
  28. OnOpen ="[Event Procedure]"
  29. DatasheetFontName ="Calibri"
  30. FilterOnLoad =0
  31. ShowPageMargins =0
  32. DisplayOnSharePointSite =1
  33. DatasheetAlternateBackColor =15921906
  34. DatasheetGridlinesColor12 =0
  35. FitToScreen =1
  36. DatasheetBackThemeColorIndex =1
  37. BorderThemeColorIndex =3
  38. ThemeFontIndex =1
  39. ForeThemeColorIndex =0
  40. AlternateBackThemeColorIndex =1
  41. AlternateBackShade =95.0
  42. Begin
  43. Begin Label
  44. BackStyle =0
  45. FontSize =11
  46. FontName ="Calibri"
  47. ThemeFontIndex =1
  48. BackThemeColorIndex =1
  49. BorderThemeColorIndex =0
  50. BorderTint =50.0
  51. ForeThemeColorIndex =0
  52. ForeTint =50.0
  53. GridlineThemeColorIndex =1
  54. GridlineShade =65.0
  55. End
  56. Begin CommandButton
  57. Width =1701
  58. Height =283
  59. FontSize =11
  60. FontWeight =400
  61. FontName ="Calibri"
  62. ForeThemeColorIndex =0
  63. ForeTint =75.0
  64. GridlineThemeColorIndex =1
  65. GridlineShade =65.0
  66. UseTheme =1
  67. Shape =1
  68. Gradient =12
  69. BackThemeColorIndex =4
  70. BackTint =60.0
  71. BorderLineStyle =0
  72. BorderColor =16777215
  73. BorderThemeColorIndex =4
  74. BorderTint =60.0
  75. ThemeFontIndex =1
  76. HoverThemeColorIndex =4
  77. HoverTint =40.0
  78. PressedThemeColorIndex =4
  79. PressedShade =75.0
  80. HoverForeThemeColorIndex =0
  81. HoverForeTint =75.0
  82. PressedForeThemeColorIndex =0
  83. PressedForeTint =75.0
  84. End
  85. Begin TextBox
  86. AddColon = NotDefault
  87. FELineBreak = NotDefault
  88. BorderLineStyle =0
  89. Width =1701
  90. LabelX =-1701
  91. FontSize =11
  92. FontName ="Calibri"
  93. AsianLineBreak =1
  94. BackThemeColorIndex =1
  95. BorderThemeColorIndex =1
  96. BorderShade =65.0
  97. ThemeFontIndex =1
  98. ForeThemeColorIndex =0
  99. ForeTint =75.0
  100. GridlineThemeColorIndex =1
  101. GridlineShade =65.0
  102. End
  103. Begin ListBox
  104. BorderLineStyle =0
  105. Width =1701
  106. Height =1417
  107. LabelX =-1701
  108. FontSize =11
  109. FontName ="Calibri"
  110. AllowValueListEdits =1
  111. InheritValueList =1
  112. ThemeFontIndex =1
  113. BackThemeColorIndex =1
  114. BorderThemeColorIndex =1
  115. BorderShade =65.0
  116. ForeThemeColorIndex =0
  117. ForeTint =75.0
  118. GridlineThemeColorIndex =1
  119. GridlineShade =65.0
  120. End
  121. Begin ComboBox
  122. AddColon = NotDefault
  123. BorderLineStyle =0
  124. Width =1701
  125. LabelX =-1701
  126. FontSize =11
  127. FontName ="Calibri"
  128. AllowValueListEdits =1
  129. InheritValueList =1
  130. ThemeFontIndex =1
  131. BackThemeColorIndex =1
  132. BorderThemeColorIndex =1
  133. BorderShade =65.0
  134. ForeThemeColorIndex =2
  135. ForeShade =50.0
  136. GridlineThemeColorIndex =1
  137. GridlineShade =65.0
  138. End
  139. Begin FormHeader
  140. Height =2267
  141. BackColor =15849926
  142. Name ="EntêteFormulaire"
  143. AlternateBackThemeColorIndex =1
  144. AlternateBackShade =95.0
  145. BackThemeColorIndex =2
  146. BackTint =20.0
  147. Begin
  148. Begin CommandButton
  149. OverlapFlags =85
  150. Left =113
  151. Top =56
  152. Width =516
  153. Height =396
  154. ForeColor =4210752
  155. Name ="Commande19"
  156. Caption ="Commande19"
  157. ControlTipText ="Fermer formulaire"
  158. GridlineColor =10921638
  159. OnClickEmMacro = Begin
  160. Version =196611
  161. ColumnsShown =8
  162. Begin
  163. Action ="Close"
  164. Argument ="-1"
  165. Argument =""
  166. Argument ="0"
  167. End
  168. Begin
  169. Comment ="_AXL:<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"no\"?>\015\012<UserI"
  170. "nterfaceMacro For=\"Commande19\" xmlns=\"http://schemas.microsoft.com/office/acc"
  171. "essservices/2009/11/application\" xmlns:a=\"http://schemas.microsoft.com/office/"
  172. "accessservices/2009/11/forms\">"
  173. End
  174. Begin
  175. Comment ="_AXL:<Statements><Action Name=\"CloseWindow\"/></Statements></UserInterfaceMacro"
  176. ">"
  177. End
  178. End
  179. ImageData = Begin
  180. 0x2800000010000000100000000100200000000000000000000000000000000000 ,
  181. 0x0000000000000000000000000000000000000000000000000000000010081080 ,
  182. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  183. 0x000000000000000000000000000000000000000040485020100810e0104050ff ,
  184. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  185. 0x0000000000000000000000000000000040404080405860ff106890ff2080a0f0 ,
  186. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  187. 0x0000000000000000607070ff80a0b0ff4080a0ff20a0d0ff40a8e0ff2078a0ff ,
  188. 0x101020ff101020ff000000000000000000000000000000000000000000000000 ,
  189. 0x0000000000000000708890ffa0d8f0ff60d0ffff50c0f0ff30a8e0ff1080b0ff ,
  190. 0xe0d8d0ff102020ff000000000000000000000000000000000000000000000000 ,
  191. 0x0000000000000000708890ffb0e8f0ff80e0ffff60c8f0ff50b8f0ff1088c0ff ,
  192. 0xf0d8d0ff202830ff000000000000000090482030904820ff0000000000000000 ,
  193. 0x0000000000000000808890ffb0e8f0ff80e0ffff60d0ffff404050ff1090c0ff ,
  194. 0xf0e0d0ff303840ff0000000090482030a05030ffa05020ff0000000000000000 ,
  195. 0x00000000000000008090a0ffc0f0ffff90e0ffff70d8ffff60c8f0ff0090c0ff ,
  196. 0xf0e0e0ff404050ff90482030a05030ffd07840ffb05830ffa05020ffa04820ff ,
  197. 0x904820ff904820ff8090a0ffc0f0ffffa0e8ffff80d8ffff70d0f0ff40b0e0ff ,
  198. 0xf0e8e0ff605050ffa05830ffe08860fff09060fff08850ffe07850ffd07040ff ,
  199. 0xb06840ff904820ff8098a0ffc0f0ffffa0e8ffff90e8ffff80e0ffff80b8d0ff ,
  200. 0xf0e8e0ffe09870ffffc0a0ffffb090ffffa070fff09060fff08850ffe07850ff ,
  201. 0xd07040ffa05020ff8098a0ffc0f0ffffc0f8ffffa0e0f0ff90a8b0ffc0c8d0ff ,
  202. 0xf0f0e0ff908080fff0a070ffffc0a0ffffb090ffffb090ffffa880fff0a080ff ,
  203. 0xe09870ffb05030ff90a0a0ffe0f8ffffb0c8d0ff90a0b0fff0f0f0fffff8f0ff ,
  204. 0xf0f0f0ff607080ffe0987050f0a070ffffc0a0ffd06830ffe09870ffe09060ff ,
  205. 0xe08860ffe08050ff90a0b0ff90a8b0ffc0c8d0ffffffffffffffffffffffffff ,
  206. 0xffffffff708890ff00000000e0987050e09870ffd07040ff0000000000000000 ,
  207. 0x000000000000000090a0b0ff90a0b0ff90a0b0ff90a0b0ff90a0a0ff8098a0ff ,
  208. 0x8098a0ff9098a0ff0000000000000000e0987050e09870ff0000000000000000 ,
  209. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  210. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  211. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  212. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  213. 0x0000000000000000
  214. End
  215. LayoutCachedLeft =113
  216. LayoutCachedTop =56
  217. LayoutCachedWidth =629
  218. LayoutCachedHeight =452
  219. Gradient =0
  220. BackColor =15921906
  221. BackThemeColorIndex =1
  222. BackTint =100.0
  223. BackShade =95.0
  224. BorderColor =14136213
  225. HoverColor =15060409
  226. PressedColor =9592887
  227. HoverForeColor =4210752
  228. PressedForeColor =4210752
  229. WebImagePaddingLeft =2
  230. WebImagePaddingTop =2
  231. WebImagePaddingRight =1
  232. WebImagePaddingBottom =1
  233. End
  234. Begin Label
  235. OverlapFlags =85
  236. Left =680
  237. Top =56
  238. Width =3986
  239. Height =334
  240. FontSize =13
  241. BorderColor =8355711
  242. Name ="Étiquette20"
  243. Caption ="Mise à jour des données de l'agent"
  244. GridlineColor =10921638
  245. LayoutCachedLeft =680
  246. LayoutCachedTop =56
  247. LayoutCachedWidth =4666
  248. LayoutCachedHeight =390
  249. ForeTint =100.0
  250. End
  251. Begin Label
  252. OverlapFlags =93
  253. Left =795
  254. Top =963
  255. Width =4425
  256. Height =345
  257. BorderColor =8355711
  258. Name ="txt_ancdate"
  259. Caption ="Les données ci dessous sont valables depuis le "
  260. GridlineColor =10921638
  261. LayoutCachedLeft =795
  262. LayoutCachedTop =963
  263. LayoutCachedWidth =5220
  264. LayoutCachedHeight =1308
  265. ForeTint =100.0
  266. End
  267. Begin TextBox
  268. OverlapFlags =85
  269. IMESentenceMode =3
  270. Left =8617
  271. Top =966
  272. Width =1476
  273. Height =315
  274. ColumnOrder =2
  275. TabIndex =1
  276. BorderColor =10921638
  277. ForeColor =4210752
  278. Name ="DateInf"
  279. GridlineColor =10921638
  280. LayoutCachedLeft =8617
  281. LayoutCachedTop =966
  282. LayoutCachedWidth =10093
  283. LayoutCachedHeight =1281
  284. End
  285. Begin Label
  286. OverlapFlags =85
  287. Left =795
  288. Top =1368
  289. Width =7710
  290. Height =285
  291. BorderColor =8355711
  292. Name ="txt_nvdate"
  293. Caption ="Veuillez choisir la date à partir de laquelle les nouvelles données prendront e"
  294. "ffet:"
  295. GridlineColor =10921638
  296. LayoutCachedLeft =795
  297. LayoutCachedTop =1368
  298. LayoutCachedWidth =8505
  299. LayoutCachedHeight =1653
  300. ForeTint =100.0
  301. End
  302. Begin TextBox
  303. OverlapFlags =85
  304. IMESentenceMode =3
  305. Left =8617
  306. Top =1363
  307. Width =1474
  308. Height =315
  309. ColumnOrder =3
  310. TabIndex =2
  311. BorderColor =10921638
  312. ForeColor =4210752
  313. Name ="NvelleDate"
  314. Format ="Short Date"
  315. GridlineColor =10921638
  316. LayoutCachedLeft =8617
  317. LayoutCachedTop =1363
  318. LayoutCachedWidth =10091
  319. LayoutCachedHeight =1678
  320. End
  321. Begin Label
  322. OverlapFlags =85
  323. Left =793
  324. Top =1760
  325. Width =6480
  326. Height =345
  327. BorderColor =8355711
  328. Name ="txt_copie"
  329. Caption ="Voulez vous utiliser les anciennes données comme point de départ?"
  330. GridlineColor =10921638
  331. LayoutCachedLeft =793
  332. LayoutCachedTop =1760
  333. LayoutCachedWidth =7273
  334. LayoutCachedHeight =2105
  335. ForeTint =100.0
  336. End
  337. Begin ComboBox
  338. RowSourceTypeInt =1
  339. OverlapFlags =85
  340. IMESentenceMode =3
  341. ColumnCount =2
  342. ListWidth =1442
  343. Left =8617
  344. Top =1760
  345. Width =1476
  346. Height =315
  347. ColumnOrder =1
  348. TabIndex =3
  349. BorderColor =10921638
  350. ForeColor =4138256
  351. Name ="CopieAnc"
  352. RowSourceType ="Value List"
  353. RowSource ="1;\"Oui\";0;\"Non\""
  354. ColumnWidths ="0;1441"
  355. GridlineColor =10921638
  356. LayoutCachedLeft =8617
  357. LayoutCachedTop =1760
  358. LayoutCachedWidth =10093
  359. LayoutCachedHeight =2075
  360. End
  361. Begin TextBox
  362. Locked = NotDefault
  363. FontItalic = NotDefault
  364. OldBorderStyle =0
  365. OverlapFlags =93
  366. BackStyle =0
  367. IMESentenceMode =3
  368. Left =11281
  369. Top =113
  370. Width =501
  371. Height =315
  372. ColumnOrder =0
  373. FontSize =9
  374. TabIndex =4
  375. BorderColor =10921638
  376. ForeColor =4210752
  377. Name ="PeriodeValidite"
  378. ControlSource ="PeriodeValidite"
  379. StatusBarText ="cf. tbl_PeriodeAgent"
  380. GridlineColor =10921638
  381. LayoutCachedLeft =11281
  382. LayoutCachedTop =113
  383. LayoutCachedWidth =11782
  384. LayoutCachedHeight =428
  385. End
  386. Begin CommandButton
  387. OverlapFlags =85
  388. Left =10261
  389. Top =1760
  390. Width =1077
  391. TabIndex =5
  392. ForeColor =4210752
  393. Name ="CmdOK"
  394. Caption ="OK"
  395. OnClick ="[Event Procedure]"
  396. GridlineColor =10921638
  397. LayoutCachedLeft =10261
  398. LayoutCachedTop =1760
  399. LayoutCachedWidth =11338
  400. LayoutCachedHeight =2043
  401. Gradient =0
  402. BackColor =15921906
  403. BackThemeColorIndex =1
  404. BackTint =100.0
  405. BackShade =95.0
  406. BorderColor =14136213
  407. HoverColor =15060409
  408. PressedColor =9592887
  409. HoverForeColor =4210752
  410. PressedForeColor =4210752
  411. WebImagePaddingLeft =2
  412. WebImagePaddingTop =2
  413. WebImagePaddingRight =1
  414. WebImagePaddingBottom =1
  415. End
  416. Begin Label
  417. OverlapFlags =215
  418. Left =793
  419. Top =680
  420. Width =6855
  421. Height =630
  422. BorderColor =8355711
  423. Name ="txt_edition"
  424. Caption ="Veuillez renseigner ci dessous les nouvelles informations de l'agent. Elles sero"
  425. "nt prises en compte à partir du:"
  426. GridlineColor =10921638
  427. LayoutCachedLeft =793
  428. LayoutCachedTop =680
  429. LayoutCachedWidth =7648
  430. LayoutCachedHeight =1310
  431. ForeTint =100.0
  432. End
  433. Begin Label
  434. FontItalic = NotDefault
  435. OverlapFlags =247
  436. Left =9070
  437. Top =113
  438. Width =2385
  439. Height =225
  440. FontSize =9
  441. BorderColor =8355711
  442. ForeColor =8355711
  443. Name ="Étiquette46"
  444. Caption ="Code de la période affichée:"
  445. GridlineColor =10921638
  446. LayoutCachedLeft =9070
  447. LayoutCachedTop =113
  448. LayoutCachedWidth =11455
  449. LayoutCachedHeight =338
  450. End
  451. End
  452. End
  453. Begin Section
  454. Height =6179
  455. BackColor =14270637
  456. Name ="Détail"
  457. AlternateBackColor =15921906
  458. AlternateBackThemeColorIndex =1
  459. AlternateBackShade =95.0
  460. Begin
  461. Begin TextBox
  462. OverlapFlags =85
  463. IMESentenceMode =3
  464. Left =1870
  465. Top =113
  466. Width =1086
  467. Height =315
  468. BorderColor =10921638
  469. ForeColor =4210752
  470. Name ="CodeAgent"
  471. ControlSource ="CodeAgent"
  472. GridlineColor =10921638
  473. LayoutCachedLeft =1870
  474. LayoutCachedTop =113
  475. LayoutCachedWidth =2956
  476. LayoutCachedHeight =428
  477. Begin
  478. Begin Label
  479. OverlapFlags =85
  480. Left =165
  481. Top =120
  482. Width =1575
  483. Height =315
  484. BorderColor =8355711
  485. Name ="Étiquette0"
  486. Caption ="Code de l'agent:"
  487. GridlineColor =10921638
  488. LayoutCachedLeft =165
  489. LayoutCachedTop =120
  490. LayoutCachedWidth =1740
  491. LayoutCachedHeight =435
  492. ForeTint =100.0
  493. End
  494. End
  495. End
  496. Begin TextBox
  497. OverlapFlags =85
  498. IMESentenceMode =3
  499. Left =907
  500. Top =1190
  501. Width =3066
  502. Height =315
  503. ColumnWidth =3225
  504. TabIndex =1
  505. BorderColor =10921638
  506. ForeColor =4210752
  507. Name ="Nom"
  508. ControlSource ="Nom"
  509. GridlineColor =10921638
  510. LayoutCachedLeft =907
  511. LayoutCachedTop =1190
  512. LayoutCachedWidth =3973
  513. LayoutCachedHeight =1505
  514. Begin
  515. Begin Label
  516. OverlapFlags =85
  517. Left =165
  518. Top =1190
  519. Width =585
  520. Height =315
  521. BorderColor =8355711
  522. Name ="Étiquette1"
  523. Caption ="Nom:"
  524. GridlineColor =10921638
  525. LayoutCachedLeft =165
  526. LayoutCachedTop =1190
  527. LayoutCachedWidth =750
  528. LayoutCachedHeight =1505
  529. ForeTint =100.0
  530. End
  531. End
  532. End
  533. Begin TextBox
  534. OverlapFlags =85
  535. IMESentenceMode =3
  536. Left =2551
  537. Top =1700
  538. Width =1431
  539. Height =315
  540. TabIndex =2
  541. BorderColor =10921638
  542. ForeColor =4210752
  543. Name ="Grade"
  544. ControlSource ="Grade"
  545. GridlineColor =10921638
  546. LayoutCachedLeft =2551
  547. LayoutCachedTop =1700
  548. LayoutCachedWidth =3982
  549. LayoutCachedHeight =2015
  550. Begin
  551. Begin Label
  552. OverlapFlags =85
  553. Left =170
  554. Top =1700
  555. Width =890
  556. Height =315
  557. BorderColor =8355711
  558. Name ="Étiquette2"
  559. Caption ="Grade:"
  560. GridlineColor =10921638
  561. LayoutCachedLeft =170
  562. LayoutCachedTop =1700
  563. LayoutCachedWidth =1060
  564. LayoutCachedHeight =2015
  565. ForeTint =100.0
  566. End
  567. End
  568. End
  569. Begin TextBox
  570. OverlapFlags =85
  571. IMESentenceMode =3
  572. Left =2551
  573. Top =2097
  574. Width =1431
  575. Height =315
  576. TabIndex =3
  577. BorderColor =10921638
  578. ForeColor =4210752
  579. Name ="Catégorie"
  580. ControlSource ="Catégorie"
  581. GridlineColor =10921638
  582. LayoutCachedLeft =2551
  583. LayoutCachedTop =2097
  584. LayoutCachedWidth =3982
  585. LayoutCachedHeight =2412
  586. Begin
  587. Begin Label
  588. OverlapFlags =85
  589. Left =170
  590. Top =2097
  591. Width =1080
  592. Height =315
  593. BorderColor =8355711
  594. Name ="Étiquette3"
  595. Caption ="Catégorie:"
  596. GridlineColor =10921638
  597. LayoutCachedLeft =170
  598. LayoutCachedTop =2097
  599. LayoutCachedWidth =1250
  600. LayoutCachedHeight =2412
  601. ForeTint =100.0
  602. End
  603. End
  604. End
  605. Begin TextBox
  606. OverlapFlags =85
  607. IMESentenceMode =3
  608. Left =2551
  609. Top =2494
  610. Width =1431
  611. Height =315
  612. TabIndex =4
  613. BorderColor =10921638
  614. ForeColor =4210752
  615. Name ="RémunérationBase"
  616. ControlSource ="RémunérationBase"
  617. GridlineColor =10921638
  618. LayoutCachedLeft =2551
  619. LayoutCachedTop =2494
  620. LayoutCachedWidth =3982
  621. LayoutCachedHeight =2809
  622. Begin
  623. Begin Label
  624. OverlapFlags =85
  625. Left =170
  626. Top =2494
  627. Width =2310
  628. Height =315
  629. BorderColor =8355711
  630. Name ="Étiquette4"
  631. Caption ="Rémunération de base:"
  632. GridlineColor =10921638
  633. LayoutCachedLeft =170
  634. LayoutCachedTop =2494
  635. LayoutCachedWidth =2480
  636. LayoutCachedHeight =2809
  637. ForeTint =100.0
  638. End
  639. End
  640. End
  641. Begin TextBox
  642. OverlapFlags =85
  643. IMESentenceMode =3
  644. Left =2568
  645. Top =2891
  646. Width =1401
  647. Height =315
  648. TabIndex =5
  649. BorderColor =10921638
  650. ForeColor =4210752
  651. Name ="Groupe"
  652. ControlSource ="Groupe"
  653. GridlineColor =10921638
  654. LayoutCachedLeft =2568
  655. LayoutCachedTop =2891
  656. LayoutCachedWidth =3969
  657. LayoutCachedHeight =3206
  658. Begin
  659. Begin Label
  660. OverlapFlags =85
  661. Left =170
  662. Top =2891
  663. Width =795
  664. Height =315
  665. BorderColor =8355711
  666. Name ="Étiquette5"
  667. Caption ="Groupe"
  668. GridlineColor =10921638
  669. LayoutCachedLeft =170
  670. LayoutCachedTop =2891
  671. LayoutCachedWidth =965
  672. LayoutCachedHeight =3206
  673. ForeTint =100.0
  674. End
  675. End
  676. End
  677. Begin TextBox
  678. OverlapFlags =85
  679. IMESentenceMode =3
  680. Left =7596
  681. Top =1190
  682. Width =4191
  683. Height =750
  684. TabIndex =6
  685. BorderColor =10921638
  686. ForeColor =4210752
  687. Name ="ResidenceAdmin"
  688. ControlSource ="ResidenceAdmin"
  689. GridlineColor =10921638
  690. LayoutCachedLeft =7596
  691. LayoutCachedTop =1190
  692. LayoutCachedWidth =11787
  693. LayoutCachedHeight =1940
  694. Begin
  695. Begin Label
  696. OverlapFlags =85
  697. Left =4995
  698. Top =1190
  699. Width =2490
  700. Height =315
  701. BorderColor =8355711
  702. Name ="Étiquette6"
  703. Caption ="Résidence administrative:"
  704. GridlineColor =10921638
  705. LayoutCachedLeft =4995
  706. LayoutCachedTop =1190
  707. LayoutCachedWidth =7485
  708. LayoutCachedHeight =1505
  709. ForeTint =100.0
  710. End
  711. End
  712. End
  713. Begin TextBox
  714. OverlapFlags =85
  715. IMESentenceMode =3
  716. Left =7596
  717. Top =2040
  718. Width =4191
  719. Height =780
  720. TabIndex =7
  721. BorderColor =10921638
  722. ForeColor =4210752
  723. Name ="ResidenceFamiliale"
  724. ControlSource ="ResidenceFamiliale"
  725. GridlineColor =10921638
  726. LayoutCachedLeft =7596
  727. LayoutCachedTop =2040
  728. LayoutCachedWidth =11787
  729. LayoutCachedHeight =2820
  730. Begin
  731. Begin Label
  732. OverlapFlags =85
  733. Left =4988
  734. Top =2040
  735. Width =2040
  736. Height =315
  737. BorderColor =8355711
  738. Name ="Étiquette7"
  739. Caption ="Résidence familiale:"
  740. GridlineColor =10921638
  741. LayoutCachedLeft =4988
  742. LayoutCachedTop =2040
  743. LayoutCachedWidth =7028
  744. LayoutCachedHeight =2355
  745. ForeTint =100.0
  746. End
  747. End
  748. End
  749. Begin TextBox
  750. OverlapFlags =85
  751. IMESentenceMode =3
  752. Left =7596
  753. Top =3004
  754. Width =3411
  755. Height =315
  756. TabIndex =8
  757. BorderColor =10921638
  758. ForeColor =4210752
  759. Name ="Telephone"
  760. ControlSource ="Telephone"
  761. GridlineColor =10921638
  762. LayoutCachedLeft =7596
  763. LayoutCachedTop =3004
  764. LayoutCachedWidth =11007
  765. LayoutCachedHeight =3319
  766. Begin
  767. Begin Label
  768. OverlapFlags =85
  769. Left =4995
  770. Top =3000
  771. Width =1140
  772. Height =315
  773. BorderColor =8355711
  774. Name ="Étiquette9"
  775. Caption ="Téléphone:"
  776. GridlineColor =10921638
  777. LayoutCachedLeft =4995
  778. LayoutCachedTop =3000
  779. LayoutCachedWidth =6135
  780. LayoutCachedHeight =3315
  781. ForeTint =100.0
  782. End
  783. End
  784. End
  785. Begin TextBox
  786. OverlapFlags =85
  787. IMESentenceMode =3
  788. Left =2550
  789. Top =3287
  790. Width =1431
  791. Height =315
  792. TabIndex =9
  793. BorderColor =10921638
  794. ForeColor =4210752
  795. Name ="Matricule"
  796. ControlSource ="Matricule"
  797. GridlineColor =10921638
  798. LayoutCachedLeft =2550
  799. LayoutCachedTop =3287
  800. LayoutCachedWidth =3981
  801. LayoutCachedHeight =3602
  802. Begin
  803. Begin Label
  804. OverlapFlags =85
  805. Left =170
  806. Top =3288
  807. Width =960
  808. Height =315
  809. BorderColor =8355711
  810. Name ="Étiquette10"
  811. Caption ="Matricule"
  812. GridlineColor =10921638
  813. LayoutCachedLeft =170
  814. LayoutCachedTop =3288
  815. LayoutCachedWidth =1130
  816. LayoutCachedHeight =3603
  817. ForeTint =100.0
  818. End
  819. End
  820. End
  821. Begin TextBox
  822. OverlapFlags =85
  823. IMESentenceMode =3
  824. Left =3974
  825. Top =4762
  826. Width =1641
  827. Height =315
  828. TabIndex =10
  829. BorderColor =10921638
  830. ForeColor =4210752
  831. Name ="DateAutorisationVP"
  832. ControlSource ="DateAutorisationVP"
  833. StatusBarText ="Date de l'autorisation d'utiliser le véhicule personnel"
  834. GridlineColor =10921638
  835. LayoutCachedLeft =3974
  836. LayoutCachedTop =4762
  837. LayoutCachedWidth =5615
  838. LayoutCachedHeight =5077
  839. Begin
  840. Begin Label
  841. OverlapFlags =85
  842. Left =170
  843. Top =4761
  844. Width =3630
  845. Height =315
  846. BorderColor =8355711
  847. Name ="Étiquette12"
  848. Caption ="Date de l'autorisation de circuler:"
  849. GridlineColor =10921638
  850. LayoutCachedLeft =170
  851. LayoutCachedTop =4761
  852. LayoutCachedWidth =3800
  853. LayoutCachedHeight =5076
  854. ForeTint =100.0
  855. End
  856. End
  857. End
  858. Begin TextBox
  859. OverlapFlags =85
  860. IMESentenceMode =3
  861. Left =3968
  862. Top =5159
  863. Width =1641
  864. Height =315
  865. ColumnWidth =2640
  866. TabIndex =11
  867. BorderColor =10921638
  868. ForeColor =4210752
  869. Name ="PuissanceFiscVP"
  870. ControlSource ="PuissanceFiscVP"
  871. StatusBarText ="Puissance Fiscale Réelle du VP"
  872. GridlineColor =10921638
  873. LayoutCachedLeft =3968
  874. LayoutCachedTop =5159
  875. LayoutCachedWidth =5609
  876. LayoutCachedHeight =5474
  877. Begin
  878. Begin Label
  879. OverlapFlags =85
  880. Left =165
  881. Top =5160
  882. Width =2430
  883. Height =315
  884. BorderColor =8355711
  885. Name ="Étiquette13"
  886. Caption ="Puissance fiscale (en CV):"
  887. GridlineColor =10921638
  888. LayoutCachedLeft =165
  889. LayoutCachedTop =5160
  890. LayoutCachedWidth =2595
  891. LayoutCachedHeight =5475
  892. ForeTint =100.0
  893. End
  894. End
  895. End
  896. Begin TextBox
  897. OverlapFlags =85
  898. IMESentenceMode =3
  899. Left =3968
  900. Top =5555
  901. Width =1641
  902. Height =315
  903. TabIndex =12
  904. BorderColor =10921638
  905. ForeColor =4210752
  906. Name ="NbKmAutorisesVP"
  907. ControlSource ="NbKmAutorisesVP"
  908. StatusBarText ="Nombre de Km que l'agent est autorisé à parcourir avec son VP"
  909. GridlineColor =10921638
  910. LayoutCachedLeft =3968
  911. LayoutCachedTop =5555
  912. LayoutCachedWidth =5609
  913. LayoutCachedHeight =5870
  914. Begin
  915. Begin Label
  916. OverlapFlags =85
  917. Left =165
  918. Top =5550
  919. Width =2310
  920. Height =315
  921. BorderColor =8355711
  922. Name ="Étiquette14"
  923. Caption ="Nombr de Km autorisés:"
  924. GridlineColor =10921638
  925. LayoutCachedLeft =165
  926. LayoutCachedTop =5550
  927. LayoutCachedWidth =2475
  928. LayoutCachedHeight =5865
  929. ForeTint =100.0
  930. End
  931. End
  932. End
  933. Begin TextBox
  934. OverlapFlags =85
  935. IMESentenceMode =3
  936. Left =7596
  937. Top =3458
  938. Width =3411
  939. Height =315
  940. TabIndex =13
  941. BorderColor =10921638
  942. ForeColor =4210752
  943. Name ="TypeVirement"
  944. ControlSource ="TypeVirement"
  945. GridlineColor =10921638
  946. LayoutCachedLeft =7596
  947. LayoutCachedTop =3458
  948. LayoutCachedWidth =11007
  949. LayoutCachedHeight =3773
  950. Begin
  951. Begin Label
  952. OverlapFlags =85
  953. Left =4995
  954. Top =3465
  955. Width =1770
  956. Height =315
  957. BorderColor =8355711
  958. Name ="Étiquette15"
  959. Caption ="Type de virement:"
  960. GridlineColor =10921638
  961. LayoutCachedLeft =4995
  962. LayoutCachedTop =3465
  963. LayoutCachedWidth =6765
  964. LayoutCachedHeight =3780
  965. ForeTint =100.0
  966. End
  967. End
  968. End
  969. Begin ComboBox
  970. OverlapFlags =85
  971. IMESentenceMode =3
  972. ColumnCount =2
  973. Left =2324
  974. Top =4308
  975. Width =3288
  976. Height =315
  977. TabIndex =14
  978. BorderColor =10921638
  979. ForeColor =4138256
  980. ColumnInfo ="\"\";\"\";\"\";\"\";\"10\";\"510\""
  981. Name ="TypeVehicule"
  982. ControlSource ="TypeVehicule"
  983. RowSourceType ="Table/Query"
  984. RowSource ="SELECT tbl_Listes.CodeChoix, tbl_Listes.LibelleChoix, tbl_Listes.TableListe, tbl"
  985. "_Listes.ChampListe FROM tbl_Listes WHERE (((tbl_Listes.TableListe)='tbl_Agents')"
  986. " AND ((tbl_Listes.ChampListe)='TypeVehicule')); "
  987. ColumnWidths ="0;2835"
  988. GridlineColor =10921638
  989. LayoutCachedLeft =2324
  990. LayoutCachedTop =4308
  991. LayoutCachedWidth =5612
  992. LayoutCachedHeight =4623
  993. Begin
  994. Begin Label
  995. OverlapFlags =85
  996. Left =170
  997. Top =4308
  998. Width =1710
  999. Height =315
  1000. BorderColor =8355711
  1001. Name ="Étiquette22"
  1002. Caption ="Type de véhicule:"
  1003. GridlineColor =10921638
  1004. LayoutCachedLeft =170
  1005. LayoutCachedTop =4308
  1006. LayoutCachedWidth =1880
  1007. LayoutCachedHeight =4623
  1008. ForeTint =100.0
  1009. End
  1010. End
  1011. End
  1012. Begin Label
  1013. FontUnderline = NotDefault
  1014. OverlapFlags =85
  1015. Left =170
  1016. Top =793
  1017. Width =789
  1018. Height =340
  1019. FontSize =12
  1020. FontWeight =700
  1021. BorderColor =8355711
  1022. Name ="Étiquette23"
  1023. Caption ="Poste:"
  1024. GridlineColor =10921638
  1025. LayoutCachedLeft =170
  1026. LayoutCachedTop =793
  1027. LayoutCachedWidth =959
  1028. LayoutCachedHeight =1133
  1029. ForeTint =100.0
  1030. End
  1031. Begin Label
  1032. FontUnderline = NotDefault
  1033. OverlapFlags =85
  1034. Left =4995
  1035. Top =795
  1036. Width =1485
  1037. Height =345
  1038. FontSize =12
  1039. FontWeight =700
  1040. BorderColor =8355711
  1041. Name ="Étiquette24"
  1042. Caption ="Coordonnées:"
  1043. GridlineColor =10921638
  1044. LayoutCachedLeft =4995
  1045. LayoutCachedTop =795
  1046. LayoutCachedWidth =6480
  1047. LayoutCachedHeight =1140
  1048. ForeTint =100.0
  1049. End
  1050. Begin Label
  1051. FontUnderline = NotDefault
  1052. OverlapFlags =85
  1053. Left =170
  1054. Top =3855
  1055. Width =2085
  1056. Height =345
  1057. FontSize =12
  1058. FontWeight =700
  1059. BorderColor =8355711
  1060. Name ="Étiquette25"
  1061. Caption ="Véhicule personnel:"
  1062. GridlineColor =10921638
  1063. LayoutCachedLeft =170
  1064. LayoutCachedTop =3855
  1065. LayoutCachedWidth =2255
  1066. LayoutCachedHeight =4200
  1067. ForeTint =100.0
  1068. End
  1069. End
  1070. End
  1071. Begin FormFooter
  1072. Height =0
  1073. BackColor =14270637
  1074. Name ="PiedFormulaire"
  1075. AlternateBackThemeColorIndex =1
  1076. AlternateBackShade =95.0
  1077. End
  1078. End
  1079. End
  1080. CodeBehindForm
  1081. Attribute VB_GlobalNameSpace = False
  1082. Attribute VB_Creatable = True
  1083. Attribute VB_PredeclaredId = True
  1084. Attribute VB_Exposed = False
  1085. Option Compare Database
  1086. Private Sub Form_AfterUpdate()
  1087. Me.DateInf = DLookup("[DateInf]", "[tbl_periodeAgent]", "[CodeAgent]='" & Me.CodeAgent & "' AND [CodePeriode]=" & Me.PeriodeValidite)
  1088. End Sub
  1089. Private Sub Form_Open(Cancel As Integer)
  1090. Me.NvelleDate = "01/" & Format(Month(Now()), "00") & "/" & Year(Now())
  1091. Me.CopieAnc = 1
  1092. Me.DateInf = DLookup("[DateInf]", "[tbl_periodeAgent]", "[CodeAgent]='" & Me.CodeAgent & "' AND [CodePeriode]=" & Me.PeriodeValidite)
  1093. Call VerrouMAJAgent(1)
  1094. End Sub
  1095. Private Sub CmdOK_Click()
  1096. Dim rs As DAO.Recordset
  1097. Dim NvPeriode, copie, i, k As Integer
  1098. Dim NvelleDate As Date
  1099. Dim CodeAgent As String
  1100. Dim ACopier() As Variant
  1101. CodeAgent = Me.CodeAgent
  1102. NvelleDate = CDate(Me.NvelleDate)
  1103. copie = Nz(Me.CopieAnc.Column(0), 1)
  1104. If IsNull(NvelleDate) Then
  1105. Me.NvelleDate.BackColor = 12566463
  1106. Exit Sub
  1107. End If
  1108. NvPeriode = NvellePeriode("tbl_PeriodeAgent", CodeAgent, NvelleDate)
  1109. If NvPeriode = 0 Then Exit Sub
  1110. Call VerrouMAJAgent(0)
  1111. Set rs = CurrentDb.OpenRecordset("SELECT * FROM tbl_Agents WHERE [CodeAgent]='" & CodeAgent & "' AND [PeriodeValidite]=" & Me.PeriodeValidite & ";")
  1112. If rs.RecordCount = 0 Then copie = 0
  1113. rs.MoveFirst
  1114. ReDim ACopier(rs.Fields.Count - 1)
  1115. For i = 0 To rs.Fields.Count - 1
  1116. 'on copie de toute façon le code et le nom
  1117. If rs.Fields(i).Name = "CodeAgent" Or rs.Fields(i).Name = "Nom" Then
  1118. ACopier(i) = rs.Fields(i)
  1119. ElseIf rs.Fields(i).Name = "PeriodeValidite" Then
  1120. ACopier(i) = NvPeriode
  1121. Else
  1122. If copie = 1 Then
  1123. ACopier(i) = rs.Fields(i)
  1124. Else
  1125. ACopier(i) = Null
  1126. End If
  1127. End If
  1128. Next i
  1129. 'création d'une nouvelle ligne dans la table tbl_agents
  1130. Set rs = CurrentDb.OpenRecordset("tbl_Agents")
  1131. rs.AddNew
  1132. For i = 0 To rs.Fields.Count - 1
  1133. rs.Fields(i) = ACopier(i)
  1134. Next i
  1135. rs.Update
  1136. 'on place l'enregistrement du formulaire sur ce nouvel enregistrement
  1137. Me.FilterOn = False
  1138. Me.Filter = "[CodeAgent]='" & CodeAgent & "' AND [PeriodeValidite]=" & NvPeriode
  1139. Me.FilterOn = True
  1140. Call CreerMsg(12, , CodeAgent, NvPeriode)
  1141. Me.Refresh
  1142. Call VerrouMAJAgent(2)
  1143. End Sub