Dominique.freyd 16 years ago
parent
commit
dc093ef5f9

+ 8 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Domaine/ProjetPilote.cs

@@ -15,6 +15,7 @@ namespace CG67.FicheCollege.Domaine
         /// Libellé du projet pilote.
         /// </summary>
         private string mLibelle;
+        private bool mParticipe;
 
         /// <summary>
         /// Obtient ou définit le libellé du projet pilote.
@@ -24,10 +25,15 @@ namespace CG67.FicheCollege.Domaine
             get { return mLibelle; }
             set { mLibelle = value; }
         }
-	
-        public ProjetPilote(string libelle)
+        public bool  Participe
+        {
+            get { return mParticipe; }
+            set { mParticipe = value; }
+        }
+        public ProjetPilote(string libelle,bool participe)
         {
             mLibelle = libelle;
+            mParticipe = participe;
         }
     }
 }

+ 2 - 2
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotProjetPilote.cs

@@ -20,7 +20,7 @@ namespace CG67.FicheCollege.Entrepot
                     connexion.Open();
                     using (SqlCommand command = connexion.CreateCommand())
                     {
-                        command.CommandText = "SELECT Libelle from ProjetPilote INNER JOIN Etablissement_ProjetPilote ON (ProjetPilote.Id = Etablissement_ProjetPilote.IdProjetPilote) WHERE CodeRNE = @RNE AND Participer = 'True' AND Annee = @Annee";
+                        command.CommandText = "SELECT Libelle,participer from ProjetPilote INNER JOIN Etablissement_ProjetPilote ON (ProjetPilote.Id = Etablissement_ProjetPilote.IdProjetPilote) WHERE CodeRNE = @RNE AND Participer = 'True' AND Annee = @Annee";
 //                        command.CommandText = "SELECT Libelle from ProjetPilote INNER JOIN Etablissement_ProjetPilote ON (ProjetPilote.Id = Etablissement_ProjetPilote.IdProjetPilote) WHERE CodeRNE = @RNE AND Annee = @Annee";
                         command.Parameters.AddWithValue("@RNE", codeRNE);
                         command.Parameters.AddWithValue("@Annee", annee);
@@ -28,7 +28,7 @@ namespace CG67.FicheCollege.Entrepot
                         {
                             while (dr.Read())
                             {
-                                resultat.Add(new ProjetPilote(dr["Libelle"].ToString()));
+                                resultat.Add(new ProjetPilote(dr["Libelle"].ToString(), dr.GetBoolean(dr.GetOrdinal("participer"))));
                             }
                         }
                     }

+ 1 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Service/ServiceFiche.cs

@@ -250,6 +250,7 @@ namespace CG67.FicheCollege.Service
                             case "Int32":
                             case "Double":
                             case "Single":
+                            case "Boolean":
                                 resultat.AppendChild(doc.CreateElement(pi.Name)).InnerXml = pi.GetValue(objet, null).ToString();
                                 break;
                             default: // sinon on le décompose recursivement

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

@@ -49,6 +49,8 @@
     <Content Include="Default.aspx" />
     <Content Include="FicheCollege.aspx" />
     <Content Include="GenerationFiche.aspx" />
+    <Content Include="images\logoCG67.gif" />
+    <Content Include="photo\untitled.bmp" />
     <Content Include="Web.config" />
     <Content Include="xml\Entete.xml" />
     <Content Include="xslt\FicheCollege.xslt" />

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

@@ -37,7 +37,7 @@
         -->
 
       <httpHandlers>
-        <add verb="*" path="*.histo" type="CG67.FicheCollege.HttpHandlerHistogramme, CG67.FicheCollege"/>
+        <add verb="GET,POST" path="*.histo" type="CG67.FicheCollege.HttpHandlerHistogramme, CG67.FicheCollege"/>
       </httpHandlers>
 
     </system.web>

+ 7 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/css/fichecollege.css

@@ -83,3 +83,10 @@ td
 	border-left: #ffd700 thin solid;
 	border-bottom: #ffd700 thin solid;
 }
+
+#catouche
+{
+	margin-top: 10px;
+	font-size: smaller;
+	font-family: Arial;
+}

BIN
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/images/logoCG67.gif


BIN
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/photo/untitled.bmp


+ 36 - 10
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -3,10 +3,18 @@
   <xsl:output method="html"   />
   <xsl:template match="college">
     <div id="conteneur">
+      <div>
+        <img src="images/logocg67.gif"></img>
+      </div>
     <h1>
-      <xsl:text>Collège </xsl:text><xsl:value-of select="Etablissement/NomCollegePourPresentation"/>
-      
+      <xsl:value-of select="Etablissement/NomCollegePourPresentation"/>      
     </h1>
+      <xsl:if test ="Etablissement/LienPhoto !=''">
+      <img id="photo">
+        <xsl:attribute name="src">photo/<xsl:value-of select="Etablissement/LienPhoto"/></xsl:attribute>
+        </img>
+      </xsl:if>
+      <!--
       <table>
         <colgroup>
           <col class="libelle"></col>
@@ -59,6 +67,7 @@
           </td>
         </tr>
     </table>      
+    -->
     <h2>1. Fiche d'identité du collège</h2>
     <table>
       <colgroup>
@@ -130,6 +139,10 @@
           <xsl:value-of select ="Etablissement/Restaurer"/>
         </td>
       </tr>
+      <tr>
+        <td>Internat</td>
+        <td></td>
+      </tr>
     </table>
     <h2>2. Structure Immobilière</h2>
     <table>
@@ -156,7 +169,7 @@
         </td>
       </tr>
       <tr>
-        <td>Superficie SHON</td>
+        <td>Surface SHON</td>
         <td>
           <xsl:value-of select="Etablissement/Surface"/> m2
         </td>
@@ -170,10 +183,10 @@
       </tr>
       -->
       <tr>
-        <td>Logement de fonction</td>
+        <td>Logements de fonction</td>
         <td>
 
-          <xsl:text>Nombre de logement </xsl:text><xsl:value-of select="Etablissement/Logement/NbrLogements"/>
+          <xsl:text>Nombre de logements </xsl:text><xsl:value-of select="Etablissement/Logement/NbrLogements"/>
           <xsl:text> dont </xsl:text>
           <xsl:value-of select="Etablissement/Logement/NbrAgentsLoges"/> agent(s) du CG logé(s)
         </td>
@@ -233,7 +246,7 @@
           <xsl:value-of select="Etablissement/PhraseSecteurRecrutement"/> </td>
       </tr>
       <tr>
-        <td>Observation sur le secteur de recrutement</td>
+        <td>Observations sur le secteur de recrutement</td>
         <td>
           <xsl:value-of select="Etablissement/CommentaireSecteurRecrutement"/>
         </td>
@@ -258,7 +271,7 @@
         </td>
       </tr>
     </table>
-    <h2>4. Intervention du Département</h2>    
+    <h2>4. Interventions remarquables du Département</h2>    
     <table>
       <colgroup>
         <col class="libelle"></col>
@@ -452,9 +465,11 @@
       </colgroup>
     <xsl:for-each select="Etablissement/LstProjetPilote/ProjetPilote">
       <tr>
-        <td></td>  
         <td>
           <xsl:value-of select="Libelle"/>
+        </td>  
+        <td>
+          <xsl:value-of select="Participe"/>
         </td>
         <td>
           
@@ -462,7 +477,7 @@
       </tr>
     </xsl:for-each>
     </table>
-    <h2>8. Quelques chiffres significatifs sur l'ensemble des collèges (à définir)</h2>
+    <h2>8. Quelques chiffres significatifs sur l'ensemble des collèges</h2>
     <table>
       <colgroup>
         <col class="libelle"></col>
@@ -494,12 +509,23 @@
       </tr>
 
     </table>
+      <div id="catouche">
+        <xsl:text>Editeur : </xsl:text>
+        <xsl:value-of select="entete/suiviepar/direction"/>
+        <br/>
+        <xsl:text>Contact : </xsl:text>
+        <xsl:value-of select="entete/suiviepar/nomprenom"/>
+        <xsl:text> Tél : </xsl:text>
+        <xsl:value-of select="entete/suiviepar/tel"/>
+        <br/>
+        Mise à jour : 12/10/2009       
+      </div>
     </div>  
   </xsl:template>
   
   <xsl:template match="Etablissement/LstEffectif">   
   <img alt="Evolution des effectifs">
-    <xsl:attribute name="src">dummy.histo?l=600&amp;h=400&amp;f=-64&amp;nb=<xsl:value-of select="count(Effectif)"></xsl:value-of>     
+    <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>     
       <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>
         <xsl:if test="TypeEffectif='P'">&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>=-65536&amp;t<xsl:value-of select ="position()"></xsl:value-of>=<xsl:value-of select="Annee"/></xsl:if>