浏览代码

Adaptation elus cantons

celine.meneu 10 年之前
父节点
当前提交
2e7d7a060e

+ 1 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/Etablissement.cs

@@ -792,7 +792,7 @@ namespace CG67.FicheCollege.Domaine
             {
                 string retour = string.Empty;
                 foreach (Contact cont in Contacts)
-                    if (cont.Fonction.ToLower() == "conseiller général")
+                    if (cont.Fonction.ToLower() == "conseiller départemental")
                         retour = cont.Civilite + " " + Utile.formatStringPrenom(cont.Prenom) + " " + cont.Nom.ToUpper();
                 return retour;
             }

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

@@ -247,6 +247,8 @@
   </ItemGroup>
   <ItemGroup>
     <None Include="pdf\Pilotes.pdf" />
+    <None Include="Properties\PublishProfiles\admin.meneu.pubxml" />
+    <None Include="Properties\PublishProfiles\profildeploiement.pubxml" />
     <None Include="xls\Pilotes.xls" />
     <None Include="xslt\Pilotes.xls" />
   </ItemGroup>

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

@@ -28,7 +28,7 @@ namespace CG67.FicheCollege
                 const int largeurBarre = 30;
 
                 // recupération des parametres
-                //int CapaciteTheorique = Convert.ToInt32(context.Request["nbCt"]);
+                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"]));
@@ -61,7 +61,7 @@ namespace CG67.FicheCollege
                     }
                 }
 
-                //string legendeMoyenne = "Moyenne : " + CapaciteTheorique.ToString();
+                string legendeMoyenne = "Capacité théorique: " + CapaciteTheorique.ToString();
 
                 // calcul de l'échelle
                 decimal echelle = (hauteur - 40) / valeurMaxi;
@@ -90,14 +90,16 @@ namespace CG67.FicheCollege
                 Pen greenPen = new Pen(Color.Green, 3);
 
                 int x1 = 0;
-                //int y1 = (int)(hauteur - 20 - CapaciteTheorique * echelle);
+                int y1 = (int)(hauteur - 20 - CapaciteTheorique * echelle);
+                //int y1 = (int)(hauteur - 20 - 400 * echelle);
                 int x2 = largeur;
-                //int y2 = (int)(hauteur - 20 - CapaciteTheorique * echelle);
-
+                //int y2 = (int)(hauteur - 20 - 400 * 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 - 80));
+                //g.DrawString(CapaciteTheorique, 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

@@ -8,7 +8,7 @@
     <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="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;"/>

+ 1 - 1
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xml/Entete.xml

@@ -9,7 +9,7 @@
     <fax>03 69 20 75 23</fax>
     <email>pascale.hauger@cg67.fr</email>
     <photo>Direction de la Communication</photo>
-    <maj>18/12/2014</maj>
+    <maj>02/04/2015</maj>
     </suiviepar>
   <chiffresgeneraux>
     <annee>2013</annee>

+ 23 - 13
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollegev2.xslt

@@ -149,15 +149,22 @@
               </xsl:if>
             </tr>
             <tr>
-              <td class="td_head">Conseillers Départementaux titulaires</td>
+              <td class="td_head">Conseillers Départementaux siégeant au CA </td>
               <td>
-          <!--      <xsl:if test ="Etablissement/ConseillerGeneral!=''">
+                <xsl:if test ="Etablissement/ConseillerGeneral!=''">
                   <xsl:value-of select="Etablissement/ConseillerGeneral"></xsl:value-of>
                 </xsl:if>
                 <xsl:if test ="Etablissement/ConseillerGeneral=''">
                   Vacant
-                </xsl:if> -->
-				  <xsl:if test="count(Etablissement/LstCanton/Canton[Fonction = '6']) =0">
+                </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
+                </xsl:if>
+                <!--  <xsl:if test="count(Etablissement/LstCanton/Canton[Fonction = '6']) =0">
 					  Vacant
 				  </xsl:if>
 				  <xsl:if test="count(Etablissement/LstCanton/Canton[Fonction = '6']) >0">
@@ -169,18 +176,18 @@
 						  <xsl:value-of select="NomConseiller"/>
 						  <xsl:text> - </xsl:text>
 				  </xsl:for-each>
-				  </xsl:if>  
+				  </xsl:if>  -->
 	          </td>
             </tr>
-            <tr>
-              <td class="td_head">Conseillers Départementaux suppléants</td>
+			  <!--                   <tr>
+     <td class="td_head">Conseillers Départementaux suppléants</td>
               <td>
-<!--                <xsl:if test ="Etablissement/ConseillerGeneralSuppleant!=''">
+                <xsl:if test ="Etablissement/ConseillerGeneralSuppleant!=''">
                   <xsl:value-of select="Etablissement/ConseillerGeneralSuppleant"></xsl:value-of>
                 </xsl:if>
                 <xsl:if test ="Etablissement/ConseillerGeneralSuppleant=''">
                   Vacant
-                </xsl:if> -->
+                </xsl:if> 
 				  <xsl:if test="count(Etablissement/LstCanton/Canton[Fonction = '91']) =0">
 					  Vacant
 				  </xsl:if>
@@ -196,7 +203,8 @@
 				  </xsl:if>
 			  </td>
             </tr>
-          </table>
+			  -->
+		  </table>
           <table>
             <colgroup>
               <col class="libelle"></col>
@@ -1394,10 +1402,11 @@
 
   <xsl:template match="Etablissement/LstEffectif">
     <img alt="Evolution des effectifs">
-      <xsl:variable name="capacitetheorique" />
+    <xsl:variable name="capacitetheorique" select ="/college/Etablissement/EffectifTheorique" />
       <xsl:attribute name="src">
-        vide.histo?ct=<xsl:value-of select="$capacitetheorique"/>&amp;l=600&amp;h=400&amp;f=-64&amp;nb=<xsl:value-of select="count(Effectif)"></xsl:value-of>
-        <xsl:for-each select="Effectif">
+		   vide.histo?nbCt=<xsl:value-of select="$capacitetheorique"/>&amp;l=600&amp;h=400&amp;f=-64&amp;nb=<xsl:value-of select="count(Effectif)"></xsl:value-of>  
+		   <!--  vide.histo?nbCt=400&amp;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"/>
           </xsl:if>
@@ -1411,5 +1420,6 @@
 
   </xsl:template>
 
+
 </xsl:stylesheet>