浏览代码

rajout du canton de rattachement

Celine.meneu 13 年之前
父节点
当前提交
ba62c579ba

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

@@ -87,6 +87,7 @@ namespace CG67.FicheCollege.Domaine
         /// <summary>
         /// Nom du propriétaire de l'établissement.
         /// </summary>
+       
         private string mNomProprietaire;
         /// <summary>
         /// Valeur théorique ETP (Equivalent Temps Plein) de l'établissement.
@@ -178,6 +179,10 @@ namespace CG67.FicheCollege.Domaine
         private string mVille;
 
         private string mCommune;
+        private string mCanton;
+        /// <summary>
+        /// Nom du Canton
+        /// </summary>
         /// <summary>
         /// Contient les commentaires utiles à différents moments de la fiche.
         /// </summary>
@@ -250,6 +255,12 @@ namespace CG67.FicheCollege.Domaine
             set { mCommune = value; }
         }
 
+        public string Canton
+        {
+            get { return mCanton; }
+            set { mCanton = value; }
+        }
+
         public string Nom
         {
             //si le collège n'a pas de nom, on retourne la ville du collège (ex : collège de truchtersheim)
@@ -1111,7 +1122,7 @@ namespace CG67.FicheCollege.Domaine
             this.mNom = nom;
             this.mCommune = commune;
         }
-        public Etablissement(string codeRNE, bool isPrive, int annee, string nom, string commune, string typeEtablissement, int anneeConstruction, string telephone, string email, string fax, string nomProprietaire, string adresse, string complementAdresse, int codePostal, string ville, string lienPhoto, 
+        public Etablissement(string codeRNE, bool isPrive, int annee, string nom, string commune, string canton, string typeEtablissement, int anneeConstruction, string telephone, string email, string fax, string nomProprietaire, string adresse, string complementAdresse, int codePostal, string ville, string lienPhoto, 
                                 bool isRestaurant,bool isInternat, bool ascenseur, int effectifTheorique,
                                 dlgLoadActionEducative loaderActionEducative,
                                 dlgLoadClasseDecouverte loaderClasseDecouverte,
@@ -1135,6 +1146,7 @@ namespace CG67.FicheCollege.Domaine
             this.mAnnee = annee;
             this.mNom = nom;
             this.mCommune = commune;
+            this.mCanton = canton;
             this.mTypeEtablissement = typeEtablissement;
             this.mAnneConstruction = anneeConstruction;
             this.mTelephone = telephone;

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

@@ -80,7 +80,7 @@ namespace CG67.FicheCollege.Entrepot
                                 string  a = dr["DemiPension"].ToString();
 
 
-                                resultat = new Etablissement(codeRNE, dr.GetBoolean(dr.GetOrdinal("Prive")), annee, dr["NomCollege"].ToString(), dr["Commune"].ToString(),
+                                resultat = new Etablissement(codeRNE, dr.GetBoolean(dr.GetOrdinal("Prive")), annee, dr["NomCollege"].ToString(), dr["Commune"].ToString(), dr["Canton"].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(),

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

@@ -167,6 +167,15 @@
                         <xsl:value-of select="Etablissement/MCG/PrenomPresident"/>
                     </td>
                 </tr>
+                <tr>
+                    <td>
+                        Canton de rattachement 
+                    </td>
+                    <td>
+                        <xsl:value-of select="Etablissement/Canton"/>
+                                              
+                    </td>
+                </tr>
                 <tr>
                     <td>Effectifs</td>
                     <xsl:if test="count(Etablissement/LstEffectifDetail/child::*)=1">