Dominique.freyd 16 rokov pred
rodič
commit
5ad381cf2c

+ 1 - 13
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/Etablissement.cs

@@ -746,19 +746,7 @@ namespace CG67.FicheCollege.Domaine
                 return retour;
             }
         }
-        /// <summary>
-        /// retourne la liste des projets pilotes sous forme de string
-        /// </summary>
-        public List<string> LstStringProjetPilote
-        {
-            get
-            {
-                List<string> retour = new List<string>();
-                foreach (ProjetPilote proj in LstProjetPilote)
-                    retour.Add(proj.Libelle);
-                return retour;
-            }
-        }
+      
         /// <summary>
         /// retourne la phrase concernant le total d'ATC de l'établissement
         /// </summary>

+ 2 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotDotation.cs

@@ -25,7 +25,7 @@ namespace CG67.FicheCollege.Entrepot
                         command.Parameters.AddWithValue("@Annee", annee);
                         using (SqlDataReader dr = command.ExecuteReader())
                         {
-                            if (dr.Read())
+                            while (dr.Read())
                             {
                                 switch (dr["Type"].ToString())
                                 {
@@ -37,7 +37,7 @@ namespace CG67.FicheCollege.Entrepot
                                         resultat.Entretien = Convert.ToDouble(dr["Montant"].ToString());
                                         break;
 
-                                    case "Autres Depenses":
+                                    case "Autres penses":
                                         resultat.AutresDepenses = Convert.ToDouble(dr["Montant"].ToString());
                                         break;
 

+ 30 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/css/fichecollege.css

@@ -14,3 +14,33 @@ body
 {
 	text-align: center;
 }
+
+#dotation
+{
+	table-layout: fixed;
+	border-collapse: collapse;
+}
+.typedotation
+{
+	width: 160px;
+	
+}
+.mtn
+{
+	width:80px;
+	text-align: right;
+	
+}
+
+.mtn1
+{
+	width:80px;
+	text-align: right;
+}
+.bordure
+{
+	border-right: gray thin solid;
+	border-top: gray thin solid;
+	border-left: gray thin solid;
+	border-bottom: gray thin solid;
+}

+ 26 - 16
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -250,37 +250,47 @@
       <tr>
         <td>Dotation de fonctionnement année N-1 et annee N</td>
         <td>
-          <table>
+          <table id="dotation">
+            <colgroup>
+              <col class="typedotation"></col>
+              <col class="mtn"></col>
+              <col class="mtn1"></col>
+            </colgroup>
             <tr>
-              <td>Viabilisation</td>
-              <td>
-                <xsl:value-of select="Etablissement/Dotation[1]/Viabilisation" />
+              <th class="bordure">Type de dotation</th>
+              <th class="bordure">Année n-1</th>
+              <th class="bordure">Année n</th>
+            </tr>
+            <tr>
+              <td class="bordure">Viabilisation</td>
+              <td class="bordure">
+                <xsl:value-of select="Etablissement/Dotation[2]/Viabilisation" />
                 <xsl:text> €</xsl:text>
               </td>
-              <td>
-                <xsl:value-of select="Etablissement/Dotation[2]/Viabilisation" />
+              <td class="bordure">
+                <xsl:value-of select="Etablissement/Dotation[1]/Viabilisation" />
                 <xsl:text> €</xsl:text>
               </td>
             </tr>
             <tr>
-              <td>Entretien</td>
-              <td>
-                <xsl:value-of select="Etablissement/Dotation[1]/Entretien" />
+              <td class="bordure">Entretien</td>
+              <td class="bordure">
+                <xsl:value-of select="Etablissement/Dotation[2]/Entretien" />
                 <xsl:text> €</xsl:text>
               </td>
-              <td>
-                <xsl:value-of select="Etablissement/Dotation[2]/Entretien" />
+              <td class="bordure">
+                <xsl:value-of select="Etablissement/Dotation[1]/Entretien" />
                 <xsl:text> €</xsl:text>
               </td>
             </tr>
             <tr>
-              <td>Autres Depenses</td>
-              <td>
-                <xsl:value-of select="Etablissement/Dotation[1]/AutresDepenses" />
+              <td class="bordure">Autres Depenses</td>
+              <td class="bordure">
+                <xsl:value-of select="Etablissement/Dotation[2]/AutresDepenses" />
                 <xsl:text> €</xsl:text>
               </td>
-              <td>
-                <xsl:value-of select="Etablissement/Dotation[2]/AutresDepenses" />
+              <td class="bordure">
+                <xsl:value-of select="Etablissement/Dotation[1]/AutresDepenses" />
                 <xsl:text> €</xsl:text>
               </td>
             </tr>