Browse Source

Changement Modification Année 2015

celine.meneu 10 years ago
parent
commit
823e15718f

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

@@ -72,6 +72,10 @@ namespace CG67.FicheCollege.Domaine
         /// Type de l'établissement de l'établissement.
         /// Type de l'établissement de l'établissement.
         /// </summary>
         /// </summary>
         private string mTypeEtablissement;
         private string mTypeEtablissement;
+        /// Dispositif.
+        /// </summary>
+        private int mDispositifEtablissement;
+
         /// <summary>
         /// <summary>
         /// Année de contruction de l'établissement.
         /// Année de contruction de l'établissement.
         /// </summary>
         /// </summary>
@@ -298,6 +302,16 @@ namespace CG67.FicheCollege.Domaine
             get { return mTypeEtablissement; }
             get { return mTypeEtablissement; }
             set { mTypeEtablissement = value; }
             set { mTypeEtablissement = value; }
         }
         }
+
+        /// <summary>
+        /// Dispositif de l'établissement.
+        /// 1 - Normal; 2: REP; 3: REP+
+        /// </summary>
+        public int DispositifEtablissement
+        {
+            get { return mDispositifEtablissement; }
+            set { mDispositifEtablissement = value; }
+        }
         /// <summary>
         /// <summary>
         /// Obtient ou définit l'année de construction de l'établissement.
         /// Obtient ou définit l'année de construction de l'établissement.
         /// </summary>
         /// </summary>
@@ -754,6 +768,21 @@ namespace CG67.FicheCollege.Domaine
         /// <summary>
         /// <summary>
         /// retourne le gestionnaire de l'établissement
         /// retourne le gestionnaire de l'établissement
         /// </summary>
         /// </summary>
+        /// 
+
+        public string PrincipalAdjointEmail
+        {
+            get
+            {
+                string retour = string.Empty;
+                foreach (Contact cont in Contacts)
+                    if (cont.Fonction.ToLower() == "principal adjoint")
+                        retour = cont.Email;
+                return retour;
+            }
+        }
+
+
         public string Gestionnaire
         public string Gestionnaire
         {
         {
             get
             get
@@ -1184,7 +1213,7 @@ namespace CG67.FicheCollege.Domaine
             this.mNom = nom;
             this.mNom = nom;
             this.mCommune = commune;
             this.mCommune = commune;
         }
         }
-        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,string lienFichier, 
+        public Etablissement(string codeRNE, bool isPrive, int annee, string nom, string commune, string canton, string typeEtablissement, int dispositifEtablissement, int anneeConstruction, string telephone, string email, string fax, string nomProprietaire, string adresse, string complementAdresse, int codePostal, string ville, string lienPhoto,string lienFichier, 
                                 bool isRestaurant,bool isInternat, bool ascenseur, int effectifTheorique, int accessibilite,
                                 bool isRestaurant,bool isInternat, bool ascenseur, int effectifTheorique, int accessibilite,
                                 dlgLoadActionEducative loaderActionEducative,
                                 dlgLoadActionEducative loaderActionEducative,
                                 dlgLoadClasseDecouverte loaderClasseDecouverte,
                                 dlgLoadClasseDecouverte loaderClasseDecouverte,
@@ -1212,6 +1241,7 @@ namespace CG67.FicheCollege.Domaine
             this.mCommune = commune;
             this.mCommune = commune;
             this.mCanton = canton;
             this.mCanton = canton;
             this.mTypeEtablissement = typeEtablissement;
             this.mTypeEtablissement = typeEtablissement;
+            this.mDispositifEtablissement = dispositifEtablissement;
             this.mAnneConstruction = anneeConstruction;
             this.mAnneConstruction = anneeConstruction;
             this.mTelephone = telephone;
             this.mTelephone = telephone;
             this.mEmail = email;
             this.mEmail = email;

+ 8 - 3
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/ProjetPilote.cs

@@ -15,8 +15,11 @@ namespace CG67.FicheCollege.Domaine
         /// Libellé du projet pilote.
         /// Libellé du projet pilote.
         /// </summary>
         /// </summary>
         private string mLibelle;
         private string mLibelle;
-        private bool mParticipe;
+        private string mParticipe;
         private string mInitiateur;
         private string mInitiateur;
+        private string p1;
+        private bool p2;
+        private string p3;
 
 
         /// <summary>
         /// <summary>
         /// Obtient ou définit le libellé du projet pilote.
         /// Obtient ou définit le libellé du projet pilote.
@@ -26,7 +29,7 @@ namespace CG67.FicheCollege.Domaine
             get { return mLibelle; }
             get { return mLibelle; }
             set { mLibelle = value; }
             set { mLibelle = value; }
         }
         }
-        public bool  Participe
+        public string  Participe
         {
         {
             get { return mParticipe; }
             get { return mParticipe; }
             set { mParticipe = value; }
             set { mParticipe = value; }
@@ -37,11 +40,13 @@ namespace CG67.FicheCollege.Domaine
             set { mInitiateur = value; }
             set { mInitiateur = value; }
         }
         }
         
         
-        public ProjetPilote(string libelle,bool participe , string initiateur)
+        public ProjetPilote(string libelle,string participe , string initiateur)
         {
         {
             mLibelle = libelle;
             mLibelle = libelle;
             mParticipe = participe;
             mParticipe = participe;
             mInitiateur = initiateur;
             mInitiateur = initiateur;
         }
         }
+
+       
     }
     }
 }
 }

+ 1 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/CG67.FicheCollege.Entrepot.csproj

@@ -78,6 +78,7 @@
     <Compile Include="EntrepotRestaurationExterne.cs" />
     <Compile Include="EntrepotRestaurationExterne.cs" />
     <Compile Include="EntrepotSoutienScolaireEnLigne.cs" />
     <Compile Include="EntrepotSoutienScolaireEnLigne.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="Utile.cs" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\..\CG67.FicheCollege.Tools\CG67.FicheCollege.Tools.csproj">
     <ProjectReference Include="..\..\CG67.FicheCollege.Tools\CG67.FicheCollege.Tools.csproj">

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

@@ -81,7 +81,7 @@ namespace CG67.FicheCollege.Entrepot
 
 
 
 
                                 resultat = new Etablissement(codeRNE, dr.GetBoolean(dr.GetOrdinal("Prive")), annee, dr["NomCollege"].ToString(), dr["Commune"].ToString(), dr["Canton"].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["TypeEtablissement"].ToString(), Convert.ToInt16(dr["Dispositif"].ToString()), Convert.ToInt16(dr["AnneeConstruction"].ToString()),
                                  dr["Telephone"].ToString(), dr["Email"].ToString(), dr["Fax"].ToString(),
                                  dr["Telephone"].ToString(), dr["Email"].ToString(), dr["Fax"].ToString(),
                                  dr["NomPropriétaire"].ToString(), adresse, dr["ComplementAdresse"].ToString(),
                                  dr["NomPropriétaire"].ToString(), adresse, dr["ComplementAdresse"].ToString(),
                                  Convert.ToInt32(dr["CodePostal"].ToString()), dr["Ville"].ToString(), dr["LienPhoto"].ToString(), dr["fichierPPM"].ToString(),
                                  Convert.ToInt32(dr["CodePostal"].ToString()), dr["Ville"].ToString(), dr["LienPhoto"].ToString(), dr["fichierPPM"].ToString(),

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

@@ -20,7 +20,7 @@ namespace CG67.FicheCollege.Entrepot
                     connexion.Open();
                     connexion.Open();
                     using (SqlCommand command = connexion.CreateCommand())
                     using (SqlCommand command = connexion.CreateCommand())
                     {
                     {
-                        command.CommandText = "SELECT Libelle,participer, Initiateur from ProjetPilote INNER JOIN Etablissement_ProjetPilote ON (ProjetPilote.Id = Etablissement_ProjetPilote.IdProjetPilote) WHERE CodeRNE = @RNE  AND Annee = @Annee";
+                        command.CommandText = "SELECT Libelle,participe, Initiateur from ProjetPilote INNER JOIN Etablissement_ProjetPilote ON (ProjetPilote.Id = Etablissement_ProjetPilote.IdProjetPilote) WHERE CodeRNE = @RNE  AND Annee = @Annee";
 //                        command.CommandText = "SELECT Libelle from ProjetPilote INNER JOIN Etablissement_ProjetPilote ON (ProjetPilote.Id = Etablissement_ProjetPilote.IdProjetPilote) WHERE CodeRNE = @RNE AND Annee = @Annee";
 //                        command.CommandText = "SELECT Libelle from ProjetPilote INNER JOIN Etablissement_ProjetPilote ON (ProjetPilote.Id = Etablissement_ProjetPilote.IdProjetPilote) WHERE CodeRNE = @RNE AND Annee = @Annee";
                         command.Parameters.AddWithValue("@RNE", codeRNE);
                         command.Parameters.AddWithValue("@RNE", codeRNE);
                         command.Parameters.AddWithValue("@Annee", annee);
                         command.Parameters.AddWithValue("@Annee", annee);
@@ -28,7 +28,7 @@ namespace CG67.FicheCollege.Entrepot
                         {
                         {
                             while (dr.Read())
                             while (dr.Read())
                             {
                             {
-                                resultat.Add(new ProjetPilote(dr["Libelle"].ToString(), dr.GetBoolean(dr.GetOrdinal("participer")), dr["Initiateur"].ToString()));
+                                resultat.Add(new ProjetPilote(dr["Libelle"].ToString(), dr["participe"].ToString(), dr["Initiateur"].ToString()));
                             }
                             }
                         }
                         }
                     }
                     }

+ 21 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/Utile.cs

@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace CG67.FicheCollege.Domaine
+{
+    public static class Utile
+    {
+        /// <summary>
+        /// formate un string sous forme de prénom.
+        /// </summary>
+        /// <param name="str"></param>
+        /// <returns>string formaté en type prénom, exemple : MIckAeL, retournera Mickael</returns>
+        public static string formatStringPrenom(string str)
+        {
+            string retour = str.Substring(0, 1).ToUpper();
+            retour += str.Substring(1, str.Length - 1).ToLower();
+            return retour;
+        }
+    }
+}

+ 1 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/CG67.FicheCollege.Web.csproj

@@ -82,6 +82,7 @@
     <Content Include="images\DC.png" />
     <Content Include="images\DC.png" />
     <Content Include="images\logoCG67.gif" />
     <Content Include="images\logoCG67.gif" />
     <Content Include="logoCG67.gif" />
     <Content Include="logoCG67.gif" />
+    <Content Include="photo\EcoleEuropenne_0673079H.JPG" />
     <Content Include="photo\Mundolsheim_0672013Z.jpg" />
     <Content Include="photo\Mundolsheim_0672013Z.jpg" />
     <Content Include="photo\Rosheim_0671913R.jpg" />
     <Content Include="photo\Rosheim_0671913R.jpg" />
     <Content Include="photo\Wingen_0671739B.jpg" />
     <Content Include="photo\Wingen_0671739B.jpg" />

+ 2 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/Web.config

@@ -8,13 +8,13 @@
     <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
     <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
   </connectionStrings>
   </connectionStrings>
   <appSettings>
   <appSettings>
-    <add key="ConnexionStringSic" value="Data Source=T-MSSQL-02\SQLSTD2K14;Initial Catalog=TSic;User Id=UserTSicRW;password=K5dkV6FXgZ2Q"/>
+    <add key="ConnexionStringSic" value="Data Source=MSSQL-02\SQLSTD2K14;Initial Catalog=TSic;User Id=UserTSicRW;password=K5dkV6FXgZ2Q"/>
     <!--   <add key="ConnexionStringOracleCollege" value="Data Source=PCOL;User Id=college;Password=college;"/> -->
     <!--   <add key="ConnexionStringOracleCollege" value="Data Source=PCOL;User Id=college;Password=college;"/> -->
     <add key="ConnexionStringAccess" value="Provider=microsoft.jet.oledb.4.0;Data Source=\\Moder\App_production\College\data\Base\BD Collège_prod.mdb;Persist Security Info=False;"/>
     <add key="ConnexionStringAccess" value="Provider=microsoft.jet.oledb.4.0;Data Source=\\Moder\App_production\College\data\Base\BD Collège_prod.mdb;Persist Security Info=False;"/>
     <add key="ConnexionStringOracleSubvention" value="Data Source=SGFP;User Id=ASTRE;Password=ASTRE;"/>
     <add key="ConnexionStringOracleSubvention" value="Data Source=SGFP;User Id=ASTRE;Password=ASTRE;"/>
     <add key="ConnexionStringOracleAstreGF" value="Data Source=SGFP;User Id=SO;Password=SO;"/>
     <add key="ConnexionStringOracleAstreGF" value="Data Source=SGFP;User Id=SO;Password=SO;"/>
     <add key="ConnexionStringOracleRH" value="Data Source=SRHP;User Id=CG67_ATC;Password=ATC_CG67;"/>
     <add key="ConnexionStringOracleRH" value="Data Source=SRHP;User Id=CG67_ATC;Password=ATC_CG67;"/>
-    <add key="AnneeEnCours" value="2014"/>
+    <add key="AnneeEnCours" value="2015"/>
     <add key="FileRepository" value="\\public\publicng\1PAT\12DIMG\1230SGEPI\PPM\Fichiers DSI (fiches collèges)\"/>
     <add key="FileRepository" value="\\public\publicng\1PAT\12DIMG\1230SGEPI\PPM\Fichiers DSI (fiches collèges)\"/>
     <add key="ImpersonationUser" value="service.college"/>
     <add key="ImpersonationUser" value="service.college"/>
     <add key="ImpersonationPassword" value="2sr72297rN7BzX8QB48t"/>
     <add key="ImpersonationPassword" value="2sr72297rN7BzX8QB48t"/>

BIN
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/photo/EcoleEuropenne_0673079H.JPG


+ 8 - 8
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xml/Entete.xml

@@ -1,18 +1,18 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <?xml version="1.0" encoding="utf-8" ?>
 <entete>
 <entete>
-  <valideur> Danièle HECTOR, DGA du PEP</valideur>
+  <valideur>Loïc BOIVIN, Directeur de la Mission Education, Sport et Jeunesse</valideur>
   <suiviepar>
   <suiviepar>
     <direction>Direction des Collèges</direction>
     <direction>Direction des Collèges</direction>
-    <nomprenom>Pascale HAUGER</nomprenom>
-    <fonction>Chef de projet</fonction>
-    <tel>03 69 20 75 86</tel>
+    <nomprenom>Jessie PIERRAT</nomprenom>
+    <fonction></fonction>
+    <tel>03 69 20 75 81</tel>
     <fax>03 69 20 75 23</fax>
     <fax>03 69 20 75 23</fax>
-    <email>pascale.hauger@cg67.fr</email>
+    <email>jessie.pierrat@cg67.fr</email>
     <photo>Direction de la Communication</photo>
     <photo>Direction de la Communication</photo>
-    <maj>02/04/2015</maj>
+    <maj>21/12/2015</maj>
     </suiviepar>
     </suiviepar>
   <chiffresgeneraux>
   <chiffresgeneraux>
-    <annee>2013</annee>
+    <annee>2015</annee>
     <nbATC>705</nbATC>
     <nbATC>705</nbATC>
     <nbRepasAnnuel>3 220 000</nbRepasAnnuel>
     <nbRepasAnnuel>3 220 000</nbRepasAnnuel>
     <surfaceBatiments>614 312 m²</surfaceBatiments>
     <surfaceBatiments>614 312 m²</surfaceBatiments>
@@ -20,6 +20,6 @@
     <financements>42,5 M€ </financements>
     <financements>42,5 M€ </financements>
     <investissement>28,50 M€  </investissement>
     <investissement>28,50 M€  </investissement>
     <fonctionnement>13,9 M€</fonctionnement>
     <fonctionnement>13,9 M€</fonctionnement>
-    <transport>29,9 M€ </transport>
+    <transport>29 M€ </transport>
   </chiffresgeneraux>
   </chiffresgeneraux>
 </entete>
 </entete>

+ 21 - 7
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollegev2.xslt

@@ -90,7 +90,12 @@
                   <xsl:if test ="Etablissement/IsPrive='False'">
                   <xsl:if test ="Etablissement/IsPrive='False'">
                     public
                     public
                   </xsl:if>
                   </xsl:if>
-
+                   <xsl:if test ="Etablissement/DispositifEtablissement='2'">
+                    REP
+                  </xsl:if>
+                  <xsl:if test ="Etablissement/DispositifEtablissement='3'">
+                    REP+
+                  </xsl:if>
 
 
                 </tr>
                 </tr>
               </table>
               </table>
@@ -127,15 +132,22 @@
                 <td class="td_head">Principal Adjoint</td>
                 <td class="td_head">Principal Adjoint</td>
               </xsl:if>
               </xsl:if>
               <xsl:if test ="Etablissement/CodeRNE='0673079H'">
               <xsl:if test ="Etablissement/CodeRNE='0673079H'">
-                <td class="td_head">Directeur adjoint secondaire/Primaire</td>
+                <td class="td_head">Directeur adjoint secondaire</td>
               </xsl:if>
               </xsl:if>
               <td>
               <td>
                 <xsl:if test ="Etablissement/PrincipalAdjoint!=''">
                 <xsl:if test ="Etablissement/PrincipalAdjoint!=''">
                   <xsl:value-of select="Etablissement/PrincipalAdjoint"></xsl:value-of>
                   <xsl:value-of select="Etablissement/PrincipalAdjoint"></xsl:value-of>
+                  <br>
+                    <xsl:text>Email </xsl:text>
+                    <a href="mailto:{Etablissement/PrincipalAdjointEmail}">
+                      <xsl:value-of select="Etablissement/PrincipalAdjointEmail"/>
+                    </a>
+                  </br>
                 </xsl:if>
                 </xsl:if>
                 <xsl:if test ="Etablissement/PrincipalAdjoint=''">
                 <xsl:if test ="Etablissement/PrincipalAdjoint=''">
 
 
                 </xsl:if>
                 </xsl:if>
+                
               </td>
               </td>
             </tr>
             </tr>
             <tr>
             <tr>
@@ -222,7 +234,7 @@
             </colgroup>
             </colgroup>
             <tr>
             <tr>
               <td class="td_head">
               <td class="td_head">
-                MCG de rattachement et<br/>Délégué de la Direction Générale (DDG)
+                Territoire de rattachement et<br/>Délégué de la Direction Générale (DDG)
               </td>
               </td>
               <td>
               <td>
                 <xsl:value-of select="Etablissement/MCG/Ville"/>
                 <xsl:value-of select="Etablissement/MCG/Ville"/>
@@ -572,7 +584,8 @@
 
 
                 veuillez cliquer sur ce
                 veuillez cliquer sur ce
                 <!--<a href="file.download?file={Fichier}">-->
                 <!--<a href="file.download?file={Fichier}">-->
-                <a href="/FichiersPPM/{Fichier}">
+                <!--<a href="/FichiersPPM/{Fichier}"> -->
+                  <a href="/FichiersPPM/{Fichier}">
                   lien
                   lien
                 </a>
                 </a>
                 <br></br>
                 <br></br>
@@ -1293,12 +1306,13 @@
                 <xsl:value-of select="Libelle"/>
                 <xsl:value-of select="Libelle"/>
               </td>
               </td>
               <td>
               <td>
-                <xsl:if test ="Participe='True'">
+                <xsl:value-of select="Participe"/>
+               <!--  <xsl:if test ="Participe='True'">
                   Oui
                   Oui
                 </xsl:if>
                 </xsl:if>
                 <xsl:if test ="Participe='False'">
                 <xsl:if test ="Participe='False'">
                   Non
                   Non
-                </xsl:if>
+                </xsl:if>-->
               </td>
               </td>
 
 
             </tr>
             </tr>
@@ -1381,7 +1395,7 @@
             </td>
             </td>
           </tr>
           </tr>
           <tr>
           <tr>
-            <td class="td_head">Montant total des transports scolaires (Hors CUS)</td>
+            <td class="td_head">Montant total des transports scolaires (Hors CUS, pour écoles, collèges et lycées)</td>
             <td>
             <td>
               <xsl:value-of select="entete/chiffresgeneraux/transport"/>
               <xsl:value-of select="entete/chiffresgeneraux/transport"/>
               <!--<xsl:value-of select="format-number(ChiffresSignificatifs/MontantTotalTransportScolaire,'###.###.##0,00','europe')"/><xsl:text> €</xsl:text> -->
               <!--<xsl:value-of select="format-number(ChiffresSignificatifs/MontantTotalTransportScolaire,'###.###.##0,00','europe')"/><xsl:text> €</xsl:text> -->