maj V1.0.0
This commit is contained in:
parent
ea3e204056
commit
969bcaac3b
Binary file not shown.
@ -10,7 +10,7 @@
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
|
||||
sodipodi:docname="fusionneBaseEvaluation.svg"
|
||||
inkscape:export-filename="importationexcel.png"
|
||||
inkscape:export-filename="gestionnaire.png"
|
||||
inkscape:export-xdpi="102.4"
|
||||
inkscape:export-ydpi="102.4"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
@ -28,9 +28,9 @@
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
inkscape:zoom="4.4685506"
|
||||
inkscape:cx="31.777642"
|
||||
inkscape:cy="13.762852"
|
||||
inkscape:zoom="4.1277778"
|
||||
inkscape:cx="22.530283"
|
||||
inkscape:cy="22.893674"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1009"
|
||||
inkscape:window-x="-8"
|
||||
@ -85,7 +85,7 @@
|
||||
x2="-28.613434"
|
||||
y2="168.68048"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.84635001,0,0,0.84635001,-13.979249,241.60397)" /><linearGradient
|
||||
gradientTransform="matrix(1.3453424,0,0,1.3453424,46.076993,-66.973894)" /><linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient1269"
|
||||
id="linearGradient585"
|
||||
@ -137,67 +137,67 @@
|
||||
transform="matrix(0.07295087,0,0,0.07295087,7.1535362,-1.4012141)"
|
||||
style="stroke-width:13.7079"><g
|
||||
id="g388"
|
||||
transform="matrix(0.06645921,0,0,0.06614407,-91.504382,30.608673)"
|
||||
style="stroke-width:54.7027"><path
|
||||
transform="matrix(0.03884951,0,0,0.0386653,-68.76997,-169.99902)"
|
||||
style="stroke-width:93.5788"><path
|
||||
fill="#185c37"
|
||||
d="M 1437.75,1011.75 532.5,852 v 1180.393 c 0,53.907 43.7,97.607 97.607,97.607 v 0 h 1562.036 c 53.907,0 97.607,-43.7 97.607,-97.607 v 0 -434.893 z"
|
||||
id="path226"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
fill="#21a366"
|
||||
d="M 1437.75,0 H 630.107 C 576.2,0 532.5,43.7 532.5,97.607 c 0,0 0,0 0,0 V 532.5 L 1437.75,1065 1917,1224.75 2289.75,1065 V 532.5 Z"
|
||||
id="path228"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
fill="#107c41"
|
||||
d="m 532.5,532.5 h 905.25 V 1065 H 532.5 Z"
|
||||
id="path230"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
opacity="0.1"
|
||||
enable-background="new "
|
||||
d="M 1180.393,426 H 532.5 v 1331.25 h 647.893 c 53.834,-0.175 97.432,-43.773 97.607,-97.607 V 523.607 c -0.175,-53.834 -43.773,-97.432 -97.607,-97.607 z"
|
||||
id="path232"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
opacity="0.2"
|
||||
enable-background="new "
|
||||
d="M 1127.143,479.25 H 532.5 V 1810.5 h 594.643 c 53.834,-0.175 97.432,-43.773 97.607,-97.607 V 576.857 c -0.175,-53.834 -43.773,-97.432 -97.607,-97.607 z"
|
||||
id="path234"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
opacity="0.2"
|
||||
enable-background="new "
|
||||
d="M 1127.143,479.25 H 532.5 V 1704 h 594.643 c 53.834,-0.175 97.432,-43.773 97.607,-97.607 V 576.857 c -0.175,-53.834 -43.773,-97.432 -97.607,-97.607 z"
|
||||
id="path236"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
opacity="0.2"
|
||||
enable-background="new "
|
||||
d="M 1073.893,479.25 H 532.5 V 1704 h 541.393 c 53.834,-0.175 97.432,-43.773 97.607,-97.607 V 576.857 c -0.175,-53.834 -43.773,-97.432 -97.607,-97.607 z"
|
||||
id="path238"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
fill="url(#SVGID_1_)"
|
||||
d="m 97.607,479.25 h 976.285 c 53.907,0 97.607,43.7 97.607,97.607 v 976.285 c 0,53.907 -43.7,97.607 -97.607,97.607 H 97.607 C 43.7,1650.75 0,1607.05 0,1553.143 V 576.857 C 0,522.95 43.7,479.25 97.607,479.25 Z"
|
||||
id="path247"
|
||||
style="fill:url(#SVGID_1_);stroke-width:2427.43" /><path
|
||||
style="fill:url(#SVGID_1_);stroke-width:4152.57" /><path
|
||||
fill="#ffffff"
|
||||
d="M 302.3,1382.264 507.632,1064.095 319.5,747.683 h 151.336 l 102.666,202.35 c 9.479,19.223 15.975,33.494 19.49,42.919 h 1.331 c 6.745,-15.336 13.845,-30.228 21.3,-44.677 L 725.371,747.79 H 864.3 L 671.375,1062.338 869.2,1382.263 H 721.378 L 602.79,1160.158 c -5.586,-9.45 -10.326,-19.376 -14.164,-29.66 h -1.757 c -3.474,10.075 -8.083,19.722 -13.739,28.755 l -122.102,223.011 z"
|
||||
id="path249"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
fill="#33c481"
|
||||
d="M 2192.143,0 H 1437.75 v 532.5 h 852 V 97.607 C 2289.75,43.7 2246.05,0 2192.143,0 Z"
|
||||
id="path251"
|
||||
style="stroke-width:2427.43" /><path
|
||||
style="stroke-width:4152.57" /><path
|
||||
fill="#107c41"
|
||||
d="m 1437.75,1065 h 852 v 532.5 h -852 z"
|
||||
id="path253"
|
||||
style="stroke-width:2427.43" /></g><path
|
||||
style="stroke-width:4152.57" /></g><path
|
||||
id="path583"
|
||||
style="fill:url(#linearGradient585);fill-opacity:1;stroke:none;stroke-width:3.42696;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
|
||||
d="m 145.86435,-57.940621 c -2.04313,-3.99e-4 -4.07826,0.04047 -5.23494,0.123883 -11.77718,0.849337 -21.64199,4.270545 -26.30567,9.12486 -1.26462,1.31631 -2.24993,2.9095 -2.57323,4.15893 -0.24998,0.96607 -0.26223,2.68613 -0.0248,3.57491 0.99431,3.72174 5.05468,7.1951 11.30167,9.66995 4.99089,1.97723 10.0649,3.04387 17.7365,3.73065 2.11344,0.1892 8.46083,0.16262 10.77428,-0.046 4.55223,-0.41052 7.8329,-0.92115 11.14947,-1.73437 1.64364,-0.40301 5.19675,-1.53637 6.1623,-1.96443 0.36689,-0.16265 0.87815,-0.37756 1.13264,-0.47783 1.00864,-0.39741 3.25622,-1.61432 4.47041,-2.41749 6.04568,-3.99914 7.46891,-9.05828 3.82975,-13.62359 -4.17704,-5.240077 -14.69399,-9.110846 -27.14099,-9.992041 -1.18473,-0.08387 -3.23428,-0.127024 -5.27742,-0.127422 z m -34.12092,21.357423 0.27254,12.41308 c 4.85569,16.62643 62.06597,16.74689 68.21352,0 v -12.41308 c -8.15546,17.41337 -60.80903,18.60339 -68.48606,0 z m 0.12035,16.26761 0.27254,12.41307 c 4.85569,16.62643 62.06242,16.74689 68.20997,0 v -12.41307 c -8.15545,17.41336 -60.80549,18.60339 -68.48251,0 z m -0.41413,14.79517 0.27254,12.40953 c 4.85569,16.626431 62.06243,16.746891 68.20998,0 v -12.40953 c -8.15545,17.41336 -60.80549,18.60339 -68.48252,0 z" /><path
|
||||
id="path482"
|
||||
style="fill:url(#linearGradient1536);fill-opacity:1;stroke:none;stroke-width:3.42696;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
|
||||
d="m -53.016949,299.17482 c -2.504616,-4.8e-4 -4.999413,0.0496 -6.417363,0.15187 -14.437294,1.04118 -26.530278,5.23514 -32.247354,11.1859 -1.550255,1.61363 -2.758119,3.56667 -3.154445,5.09831 -0.306442,1.18428 -0.321454,3.29285 -0.03037,4.38238 1.218901,4.56239 6.196392,8.82028 13.854387,11.85412 6.118194,2.42383 12.338273,3.7314 21.742665,4.57329 2.590804,0.23194 10.371886,0.19935 13.20788,-0.0563 5.580446,-0.50325 9.602125,-1.12922 13.667808,-2.12612 2.014893,-0.49403 6.37054,-1.8834 7.554178,-2.40814 0.449759,-0.19938 1.076496,-0.46283 1.388476,-0.58576 1.236461,-0.48716 3.991705,-1.97894 5.48014,-2.96353 7.411233,-4.90242 9.1559234,-11.10428 4.694791,-16.70077 -5.120514,-6.42366 -18.012936,-11.16872 -33.271357,-12.24895 -1.452324,-0.10282 -3.964814,-0.15572 -6.469429,-0.15621 z m -41.82784,26.18145 0.334103,15.21685 c 5.952448,20.38185 76.084858,20.52952 83.620965,0 v -15.21685 c -9.997534,21.34655 -74.544027,22.80535 -83.955068,0 z m 0.147526,19.94199 0.334102,15.21682 c 5.952447,20.38187 76.08052,20.52954 83.616626,0 v -15.21682 c -9.997533,21.34653 -74.539686,22.80536 -83.950728,0 z m -0.507662,18.13697 0.334102,15.2125 c 5.952449,20.38184 76.080521,20.52951 83.616627,0 v -15.2125 c -9.997534,21.34653 -74.539687,22.80536 -83.950729,0 z" /><path
|
||||
style="fill:url(#linearGradient1536);fill-opacity:1;stroke:none;stroke-width:3.42695;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
|
||||
d="m -15.976615,24.53967 c -3.981293,-7.64e-4 -7.946976,0.07884 -10.200923,0.24141 -22.949257,1.65504 -42.172041,8.321682 -51.2598,17.7809 -2.464257,2.564997 -4.384256,5.669509 -5.014248,8.104176 -0.487115,1.882509 -0.510977,5.234254 -0.04827,6.96615 1.937542,7.252291 9.84967,14.020555 22.022678,18.843091 9.725368,3.852876 19.612691,5.931365 34.561741,7.269618 4.118294,0.368687 16.4869586,0.316883 20.9950021,-0.08949 8.8705742,-0.799957 15.2633609,-1.794988 21.7260959,-3.379642 3.202837,-0.785301 10.126493,-2.993817 12.007983,-3.827935 0.714929,-0.316931 1.711178,-0.735706 2.207096,-0.931114 1.965455,-0.77438 6.345141,-3.145686 8.711129,-4.710772 C 51.512624,63.013262 54.285952,53.1549 47.194617,44.258827 39.055143,34.047896 18.561586,26.505236 -5.6929192,24.788121 -8.0015064,24.624681 -11.995314,24.540592 -15.976604,24.539813 Z m -66.488765,41.617547 0.531084,24.188424 c 9.461902,32.398609 120.94309,32.633339 132.922347,0 V 66.157217 c -15.891897,33.932083 -118.493814,36.250963 -133.453431,0 z m 0.234504,31.69942 0.531082,24.188373 c 9.461901,32.39865 120.936195,32.63338 132.91545,0 V 97.856637 c -15.891894,33.932043 -118.486913,36.250983 -133.446532,0 z m -0.80697,28.830193 0.531083,24.1815 c 9.461902,32.3986 120.936196,32.63334 132.915451,0 v -24.1815 c -15.891896,33.93205 -118.486915,36.25097 -133.446534,0 z" /><path
|
||||
id="path331"
|
||||
style="fill:#008000;stroke-width:13.7079"
|
||||
d="m -279.30606,111.00874 c -2.16709,0.0446 -2.00947,0.47209 -2.28203,2.61948 -0.2513,1.9798 -1.1936,7.70028 -1.35909,8.25066 -0.0809,0.26891 -0.83739,0.67928 -1.9079,1.03508 -0.97551,0.32422 -2.60384,0.98702 -3.61838,1.47277 -1.01454,0.48576 -1.96936,0.88315 -2.12183,0.88315 -0.15247,0 -1.34622,-0.7714 -2.65307,-1.7141 -1.30684,-0.94269 -3.24438,-2.34168 -4.30568,-3.10886 -1.0613,-0.76718 -2.07333,-1.42707 -2.24896,-1.46657 -0.17562,-0.0395 -1.80332,1.41609 -3.61683,3.23494 l -3.29696,3.30729 0.56792,0.73329 c 0.31256,0.4035 1.14168,1.56524 1.84227,2.58124 0.7006,1.016 1.8989,2.73021 2.66288,3.80958 0.76398,1.07939 1.38907,2.10646 1.38907,2.28255 0,0.17608 -0.35159,0.97903 -0.78135,1.78439 -0.42976,0.80536 -1.09858,2.42433 -1.48621,3.5972 l -0.70487,2.13217 -1.35806,0.27491 c -0.74695,0.15119 -3.19222,0.56788 -5.43377,0.92605 -2.24157,0.35818 -4.17899,0.75491 -4.30569,0.8816 -0.12666,0.1267 -0.19751,2.3005 -0.15761,4.83071 l 0.0724,4.60075 2.64584,0.45062 c 1.4552,0.248 3.94567,0.67265 5.53454,0.94361 l 2.88923,0.49248 0.71365,2.10943 c 0.39261,1.1601 1.10081,2.86538 1.57355,3.78943 0.9683,1.89274 0.97307,1.86325 -0.7214,4.17236 -2.30874,3.14616 -4.19257,5.81456 -4.52738,6.41304 -0.34613,0.61871 -0.24371,0.75518 2.94349,3.9424 l 3.30161,3.30212 2.34869,-1.63142 c 1.29164,-0.89728 3.36021,-2.34014 4.59714,-3.20601 1.23693,-0.86587 2.36723,-1.57457 2.51147,-1.5751 0.14423,-4.4e-4 1.09674,0.40506 2.11667,0.90072 1.01994,0.49565 2.65213,1.16465 3.62769,1.48674 l 1.77405,0.58549 0.27337,1.35754 c 0.15045,0.74661 0.45686,2.48863 0.68058,3.87108 0.22373,1.38244 0.54177,3.31721 0.70693,4.29948 l 0.30024,1.78594 h 4.71496 c 4.67543,0 4.71629,-0.005 4.84311,-0.59532 0.26715,-1.24345 1.44797,-7.80139 1.65261,-9.17773 l 0.21395,-1.43815 2.51354,-0.95912 c 1.38244,-0.52732 3.01502,-1.21924 3.62769,-1.53789 1.44221,-0.7501 1.78728,-0.73107 2.94865,0.16226 0.53026,0.40788 2.55426,1.85255 4.4974,3.21014 l 3.53312,2.46807 3.2799,-3.27215 c 1.80401,-1.79968 3.27991,-3.35891 3.27991,-3.46491 0,-0.106 -1.33946,-2.05152 -2.97656,-4.32376 -1.63711,-2.27225 -3.12216,-4.33367 -3.30006,-4.5806 -0.26785,-0.37178 -0.17206,-0.74346 0.55604,-2.16214 0.48359,-0.94227 1.15858,-2.54651 1.50016,-3.56516 0.34157,-1.01864 0.71843,-1.98573 0.83768,-2.14922 0.11925,-0.16349 0.84001,-0.37699 1.60145,-0.47439 1.18359,-0.15143 7.28724,-1.23984 9.12348,-1.62678 0.5903,-0.12442 0.59531,-0.16437 0.59531,-4.84053 v -4.71496 l -1.78594,-0.29249 c -0.98227,-0.16097 -3.33375,-0.54499 -5.22552,-0.85317 -1.89178,-0.30817 -3.65962,-0.64619 -3.92844,-0.75086 -0.31247,-0.12167 -0.75606,-0.9627 -1.23042,-2.33164 -0.40809,-1.17771 -1.10834,-2.83661 -1.55598,-3.6866 -0.74109,-1.4072 -0.77885,-1.59333 -0.42116,-2.08308 0.21606,-0.29582 0.59844,-0.83561 0.85008,-1.19941 0.25164,-0.3638 1.57822,-2.25104 2.94762,-4.19354 l 2.48977,-3.53157 -3.30884,-3.30884 c -3.20998,-3.20997 -3.32908,-3.29856 -3.96565,-2.95072 -0.64496,0.35241 -1.88495,1.23869 -5.96346,4.26175 -1.12925,0.83702 -2.31155,1.5916 -2.62723,1.6769 -0.36565,0.0988 -1.27794,-0.18069 -2.51354,-0.76998 -1.06676,-0.50876 -2.71333,-1.20866 -3.65921,-1.55546 l -1.71979,-0.63045 -0.32247,-1.97352 c -0.17748,-1.08541 -0.60095,-3.58086 -0.94051,-5.5454 l -0.61701,-3.57187 -4.68654,-0.0724 c -1.34093,-0.0207 -2.32189,-0.0485 -3.04426,-0.0336 z m 2.97708,24.95403 c 1.42863,-0.003 2.85026,0.13423 3.75274,0.4129 3.93775,1.21587 6.99884,4.02981 8.56176,7.87032 1.99612,4.90503 0.84677,10.51015 -2.92903,14.28595 -1.73713,1.73712 -4.60482,3.28861 -6.84868,3.70468 h -5.1e-4 c -2.99403,0.55517 -5.47675,0.20617 -8.34213,-1.17202 -3.23597,-1.55644 -5.88353,-4.66933 -6.97477,-8.20002 -0.57672,-1.86612 -0.54611,-5.6998 0.0605,-7.56181 1.39405,-4.27939 4.77072,-7.65133 8.92401,-8.91108 0.93161,-0.28258 2.36752,-0.42587 3.79615,-0.42892 z" /><path
|
||||
d="m -382.98671,-3.2157036 c -2.16709,0.0446 -2.00947,0.47209 -2.28203,2.61948001 -0.2513,1.97979999 -1.1936,7.70027999 -1.35909,8.25065999 -0.0809,0.26891 -0.83739,0.67928 -1.9079,1.03508 -0.97551,0.32422 -2.60384,0.98702 -3.61838,1.4727696 -1.01454,0.48576 -1.96936,0.88315 -2.12183,0.88315 -0.15247,0 -1.34622,-0.7714 -2.65307,-1.7140996 -1.30684,-0.94269 -3.24438,-2.34168 -4.30568,-3.10886 -1.0613,-0.76718 -2.07333,-1.42707 -2.24896,-1.46657 -0.17562,-0.0395 -1.80332,1.41609 -3.61683,3.23494 l -3.29696,3.3072896 0.56792,0.73329 c 0.31256,0.4035 1.14168,1.56524 1.84227,2.58124 0.7006,1.016 1.8989,2.73021 2.66288,3.80958 0.76398,1.07939 1.38907,2.10646 1.38907,2.28255 0,0.17608 -0.35159,0.97903 -0.78135,1.78439 -0.42976,0.80536 -1.09858,2.42433 -1.48621,3.5972 l -0.70487,2.13217 -1.35806,0.27491 c -0.74695,0.15119 -3.19222,0.56788 -5.43377,0.92605 -2.24157,0.35818 -4.17899,0.75491 -4.30569,0.8816 -0.12666,0.1267 -0.19751,2.3005 -0.15761,4.83071 l 0.0724,4.60075 2.64584,0.45062 c 1.4552,0.248 3.94567,0.67265 5.53454,0.94361 l 2.88923,0.49248 0.71365,2.10943 c 0.39261,1.1601 1.10081,2.86538 1.57355,3.78943 0.9683,1.89274 0.97307,1.86325 -0.7214,4.17236 -2.30874,3.14616 -4.19257,5.81456 -4.52738,6.41304 -0.34613,0.61871 -0.24371,0.75518 2.94349,3.9424 l 3.30161,3.30212 2.34869,-1.63142 c 1.29164,-0.89728 3.36021,-2.34014 4.59714,-3.20601 1.23693,-0.86587 2.36723,-1.57457 2.51147,-1.5751 0.14423,-4.4e-4 1.09674,0.40506 2.11667,0.90072 1.01994,0.49565 2.65213,1.16465 3.62769,1.48674 l 1.77405,0.58549 0.27337,1.35754 c 0.15045,0.74661 0.45686,2.48863 0.68058,3.87108 0.22373,1.38244 0.54177,3.31721 0.70693,4.29948 l 0.30024,1.78594 h 4.71496 c 4.67543,0 4.71629,-0.005 4.84311,-0.59532 0.26715,-1.24345 1.44797,-7.80139 1.65261,-9.17773 l 0.21395,-1.43815 2.51354,-0.95912 c 1.38244,-0.52732 3.01502,-1.21924 3.62769,-1.53789 1.44221,-0.7501 1.78728,-0.73107 2.94865,0.16226 0.53026,0.40788 2.55426,1.85255 4.4974,3.21014 l 3.53312,2.46807 3.2799,-3.27215 c 1.80401,-1.79968 3.27991,-3.35891 3.27991,-3.46491 0,-0.106 -1.33946,-2.05152 -2.97656,-4.32376 -1.63711,-2.27225 -3.12216,-4.33367 -3.30006,-4.5806 -0.26785,-0.37178 -0.17206,-0.74346 0.55604,-2.16214 0.48359,-0.94227 1.15858,-2.54651 1.50016,-3.56516 0.34157,-1.01864 0.71843,-1.98573 0.83768,-2.14922 0.11925,-0.16349 0.84001,-0.37699 1.60145,-0.47439 1.18359,-0.15143 7.28724,-1.23984 9.12348,-1.62678 0.5903,-0.12442 0.59531,-0.16437 0.59531,-4.84053 v -4.71496 l -1.78594,-0.29249 c -0.98227,-0.16097 -3.33375,-0.54499 -5.22552,-0.85317 -1.89178,-0.30817 -3.65962,-0.64619 -3.92844,-0.75086 -0.31247,-0.12167 -0.75606,-0.9627 -1.23042,-2.33164 -0.40809,-1.17771 -1.10834,-2.83661 -1.55598,-3.6866 -0.74109,-1.4072 -0.77885,-1.59333 -0.42116,-2.08308 0.21606,-0.29582 0.59844,-0.83561 0.85008,-1.19941 0.25164,-0.3638 1.57822,-2.25104 2.94762,-4.19354 l 2.48977,-3.53157 -3.30884,-3.3088396 c -3.20998,-3.20997 -3.32908,-3.29856 -3.96565,-2.95072 -0.64496,0.35241 -1.88495,1.23869 -5.96346,4.26175 -1.12925,0.8370196 -2.31155,1.5915996 -2.62723,1.6768996 -0.36565,0.0988 -1.27794,-0.18069 -2.51354,-0.76998 -1.06676,-0.5087596 -2.71333,-1.2086596 -3.65921,-1.5554596 l -1.71979,-0.63045 -0.32247,-1.97352 c -0.17748,-1.08541 -0.60095,-3.58086 -0.94051,-5.54539999 l -0.61701,-3.57187001 -4.68654,-0.0724 c -1.34093,-0.0207 -2.32189,-0.0485 -3.04426,-0.0336 z m 2.97708,24.9540296 c 1.42863,-0.003 2.85026,0.13423 3.75274,0.4129 3.93775,1.21587 6.99884,4.02981 8.56176,7.87032 1.99612,4.90503 0.84677,10.51015 -2.92903,14.28595 -1.73713,1.73712 -4.60482,3.28861 -6.84868,3.70468 h -5.1e-4 c -2.99403,0.55517 -5.47675,0.20617 -8.34213,-1.17202 -3.23597,-1.55644 -5.88353,-4.66933 -6.97477,-8.20002 -0.57672,-1.86612 -0.54611,-5.6998 0.0605,-7.56181 1.39405,-4.27939 4.77072,-7.65133 8.92401,-8.91108 0.93161,-0.28258 2.36752,-0.42587 3.79615,-0.42892 z" /><path
|
||||
style="fill:#ffffff;stroke:#800000;stroke-width:3.62687px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m -77.763521,-36.178761 c 9.619615,-46.40035 30.418695,-51.515532 56.875183,-48.179963 l -8.841568,17.521986 32.9117237,-22.512386 -34.7850287,-22.328816 10.332629,17.299281 c -32.599232,-12.927401 -62.266407,14.246748 -56.492939,58.199898 z"
|
||||
d="m 48.855989,324.14461 c 21.892518,-1.06698 67.961811,-27.62807 66.102221,-62.00429 l 16.07708,2.9419 -20.50897,-13.99142 -28.417913,3.44336 21.511173,6.07438 c -6.911323,41.63468 -34.239654,48.49542 -54.763591,63.53607 z"
|
||||
id="path349"
|
||||
sodipodi:nodetypes="ccccccc" /><g
|
||||
id="g5732"
|
||||
@ -220,7 +220,7 @@
|
||||
style="fill:#ff0000;stroke:#ffffff;stroke-width:3.42696;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
|
||||
d="m -302.45845,130.92083 c -3.32874,-0.12146 -6.70653,1.04157 -9.35052,3.50645 -5.28798,4.92975 -5.58758,13.16524 -0.67296,18.46728 l 45.93091,49.54362 -45.9309,49.5507 c -4.91463,5.30204 -4.61503,13.53753 0.67295,18.46728 5.28798,4.92976 13.50307,4.62909 18.4177,-0.67295 l 44.6275,-48.14812 44.63459,48.14812 c 4.91463,5.30204 13.12264,5.60271 18.41061,0.67295 5.28798,-4.92976 5.58759,-13.16524 0.67296,-18.46729 l -45.92383,-49.55069 45.92383,-49.54362 c 4.91463,-5.30204 4.61502,-13.53753 -0.67295,-18.46728 -5.28798,-4.92976 -13.49599,-4.63618 -18.41062,0.66587 l -44.63459,48.14812 -44.6275,-48.14812 c -2.45732,-2.65102 -5.73844,-4.05086 -9.06718,-4.17232 z" /><g
|
||||
id="g2076"
|
||||
transform="matrix(-0.74875678,0,0,0.74884077,-152.86415,-136.79993)"
|
||||
transform="matrix(-0.74875678,0,0,0.74884077,116.88126,51.231077)"
|
||||
style="stroke-width:18.3065"><path
|
||||
style="fill:#ffaaaa;stroke:#ffaaaa;stroke-width:4.71203px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="M 130.41261,-6.5009191 120.3507,-17.529723 c -3.58587,-0.03834 -6.70049,-0.811189 -12.23279,2.184371 -6.13568,4.708636 -9.08363,8.6771206 -11.697736,12.5680914 -2.356257,4.5773464 -1.863141,7.8144614 -1.334529,11.0348787 L 105.77353,18.413555 Z"
|
||||
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
@ -1,10 +1,18 @@
|
||||
package baseUFRHG;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Dimension;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JProgressBar;
|
||||
import javax.swing.SwingConstants;
|
||||
import javax.swing.SwingWorker;
|
||||
|
||||
import org.apache.poi.ss.usermodel.BorderStyle;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
@ -16,175 +24,160 @@ import org.apache.poi.ss.usermodel.VerticalAlignment;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
|
||||
public class CreateCalcWorkbook {
|
||||
public class CreateCalcWorkbook extends JFrame{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
private JProgressBar progressBar;
|
||||
private ProcessTask processTask;
|
||||
private JFrame fr;
|
||||
JPanel panel;
|
||||
|
||||
public CreateCalcWorkbook(Object[][] data){
|
||||
String filePath = Paths.get("").toAbsolutePath().toString()+ "/base.xlsx";
|
||||
|
||||
|
||||
|
||||
try (Workbook workbook = new XSSFWorkbook()) {
|
||||
int rows = data.length; // Nombre de lignes
|
||||
int columns = data[0].length;
|
||||
|
||||
// Créer un style de cellule avec des bordures
|
||||
CellStyle cellStyle = workbook.createCellStyle();
|
||||
cellStyle.setBorderTop(BorderStyle.THIN);
|
||||
cellStyle.setBorderBottom(BorderStyle.THIN);
|
||||
cellStyle.setBorderLeft(BorderStyle.THIN);
|
||||
cellStyle.setBorderRight(BorderStyle.THIN);
|
||||
cellStyle.setAlignment(HorizontalAlignment.LEFT);
|
||||
cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
|
||||
|
||||
|
||||
for (int i = 0; i < rows; i++) {
|
||||
String nameFormation = (String) data[i][0];
|
||||
String[][] data1 = (String[][]) data[i][columns-1];
|
||||
|
||||
Sheet sheet = workbook.createSheet(nameFormation);
|
||||
|
||||
//Entête de la première ligne
|
||||
Row row1 = sheet.createRow(0);
|
||||
Cell cell1 = row1.createCell(0);
|
||||
int tailleHead = columns - 2 ;
|
||||
for(int j = 0 ; j < tailleHead; j++) {
|
||||
cell1 = row1.createCell(j);
|
||||
cell1.setCellValue((String) data[i][j+1]);
|
||||
cell1.setCellStyle(cellStyle);
|
||||
}
|
||||
|
||||
// Boucle pour insérer les données dans les colonnes
|
||||
int rowNum = 1;
|
||||
for (Object[] rowData : data1) {
|
||||
Row row = sheet.createRow(rowNum++);
|
||||
|
||||
int colNum = 0;
|
||||
for (Object cellData : rowData) {
|
||||
Cell cell = row.createCell(colNum++);
|
||||
if(cell.getColumnIndex()==0) {
|
||||
// Dans la colonne A doit se trouver le numéro de l'étudiant de type Integer
|
||||
cell.setCellValue(Integer.valueOf((String) cellData));
|
||||
}else if (cellData instanceof String) {
|
||||
cell.setCellValue((String) cellData);
|
||||
} else if (cellData instanceof Integer) {
|
||||
cell.setCellValue((Integer) cellData);
|
||||
}
|
||||
cell.setCellStyle(cellStyle);
|
||||
}
|
||||
}
|
||||
|
||||
for(int j = 0 ; j < tailleHead; j++) {
|
||||
sheet.autoSizeColumn(j);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Enregistrer le classeur dans un fichier
|
||||
FileOutputStream fileOut = new FileOutputStream(filePath);
|
||||
workbook.write(fileOut);
|
||||
fileOut.close();
|
||||
|
||||
System.out.println("Le classeur a été créé avec succès.");
|
||||
JOptionPane.showMessageDialog(null, "Le classeur a été créé avec succès.");
|
||||
}catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
JOptionPane.showMessageDialog(null, e.toString(), "Erreur dans la class CreateCalcWorkbook", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// try (Workbook workbook = new XSSFWorkbook()) {
|
||||
// Sheet sheet = workbook.createSheet(nomFeuille);
|
||||
//
|
||||
// // Créer un style de cellule avec des bordures
|
||||
// CellStyle cellStyle = workbook.createCellStyle();
|
||||
// cellStyle.setBorderTop(BorderStyle.THIN);
|
||||
// cellStyle.setBorderBottom(BorderStyle.THIN);
|
||||
// cellStyle.setBorderLeft(BorderStyle.THIN);
|
||||
// cellStyle.setBorderRight(BorderStyle.THIN);
|
||||
// cellStyle.setAlignment(HorizontalAlignment.LEFT);
|
||||
// cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
//
|
||||
// // Créer un style de cellule avec des bordures et alignement centré
|
||||
// CellStyle cellStyle2 = workbook.createCellStyle();
|
||||
// cellStyle2.setBorderTop(BorderStyle.THIN);
|
||||
// cellStyle2.setBorderBottom(BorderStyle.THIN);
|
||||
// cellStyle2.setBorderLeft(BorderStyle.THIN);
|
||||
// cellStyle2.setBorderRight(BorderStyle.THIN);
|
||||
// cellStyle2.setAlignment(HorizontalAlignment.CENTER);
|
||||
// cellStyle2.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
//
|
||||
// // Fusionner les six premières cellules de la première ligne
|
||||
// CellRangeAddress mergedRegion = new CellRangeAddress(0, 0, 0, 5);
|
||||
// sheet.addMergedRegion(mergedRegion);
|
||||
//
|
||||
// // Vérifier si la première ligne existe
|
||||
// Row titleRow = sheet.getRow(0);
|
||||
// if (titleRow == null) {
|
||||
// titleRow = sheet.createRow(0);
|
||||
// }
|
||||
//
|
||||
// // Créer une cellule pour le titre
|
||||
// Cell titleCell = titleRow.createCell(0);
|
||||
// titleCell.setCellValue("Titre de la feuille");
|
||||
//
|
||||
//
|
||||
// // Mise en forme de la cellule du titre
|
||||
// CellStyle titleCellStyle = workbook.createCellStyle();
|
||||
// titleCellStyle.setAlignment(HorizontalAlignment.CENTER);
|
||||
// titleCellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
// titleCellStyle.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex());
|
||||
// titleCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
|
||||
// titleCellStyle.setBorderTop(BorderStyle.THIN);
|
||||
// titleCellStyle.setBorderBottom(BorderStyle.THIN);
|
||||
// titleCellStyle.setBorderLeft(BorderStyle.THIN);
|
||||
// titleCellStyle.setBorderRight(BorderStyle.THIN);
|
||||
//
|
||||
// // Créer une police avec la taille et la police spécifiées
|
||||
// Font titleFont = workbook.createFont();
|
||||
// titleFont.setFontHeightInPoints((short) 14);
|
||||
// titleFont.setFontName("Arial");
|
||||
// titleCellStyle.setFont(titleFont);
|
||||
//
|
||||
// titleCell.setCellStyle(titleCellStyle);
|
||||
//
|
||||
// // Ajuster la largeur de la sixième colonne en fonction du contenu
|
||||
// sheet.autoSizeColumn(5);
|
||||
//
|
||||
// // Boucle pour insérer les données dans les colonnes
|
||||
// int rowNum = 1;
|
||||
// for (Object[] rowData : data) {
|
||||
// Row row = sheet.createRow(rowNum++);
|
||||
// int colNum = 0;
|
||||
// for (Object cellData : rowData) {
|
||||
// Cell cell = row.createCell(colNum++);
|
||||
// if (cellData instanceof String) {
|
||||
// cell.setCellValue((String) cellData);
|
||||
// } else if (cellData instanceof Integer) {
|
||||
// cell.setCellValue((Integer) cellData);
|
||||
// }
|
||||
// // Appliquer le style de cellule avec les bordures
|
||||
// cell.setCellStyle(cellStyle);
|
||||
// // Appliquer le style de cellule avec les bordures et l'alignement centré à la colonne 4
|
||||
// if (colNum == 4) {
|
||||
// cell.setCellStyle(cellStyle2);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// // Enregistrer le classeur dans un fichier
|
||||
// FileOutputStream fileOut = new FileOutputStream(filePath);
|
||||
// workbook.write(fileOut);
|
||||
// fileOut.close();
|
||||
//
|
||||
// System.out.println("Le classeur a été créé avec succès.");
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
fr = new JFrame();
|
||||
fr.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
||||
|
||||
fr.setTitle("Création du classeur");
|
||||
fr.getContentPane().setLayout(new BorderLayout());
|
||||
|
||||
panel = new JPanel();
|
||||
panel.setLayout(new BorderLayout());
|
||||
panel.setPreferredSize(new Dimension(300, 50));
|
||||
|
||||
JLabel titleLabel = new JLabel("Processus");
|
||||
titleLabel.setHorizontalAlignment(SwingConstants.CENTER);
|
||||
panel.add(titleLabel, BorderLayout.NORTH);
|
||||
|
||||
progressBar = new JProgressBar(0, data.length);
|
||||
progressBar.setStringPainted(true);
|
||||
panel.add(progressBar, BorderLayout.CENTER);
|
||||
|
||||
fr.getContentPane().add(panel, BorderLayout.CENTER);
|
||||
|
||||
fr.pack();
|
||||
|
||||
fr.setLocationRelativeTo(null); // Centre la fenêtre à l'écran
|
||||
fr.setVisible(true);
|
||||
|
||||
fr.setVisible(true);
|
||||
|
||||
processTask = new ProcessTask(data);
|
||||
processTask.execute();
|
||||
|
||||
this.dispose();
|
||||
}
|
||||
|
||||
|
||||
private class ProcessTask extends SwingWorker<Void, Integer> {
|
||||
|
||||
private Object[][] data;
|
||||
|
||||
public ProcessTask(Object[][] data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected Void doInBackground() throws Exception {
|
||||
String filePath = Paths.get("").toAbsolutePath().toString()+ "/base.xlsx";
|
||||
|
||||
try (Workbook workbook = new XSSFWorkbook()) {
|
||||
int rows = data.length; // Nombre de lignes
|
||||
int columns = data[0].length;
|
||||
|
||||
// Créer un style de cellule avec des bordures
|
||||
CellStyle cellStyle = workbook.createCellStyle();
|
||||
cellStyle.setBorderTop(BorderStyle.THIN);
|
||||
cellStyle.setBorderBottom(BorderStyle.THIN);
|
||||
cellStyle.setBorderLeft(BorderStyle.THIN);
|
||||
cellStyle.setBorderRight(BorderStyle.THIN);
|
||||
cellStyle.setAlignment(HorizontalAlignment.LEFT);
|
||||
cellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
|
||||
for (int i = 0; i < rows; i++) {
|
||||
publish(i);
|
||||
|
||||
String nameFormation = (String) data[i][0];
|
||||
String[][] data1 = (String[][]) data[i][columns-1];
|
||||
|
||||
Sheet sheet = workbook.createSheet(nameFormation);
|
||||
|
||||
//Entête de la première ligne
|
||||
Row row1 = sheet.createRow(0);
|
||||
Cell cell1 = row1.createCell(0);
|
||||
int tailleHead = columns - 2 ;
|
||||
for(int j = 0 ; j < tailleHead; j++) {
|
||||
cell1 = row1.createCell(j);
|
||||
cell1.setCellValue((String) data[i][j+1]);
|
||||
cell1.setCellStyle(cellStyle);
|
||||
}
|
||||
|
||||
// Boucle pour insérer les données dans les colonnes
|
||||
int rowNum = 1;
|
||||
for (Object[] rowData : data1) {
|
||||
Row row = sheet.createRow(rowNum++);
|
||||
|
||||
int colNum = 0;
|
||||
for (Object cellData : rowData) {
|
||||
Cell cell = row.createCell(colNum++);
|
||||
if (cellData instanceof String) {
|
||||
cell.setCellValue((String) cellData);
|
||||
} else if (cellData instanceof Integer) {
|
||||
cell.setCellValue((Integer) cellData);
|
||||
}
|
||||
cell.setCellStyle(cellStyle);
|
||||
}
|
||||
}
|
||||
|
||||
for(int j = 0 ; j < tailleHead; j++) {
|
||||
sheet.autoSizeColumn(j);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Enregistrer le classeur dans un fichier
|
||||
FileOutputStream fileOut = new FileOutputStream(filePath);
|
||||
workbook.write(fileOut);
|
||||
fileOut.close();
|
||||
|
||||
progressBar.setValue(data.length);
|
||||
System.out.println("Le classeur a été créé avec succès.");
|
||||
JOptionPane.showMessageDialog(null, "Le classeur a été créé avec succès.");
|
||||
|
||||
}catch (IOException e) {
|
||||
System.out.println(e.toString());
|
||||
// e.printStackTrace();
|
||||
JOptionPane.showMessageDialog(null, e.toString(), "Erreur dans la class CreateCalcWorkbook", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void process(java.util.List<Integer> chunks) {
|
||||
int value = chunks.get(chunks.size()-1);
|
||||
progressBar.setValue(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void done() {
|
||||
|
||||
// JOptionPane.showMessageDialog(CreateCalcWorkbook.this, "Le processus est terminé !");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
106
src/baseUFRHG/ProgressBarExample.java
Normal file
106
src/baseUFRHG/ProgressBarExample.java
Normal file
@ -0,0 +1,106 @@
|
||||
package baseUFRHG;
|
||||
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JProgressBar;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.SwingWorker;
|
||||
|
||||
public class ProgressBarExample extends JFrame {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
private JButton startButton;
|
||||
private JProgressBar progressBar;
|
||||
private ProcessTask processTask;
|
||||
|
||||
public ProgressBarExample() {
|
||||
setTitle("Exemple de ProgressBar");
|
||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
setLayout(new FlowLayout());
|
||||
|
||||
startButton = new JButton("Démarrer");
|
||||
progressBar = new JProgressBar(0, 100);
|
||||
progressBar.setStringPainted(true);
|
||||
|
||||
startButton.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
startButton.setEnabled(false);
|
||||
processTask = new ProcessTask();
|
||||
processTask.execute();
|
||||
}
|
||||
});
|
||||
|
||||
add(startButton);
|
||||
add(progressBar);
|
||||
|
||||
pack();
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
private class ProcessTask extends SwingWorker<Void, Integer> {
|
||||
|
||||
private List<Integer> progressList;
|
||||
|
||||
public ProcessTask() {
|
||||
progressList = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Void doInBackground() throws Exception {
|
||||
runLongProcess();
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void process(List<Integer> chunks) {
|
||||
int value = chunks.get(chunks.size() - 1);
|
||||
progressBar.setValue(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void done() {
|
||||
startButton.setEnabled(true);
|
||||
progressBar.setValue(0);
|
||||
JOptionPane.showMessageDialog(ProgressBarExample.this, "Le processus est terminé !");
|
||||
}
|
||||
|
||||
private void runLongProcess() {
|
||||
for (int i = 0; i <= 100; i++) {
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
progressList.add(i);
|
||||
publishProgress();
|
||||
}
|
||||
}
|
||||
|
||||
private void publishProgress() {
|
||||
int lastIndex = progressList.size() - 1;
|
||||
Integer[] chunks = new Integer[]{progressList.get(lastIndex)};
|
||||
publish(chunks);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
new ProgressBarExample();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -18,35 +18,7 @@ public class createEvaluation {
|
||||
}
|
||||
|
||||
public createEvaluation(noeud rootContent, noeud rootStyles, noeud rootMeta, noeud graphics, String filenameFichier){
|
||||
|
||||
// création du premier noeud contenant tous les espaces de nom.
|
||||
// analyseCalc = createNoeudAnalyseCalc.entete();
|
||||
|
||||
// création et ajoute le noeud analyseCalc au premier noeud.
|
||||
// noeud evaluation = new createNoeudEvaluation().getEvaluation();
|
||||
|
||||
// Ajoute le noeud evaluation au noeud analyseCalc
|
||||
// analyseCalc.addChild(evaluation);
|
||||
|
||||
// création et assemblage du noeud fichier.
|
||||
// assemblageEtCreationNoeudFichier createFichier = new assemblageEtCreationNoeudFichier(rootContent, rootStyles, rootMeta, graphics, use, filenameFichier);
|
||||
|
||||
// Création du noeud csv
|
||||
// noeud csv = new noeud("csv");
|
||||
// csv.setAttribut("encoding", "UTF-8");
|
||||
// csv.setAttribut("separator", ";");
|
||||
// csv.setAttribut("nom", "nom");
|
||||
// csv.setAttribut("prenom", "prenom");
|
||||
// csv.setAttribut("identifiant", "identifiant");
|
||||
// csv.setAttribut("email", "email");
|
||||
|
||||
|
||||
// Assemblage du noeud evaluation
|
||||
// evaluation.addChild(createFichier.getFichier());
|
||||
// evaluation.addChild(csv);
|
||||
//
|
||||
// commandes.initialise();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
package baseUFRHG;
|
||||
|
||||
import java.awt.Font;
|
||||
import java.awt.SystemColor;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.io.File;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JButton;
|
||||
@ -45,9 +45,8 @@ public class demarre extends JFrame {
|
||||
*/
|
||||
private void initialize() {
|
||||
frmEvalwriter = new JFrame();
|
||||
frmEvalwriter.setResizable(false);
|
||||
frmEvalwriter.setTitle("Gestion des inscriptions et des groupes - langues - informatique - stage - rentrée");
|
||||
frmEvalwriter.setBounds(100, 100, 760, 488);
|
||||
frmEvalwriter.setBounds(100, 100, 760, 484);
|
||||
int screenWidth = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getWidth();
|
||||
int screenHeight = (int) java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getHeight();
|
||||
frmEvalwriter.setLocation(( (screenWidth) - frmEvalwriter.getWidth()) / 2, (screenHeight - frmEvalwriter.getHeight()) / 2);
|
||||
@ -98,7 +97,12 @@ public class demarre extends JFrame {
|
||||
btnNewButton.setHorizontalAlignment(SwingConstants.LEFT);
|
||||
btnNewButton.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
importAllBaseToExcel.lecture();
|
||||
File f = FileChooserXLSX.retourneFileXLSX();
|
||||
if(f!=null) {
|
||||
importAllBaseToExcel.lecture(f);
|
||||
}else {
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
btnNewButton.setFont(new Font("Arial", Font.BOLD, 16));
|
||||
@ -123,7 +127,7 @@ public class demarre extends JFrame {
|
||||
// btnTutoriels.setIcon(new ImageIcon(demarre.class.getResource("/resources/tutoriel.png")));
|
||||
btnTutoriels.setHorizontalAlignment(SwingConstants.LEFT);
|
||||
btnTutoriels.setFont(new Font("Arial", Font.BOLD, 16));
|
||||
btnTutoriels.setBounds(376, 313, 356, 60);
|
||||
btnTutoriels.setBounds(376, 313, 356, 95);
|
||||
frmEvalwriter.getContentPane().add(btnTutoriels);
|
||||
|
||||
JLabel lblNewLabel_1 = new JLabel("Importer dans la base des inscriptions depuis un fichier");
|
||||
@ -149,7 +153,21 @@ public class demarre extends JFrame {
|
||||
frmEvalwriter.getContentPane().add(btnimporterDesInscriptionsdepuis);
|
||||
|
||||
JLabel lblNewLabel_2 = new JLabel("version 1.0.0");
|
||||
lblNewLabel_2.setBounds(10, 424, 128, 14);
|
||||
lblNewLabel_2.setBounds(139, 426, 128, 14);
|
||||
frmEvalwriter.getContentPane().add(lblNewLabel_2);
|
||||
|
||||
JLabel lblNewLabel_3 = new JLabel("pablo rodriguez - 2023");
|
||||
lblNewLabel_3.setBounds(10, 426, 151, 14);
|
||||
frmEvalwriter.getContentPane().add(lblNewLabel_3);
|
||||
|
||||
JButton btnNewButton_1 = new JButton("Aide à la mise en jour");
|
||||
btnNewButton_1.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
||||
}
|
||||
});
|
||||
btnNewButton_1.setFont(new Font("Tahoma", Font.BOLD, 12));
|
||||
btnNewButton_1.setBounds(10, 378, 356, 30);
|
||||
frmEvalwriter.getContentPane().add(btnNewButton_1);
|
||||
}
|
||||
}
|
||||
|
@ -2,76 +2,83 @@ package baseUFRHG;
|
||||
|
||||
public class exportBaseToExcel {
|
||||
|
||||
|
||||
|
||||
public static void export(noeud nBase) {
|
||||
|
||||
// Données
|
||||
Object[][] data = new Object[nBase.getChild(nBase.getAttributes("defaut_Year")).getNumberChildren()][28];
|
||||
|
||||
Object[][] data = new Object[nBase.getChild(nBase.getAttributes("defaut_Year")).getNumberChildren()][29];
|
||||
|
||||
|
||||
|
||||
int indexFormation = 0 ;
|
||||
for(noeud formation : nBase.getChild(nBase.getAttributes("defaut_Year")).getChildren()) {
|
||||
|
||||
|
||||
|
||||
data[indexFormation][0] = formation.getName();
|
||||
data[indexFormation][1] = "Individu_-_Code_Etudiant";
|
||||
data[indexFormation][2] = "Individu_-_Prenom";
|
||||
data[indexFormation][3] = "Individu_-_Nom";
|
||||
data[indexFormation][4] = "Profil_etudiant_lib.";
|
||||
data[indexFormation][5] = "Individu_-_Tel._portable";
|
||||
data[indexFormation][6] = "Individu_-_Email_personnel";
|
||||
data[indexFormation][7] = "Individu_-_Email";
|
||||
data[indexFormation][8] = "Groupe";
|
||||
data[indexFormation][9] = "Groupe_Principal";
|
||||
data[indexFormation][10] = "Groupe_TD";
|
||||
data[indexFormation][11] = "Groupe_Langue";
|
||||
data[indexFormation][12] = "LV1";
|
||||
data[indexFormation][13] = "LV2";
|
||||
data[indexFormation][14] = "Groupe_Informatique";
|
||||
data[indexFormation][15] = "Atelier-rentree_horaire";
|
||||
data[indexFormation][16] = "Atelier_pre-rentree_enseignant";
|
||||
data[indexFormation][17] = "Atelier_pre-rentree_salle";
|
||||
data[indexFormation][18] = "UE_Libre";
|
||||
data[indexFormation][19] = "Covoiturage";
|
||||
data[indexFormation][20] = "Etudiant_Covoiturage";
|
||||
data[indexFormation][21] = "Stage_1";
|
||||
data[indexFormation][22] = "Num_convention_1";
|
||||
data[indexFormation][23] = "Periode_1";
|
||||
data[indexFormation][24] = "Stage_2";
|
||||
data[indexFormation][25] = "Num_convention_2";
|
||||
data[indexFormation][26] = "Periode_2";
|
||||
|
||||
|
||||
String[][] data1 = new String[formation.getNumberChildren()][26];
|
||||
data[indexFormation][1] = "Formation";
|
||||
data[indexFormation][2] = "Individu_-_Code_Etudiant";
|
||||
data[indexFormation][3] = "Individu_-_Prenom";
|
||||
data[indexFormation][4] = "Individu_-_Nom";
|
||||
data[indexFormation][5] = "Profil_etudiant_lib.";
|
||||
data[indexFormation][6] = "Individu_-_Tel._portable";
|
||||
data[indexFormation][7] = "Individu_-_Email_personnel";
|
||||
data[indexFormation][8] = "Individu_-_Email";
|
||||
data[indexFormation][9] = "Groupe";
|
||||
data[indexFormation][10] = "Groupe_Principal";
|
||||
data[indexFormation][11] = "Groupe_TD";
|
||||
data[indexFormation][12] = "Groupe_Langue";
|
||||
data[indexFormation][13] = "LV1";
|
||||
data[indexFormation][14] = "LV2";
|
||||
data[indexFormation][15] = "Groupe_Informatique";
|
||||
data[indexFormation][16] = "Atelier-rentree_horaire";
|
||||
data[indexFormation][17] = "Atelier_pre-rentree_enseignant";
|
||||
data[indexFormation][18] = "Atelier_pre-rentree_salle";
|
||||
data[indexFormation][19] = "UE_Libre";
|
||||
data[indexFormation][20] = "Covoiturage";
|
||||
data[indexFormation][21] = "Etudiant_Covoiturage";
|
||||
data[indexFormation][22] = "Stage_1";
|
||||
data[indexFormation][23] = "Num_convention_1";
|
||||
data[indexFormation][24] = "Periode_1";
|
||||
data[indexFormation][25] = "Stage_2";
|
||||
data[indexFormation][26] = "Num_convention_2";
|
||||
data[indexFormation][27] = "Periode_2";
|
||||
|
||||
String[][] data1 = new String[formation.getNumberChildren()][27];
|
||||
|
||||
int indexStudent = 0;
|
||||
for(noeud nStudent : formation.getChildren()) {
|
||||
data1[indexStudent][0] = nStudent.getAttributes("Individu_-_Code_Etudiant");
|
||||
data1[indexStudent][1] = nStudent.getAttributes("Individu_-_Prenom");
|
||||
data1[indexStudent][2] = nStudent.getAttributes("Individu_-_Nom");
|
||||
data1[indexStudent][3] = nStudent.getAttributes("Profil_etudiant_lib.");
|
||||
data1[indexStudent][4] = nStudent.getAttributes("Individu_-_Tel._portable");
|
||||
data1[indexStudent][5] = nStudent.getAttributes("Individu_-_Email_personnel");
|
||||
data1[indexStudent][6] = nStudent.getAttributes("Individu_-_Email");
|
||||
data1[indexStudent][7] = nStudent.getAttributes("Groupe");
|
||||
data1[indexStudent][8] = nStudent.getAttributes("Groupe_Principal");
|
||||
data1[indexStudent][9] = nStudent.getAttributes("Groupe_TD");
|
||||
data1[indexStudent][10] = nStudent.getAttributes("Groupe_Langue");
|
||||
data1[indexStudent][11] = nStudent.getAttributes("LV1");
|
||||
data1[indexStudent][12] = nStudent.getAttributes("LV2");
|
||||
data1[indexStudent][13] = nStudent.getAttributes("Groupe_Informatique");
|
||||
data1[indexStudent][14] = nStudent.getAttributes("Atelier-rentree_horaire");
|
||||
data1[indexStudent][15] = nStudent.getAttributes("Atelier_pre-rentree_enseignant");
|
||||
data1[indexStudent][16] = nStudent.getAttributes("Atelier_pre-rentree_salle");
|
||||
data1[indexStudent][17] = nStudent.getAttributes("UE_Libre");
|
||||
data1[indexStudent][18] = nStudent.getAttributes("Covoiturage");
|
||||
data1[indexStudent][19] = nStudent.getAttributes("Etudiant_Covoiturage");
|
||||
data1[indexStudent][20] = nStudent.getAttributes("Stage_1");
|
||||
data1[indexStudent][21] = nStudent.getAttributes("Num_convention_1");
|
||||
data1[indexStudent][22] = nStudent.getAttributes("Periode_1");
|
||||
data1[indexStudent][23] = nStudent.getAttributes("Stage_2");
|
||||
data1[indexStudent][24] = nStudent.getAttributes("Num_convention_2");
|
||||
data1[indexStudent][25] = nStudent.getAttributes("Periode_2");
|
||||
data1[indexStudent][0] = formation.getName();
|
||||
data1[indexStudent][1] = nStudent.getAttributes("Individu_-_Code_Etudiant");
|
||||
data1[indexStudent][2] = nStudent.getAttributes("Individu_-_Prenom");
|
||||
data1[indexStudent][3] = nStudent.getAttributes("Individu_-_Nom");
|
||||
data1[indexStudent][4] = nStudent.getAttributes("Profil_etudiant_lib.");
|
||||
data1[indexStudent][5] = nStudent.getAttributes("Individu_-_Tel._portable");
|
||||
data1[indexStudent][6] = nStudent.getAttributes("Individu_-_Email_personnel");
|
||||
data1[indexStudent][7] = nStudent.getAttributes("Individu_-_Email");
|
||||
data1[indexStudent][8] = nStudent.getAttributes("Groupe");
|
||||
data1[indexStudent][9] = nStudent.getAttributes("Groupe_Principal");
|
||||
data1[indexStudent][10] = nStudent.getAttributes("Groupe_TD");
|
||||
data1[indexStudent][11] = nStudent.getAttributes("Groupe_Langue");
|
||||
data1[indexStudent][12] = nStudent.getAttributes("LV1");
|
||||
data1[indexStudent][13] = nStudent.getAttributes("LV2");
|
||||
data1[indexStudent][14] = nStudent.getAttributes("Groupe_Informatique");
|
||||
data1[indexStudent][15] = nStudent.getAttributes("Atelier-rentree_horaire");
|
||||
data1[indexStudent][16] = nStudent.getAttributes("Atelier_pre-rentree_enseignant");
|
||||
data1[indexStudent][17] = nStudent.getAttributes("Atelier_pre-rentree_salle");
|
||||
data1[indexStudent][18] = nStudent.getAttributes("UE_Libre");
|
||||
data1[indexStudent][19] = nStudent.getAttributes("Covoiturage");
|
||||
data1[indexStudent][20] = nStudent.getAttributes("Etudiant_Covoiturage");
|
||||
data1[indexStudent][21] = nStudent.getAttributes("Stage_1");
|
||||
data1[indexStudent][22] = nStudent.getAttributes("Num_convention_1");
|
||||
data1[indexStudent][23] = nStudent.getAttributes("Periode_1");
|
||||
data1[indexStudent][24] = nStudent.getAttributes("Stage_2");
|
||||
data1[indexStudent][25] = nStudent.getAttributes("Num_convention_2");
|
||||
data1[indexStudent][26] = nStudent.getAttributes("Periode_2");
|
||||
|
||||
|
||||
data[indexFormation][27] = data1;
|
||||
data[indexFormation][28] = data1;
|
||||
indexStudent++;
|
||||
}
|
||||
|
||||
@ -84,4 +91,9 @@ public class exportBaseToExcel {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,9 +1,11 @@
|
||||
package baseUFRHG;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellType;
|
||||
@ -14,76 +16,100 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
|
||||
public class importAllBaseToExcel {
|
||||
|
||||
public static void lecture() {
|
||||
public static void lecture(File file) {
|
||||
|
||||
noeud nBase = recupeBases.recupeLaBase();
|
||||
|
||||
try (FileInputStream fileInputStream = new FileInputStream("base.xlsx");
|
||||
try (FileInputStream fileInputStream = new FileInputStream(file.getAbsolutePath());
|
||||
Workbook workbook = new XSSFWorkbook(fileInputStream)) {
|
||||
|
||||
int numSheets = workbook.getNumberOfSheets();
|
||||
|
||||
int compteur = 0 ;
|
||||
|
||||
|
||||
for (int sheetIndex = 0; sheetIndex < numSheets; sheetIndex++) {
|
||||
Sheet sheet = workbook.getSheetAt(sheetIndex);
|
||||
|
||||
if( nBase.getChild(sheet.getSheetName())!=null ) {
|
||||
|
||||
System.out.println("Feuille : " + sheet.getSheetName());
|
||||
noeud nBF = nBase.getChild(sheet.getSheetName());
|
||||
|
||||
|
||||
|
||||
for (Row row : sheet) {
|
||||
int indexCol = 0;
|
||||
noeud nBF = null;
|
||||
noeud nStudent = null;
|
||||
|
||||
for (Cell cell : row) {
|
||||
|
||||
indexCol = cell.getColumnIndex();
|
||||
|
||||
if(indexCol==0) {
|
||||
if (cell.getCellType() == CellType.NUMERIC) {
|
||||
String idStudent = String.valueOf( (int) cell.getNumericCellValue());
|
||||
nStudent = nBF.getChild("n"+idStudent);
|
||||
} else if(cell.getCellType() == CellType.STRING) {
|
||||
String idStudent = cell.getStringCellValue();
|
||||
nStudent = nBF.getChild("n"+idStudent);
|
||||
if(indexCol==0) { // Colonne formation
|
||||
if(cell.getCellType() == CellType.STRING) {
|
||||
nBF = nBase.getChild(cell.getStringCellValue());
|
||||
}
|
||||
}
|
||||
|
||||
if(nBF!=null) {
|
||||
if(indexCol==1) {
|
||||
if (cell.getCellType() == CellType.NUMERIC) {
|
||||
String idStudent = String.valueOf( (int) cell.getNumericCellValue());
|
||||
nStudent = nBF.getChild("n"+idStudent);
|
||||
} else if(cell.getCellType() == CellType.STRING) {
|
||||
String idStudent = cell.getStringCellValue();
|
||||
nStudent = nBF.getChild("n"+idStudent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(nStudent!=null) {
|
||||
CellType cellType = cell.getCellType();
|
||||
if (cellType == CellType.STRING) {
|
||||
String cellValue = cell.getStringCellValue();
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(), cellValue);
|
||||
String value = nStudent.getAttributes(sheet.getRow(0).getCell(indexCol).getStringCellValue());
|
||||
if(!cellValue.equals(value)) {
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(), cellValue);
|
||||
compteur++;
|
||||
}
|
||||
System.out.print(cellValue + " ");
|
||||
} else if (cellType == CellType.NUMERIC) {
|
||||
String cellValue = String.valueOf( (int) cell.getNumericCellValue());
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(), cellValue);
|
||||
System.out.print(cellValue + " ");
|
||||
String value = nStudent.getAttributes(sheet.getRow(0).getCell(indexCol).getStringCellValue());
|
||||
if(!cellValue.equals(value)) {
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(), cellValue);
|
||||
compteur++;
|
||||
}
|
||||
System.out.print(cellValue + " ");
|
||||
} else if (cellType == CellType.BOOLEAN) {
|
||||
boolean cellValue = cell.getBooleanCellValue();
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(),String.valueOf(cellValue));
|
||||
String cellValue = String.valueOf(cell.getBooleanCellValue());
|
||||
String value = nStudent.getAttributes(sheet.getRow(0).getCell(indexCol).getStringCellValue());
|
||||
if(!cellValue.equals(value)) {
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(), cellValue);
|
||||
compteur++;
|
||||
}
|
||||
System.out.print(cellValue + " ");
|
||||
} else {
|
||||
// Autres types de cellules (formules, vides, etc.)
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(),"");
|
||||
System.out.print("[Type de cellule non pris en charge] ");
|
||||
String cellValue = (String) cell.getStringCellValue();
|
||||
String value = nStudent.getAttributes(sheet.getRow(0).getCell(indexCol).getStringCellValue());
|
||||
if(!cellValue.equals(value)) {
|
||||
nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(), cellValue);
|
||||
compteur++;
|
||||
}
|
||||
System.out.print(cellValue + " ");
|
||||
// nStudent.setAttribut(sheet.getRow(0).getCell(indexCol).getStringCellValue(),"");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
System.out.println(); // Nouvelle ligne après chaque ligne du tableau
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
System.out.println(); // Nouvelle ligne entre les feuilles
|
||||
}
|
||||
|
||||
JOptionPane.showInternalMessageDialog(null, "Nombre de modification : " +String.valueOf(compteur));
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
JOptionPane.showMessageDialog(null, e.toString(), "Erreur dans la class importAllBaseToExcel", JOptionPane.ERROR_MESSAGE);
|
||||
|
@ -20,13 +20,7 @@ public class lecture {
|
||||
if(fileData!=null) {
|
||||
String filePath = fileData.getAbsolutePath();
|
||||
noeudCSV = lectureCSV.noeudCSV(filePath);
|
||||
|
||||
// try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
|
||||
// new FileOutputStream("C:\\Users\\pabr6\\OneDrive\\Documents\\corrine rapicault - inscriptions\\fichier.xml"), StandardCharsets.UTF_8))) {
|
||||
// writer.write(noeudCSV.toWrite());
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
} catch (Exception e) {
|
||||
@ -36,37 +30,6 @@ public class lecture {
|
||||
|
||||
// ajoute les étudiants qui n'existent pas, dans la base.
|
||||
nBase = majBase.addStudents(nBase,noeudCSV);
|
||||
|
||||
// //Exporte la base dans un classeur Excel.
|
||||
// exportBaseToExcel.export(nBase);
|
||||
|
||||
// String directoryName = Paths.get("").toAbsolutePath().toString() + "/base.xml";
|
||||
// try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
|
||||
// new FileOutputStream(directoryName), StandardCharsets.UTF_8))) {
|
||||
// writer.write(nBase.toWrite());
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
//
|
||||
// System.out.println(nBase.toWrite());
|
||||
//
|
||||
//
|
||||
// // lecture et création d'un noeud à partir d'un fichier XML
|
||||
// try {
|
||||
// File fileData = FileChooserXML.retourneFileXML();
|
||||
//
|
||||
// if(fileData!=null) {
|
||||
// String filePath = fileData.getAbsolutePath();
|
||||
// String xmlString = lectureFileToString.lecture(filePath);
|
||||
// noeud noeud1 = lectureXML.lectureStringToNoeud(xmlString);
|
||||
// System.out.println(noeud1.toWrite());
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user