فهرست منبع

modif du 10/01/2013
- calcul effectifs
- restauration
- date maj

Celine.meneu 13 سال پیش
والد
کامیت
4b26c16550

+ 6 - 6
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/Restauration.cs

@@ -14,7 +14,7 @@ namespace CG67.FicheCollege.Domaine
         /// <summary>
         /// Nombre total de rationnaire.
         /// </summary>
-        private int mNbrPersonnes;
+        private int mNbrRepasJourRestauration;
 
         /// <summary>
         /// Nombre total de de repas annuels.
@@ -50,10 +50,10 @@ namespace CG67.FicheCollege.Domaine
         /// <summary>
         /// Obtient ou définit le nombre total de rationnaire.
         /// </summary>
-        public int NbrPersonnes
+        public int NbrRepasJourRestauration
         {
-            get { return mNbrPersonnes; }
-            set { mNbrPersonnes = value; }
+            get { return mNbrRepasJourRestauration; }
+            set { mNbrRepasJourRestauration = value; }
         }
         public int NbrRepas
         {
@@ -99,11 +99,11 @@ namespace CG67.FicheCollege.Domaine
 
         }
 
-        public Restauration(int annee, string codeRNE, int nbrPersonnes,int nbrRepas, bool production, string délégationSP, string heberge, string estHebergePar, string telerestaure, string estTelerestaurePar)
+        public Restauration(int annee, string codeRNE, int nbrRepasJourRestauration,int nbrRepas, bool production, string délégationSP, string heberge, string estHebergePar, string telerestaure, string estTelerestaurePar)
         {
             this.mAnnee = annee;
             this.mCodeRNE = codeRNE;
-            this.mNbrPersonnes = nbrPersonnes;
+            this.mNbrRepasJourRestauration = nbrRepasJourRestauration;
             this.mNbrRepas = nbrRepas;
             this.mProduction = production;
             this.mDélégationSP = délégationSP;

+ 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')";
+                        command.CommandText = "SELECT Sum(Effectif.TotalEleves) AS SommeDeEffectifTotal FROM Effectif GROUP BY Effectif.Annee HAVING (Effectif.Annee = @Annee) ";
                         //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/Web/CG67.FicheCollege.Web/xml/Entete.xml

@@ -9,7 +9,7 @@
     <fax>03 69 20 75 23</fax>
     <email>pascale.hauger@cg67.fr</email>
     <photo>Jean-Luc STADLER et DCE</photo>
-    <maj>31/12/2012</maj>
+    <maj>10/01/2013</maj>
     </suiviepar>
   <chiffresgeneraux>
     <annee>2012</annee>

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

@@ -228,12 +228,13 @@
                             <xsl:if test ="Etablissement/Restauration/NbrRepas > 0">
                                 <td>Nombre moyen de repas par jour</td>
                                 <td>
-                                    <xsl:value-of select="format-number((Etablissement/Restauration/NbrRepas div 140),'###.##0','europe')"></xsl:value-of>
+                                    <!--<xsl:value-of select="format-number((Etablissement/Restauration/NbrRepas div 140),'###.##0','europe')"></xsl:value-of>-->
+									<xsl:value-of select="format-number((Etablissement/Restauration/NbrRepas div Etablissement/Restauration/NbrRepasJourRestauration),'###.##0','europe')"></xsl:value-of>
                                 </td>
                             </xsl:if>
                             <xsl:if test ="Etablissement/Restauration/NbrRepas = 0">
                                 <td>Nombre moyen de repas par jour</td>
-                                <td>Pas de restauration dans l'établissement</td>
+                                <td>      </td>
                             </xsl:if>
                             <xsl:if test ="Etablissement/Restauration/NbrRepas > 0">
                                 <tr>