Prechádzať zdrojové kódy

Archives avec le début du développement accès fichiers

Celine.meneu 12 rokov pred
rodič
commit
0ff2bf3b62

+ 12 - 1
CG67.FicheCollege.root/CG67.FicheCollege/CG67.FicheCollege.sln

@@ -17,9 +17,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CG67.FicheCollege.Interface
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CG67.FicheCollege.Testeur", "Core\CG67.FicheCollege.Testeur\CG67.FicheCollege.Testeur.csproj", "{9E6B935E-7CAA-422E-AD37-248C12CC0C09}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CG67.FicheCollege.Tools", "CG67.FicheCollege.Tools\CG67.FicheCollege.Tools.csproj", "{6B4DE9CB-C532-4501-B626-F51663EC4E17}"
+EndProject
 Global
 	GlobalSection(SourceCodeControl) = preSolution
-		SccNumberOfProjects = 7
+		SccNumberOfProjects = 8
 		SccLocalPath0 = .
 		SccProjectUniqueName1 = Core\\CG67.FicheCollege.Domaine\\CG67.FicheCollege.Domaine.csproj
 		SccProjectTopLevelParentUniqueName1 = CG67.FicheCollege.sln
@@ -45,6 +47,10 @@ Global
 		SccProjectTopLevelParentUniqueName6 = CG67.FicheCollege.sln
 		SccLocalPath6 = .
 		SccProjectFilePathRelativizedFromConnection6 = Web\\CG67.FicheCollege.Web\\
+		SccProjectUniqueName7 = CG67.FicheCollege.Tools\\CG67.FicheCollege.Tools.csproj
+		SccProjectTopLevelParentUniqueName7 = CG67.FicheCollege.sln
+		SccLocalPath7 = .
+		SccProjectFilePathRelativizedFromConnection7 = CG67.FicheCollege.Tools\\
 	EndGlobalSection
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -75,6 +81,10 @@ Global
 		{9E6B935E-7CAA-422E-AD37-248C12CC0C09}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{9E6B935E-7CAA-422E-AD37-248C12CC0C09}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{9E6B935E-7CAA-422E-AD37-248C12CC0C09}.Release|Any CPU.Build.0 = Release|Any CPU
+		{6B4DE9CB-C532-4501-B626-F51663EC4E17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{6B4DE9CB-C532-4501-B626-F51663EC4E17}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{6B4DE9CB-C532-4501-B626-F51663EC4E17}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{6B4DE9CB-C532-4501-B626-F51663EC4E17}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
@@ -85,6 +95,7 @@ Global
 		{19A47A92-43C8-4139-8689-F4E61CC66053} = {AF653E19-77A1-4976-B3BF-1B016F16E79B}
 		{6F721CCA-8B98-406A-A266-5D7D6264BCE6} = {AF653E19-77A1-4976-B3BF-1B016F16E79B}
 		{9E6B935E-7CAA-422E-AD37-248C12CC0C09} = {AF653E19-77A1-4976-B3BF-1B016F16E79B}
+		{6B4DE9CB-C532-4501-B626-F51663EC4E17} = {AF653E19-77A1-4976-B3BF-1B016F16E79B}
 		{4F52F11E-1245-4C57-B718-A472BDAAC99C} = {4C65639C-3B2A-46F8-B412-1FF88E335B34}
 	EndGlobalSection
 EndGlobal

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

@@ -42,6 +42,7 @@
     <Reference Include="System.configuration" />
     <Reference Include="System.Data" />
     <Reference Include="System.Data.OracleClient" />
+    <Reference Include="System.Web.Services" />
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
@@ -70,6 +71,10 @@
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>
+    <ProjectReference Include="..\..\CG67.FicheCollege.Tools\CG67.FicheCollege.Tools.csproj">
+      <Project>{6B4DE9CB-C532-4501-B626-F51663EC4E17}</Project>
+      <Name>CG67.FicheCollege.Tools</Name>
+    </ProjectReference>
     <ProjectReference Include="..\CG67.FicheCollege.Domaine\CG67.FicheCollege.Domaine.csproj">
       <Project>{EA9B4153-44A9-46AF-891B-8DFE604CF33F}</Project>
       <Name>CG67.FicheCollege.Domaine</Name>

+ 28 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotBase.cs

@@ -17,6 +17,12 @@ namespace CG67.FicheCollege.Entrepot
         protected string ChaineDeConnexionSubvention;
         protected string ChaineDeConnexionRH;
         protected string ChaineDeConnexionAstreGF;
+        protected string CheminDeFichier;
+        protected string Utilisateur;
+        protected string MotDePasse;
+        protected string NomDeDomaine;
+      
+
       //  protected string ChaineDeConnexionAccess;
         public EntrepotBase()
         {
@@ -49,7 +55,29 @@ namespace CG67.FicheCollege.Entrepot
                 throw new Exception("Chaine de connexion Oracle non renseignée");
             }
 
+            this.CheminDeFichier = ConfigurationManager.AppSettings["FileRepository"];
+            if (string.IsNullOrEmpty(this.CheminDeFichier))
+            {
+                throw new Exception("Chemin d'accès aux fichiers non renseigné");
+            }
+
+            this.Utilisateur = ConfigurationManager.AppSettings["ImpersonationUser"];
+            if (string.IsNullOrEmpty(this.Utilisateur))
+            {
+                throw new Exception("Nom Utilisateur non renseigné");
+            }
 
+            this.MotDePasse = ConfigurationManager.AppSettings["ImpersonationPassword"];
+            if (string.IsNullOrEmpty(this.MotDePasse))
+            {
+                throw new Exception("Mot de passe non renseigné");
+            }
+
+            this.NomDeDomaine = ConfigurationManager.AppSettings["ImpersonationDomain"];
+            if (string.IsNullOrEmpty(this.NomDeDomaine))
+            {
+                throw new Exception("Nom de domaine non renseigné");
+            }
             //this.ChaineDeConnexionAccess = ConfigurationManager.AppSettings["ConnexionStringAccess"];
             //if (string.IsNullOrEmpty(this.ChaineDeConnexionAccess))
             //{

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

@@ -101,10 +101,18 @@
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>
+    <ProjectReference Include="..\..\CG67.FicheCollege.Tools\CG67.FicheCollege.Tools.csproj">
+      <Project>{6B4DE9CB-C532-4501-B626-F51663EC4E17}</Project>
+      <Name>CG67.FicheCollege.Tools</Name>
+    </ProjectReference>
     <ProjectReference Include="..\..\Core\CG67.FicheCollege.Domaine\CG67.FicheCollege.Domaine.csproj">
       <Project>{EA9B4153-44A9-46AF-891B-8DFE604CF33F}</Project>
       <Name>CG67.FicheCollege.Domaine</Name>
     </ProjectReference>
+    <ProjectReference Include="..\..\Core\CG67.FicheCollege.Entrepot\CG67.FicheCollege.Entrepot.csproj">
+      <Project>{799F1203-F76F-4623-B6BD-DBE509478539}</Project>
+      <Name>CG67.FicheCollege.Entrepot</Name>
+    </ProjectReference>
     <ProjectReference Include="..\..\Core\CG67.FicheCollege.Service\CG67.FicheCollege.Service.csproj">
       <Project>{19A47A92-43C8-4139-8689-F4E61CC66053}</Project>
       <Name>CG67.FicheCollege.Service</Name>

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

@@ -10,9 +10,30 @@
       <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="2013"/>
+	  <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 
@@ -42,7 +63,7 @@
 
       <httpHandlers>
         <add verb="GET,POST" path="*.histo" type="CG67.FicheCollege.HttpHandlerHistogramme, CG67.FicheCollege"/>
-      </httpHandlers>
+  	</httpHandlers>
 
     </system.web>
 </configuration>

+ 1 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -435,7 +435,7 @@
 				<br></br>
               <h3>Travaux de maintenance réalisés et prévus</h3>
 			</table>
-			  Données accessibles en Janvier 2014
+			  Données accessibles en Février 2014
 			<!--  <br></br>
 			  <xsl:element name="a">
 				  <xsl:attribute name="href">