Celine.meneu 16 년 전
부모
커밋
a7a7a35dc4

+ 62 - 9
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/Investissement.cs

@@ -12,29 +12,45 @@ namespace CG67.FicheCollege.Domaine
         /// </summary>
         private string mType;
         /// <summary>
+        /// Stade avancement.
+        /// </summary>
+        private string mAvancement;
+        /// <summary>
         /// Montant de l'investissement.
         /// </summary>
-        private double mMontant;
+        private string mMontantOp;
+        /// <summary>
+        /// A venir.
+        /// </summary>
+        private string mMontantCP;
         /// <summary>
-        /// Commentaire sur l'investissement.
+        /// Montant CP a venir.
         /// </summary>
-        private string mCommentaire;
+        private string mCommentaire; 
+        /// <summary>
+        /// Status.
+        private string mStatus;
+        /// <summary>
+        /// date de livraison.
+        private string mDateLivraison;
 
         /// <summary>
         /// Obtient ou définit le type de l'investissement.
         /// </summary>
+        /// 
         public string Type
         {
             get { return mType; }
             set { mType = value; }
         }
+
         /// <summary>
-        /// Obtient ou définit le montant de l'investissement.
+        /// Obtient ou défini l'avancement
         /// </summary>
-        public double Montant
+        public string Avancement
         {
-            get { return mMontant; }
-            set { mMontant = value; }
+            get { return mAvancement; }
+            set { mAvancement = value; }
         }
         /// <summary>
         /// Obtient ou définit le commentaire associé à l'investissement.
@@ -45,11 +61,48 @@ namespace CG67.FicheCollege.Domaine
             set { mCommentaire = value; }
         }
 
-        public Investissement(string type, double montant, string commentaire)
+        /// <summary>
+        /// Obtient ou définit le montant de l'investissement.
+        /// </summary>
+        public string MontantOp
+        {
+            get { return mMontantOp; }
+            set { mMontantOp = value; }
+        }
+        /// <summary>
+        /// Obtient ou définit le montant du compte prévisionnel.
+        /// </summary>
+        public string MontantCP
+        {
+            get { return mMontantCP; }
+            set { mMontantCP = value; }
+        }
+        /// <summary>
+        /// Obtient ou définit le status de l'opération
+        /// </summary>
+        public string Status
+        {
+            get { return mStatus; }
+            set { mStatus = value; }
+        }
+
+        /// <summary>
+        /// Obtient ou définit la date de livraison
+        /// </summary>
+        public string DateLivraison
+        {
+            get { return mDateLivraison; }
+            set { mDateLivraison = value; }
+        }
+
+        public Investissement(string type, string avancement, string montantOp, string montantCP, string commentaire, string status, string datelivraison)
         {
             this.mType = type;
-            this.mMontant = montant;
+            this.mMontantOp = montantOp;
+            this.mMontantCP = montantCP;
             this.mCommentaire = commentaire;
+            this.mStatus = status;
+            this.mDateLivraison = datelivraison;
         }
     }
 }

+ 24 - 24
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotEtablissement.cs

@@ -74,30 +74,30 @@ namespace CG67.FicheCollege.Entrepot
                                     adresse = dr["TypeDeVoie"].ToString() + " " + dr["Voie"].ToString();
                                 }
 
+                                string  a = dr["DemiPension"].ToString();
 
 
-
-                                    resultat = new Etablissement(codeRNE, annee, dr["NomCollege"].ToString(),
-                                    dr["TypeEtablissement"].ToString(), Convert.ToInt16(dr["AnneeConstruction"].ToString()),
-                                    dr["Telephone"].ToString(), dr["Email"].ToString(), dr["Fax"].ToString(),
-                                    dr["NomPropriétaire"].ToString(), adresse, dr["ComplementAdresse"].ToString(),
-                                    Convert.ToInt32(dr["CodePostal"].ToString()), dr["Ville"].ToString(), dr["LienPhoto"].ToString(),
-                                    dr.GetBoolean(dr.GetOrdinal("DemiPension")),  dr.GetBoolean(dr.GetOrdinal("Internat")),int.Parse(dr["CapaciteTheorique"].ToString()),
-                                    EntrepotFactory.GetEntrepotActionEducative().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotClasseDecouverte().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotATC().GetByCodeRNE,
-                                    EntrepotFactory.GetEntrepotContratAide().GetByCodeRNE,
-                                    EntrepotFactory.GetEntrepotBilinguisme().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotCommentaires().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotContact().GetAllContactByCodeRNE,
-                                    EntrepotFactory.GetEntrepotDotation().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotEquipement().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotInvestissement().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotMCG().GetByCodeRNE,
-                                    EntrepotFactory.GetEntrepotLogement().GetByCodeRNE, 
-                                    EntrepotFactory.GetEntrepotProgTravaux().GetByCodeRNEAndAnnee, 
-                                    EntrepotFactory.GetEntrepotProjetPilote().GetByCodeRNEAndAnnee,
-                                    EntrepotFactory.GetEntrepotRestauration().GetByRNEAndAnnee);
+                                resultat = new Etablissement(codeRNE, annee, dr["NomCollege"].ToString(),
+                                 dr["TypeEtablissement"].ToString(), Convert.ToInt16(dr["AnneeConstruction"].ToString()),
+                                 dr["Telephone"].ToString(), dr["Email"].ToString(), dr["Fax"].ToString(),
+                                 dr["NomPropriétaire"].ToString(), adresse, dr["ComplementAdresse"].ToString(),
+                                 Convert.ToInt32(dr["CodePostal"].ToString()), dr["Ville"].ToString(), dr["LienPhoto"].ToString(),
+                                 dr.GetBoolean(dr.GetOrdinal("DemiPension")), dr.GetBoolean(dr.GetOrdinal("Internat")), int.Parse(dr["CapaciteTheorique"].ToString()),
+                                 EntrepotFactory.GetEntrepotActionEducative().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotClasseDecouverte().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotATC().GetByCodeRNE,
+                                 EntrepotFactory.GetEntrepotContratAide().GetByCodeRNE,
+                                 EntrepotFactory.GetEntrepotBilinguisme().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotCommentaires().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotContact().GetAllContactByCodeRNE,
+                                 EntrepotFactory.GetEntrepotDotation().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotEquipement().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotInvestissement().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotMCG().GetByCodeRNE,
+                                 EntrepotFactory.GetEntrepotLogement().GetByCodeRNE,
+                                 EntrepotFactory.GetEntrepotProgTravaux().GetByCodeRNEAndAnnee,
+                                 EntrepotFactory.GetEntrepotProjetPilote().GetByCodeRNEAndAnnee,
+                               EntrepotFactory.GetEntrepotRestauration().GetByRNEAndAnnee);
                             }
                         }
                         
@@ -193,9 +193,9 @@ namespace CG67.FicheCollege.Entrepot
 
                     }
                 }
-                catch
+                catch (Exception erreur)
                 {
-                    throw;
+                    throw erreur;
                 }
                 finally
                 {

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

@@ -21,14 +21,14 @@ namespace CG67.FicheCollege.Entrepot
                     using (SqlCommand command = connexion.CreateCommand())
                     {
                         //on récupère les ATC.
-                        command.CommandText = "Select * from Investissement Where CodeRNE = @RNE AND Annee = @Annee";
+                        command.CommandText = "Select * from InvestissementImmo Where CodeRNE = @RNE AND Annee = @Annee";
                         command.Parameters.AddWithValue("@RNE", codeRNE);
                         command.Parameters.AddWithValue("@Annee", annee);
                         using (SqlDataReader dr = command.ExecuteReader())
                         {
                             while (dr.Read())
                             {
-                                resultat.Add(new Investissement(dr["Type"].ToString(), Convert.ToDouble(dr["Montant"].ToString()), dr["Commentaire"].ToString()));
+                                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()));
                             }
                         }
                     }

+ 24 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -352,6 +352,30 @@
         </td>
       </tr>
     </table>
+      <br></br>
+        <h3>Restructuration lourde </h3>
+      <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>
+          </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">Statut</th>
+            <th class="bordurecentre">Date de livraison</th>
+          </tr>
     <h2>3. Sectorisation des collèges - évolution des effectifs</h2>
     <table>
       <colgroup>