Kaynağa Gözat

Archivages de la solution

Celine.meneu 11 yıl önce
ebeveyn
işleme
eb2441edd7

+ 29 - 4
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/MCG.cs

@@ -22,27 +22,52 @@ namespace CG67.FicheCollege.Domaine
         /// prénom du président de la MCG
         /// </summary>
         private string mPrenomPresident;
-
+         /// <summary>
+        /// nom du référent PEP
+        /// </summary>
+        private string mNomReferentPEP;
+        /// <summary>
+        /// prénom du référent PEP
+        /// </summary>
+        private string mPrenomReferentPEP;
         
         public string Ville
         {
             get { return mVille; }
             set { mVille = value; }
-        }public string NomPresident
+        }
+   
+
+        public string NomPresident
         {
             get { return mNomPresident; }
             set { mNomPresident = value; }
-        }public string PrenomPresident
+        }
+        public string PrenomPresident
         {
             get { return mPrenomPresident; }
             set { mPrenomPresident = value; }
         }
 
-        public MCG(string ville, string nomPresident, string prenomPresident)
+
+        public string NomReferentPEP
+        {
+            get { return mNomReferentPEP; }
+            set { mNomReferentPEP = value; }
+        }
+        public string PrenomReferentPEP
+        {
+            get { return mPrenomReferentPEP; }
+            set { mPrenomReferentPEP = value; }
+        }
+
+        public MCG(string ville, string nomPresident, string prenomPresident, string nomReferentPEP, string prenomReferentPEP)
         {
             this.mVille = ville;
             this.mNomPresident = nomPresident;
             this.mPrenomPresident = prenomPresident;
+            this.mNomReferentPEP = nomReferentPEP;
+            this.mPrenomReferentPEP = prenomReferentPEP;
         }
         
         public override string ToString()

+ 34 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotMCG.cs

@@ -22,14 +22,46 @@ namespace CG67.FicheCollege.Entrepot
                         //command.CommandText = "Select Nom, Prenom, Ville FROM Etablissement INNER JOIN Mcg ON (Etablissement.IdMCG = Mcg.Id) INNER JOIN Contact ON (Mcg.IdContact = Contact.Id) WHERE Etablissement.CodeRNE = @RNE AND Fonction = 'Directeur MCG'";
                         //command.CommandText = "Select Nom, Prenom, Ville FROM Etablissement INNER JOIN Mcg ON (Etablissement.IdMCG = Mcg.Id) INNER JOIN Contact ON (Mcg.IdContact = Contact.Id) WHERE Etablissement.CodeRNE = @RNE AND Fonction = 'Directeur MCG'";
                         command.CommandText = "SELECT Etablissement.CodeRNE, Ville, Civilite, Nom, Prenom FROM Etablissement INNER JOIN (Mcg INNER JOIN Contact ON Mcg.IdContact = Contact.Id) ON Etablissement.IdMCG = Mcg.Id INNER JOIN Fonction ON (Contact.IdFonction = Fonction.Id) WHERE Etablissement.CodeRNE = @RNE and Fonction.Libelle='Directeur MCG';";
-                        
+
 
                         command.Parameters.AddWithValue("@RNE", codeRNE);
                         using (SqlDataReader dr = command.ExecuteReader())
                         {
                             if (dr.Read())
                             {
-                                resultat = new MCG(dr["Ville"].ToString(), dr["Nom"].ToString(), dr["Prenom"].ToString());
+
+                                using (SqlConnection connexion1 = new SqlConnection(this.ChaineDeConnexion))
+                                {
+                                    try
+                                    {
+                                        connexion1.Open();
+                                        using (SqlCommand command1 = connexion1.CreateCommand())
+                                        {
+                                            command1.CommandText = "SELECT Contact.Nom, Contact.Prenom, Etablissement.CodeRNE FROM Etablissement INNER JOIN Mcg ON Etablissement.IdMCG = Mcg.Id INNER JOIN Contact ON Mcg.IdReferentPEP = Contact.Id WHERE Etablissement.CodeRNE = @RNE";
+
+
+                                            command1.Parameters.AddWithValue("@RNE", codeRNE);
+                                            using (SqlDataReader dr1 = command1.ExecuteReader())
+                                            {
+                                                if (dr1.Read())
+                                                {
+
+                                                    resultat = new MCG(dr["Ville"].ToString(), dr["Nom"].ToString(), dr["Prenom"].ToString(), dr1["Nom"].ToString(), dr1["Prenom"].ToString());
+                                                }
+                                            }
+                                        }
+                                    }
+                                    catch (Exception erreurInterne)
+                                    {
+                                        throw new Exception(" " + erreurInterne);
+                                    }
+                                    finally
+                                    {
+                                        if (connexion1.State == ConnectionState.Open)
+                                            connexion1.Close();
+                                    }
+                                }
+
                             }
                         }
                     }

+ 71 - 62
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/Web.config

@@ -1,64 +1,73 @@
-<?xml version="1.0"?>
-<!--
-  Pour plus d'informations sur la configuration de votre application ASP.NET, consultez
-  http://go.microsoft.com/fwlink/?LinkId=169433
-  -->
+<?xml version="1.0" encoding="utf-8"?>
+
 <configuration>
-  <connectionStrings>
-    <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=ESNA\SQLSTD2K5_1;Initial Catalog=TSic;User Id=UserTSicRW;password=UserTS!cRW!"/>
-    <!--   <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="ImpersonationUser" value="service.college"/>
-    <add key="ImpersonationPassword" value="2sr72297rN7BzX8QB48t"/>
-    <add key="ImpersonationDomain" value="cg67"/>
-  </appSettings>
-  <system.web>
-    <httpHandlers>
-      <add path="*.histo" verb="*" type="CG67.FicheCollege.HttpHandlerHistogramme, CG67.FicheCollege" />
-      <add path="file.download" validate="false" verb="*" type="CG67.FicheCollege.FileDownloadHandler, CG67.FicheCollege"/>
-    </httpHandlers>
 
-    <compilation debug="true" targetFramework="4.0"/>
-    <authentication mode="Forms">
-      <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
-    </authentication>
-    <membership>
-      <providers>
-        <clear/>
-        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
-      </providers>
-    </membership>
-    <profile>
-      <providers>
-        <clear/>
-        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
-      </providers>
-    </profile>
-    <roleManager enabled="false">
-      <providers>
-        <clear/>
-        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
-        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
-      </providers>
-    </roleManager>
-  </system.web>
-  <system.webServer>
-    <modules runAllManagedModulesForAllRequests="true"/>
-    <handlers>
-      <add name="HttpHandlerHistogramme" path="*.histo" verb="*" type="CG67.FicheCollege.HttpHandlerHistogramme, CG67.FicheCollege"  allowPathInfo="false" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.Net\Framework\v4.0.30319\aspnet_isapi.dll"
-             resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32"/>
-      <add name="FileDownloadHandler" path="file.download" verb="*" type="CG67.FicheCollge.FileDownloadHandler, CG67.FicheCollege" allowPathInfo="false"  preCondition="integratedMode, runtimeVersionv2.0" />
-    </handlers>
-    <!--<staticContent>
-      <mimeMap fileExtension="" mimeType="" />
-    </staticContent>-->
-  </system.webServer>
-</configuration>
+	<appSettings>
+		<add key="ConnexionStringSic" value="Data Source=ESNA\SQLSTD2K5_1;Initial Catalog=TSic;User Id=UserTSicRW;password=UserTS!cRW!"/>
+		<!--   <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="ImpersonationUser" value ="service.college"/>
+		<add key ="ImpersonationPassword" value ="2sr72297rN7BzX8QB48t"/>
+		<add key ="ImpersonationDomain" value="cg67"/>
+	</appSettings>
+	<!-- 	<applicationSettings>
+		<applicationSettings>
+		<CG67.FicheCollege.Properties.Settings>
+			<setting name="FileRepository" serializeAs="String">
+				<value>\\public\publicng\1PAT\12DIMG\1230SGEPI\PPM\Fichiers DSI (fiches collèges)</value>
+			</setting>
+			<setting name="ImpersonationUser" serializeAs="String">
+				<value>service.college</value>
+			</setting>
+			<setting name="ImpersonationPassword" serializeAs="String">
+				<value>2sr72297rN7BzX8QB48t</value>
+			</setting>
+			<setting name="ImpersonationDomain" serializeAs="String">
+				<value>cg67</value>
+			</setting>
+		</CG67.FicheCollege.Properties.Settings>
+	</applicationSettings>
+  <connectionStrings/>
+ -->
+	<system.web>
+		<!-- 
+            Définissez compilation debug="true" pour insérer des symboles 
+            de débogage dans la page compilée. Comme ceci 
+            affecte les performances, définissez cette valeur à true uniquement 
+            lors du développement.
+        -->
+		<compilation debug="true" />
+		<!--
+            La section <authentication> permet la configuration 
+            du mode d'authentification de sécurité utilisé par 
+            ASP.NET pour identifier un utilisateur entrant. 
+        -->
+		<authentication mode="Windows" />
+		<!--
+            La section <customErrors> permet de configurer 
+            les actions à exécuter si/quand une erreur non gérée se produit 
+            lors de l'exécution d'une demande. Plus précisément, 
+            elle permet aux développeurs de configurer les pages d'erreur html 
+            pour qu'elles s'affichent à la place d'une trace de la pile d'erreur.
+
+        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
+            <error statusCode="403" redirect="NoAccess.htm" />
+            <error statusCode="404" redirect="FileNotFound.htm" />
+        </customErrors>
+        -->
+
+		<httpHandlers>
+			<add verb="GET,POST" path="*.histo" type="CG67.FicheCollege.HttpHandlerHistogramme, CG67.FicheCollege"/>
+			<add verb="*" path="file.download" validate="false" type="CG67.FicheCollege.FileDownloadHandler, CG67.FicheCollege"/>
+
+		</httpHandlers>
+
+	</system.web>
+
+
+</configuration>

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

@@ -166,7 +166,17 @@
                         <xsl:text> </xsl:text>
                         <xsl:value-of select="Etablissement/MCG/PrenomPresident"/>
                     </td>
-                </tr>
+				</tr>
+				<tr>
+					<td>
+						Référent PEP
+					</td>
+					<td>
+						<xsl:value-of select="Etablissement/MCG/NomReferentPEP"/>
+						<xsl:text> </xsl:text>
+						<xsl:value-of select="Etablissement/MCG/PrenomReferentPEP"/>
+					</td>
+				</tr>
                 <tr>
                     <td>
                         Canton de rattachement 
@@ -216,7 +226,7 @@
 
                 </tr>
               <tr>
-                <td>Effectif bilingue</td>
+                <td>Dont effectif bilingue</td>
                 <td>
                   <xsl:if test ="count(Etablissement/LstBilingue/Bilinguisme)=0">
                     Non
@@ -987,7 +997,7 @@
         </table>
 
       <h2>7. Actions éducatives, sportives et culturelles</h2>
-      <h3>Actions de la Direction des Collèges et de l'Education (DCE)</h3>
+      <h3>Actions de la Direction des Collèges (DC)</h3>
       <table>
         <colgroup>
           <col class="libelle"></col>
@@ -1073,7 +1083,7 @@
           </table>
           </xsl:if>
         </table>
-        <h3>Actions de la Direction de la Jeunesse et des Sports (DJS)</h3>
+        <h3>Actions de la Direction des politiques éducatives, sportives et culturelles (DPESC)</h3>
 
         <table>
           <colgroup>
@@ -1118,7 +1128,7 @@
           -->
         </table>
 
-        <h3>Actions du Service Développement Artistique (SDA)</h3>
+      <!--  <h3>Actions du Service Développement Artistique (SDA)</h3>
 
         <table>
           <colgroup>
@@ -1158,7 +1168,7 @@
               </tr>
             </xsl:for-each>
           </xsl:if>
-        </table>
+        </table> -->
 
         <!-- <h2>8. Programmes expérimentaux de l'Education Nationale</h2>
         <xsl:if test ="count(Etablissement/LstProjetPilote/ProjetPilote[Initiateur='EN'])=0">
@@ -1188,7 +1198,7 @@
         </table>
         -->
 
-        <h2>8. Participation à des projets pilotes de la DCE</h2>
+        <h2>8. Participation à des projets pilotes de la DC</h2>
         <table>
           <colgroup>
             <col class="libelle"></col>
@@ -1212,7 +1222,7 @@
           </xsl:for-each>
         </table>
 
-        <h2>9. Quelques indicateurs d’activité de la DCE</h2>
+        <h2>9. Quelques indicateurs d’activité de la DC</h2>
         <table>
           <colgroup>
             <col class="libelle"></col>
@@ -1288,7 +1298,7 @@
           </td>
         </tr>
         <tr>
-          <td>Montant total des transports scolaires</td>
+          <td>Montant total des transports scolaires (hors CUS)</td>
           <td>
             <xsl:value-of select="entete/chiffresgeneraux/transport"/>
             <!--<xsl:value-of select="format-number(ChiffresSignificatifs/MontantTotalTransportScolaire,'###.###.##0,00','europe')"/><xsl:text> €</xsl:text> -->