Celine.meneu 16 éve
szülő
commit
6e561c4dcb

+ 13 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/Commentaires.cs

@@ -31,6 +31,12 @@ namespace CG67.FicheCollege.Domaine
         /// Commentaire à propos du tableau d'évolution des effectifs de n-10 à n+5
         /// </summary>
         private string mTableauEffectif;
+
+
+        /// <summary>
+        /// Titre du grapihque personnalisé
+        /// </summary>
+        private string mTitreGraph;
 	
         public string SecteurRecrutement
         {
@@ -61,9 +67,13 @@ namespace CG67.FicheCollege.Domaine
             get { return mTableauEffectif; }
             set { mTableauEffectif = value; }
         }
+        public string TitreGraph
+        {
+            get { return mTitreGraph; }
+            set { mTitreGraph = value; }
+        }
 
-
-        public Commentaires(string secteurRecrutement, string previsionEffectifATC, string programmationTravaux, string amenagementsParticuliers, string interventionsRemarquables, string tableauEffectif)
+        public Commentaires(string secteurRecrutement, string previsionEffectifATC, string programmationTravaux, string amenagementsParticuliers, string interventionsRemarquables, string tableauEffectif, string titreGraph)
         {
             this.mSecteurRecrutement = secteurRecrutement;
             this.mPrevisionEffectifATC = previsionEffectifATC;
@@ -71,6 +81,7 @@ namespace CG67.FicheCollege.Domaine
             this.mAmenagementsParticuliers = amenagementsParticuliers;
             this.mInterventionsRemarquables = interventionsRemarquables;
             this.mTableauEffectif = tableauEffectif;
+            this.mTitreGraph = titreGraph;
         }
 	
     }

+ 1 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotChiffresSignificatifs.cs

@@ -49,7 +49,7 @@ namespace CG67.FicheCollege.Entrepot
                         //command.CommandText = "SELECT sum(TotalEleves) as totalEleves FROM Effectif WHERE Effectif.Annee = @Annee";
                         //command.CommandText ="SELECT Sum(EffectifTotal.EffectifTotal) AS SommeDeEffectifTotal FROM EffectifTotal GROUP BY EffectifTotal.Annee HAVING (((EffectifTotal.Annee)=@Annee) AND (Typedonnees='R'))";
                         //command.CommandText = "SELECT Sum(EffectifTotal.EffectifTotal) AS SommeDeEffectifTotal FROM EffectifTotal WHERE Annee = @Annee ";
-                        command.CommandText = "SELECT Sum(EffectifTotal.EffectifTotal) AS SommeDeEffectifTotal FROM EffectifTotal GROUP BY EffectifTotal.Annee, EffectifTotal.Typedonnees, EffectifTotal.TypeClasses HAVING (EffectifTotal.Annee = @Annee) AND (EffectifTotal.TypeDonnees = 'R') AND (EffectifTotal.TypeClasses = 'SEGPA')";
+                        command.CommandText = "SELECT Sum(EffectifTotal.EffectifTotal) AS SommeDeEffectifTotal FROM EffectifTotal GROUP BY EffectifTotal.Annee, EffectifTotal.Typedonnees, EffectifTotal.TypeClasses HAVING (EffectifTotal.Annee = @Annee) AND (EffectifTotal.TypeDonnees = 'R')";
                         //command.Parameters.AddWithValue("@Annee", annee);
                         sum = command.ExecuteScalar().ToString();
                         resultat.NbTotalEleves = string.IsNullOrEmpty(sum) ? (Int32) 0 : Convert.ToInt32 (sum);

+ 1 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotCommentaires.cs

@@ -27,7 +27,7 @@ namespace CG67.FicheCollege.Entrepot
                         {
                             if (dr.Read())
                             {
-                                resultat = new Commentaires(dr["ComSecteurRecrutement"].ToString(), dr["ComPrevisionEffectifATC"].ToString(), dr["ComProgrammationTravaux"].ToString(), dr["ComAmenagementsParticuliers"].ToString(), dr["ComInterventionsRemarquables"].ToString(), dr["ComTableauEffectif"].ToString());
+                                resultat = new Commentaires(dr["ComSecteurRecrutement"].ToString(), dr["ComPrevisionEffectifATC"].ToString(), dr["ComProgrammationTravaux"].ToString(), dr["ComAmenagementsParticuliers"].ToString(), dr["ComInterventionsRemarquables"].ToString(), dr["ComTableauEffectif"].ToString(), dr["ComTitreGraph"].ToString());
                             }
                         }
                     }

+ 8 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/css/fichecollege.css

@@ -157,13 +157,19 @@ body
 .filiere
 {
 	width:150px;
-	 text-align: right;	
+	text-align:left;	
 }
 .effectif
 {
-	width:150px;
+	width:120px;
 	 text-align: right;	
 }
+#TitreGraph
+{
+	 margin-left:200px;
+	 width:800px;
+	 text-align:center;
+}
 h2
 {
 	background-color: #ffd700;

+ 21 - 6
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -129,18 +129,22 @@
       </tr>
       <tr>
         <td>Effectifs</td>
-        <xsl:if test="count(Etablissement/LstEffectifDetail/child::*)=0">
+        <xsl:if test="count(Etablissement/LstEffectifDetail/child::*)=1">
           <td>
             <xsl:value-of select="Etablissement/Effectif"/>
           </td>
         </xsl:if>
-        <xsl:if test="count(Etablissement/LstEffectifDetail/child::*)!=0">
+        <xsl:if test="count(Etablissement/LstEffectifDetail/child::*)>1">
           <td>
             <table>
               <colgroup>
                 <col class="filiere"></col>
                 <col class="effectif"></col>
               </colgroup>
+              <tr>
+                <th class="bordurecentre">Section</th>
+                <th class="bordurecentre">Nb élèves</th>
+               </tr>
               <xsl:for-each select="Etablissement/LstEffectifDetail/EffectifDetail">
                 <tr>
                   <td>
@@ -151,6 +155,12 @@
                   </td>
                 </tr>
               </xsl:for-each>
+              <tr>
+                <td>Total élèves</td>
+                <td>
+                  <xsl:value-of select="sum(Etablissement/LstEffectifDetail/EffectifDetail/DetailEffectif)"/>
+                </td>
+              </tr>
             </table>
           </td>
         </xsl:if>  
@@ -458,11 +468,16 @@
         </td>
       </tr>
       <tr>
-        <table id="sansbordurecentre">
+        <table id="TitreGraph">
           <br></br>
-        <tr>
-          <h3>Effectifs réels et prévisionnels - inclus SEGPA, UPI, CLA, DIMA, 4e dispo aménagée ou 3e insertion</h3>
-        </tr>
+          <tr>
+            <h3>
+              <xsl:value-of select="Etablissement/Commentaires/TitreGraph"/>
+            </h3>
+            <!-- <h3>Effectifs réels et prévisionnels - inclus SEGPA, UPI, CLA, DIMA, 4e dispo aménagée ou 3e insertion</h3> -->
+          </tr>
+        </table>
+          <table id="sansbordurecentre">
                 <td colspan="2" id="graphique">
           <xsl:apply-templates select="Etablissement/LstEffectif"/>
         <!--