Thibaud.willm před 11 roky
rodič
revize
e1948fac96

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

@@ -66,6 +66,7 @@
     <Content Include="FicheCollege.aspx" />
     <Content Include="FicheCollegev2.aspx" />
     <Content Include="GenerationFiche.aspx" />
+    <Content Include="images\bandeau-fiche-college.png" />
     <Content Include="images\cg67.jpg" />
     <Content Include="images\CG67.png" />
     <None Include="images\Copie de logoCG67N.histo" />
@@ -91,7 +92,9 @@
     <Content Include="Web.config">
       <SubType>Designer</SubType>
     </Content>
-    <Content Include="xml\Entete.xml" />
+    <Content Include="xml\Entete.xml">
+      <SubType>Designer</SubType>
+    </Content>
     <Content Include="xslt\FicheCollegev2.xslt">
       <SubType>Designer</SubType>
     </Content>

+ 6 - 9
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/HttpHandlerHistogramme.cs

@@ -28,6 +28,7 @@ namespace CG67.FicheCollege
                 const int largeurBarre = 30;
 
                 // recupération des parametres
+                //int CapaciteTheorique = Convert.ToInt32(context.Request["nbCt"]);
                 int largeur = Convert.ToInt32(context.Request["l"]);
                 int hauteur = Convert.ToInt32(context.Request["h"]);
                 //Color fond = Color.FromArgb(Convert.ToInt32(context.Request["f"]));
@@ -39,7 +40,6 @@ namespace CG67.FicheCollege
                 string[] legende = new string[nbBarre];
                 decimal valeurMaxi = decimal.MinValue;
                 decimal valeurMini = decimal.MaxValue;
-                decimal moyenne = 0;
 
                 //  chargement des valeurs et détermination de la valeur maxi et mini (bien que cette dernière ne serve pas pour le moment)
                 for (int i = 1; i < nbBarre + 1; i++)
@@ -59,12 +59,9 @@ namespace CG67.FicheCollege
                         if (valeurs[i - 1] < valeurMini)
                             valeurMini = valeurs[i - 1];
                     }
-                    moyenne += valeurs[i - 1];
                 }
 
-                moyenne = moyenne / nbBarre;
-                moyenne = Math.Round(moyenne, 2);
-                string legendeMoyenne = "Moyenne : " + moyenne.ToString();
+                //string legendeMoyenne = "Moyenne : " + CapaciteTheorique.ToString();
 
                 // calcul de l'échelle
                 decimal echelle = (hauteur - 40) / valeurMaxi;
@@ -93,14 +90,14 @@ namespace CG67.FicheCollege
                 Pen greenPen = new Pen(Color.Green, 3);
 
                 int x1 = 0;
-                int y1 = (int)(hauteur - 20 - moyenne * echelle);
+                //int y1 = (int)(hauteur - 20 - CapaciteTheorique * echelle);
                 int x2 = largeur;
-                int y2 = (int)(hauteur - 20 - moyenne * echelle);
+                //int y2 = (int)(hauteur - 20 - CapaciteTheorique * echelle);
 
                 // Draw line to screen.  
                 SolidBrush styloVert = new SolidBrush(Color.Green);
-                g.DrawLine(greenPen, x1, y1, x2, y2);
-                g.DrawString(legendeMoyenne, police, styloVert, (float)(450), (float)(y1 - 20));
+                //g.DrawLine(greenPen, x1, y1, x2, y2);
+                //g.DrawString(legendeMoyenne, police, styloVert, (float)(450), (float)(y1 - 20));
                 context.Response.StatusCode = 209;
 
                 // Envoi de l'image dans le flux http de sortie

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

@@ -55,7 +55,7 @@
     <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" />
+      <add name="FileDownloadHandler" path="file.download" verb="*" type="CG67.FicheCollege.FileDownloadHandler, CG67.FicheCollege" allowPathInfo="false"  preCondition="integratedMode, runtimeVersionv2.0" />
     </handlers>
     <!--<staticContent>
       <mimeMap fileExtension="" mimeType="" />

+ 2 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/css/Print.css

@@ -54,7 +54,7 @@
 
 #logo
 {
-    height: 80px;
+    height: 140px;
     position: relative;
     margin-left: 20px;
     width: auto;
@@ -63,7 +63,7 @@
 
 img#logo
 {
-    height: 80px;
+    height: 150px;
     position: relative;
     margin-left: 20px;
     width: auto;

+ 6 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/css/fichecollegev2.css

@@ -61,7 +61,7 @@
 
     #logo
     {
-        height: 80px;
+        height: 150px;
         position: relative;
         margin-left: 20px;
         width: auto;
@@ -70,7 +70,7 @@
 
     img#logo
     {
-        height: 80px;
+        height: 150px;
         position: relative;
         margin-left: 20px;
         width: auto;
@@ -332,6 +332,10 @@
         width: 800px;
         text-align: center;
     }
+    h3#TitreGraph
+    {
+        margin: auto;
+    }
     h1#fiche
     {
         width: 430px;

+ 11 - 10
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollegev2.xslt

@@ -429,7 +429,7 @@
               </xsl:if>
             </td>
           </tr>
-          <tr>
+          <!--<tr>
             <td class="td_head">Ascensseur</td>
             <td>
               <xsl:if test ="Etablissement/Ascenseur='True'">
@@ -439,7 +439,7 @@
                 Non
               </xsl:if>
             </td>
-          </tr>
+          </tr>-->
           <tr>
             <td class="td_head">Accessibilité</td>
             <td>
@@ -526,19 +526,16 @@
               <xsl:for-each select="Etablissement/LstFichiersTravaux/FichierTravaux">
 
                 veuillez cliquer sur ce
-                <a href="file.download?file={Fichier}">
+                <!--<a href="file.download?file={Fichier}">-->
+                <a href="/FichiersPPM/{Fichier}">
                   lien
                 </a>
-
-
                 <br></br>
               </xsl:for-each>
-
             </xsl:if>
             <xsl:if test="count(Etablissement/LstFichiersTravaux/child::*)=0">
               Néant
             </xsl:if>
-
             <!--  Données
 			  accessibles en Février 2014
 			  <br></br>
@@ -644,7 +641,7 @@
             <table id="TitreGraph">
               <br></br>
               <tr>
-                <h3>
+                <h3 id="TitreGraph">
                   <xsl:value-of select="Etablissement/Commentaires/TitreGraph"/>
                 </h3>
                 <!-- <h3>Effectifs réels et prévisionnels - inclus SEGPA, UPI, CLA, DIMA, 4e dispo aménagée ou 3e insertion</h3> -->
@@ -653,7 +650,10 @@
             <br></br>
             <table id="sansbordurecentre">
               <td colspan="2" id="graphique">
-                <xsl:apply-templates select="Etablissement/LstEffectif"/>
+                <xsl:apply-templates select="Etablissement/LstEffectif">
+                  <xsl:with-param name="capacitetheorique" select="Etablissement/EffectifTheorique" />
+                </xsl:apply-templates>
+                  
                 <!--      
           <img alt="graphique de test" src="dummy.histo?l=400&amp;h=400&amp;f=-64&amp;nb=7&amp;v1=500&amp;c1=-65536&amp;t1=2001&amp;v2=56&amp;c2=-65536&amp;t2=2002&amp;v3=25&amp;c3=-65536&amp;t3=2003&amp;v4=154&amp;c4=-65536&amp;t4=2004&amp;v5=50&amp;c5=-16776961&amp;t5=2005&amp;v6=254&amp;c6=-16776961&amp;t6=2006&amp;v7=25&amp;c7=-16776961&amp;t7=2007"></img>
           -->
@@ -1367,8 +1367,9 @@
 
   <xsl:template match="Etablissement/LstEffectif">
     <img alt="Evolution des effectifs">
+      <xsl:variable name="capacitetheorique" />
       <xsl:attribute name="src">
-        vide.histo?l=600&amp;h=400&amp;f=-64&amp;nb=<xsl:value-of select="count(Effectif)"></xsl:value-of>
+        vide.histo?ct=<xsl:value-of select="$capacitetheorique"/>l=600&amp;h=400&amp;f=-64&amp;nb=<xsl:value-of select="count(Effectif)"></xsl:value-of>
         <xsl:for-each select="Effectif">
           <xsl:if test="TypeEffectif='R'">
             &amp;v<xsl:value-of select ="position()"></xsl:value-of>=<xsl:value-of select="EffectifTotal"/>&amp;c<xsl:value-of select ="position()"></xsl:value-of>=-16776961&amp;t<xsl:value-of select ="position()"></xsl:value-of>=<xsl:value-of select="Annee"/>