celine.meneu преди 9 години
родител
ревизия
a5863e52a5

+ 38 - 2
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.
         /// </summary>
         private string mTypeEtablissement;
+        /// Dispositif.
+        /// </summary>
+        private int mDispositifEtablissement;
+
         /// <summary>
         /// Année de contruction de l'établissement.
         /// </summary>
@@ -298,6 +302,16 @@ namespace CG67.FicheCollege.Domaine
             get { return mTypeEtablissement; }
             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>
         /// Obtient ou définit l'année de construction de l'établissement.
         /// </summary>
@@ -682,7 +696,13 @@ namespace CG67.FicheCollege.Domaine
         /// </summary>
         public string NomCollegePourPresentation
         {
-            get { return Commune + " - Collège " + Nom; }
+            get
+            {
+                if (Nom.ToString()=="Ecole Européenne de Strasbourg")
+                { return Commune + " - " + Nom; }
+                else
+                { return Commune + " - Collège " + Nom; };
+            }
         }
         public string LienPhoto
         {
@@ -748,6 +768,21 @@ namespace CG67.FicheCollege.Domaine
         /// <summary>
         /// retourne le gestionnaire de l'établissement
         /// </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
         {
             get
@@ -1178,7 +1213,7 @@ namespace CG67.FicheCollege.Domaine
             this.mNom = nom;
             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,
                                 dlgLoadActionEducative loaderActionEducative,
                                 dlgLoadClasseDecouverte loaderClasseDecouverte,
@@ -1206,6 +1241,7 @@ namespace CG67.FicheCollege.Domaine
             this.mCommune = commune;
             this.mCanton = canton;
             this.mTypeEtablissement = typeEtablissement;
+            this.mDispositifEtablissement = dispositifEtablissement;
             this.mAnneConstruction = anneeConstruction;
             this.mTelephone = telephone;
             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.
         /// </summary>
         private string mLibelle;
-        private bool mParticipe;
+        private string mParticipe;
         private string mInitiateur;
+        private string p1;
+        private bool p2;
+        private string p3;
 
         /// <summary>
         /// Obtient ou définit le libellé du projet pilote.
@@ -26,7 +29,7 @@ namespace CG67.FicheCollege.Domaine
             get { return mLibelle; }
             set { mLibelle = value; }
         }
-        public bool  Participe
+        public string  Participe
         {
             get { return mParticipe; }
             set { mParticipe = value; }
@@ -37,11 +40,13 @@ namespace CG67.FicheCollege.Domaine
             set { mInitiateur = value; }
         }
         
-        public ProjetPilote(string libelle,bool participe , string initiateur)
+        public ProjetPilote(string libelle,string participe , string initiateur)
         {
             mLibelle = libelle;
             mParticipe = participe;
             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="EntrepotSoutienScolaireEnLigne.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="Utile.cs" />
   </ItemGroup>
   <ItemGroup>
     <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(),
-                                 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["NomPropriétaire"].ToString(), adresse, dr["ComplementAdresse"].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();
                     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.Parameters.AddWithValue("@RNE", codeRNE);
                         command.Parameters.AddWithValue("@Annee", annee);
@@ -28,7 +28,7 @@ namespace CG67.FicheCollege.Entrepot
                         {
                             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\logoCG67.gif" />
     <Content Include="logoCG67.gif" />
+    <Content Include="photo\EcoleEuropenne_0673079H.JPG" />
     <Content Include="photo\Mundolsheim_0672013Z.jpg" />
     <Content Include="photo\Rosheim_0671913R.jpg" />
     <Content Include="photo\Wingen_0671739B.jpg" />

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

@@ -8,14 +8,14 @@
     <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
   </connectionStrings>
   <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="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="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="AnneeEnCours" value="2014"/>
-    <add key="FileRepository" value="\\public\publicng\1PAT\12DIMG\1230SGEPI\PPM\Fichiers DSI (fiches collèges)\"/>
+    <add key="AnneeEnCours" value="2015"/>
+    <add key="FileRepository" value="\\public\publicno\J-MESJ\J4-SIM\J440-SGEPI\PPM\Fichiers DSI (fiches collèges)\"/>
     <add key="ImpersonationUser" value="service.college"/>
     <add key="ImpersonationPassword" value="2sr72297rN7BzX8QB48t"/>
     <add key="ImpersonationDomain" value="cg67"/>

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" ?>
 <entete>
-  <valideur> Danièle HECTOR, DGA du PEP</valideur>
+  <valideur>Loïc BOIVIN, Directeur de la Mission Education, Sport et Jeunesse</valideur>
   <suiviepar>
     <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>
-    <email>pascale.hauger@cg67.fr</email>
+    <email>jessie.pierrat@cg67.fr</email>
     <photo>Direction de la Communication</photo>
-    <maj>02/04/2015</maj>
+    <maj>21/12/2015</maj>
     </suiviepar>
   <chiffresgeneraux>
-    <annee>2013</annee>
+    <annee>2015</annee>
     <nbATC>705</nbATC>
     <nbRepasAnnuel>3 220 000</nbRepasAnnuel>
     <surfaceBatiments>614 312 m²</surfaceBatiments>
@@ -20,6 +20,6 @@
     <financements>42,5 M€ </financements>
     <investissement>28,50 M€  </investissement>
     <fonctionnement>13,9 M€</fonctionnement>
-    <transport>29,9 M€ </transport>
+    <transport>29 M€ </transport>
   </chiffresgeneraux>
 </entete>

+ 39 - 15
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollegev2.xslt

@@ -90,7 +90,12 @@
                   <xsl:if test ="Etablissement/IsPrive='False'">
                     public
                   </xsl:if>
-
+                   <xsl:if test ="Etablissement/DispositifEtablissement='2'">
+                    REP
+                  </xsl:if>
+                  <xsl:if test ="Etablissement/DispositifEtablissement='3'">
+                    REP+
+                  </xsl:if>
 
                 </tr>
               </table>
@@ -106,7 +111,12 @@
               <col class="information"></col>
             </colgroup>
             <tr>
+              <xsl:if test ="Etablissement/CodeRNE!='0673079H'">
               <td class="td_head">Principal</td>
+              </xsl:if>
+              <xsl:if test ="Etablissement/CodeRNE='0673079H'">
+                <td class="td_head">Directeur</td>
+              </xsl:if>
               <td>
                 <xsl:value-of select="Etablissement/Principal"></xsl:value-of>
                 <br>
@@ -118,14 +128,26 @@
               </td>
             </tr>
             <tr>
-              <td class="td_head">Principal Adjoint</td>
+              <xsl:if test ="Etablissement/CodeRNE!='0673079H'">
+                <td class="td_head">Principal Adjoint</td>
+              </xsl:if>
+              <xsl:if test ="Etablissement/CodeRNE='0673079H'">
+                <td class="td_head">Directeur adjoint secondaire</td>
+              </xsl:if>
               <td>
                 <xsl:if test ="Etablissement/PrincipalAdjoint!=''">
                   <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 test ="Etablissement/PrincipalAdjoint=''">
 
                 </xsl:if>
+                
               </td>
             </tr>
             <tr>
@@ -155,14 +177,14 @@
                   <xsl:value-of select="Etablissement/ConseillerGeneral"></xsl:value-of>
                 </xsl:if>
                 <xsl:if test ="Etablissement/ConseillerGeneral=''">
-                  Vacant
+                  <!--  Vacant -->
                 </xsl:if>
                 <xsl:if test ="Etablissement/ConseillerGeneralSuppleant!=''">
                   <xsl:text> - </xsl:text>
                   <xsl:value-of select="Etablissement/ConseillerGeneralSuppleant"></xsl:value-of>
                 </xsl:if>
                 <xsl:if test ="Etablissement/ConseillerGeneralSuppleant=''">
-                  Vacant
+                 <!--  Vacant -->
                 </xsl:if>
                 <!--  <xsl:if test="count(Etablissement/LstCanton/Canton[Fonction = '6']) =0">
 					  Vacant
@@ -212,7 +234,7 @@
             </colgroup>
             <tr>
               <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>
                 <xsl:value-of select="Etablissement/MCG/Ville"/>
@@ -224,7 +246,7 @@
             </tr>
             <tr>
               <td class="td_head">
-                Référent PEP
+                Référent MESJ
               </td>
               <td>
                 <xsl:value-of select="Etablissement/MCG/NomReferentPEP"/>
@@ -432,7 +454,7 @@
             </td>
           </tr>
           <tr>
-            <td class="td_head">Surface SHON</td>
+            <td class="td_head">Surface</td>
             <td>
               <xsl:value-of select="format-number(Etablissement/Surface,'###.##0','europe')"/> m2
             </td>
@@ -482,10 +504,10 @@
                 Pas d’accès
               </xsl:if>
               <xsl:if test ="Etablissement/Accessibilite=1">
-                Accès complet
+                Accès partiel
               </xsl:if>
               <xsl:if test ="Etablissement/Accessibilite=2">
-                Accès partiel
+                Accès complet
               </xsl:if>
             </td>
           </tr>
@@ -562,7 +584,8 @@
 
                 veuillez cliquer sur ce
                 <!--<a href="file.download?file={Fichier}">-->
-                <a href="/FichiersPPM/{Fichier}">
+                <!--<a href="/FichiersPPM/{Fichier}"> -->
+                  <a href="/FichiersPPM/{Fichier}">
                   lien
                 </a>
                 <br></br>
@@ -895,9 +918,9 @@
                   </td>
                 </table>
               </xsl:if>
-              <xsl:if test ="count(Etablissement/LstInvestissementDCE/child::*[Annee=$anneePlus1])=0">
+           <!--   <xsl:if test ="count(Etablissement/LstInvestissementDCE/child::*[Annee=$anneePlus1])=0">
                 pas de valeur
-              </xsl:if>
+              </xsl:if> -->
             </td>
           </tr>
 
@@ -1283,12 +1306,13 @@
                 <xsl:value-of select="Libelle"/>
               </td>
               <td>
-                <xsl:if test ="Participe='True'">
+                <xsl:value-of select="Participe"/>
+               <!--  <xsl:if test ="Participe='True'">
                   Oui
                 </xsl:if>
                 <xsl:if test ="Participe='False'">
                   Non
-                </xsl:if>
+                </xsl:if>-->
               </td>
 
             </tr>
@@ -1371,7 +1395,7 @@
             </td>
           </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>
               <xsl:value-of select="entete/chiffresgeneraux/transport"/>
               <!--<xsl:value-of select="format-number(ChiffresSignificatifs/MontantTotalTransportScolaire,'###.###.##0,00','europe')"/><xsl:text> €</xsl:text> -->