From 16a83ebdbd8779961503732335950e24f8ea3c3b Mon Sep 17 00:00:00 2001 From: brinet Date: Thu, 1 Dec 2022 17:12:25 +0100 Subject: [PATCH] studentview + modif BDatabase --- build/API/AbstractChangementFactory.class | Bin 446 -> 446 bytes build/API/AbstractGroupeFactory.class | Bin 719 -> 719 bytes build/API/Changement.class | Bin 1160 -> 1160 bytes build/API/Etudiant.class | Bin 971 -> 971 bytes build/API/Groupe.class | Bin 2068 -> 2068 bytes build/API/MonPrint.class | Bin 143 -> 143 bytes build/API/TypeGroupe.class | Bin 1044 -> 1103 bytes build/MNP/AbstractChangementFactoryNP.class | Bin 2771 -> 2771 bytes build/MNP/AbstractGroupeFactoryNP.class | Bin 5511 -> 5511 bytes build/MNP/ChangementNP.class | Bin 1127 -> 1127 bytes build/MNP/EtudiantNP.class | Bin 948 -> 948 bytes build/MNP/GroupeNP.class | Bin 3551 -> 3551 bytes build/Test/AdminView.class | Bin 1458 -> 1325 bytes src/Test/BDatabase.java | 18 +-- src/Test/StudentView.java | 129 ++++++++++++++++++++ 15 files changed, 140 insertions(+), 7 deletions(-) create mode 100644 src/Test/StudentView.java diff --git a/build/API/AbstractChangementFactory.class b/build/API/AbstractChangementFactory.class index 7bb0ac2c68c76fbbcff26ee26497dea1d3514819..3ce3579df7d77060ce9ecde5f57de33ad12f66af 100644 GIT binary patch delta 120 zcmdnTypNgp)W2Q(7#J9A8HCswm?pb2Du}T&urM+RWF?j*>gOcprR)1AWu+#UY!onM zbYo*=U}RthDraC|1u9}?U}FF&W@q34igN-*nHac$d~OCFusAQ2=40Ro$^i`ps}KYL DDfJFh delta 118 zcmdnTypLJn)W2Q(7#JAL8HCsw1lSn_H#(a#PUKaHWMmM?N-Rs%&q>Tn*Y{7#N=+_d zV`N}tU;-*;U|?loWMF1sVPF8#tPE^Gadx0669Wg3&&j|A7Uzc2JPf=*IYtIPunK+v D6=e=X diff --git a/build/API/AbstractGroupeFactory.class b/build/API/AbstractGroupeFactory.class index b07b9a9b8cb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G1L-4_VoR9YteC)g11fIlG0N1CZ^%)%1`mt!` zAZwjNu2+t@UODA@JrS*(f2|K=M6Vn=Mj2z27M!Agj`OyDnmZ0I<@12JfDW|L?zbNx zZhnuJTzX^^tpb$9QMPMI=G+?s4-f73 u{eFdkGk;+8PbBr`GFtJH4sw>x0rmT?(7nq7U!>m0@2~Lel9qWb-}o1t@BkJ7 diff --git a/build/API/MonPrint.class b/build/API/MonPrint.class index 92a67e7430128c39dbc17e3c480faa9c0b830bec..7f0751cffd8b8b470ea133a1566c0a8aa5377010 100644 GIT binary patch delta 89 zcmeBY>}NDO^>5cc1_lOO22OScCPoGx#{f@#-~7CQqRhM!b_Nzk27#=^vPAuy#JqHU n|D>$c}M1>^>5cc1_lOm22OScc6J7iiAMGgj0`-E0iOE4`FR0FnRz9Q3<6n+Wr_MZ oiFxVz{z+M>$t7%z42%p+Kz$4hj4X@{%nU3b76U7gWMW_g0K3W%i~s-t diff --git a/build/API/TypeGroupe.class b/build/API/TypeGroupe.class index 8566d060b473dc9f7180e0aa8b51607fb216c6d2..f93ed25576061e19e2db5e823f0be8bf5664827d 100644 GIT binary patch literal 1103 zcmZuxTW``}7=Av=p>!Q%-O0_VbD~lysQSRvy501UqwLs*)l3gFZ~zbgj*Ppw#}LdImf`F&%nw8LD|2d< z_jg~$Djv|NEUiVFm2nCY0TGWFW-4vByJG6ymEWHn_t?-Zrz;UcoU^I)-b6AEr&dLT zMXb~0JDTknj?uP6$RbiSIn$`yItSg9@f2Hp?A|=OL?2hj22U;i5Bm?=$E1HMZ&><~ z+p6n!MXQ_SiQOPe9o-;_DH}~ob6lHB=58vf(#d2RW`CkWTqVcqP>yZd>;Nf1o#O{POL4T zV>yxhij^-{3=xU~A~A(A0SPb2^5JDv;@j&pro4J!A@~!lCiEbbYyKWWDKgn;( zqB9!J62JLJ8SiVzK%pP{-nsYOd+v|-`_H$Z0JiZu0ufmmYgi8>8AeWqiVgnDbI)T5 zaS59;U7v9LRKkLUXZ*S)AtB*8zix-|fjamFTebj=`W-&h&FVZ|U}FUUMDOJ|%iM)!3`NDQOI`x0A_2=ep$?eTH~C zGsP|LcTXtsY{j&VBd^mkoVwn!$P)JBs_z(5=}Fbh6rrMNo9+%ndJ4ZhB}Ice)yz{{ zcRhy$7p8<|h$9u-)-ZD*%?+z#xk|RzDgIx}4h==tx}MWE4ou$5>}b3je1HlT`SOwq zUg8x)^xq9ASVlp?Jrot(#4Va!z3cT?ETg~j>x1i^n7Zxuxqnqb9P`vgPj_6?HM_Qg z1#SphX3H@YBshqUR>rF(Z`x};@~jk> z7>^s$%9+OQCcQY79&d1Wk(Ue5NmcqM6-XYHw+YN8`B(^xh~PGsz;K7qDxLh32Vh?y zTp{q05W`*ihkRdv_{&(i<_o@6R>kaB1g{`Y@&!IU2!8%`1V|B3vTIA12xW7h5&m?o z5G5}lkx~RRka3@ofD~CC;NeiQjUZWp!|xEAsuWNomyj3k!`YxZ=fha& n2eAVK%xFziUT diff --git a/build/MNP/AbstractChangementFactoryNP.class b/build/MNP/AbstractChangementFactoryNP.class index 29869c1bd06c9cba700c0ba6c958a51fee76a9ed..4281ba3c9b5a87283283ea33e6043d24c6539464 100644 GIT binary patch delta 1137 zcmZWnOHWf<6#n*kbeF>}k7}8o;W%49RS%?x^LXulh7`A9qLv0$N`LkM_KAwQZ&J!PmuHHTMV z5f;mFvw7xj({heK7^=sT=abQVE^{inGkI<_o}94YgRU+F1ZuE!=2d-=qwY84P&%iO z4FZh_${tsSBN2kDMY>_oQ zMDyvA_w^=vzgxc62P-UW#SSH_hr!n>gRVseO=_pCHwG<5yGvjX{hJWO3 zqla=*{%<&xkISz{8|Acg%$7!u5r(RG|3I{RG?^VqpH63U{R0+GAfptI$(R-?a-I@6 zjjXJ8cagsddCzQ``Oqt)>~q5;gHV&(k;|tt$!w0}Uk2;PEM!}IVZ3Rvy2VA`h)YDR9&r{Psh&q|g5dsH)ECecvwvPw zYY&7`NgGsBdYLG$;3`E$@s=n|U=mksZ;KLX&tU~aoRY)PPiZB?2199a=CDS?EH>PM zXC7M<-fabJf2BGB_!*lGN#lc~kgF!O$@?BYU@*0V% zg!Tm;9M?If=vPBp|NEhMJwcVHfbBg}oGSVLm5wgt2~t7kKr6|y2Yw9E=?#o67(Yg~ z$vE0=?@>kLc#o;n7V)N3p2vxV9dQa6Et>Z$izUSYV-_csX7z}CXa)IAsx{pD2D0?f Ae*gdg delta 1140 zcmZWnOK($06#nKuJU7>qhi{t_gA<4eH1_q4c{M3{l|XnH;v^)L)GeiPu$wpyP9Qfx zON&!p>!R6p)h<}E0SRJ4pcPw$)CCgVcgs&eLOo-LB2kU>oipd0`ObHa=0)R+#?rGl zkNyDAg_|~_=(Eso<1_55K`RD0_S-Pgr!EIL2G!-D4GV`X91h|LQVNbLI2ObZ(l&-M z!ZB*$xQ!6TER3u82?d|4vXeF@@P*>ZSoqSyR}l-REPTyz+C~e$QJG1OEXNeb8M%kG z$t$cy{uW3D1HFY}!S82iX_tL$lML{edX7WB<}qmn;xcOOFa_fH_EztyL5^vG859KC zu#F)!o4t@tF8PJI*4eBOAC1hy*+mF*6m68g!cD}MPyp@q724#-XCD7YmW`REAFYr z_cMfLKMTv3T0++AG5J_;lDmza5r$wkmpd{4mf9qeRIbt@C4V=%_1a zLnz}oWqk0b%7l&gQy;!fd5Kjt>Zn$c|53%~#JhpvA(~bYo}fJ#B-4|B)g()wkf?fS zZ_vfj$rW~OB(0zRr+6=ws?CO7XJcinH23>-^uVK%IvNfb0mpGPVVt6S(Y-$S6pc-T yqtkUZDH_j-DASQ}nw4EcOU6xjWo)ht&((-k#bILwTa;$iMBcGmc@Oy-djAC}2+qm? diff --git a/build/MNP/AbstractGroupeFactoryNP.class b/build/MNP/AbstractGroupeFactoryNP.class index e7f1083701c3f5456e5c5c4319a569d717e1f185..1e9902cb23d8a51fada9dedc23dad1b3362af20d 100644 GIT binary patch delta 2732 zcmbVNdwf&n8GgRp&dJG_2GWK$Eh%XWrEP*mgaU1GR&W?>OR=n7aVn?uNP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40zWuND& uELI&MD*s^RAD)*?y^SQfiS8_j;ti=mQvble@K5@OaUanN(VwQj&-@1&HfKu! diff --git a/build/MNP/ChangementNP.class b/build/MNP/ChangementNP.class index 98bad41e8b4a805e7babf18892c6278f291852e6..1a468d9aae71a91a527ea45e501003d1f06ec944 100644 GIT binary patch delta 622 zcmZvY$x6du6ot=C+9uXGwa!!PtZ8eU5gb4qps2NO6hY8vgQnCdC5k(@ZY3+|Ce*_&4>D-PQQJ=yaJfPL=X~W1wIXa1PIkx^UO4IrgLDd z?PaZfmk^k?9owBH$o&HwDpYTo7At}XqFjNdp#qg&UfK<)s3t6UDVnIsTiIjV$>go5 zbDGPk2zl=`zf^`=)G4Uf(11p6T1};m`9p59jx5JbrMbzm&fR2&KuG~NYiJRqWM_nJ z)6kB{)p~eHxDE}Sh%mY*T(^cE^s=)El`C`Uq_OCpW^B`Orxf&irWC%qy!QGia)A!U zB@p`f;GkHA|AQooipmW|`oxV$2zG$fnp)$8D*P^P?eB)s78pc zZ{8#9+ueFVxPT@-RzRzsC?Kkr#|!AXV@#~Lhy7@+Uif-_A zgh3cQ#Rh-T*4q+P=1@A@=t76DLVrdqs480H{f3QWj^ue9=6}hR&m}K HI|<`ozqwJn literal 1127 zcmbVLTTc@~7(LT_>&m6dMFdTv(=R4n-Z)Sh~`u+pJJ>1Q~z;p&PIov=YgJK3&7UwXl zVNOFy!@P!a8aLCpmBxZVO3AnWdR;)Q3&dRgVhb1>D_iU3r(P>)%L-F9K2o4BOh5L6 zx@#++3#nySx&8xzVj)`bCoQ^Cd?AonYt<>%zu_ub4fbl%dv4d7%p@B!v=T2AX(qw1 z74|F?qXOOhDqC}zP6P&y2@zYFWv6*;j9P4&+inG(BcHgs&EVQ=TQ%gKRDN}9e%C&* z4Gd#SV0BZON}6pM_-5PQHy!WjP4udH@j&hUpDR0(xrQ`De^i?=zaeg5u@ZIJyXP+cbatxlVwp5j45LhZ~^h#AC znQh;5Rijdjq`LhoxXK%9K;S%*$Z7Mu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X6V#hihXzRzp;XGts=_&kLSo*VeWKv`QCwWw&Z zl*Ef9mIZ_qxL!SUjvPBuZqqIYfpb!ILsb$Otho)(QBgq5gI<{VYI$qbexahe>v*cP zKp)W%xcC3qmB5eMGDaFrMvqS@UZTv6K z%&tJ9;@4ThXw~)PM%3Du!H%=vq~*Jw%vXx)6{!QdtmaDoI&N~w4ckrUM4&&X^;FG| zf&;ni>ewUYddu~8U3omKn=g>rjbt`9vMqt5WE7aVj};SBxMw1Z+a@Npn1Ll=#)U3c zofAJ&8fTgK600WGuqrUFDSx!XW7ligYm1Rmz9(>}^4jqlGRQV%wh_-ETc3`+tnAKD z(|l#3igkf8=V)$j-9M5w9$3ua^(BtKRy~K2CM9&atxPk@S@PE~2Cz#~8I^uK2B% zPYZDZDm9nKc__@ zE&k+h;2eEc@f7`5;S>oge~N3?83ukKRA8EN0t1wz7{?8MZ!**b15A?ib~l9_k=#y7 z9q0|i=s@ZM$-Q$J)qMXM2DM0CU}!I6o@02uVEqbOMhcnHGmKe<{29{u1R>T1GJBcv zbG#RuuKnY6on9Nou2(VhzV<3=h(($YnDGr>H~-CgjcouMW3X| getNbrEtuGroupes() { - ArrayList NGroupe = new ArrayList<>(); - ArrayList groupeNB = this.fetchAll("SELECT COUNT(DISTINCT groupe) FROM fi_eleves;"); - for(int i = 0; i <= NGroupe.Goupe(groupeNB); i++) { - ArrayList grpnb = this.fetchAll("Select count(id) from fi_eleves where groupe="+i+";"); + /** +* Recuperer le nombre de membre d'un groupe +* +* @param groupe_id le groupes +* @return le nombre de membre +* */ +public int getMemberCount(int groupe_id) { + ArrayList forCount = this.fetchAll( + "SELECT nom FROM fi_eleves WHERE groupe=" + groupe_id); - } - } + return forCount.size(); +} } \ No newline at end of file diff --git a/src/Test/StudentView.java b/src/Test/StudentView.java new file mode 100644 index 0000000..2a92a9f --- /dev/null +++ b/src/Test/StudentView.java @@ -0,0 +1,129 @@ +package Test; + +import API.Etudiant; +import API.Groupe; +import javax.swing.JComboBox; +import javax.swing.JTextField; +import javax.swing.JButton; +import javax.swing.JLabel; +import javax.swing.JPanel; + +import java.awt.Dimension; +import java.awt.Insets; +import java.awt.GridBagConstraints; +import java.awt.event.KeyAdapter; +import java.awt.event.KeyEvent; +import java.util.ArrayList; + +public class ProfView extends JPanel { + private final ArrayList e; + private final ArrayList g; + private final Controller listener; + private JComboBox groupeOption; + private JTextField text; + + public ProfView(ArrayList e, ArrayList g, Controller listener) { + super(); + + this.listener = listener; + this.e = e; + this.g = g; + + this.Display(); + } + + public String getComboSelection() { + return (String) this.groupeOption.getSelectedItem(); + } + + public String getSearchStud() { + return this.text.getText(); + } + + public int getComboSelectionIndex() { + return this.groupeOption.getSelectedIndex(); + } + + public void Display() { + BLayout settings = new BLayout(); + settings.setPositionX(0); + settings.setPositionY(6); + + settings.setPositionY(0); + JButton studList = new JButton("Voir la liste des etudiants"); + studList.setActionCommand("pv::GetStudList"); + studList.addActionListener(this.listener); + this.add(studList, settings); + + settings.setPositionY(1); + this.add(new JLabel(" "), settings); + + settings.setPositionY(2); + JLabel gs = new JLabel("Afficher les etudiants se trouvant dans le groupe :"); + this.add(gs, settings); + + settings.setPositionY(3); + settings.setPadding(new Insets(0, 0, 0, 50)); + String[] groupeList = new String[this.g.size()]; + + for(int i = 0; i <= this.g.size()-1; i++) { + groupeList[i] = this.g.get(i).getName(); + } + + this.groupeOption = new JComboBox<>(groupeList); + this.groupeOption.setPreferredSize(new Dimension(110, 30)); + this.add(groupeOption, settings); + + settings.setPositionY(3); + settings.setPadding(new Insets(0, 0, 0, 0)); + settings.setAnchor(GridBagConstraints.EAST); + JButton confirm = new JButton("Rechercher"); + confirm.setActionCommand("pv::GetListFiltered"); + confirm.addActionListener(this.listener); + this.add(confirm, settings); + + settings.setAnchor(GridBagConstraints.CENTER); + + settings.setPositionY(4); + this.add(new JLabel(" "), settings); + + settings.setPositionY(5); + JLabel pf = new JLabel("Rechercher un etudiant : "); + this.add(pf, settings); + + settings.setPositionY(6); + settings.setPadding(new Insets(0, 0, 0, 50)); + this.text = new JTextField(); + this.text.setPreferredSize(new Dimension(110, 30)); + text.addKeyListener(new KeyAdapter() { + public void keyTyped(KeyEvent e) { + if (text.getText().length() >= 3 ) + e.consume(); + } + }); + this.add(this.text, settings); + + settings.setPositionY(6); + settings.setPadding(new Insets(0, 0, 0, 0)); + settings.setAnchor(GridBagConstraints.EAST); + JButton searchTLetters = new JButton("Rechercher"); + searchTLetters.addActionListener(this.listener); + searchTLetters.setActionCommand("pv::SearchStudentPer3Letters"); + this.add(searchTLetters, settings); + + JButton changGrp = new JButton("Changer de groupe"); + changGrp.addActionListener(this.listener); + this.add(changGrp, settings); + + if(this.db.insertRow(la_table, new String[]{"nom"}, new String[]{"felix"})) { + Affiche "OUHRAA" + } else { + Affiche "Marche ap" + } + + this.repaint(); + + + + } +}