浏览代码

Merge branch 'develop'

julien.legrand 9 年之前
父节点
当前提交
a4dcb0d81a

+ 3 - 0
BDD/2016-12-15 Modification libellé gestionnaire par interim.sql

@@ -0,0 +1,3 @@
+UPDATE dbo.Fonction
+SET Libelle ='Gestionnaire 2'
+WHERE Id = 89;

+ 7 - 2
CG67.FicheCollege.sln

@@ -1,7 +1,7 @@
 
 Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.31101.0
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{AF653E19-77A1-4976-B3BF-1B016F16E79B}"
 EndProject
@@ -21,6 +21,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CG67.FicheCollege.Testeur",
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CG67.FicheCollege.Tools", "Core\CG67.FicheCollege.Tools\CG67.FicheCollege.Tools.csproj", "{6B4DE9CB-C532-4501-B626-F51663EC4E17}"
 EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BDD", "BDD", "{1A8B53A5-4E32-445E-B5E2-1ECD70B724B0}"
+	ProjectSection(SolutionItems) = preProject
+		BDD\2016-12-15 Modification libellé gestionnaire par interim.sql = BDD\2016-12-15 Modification libellé gestionnaire par interim.sql
+	EndProjectSection
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU

+ 4 - 4
Core/CG67.FicheCollege.Domaine/Etablissement.cs

@@ -807,25 +807,25 @@ namespace CG67.FicheCollege.Domaine
             }
         }
 
-        public string GestionnaireInterim
+        public string Gestionnaire2
         {
             get
             {
                 string retour = string.Empty;
                 foreach (Contact cont in Contacts)
-                    if (cont.Fonction.ToLower() == "gestionnaire par intérim")
+                    if (cont.Fonction.ToLower() == "gestionnaire 2")
                         retour = cont.Civilite + " " + Utile.formatStringPrenom(cont.Prenom) + " " + cont.Nom.ToUpper();
                 return retour;
             }
         }
 
-        public string GestionnaireInterimEmail
+        public string Gestionnaire2Email
         {
             get
             {
                 string retour = string.Empty;
                 foreach (Contact cont in Contacts)
-                    if (cont.Fonction.ToLower() == "gestionnaire par intérim")
+                    if (cont.Fonction.ToLower() == "gestionnaire 2")
                         retour = cont.Email;
                 return retour;
             }

+ 0 - 17
Core/CG67.FicheCollege.Entrepot/CG67.FicheCollege.Entrepot.csproj

@@ -44,7 +44,6 @@
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
     <Reference Include="System" />
     <Reference Include="System.configuration" />
     <Reference Include="System.Data" />
@@ -95,22 +94,6 @@
     </ProjectReference>
   </ItemGroup>
   <ItemGroup>
-    <COMReference Include="ADODB">
-      <Guid>{00000205-0000-0010-8000-00AA006D2EA4}</Guid>
-      <VersionMajor>2</VersionMajor>
-      <VersionMinor>5</VersionMinor>
-      <Lcid>0</Lcid>
-      <WrapperTool>primary</WrapperTool>
-      <Isolated>False</Isolated>
-    </COMReference>
-    <COMReference Include="Microsoft.Office.Core">
-      <Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>
-      <VersionMajor>2</VersionMajor>
-      <VersionMinor>3</VersionMinor>
-      <Lcid>0</Lcid>
-      <WrapperTool>primary</WrapperTool>
-      <Isolated>False</Isolated>
-    </COMReference>
     <COMReference Include="VBIDE">
       <Guid>{0002E157-0000-0000-C000-000000000046}</Guid>
       <VersionMajor>5</VersionMajor>

+ 0 - 16
Core/CG67.FicheCollege.Service/CG67.FicheCollege.Service.csproj

@@ -67,22 +67,6 @@
     </ProjectReference>
   </ItemGroup>
   <ItemGroup>
-    <COMReference Include="ADODB">
-      <Guid>{00000205-0000-0010-8000-00AA006D2EA4}</Guid>
-      <VersionMajor>2</VersionMajor>
-      <VersionMinor>5</VersionMinor>
-      <Lcid>0</Lcid>
-      <WrapperTool>primary</WrapperTool>
-      <Isolated>False</Isolated>
-    </COMReference>
-    <COMReference Include="Microsoft.Office.Core">
-      <Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>
-      <VersionMajor>2</VersionMajor>
-      <VersionMinor>3</VersionMinor>
-      <Lcid>0</Lcid>
-      <WrapperTool>primary</WrapperTool>
-      <Isolated>False</Isolated>
-    </COMReference>
     <COMReference Include="VBIDE">
       <Guid>{0002E157-0000-0000-C000-000000000046}</Guid>
       <VersionMajor>5</VersionMajor>

+ 6 - 0
Web/CG67.FicheCollege.Web/CG67.FicheCollege.Web.csproj

@@ -238,6 +238,12 @@
     <None Include="Properties\PublishProfiles\Etud.pubxml" />
     <None Include="Properties\PublishProfiles\Prod.pubxml" />
     <None Include="Properties\PublishProfiles\profildeploiement.pubxml" />
+    <None Include="Web.Debug.config">
+      <DependentUpon>Web.config</DependentUpon>
+    </None>
+    <None Include="Web.Release.config">
+      <DependentUpon>Web.config</DependentUpon>
+    </None>
     <None Include="xls\Pilotes.xls" />
     <None Include="xslt\Pilotes.xls" />
   </ItemGroup>

+ 31 - 0
Web/CG67.FicheCollege.Web/Web.Debug.config

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- Pour plus d'informations sur l'utilisation de la transformation web.config, consultez la page http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <!--
+    Dans l'exemple ci-dessous, la transformation "SetAttributes" changera la valeur de 
+    "connectionString" afin d'utiliser "ReleaseSQLServer" uniquement lorsque le localisateur "Match" 
+    trouve un attribut "name" qui a une valeur "MyDB".
+    
+    <connectionStrings>
+      <add name="MyDB" 
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+    </connectionStrings>
+  -->
+  <system.web>
+    <!--
+      
+      Dans l'exemple ci-dessous, la transformation "Replace" remplacera toute la section 
+      <customErrors>  de votre fichier web.config.
+      Dans la mesure où il n'y a qu'une section customErrors sous le 
+      nœud <system.web>, il n'est pas nécessaire d'utiliser l'attribut "xdt:Locator".
+      
+      <customErrors defaultRedirect="GenericError.htm"
+        mode="RemoteOnly" xdt:Transform="Replace">
+        <error statusCode="500" redirect="InternalError.htm"/>
+      </customErrors>
+    -->
+  </system.web>
+</configuration>

+ 38 - 0
Web/CG67.FicheCollege.Web/Web.Release.config

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- Pour plus d'informations sur l'utilisation de la transformation web.config, consultez la page http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <!--
+    Dans l'exemple ci-dessous, la transformation "SetAttributes" changera la valeur de 
+    "connectionString" afin d'utiliser "ReleaseSQLServer" uniquement lorsque le localisateur "Match" 
+    trouve un attribut "name" qui a une valeur "MyDB".
+    
+    <connectionStrings>
+      <add name="MyDB" 
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+    </connectionStrings>
+  -->
+  <appSettings>
+    <add key="ConnexionStringSic"
+         value="Data Source=MSSQL-02\SQLSTD2K14;Initial Catalog=TSic;User Id=UserTSicRW;password=K5dkV6FXgZ2Q"
+         xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
+  </appSettings>
+    
+  <system.web>
+    <compilation xdt:Transform="RemoveAttributes(debug)" />
+    <!--
+      
+      Dans l'exemple ci-dessous, la transformation "Replace" remplacera toute la section 
+      <customErrors>  de votre fichier web.config.
+      Dans la mesure où il n'y a qu'une section customErrors sous le 
+      nœud <system.web>, il n'est pas nécessaire d'utiliser l'attribut "xdt:Locator".
+      
+      <customErrors defaultRedirect="GenericError.htm"
+        mode="RemoteOnly" xdt:Transform="Replace">
+        <error statusCode="500" redirect="InternalError.htm"/>
+      </customErrors>
+    -->
+  </system.web>
+</configuration>

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

@@ -8,7 +8,8 @@
     <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=MSSQL-02\SQLSTD2K14;Initial Catalog=TSic;User Id=UserTSicRW;password=K5dkV6FXgZ2Q"/>
+    <add key="ConnexionStringSic" value="Data Source=T-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;"/>

+ 5 - 5
Web/CG67.FicheCollege.Web/xslt/FicheCollegev2.xslt

@@ -163,15 +163,15 @@
               </td>
             </tr>
 
-            <xsl:if test ="Etablissement/GestionnaireInterim!=''">
+            <xsl:if test ="Etablissement/Gestionnaire2!=''">
               <tr>
-                <td class="td_head">Gestionnaire par interim</td>
+                <td class="td_head">Gestionnaire 2</td>
                 <td>
-                  <xsl:value-of select="Etablissement/GestionnaireInterim"></xsl:value-of>
+                  <xsl:value-of select="Etablissement/Gestionnaire2"></xsl:value-of>
                   <br>
                     <xsl:text>Email </xsl:text>
-                    <a href="mailto:{Etablissement/GestionnaireInterimEmail}">
-                      <xsl:value-of select="Etablissement/GestionnaireInterimEmail"/>
+                    <a href="mailto:{Etablissement/Gestionnaire2Email}">
+                      <xsl:value-of select="Etablissement/Gestionnaire2Email"/>
                     </a>
                   </br>
                 </td>