Celine.meneu 16 年之前
父节点
当前提交
08c8db2a27

+ 16 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/Investissement.cs

@@ -7,6 +7,10 @@ namespace CG67.FicheCollege.Domaine
     [Serializable]
     public class Investissement
     {
+        /// <summary>
+        /// Année à laquelle le travail sera effectué
+        /// </summary>
+        private int mAnnee;
         /// <summary>
         /// Type de l'investissement.
         /// </summary>
@@ -34,6 +38,15 @@ namespace CG67.FicheCollege.Domaine
         /// date de livraison.
         private string mDateLivraison;
 
+
+
+
+
+        public int Annee
+        {
+            get { return mAnnee; }
+            set { mAnnee = value; }
+        }
         /// <summary>
         /// Obtient ou définit le type de l'investissement.
         /// </summary>
@@ -95,9 +108,11 @@ namespace CG67.FicheCollege.Domaine
             set { mDateLivraison = value; }
         }
 
-        public Investissement(string type, string avancement, string montantOp, string montantCP, string commentaire, string status, string datelivraison)
+        public Investissement(int annee, string type, string avancement, string commentaire, string montantOp, string montantCP, string status, string datelivraison)
         {
+            this.mAnnee = annee;
             this.mType = type;
+            this.mAvancement = avancement;
             this.mMontantOp = montantOp;
             this.mMontantCP = montantCP;
             this.mCommentaire = commentaire;

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

@@ -28,7 +28,7 @@ namespace CG67.FicheCollege.Entrepot
                         {
                             while (dr.Read())
                             {
-                                resultat.Add(new Investissement(dr["TypeOp"].ToString(), dr["Avancement"].ToString(), dr["Commentaire"].ToString(), dr["MontantOp"].ToString(), dr["MontantCP"].ToString(), dr["Status"].ToString(), dr["DateLivraison"].ToString()));
+                                resultat.Add(new Investissement(Convert.ToInt16(dr["ANNEE"].ToString()),dr["TypeOp"].ToString(), dr["Avancement"].ToString(), dr["Commentaire"].ToString(), dr["MontantOp"].ToString(), dr["MontantCP"].ToString(), dr["Status"].ToString(), dr["DateLivraison"].ToString()));
                             }
                         }
                     }

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

@@ -11,6 +11,11 @@ body
 {
 	margin-left:10px;
 }
+
+.libellerestruct
+{
+		width:300px;	
+}
 .libelle
 {
 	width:350px;	

+ 44 - 10
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -357,25 +357,59 @@
       <xsl:if test="count(Etablissement/LstInvestissement/child::*) >0">
         <table id="restructuration">
           <colgroup>
-            <col class="annee"></col>
-            <col class="typeop"></col>
-            <col class="avancement"></col>
-            <col class="commentaire"></col>
-            <col class="montantop"></col>
-            <col class="montantcp"></col>
-            <col class="status"></col>
-            <col class="datelivraison"></col>
+            <col class="travannee"></col>
+            <col class="typetravaux"></col>
+            <col class="libellerestruct"></col>
+            <col class="llibellerestruct"></col>
+            <col class="travmontant"></col>
+            <col class="travmontant"></col>
+            <col class="travmontant"></col>
+            <col class="travmontant"></col>
           </colgroup>
           <tr>
             <th class="bordurecentre">Année</th>
             <th class="bordurecentre">Type d'opération</th>
             <th class="bordurecentre">Stade d'avancement</th>
             <th class="bordurecentre">Prévu année n+1</th>
-            <th class="bordurecentre">Montant</th>
-            <th class="bordurecentre">Montant du CP</th>
+            <th class="bordurecentre">Montant en M€</th>
+            <th class="bordurecentre">Montant du CP en M€</th>
             <th class="bordurecentre">Statut</th>
             <th class="bordurecentre">Date de livraison</th>
           </tr>
+          <xsl:for-each select="Etablissement/LstInvestissement/Investissement">
+            <tr>
+              <td class="bordurecentre">
+                <xsl:value-of select="Annee"/>
+              </td>
+              <td class="bordure">
+                <xsl:value-of select="Type"/>
+              </td>
+              <td class="bordure">
+                <xsl:value-of select ="Avancement"/>
+              </td>
+              <td class="bordure">
+                <xsl:value-of select="Commentaire"/>
+                <xsl:text> €</xsl:text>
+              </td>
+              <td class="bordurecentre">
+                <xsl:value-of select="MontantOp"/>
+              </td>
+              <td class="bordurecentre">
+                <xsl:value-of select="MontantCP"/>
+              </td>
+              <td class="bordurecentre">
+                <xsl:value-of select="Status"/>
+              </td>
+              <td class="bordurecentre">
+                <xsl:value-of select="DateLivraison"/>
+              </td>
+            </tr>
+          </xsl:for-each>
+        </table>
+      </xsl:if>
+      <xsl:if test="count(Etablissement/LstInvestissement/child::*)=0">
+        Néant
+       </xsl:if>
     <h2>3. Sectorisation des collèges - évolution des effectifs</h2>
     <table>
       <colgroup>