Celine.meneu 16 years ago
parent
commit
b63c15f48f

+ 3 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotChiffresSignificatifs.cs

@@ -48,8 +48,9 @@ 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 AND Typedonnees = 'R'";
-                        command.Parameters.AddWithValue("@Annee", annee);
+                        //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 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);
                        

+ 2 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -543,6 +543,7 @@
         -->
     
     <h2>6. Actions éducatives territoriales</h2>
+      <!--
       <table>
           <colgroup>
             <col class="libelle"></col>
@@ -578,7 +579,7 @@
           </table>
         </td>
       </table>
-   
+   -->
      <table>
       <colgroup>
         <col class="libelle"></col>