Dominique.freyd 16 years ago
parent
commit
56749083e1

+ 3 - 3
CG67.FicheCollege.root/CG67.FicheCollege/Core/CG67.FicheCollege.Entrepot/EntrepotLogement.cs

@@ -28,15 +28,15 @@ namespace CG67.FicheCollege.Entrepot
                             {
                                 resultat.NbrLogements += Convert.ToInt16(dr["NbrLogements"].ToString());
                                 // Si la fonction est de type ATC* (maintenance, entretien, etc...) on ajoute le nombre de logements au nombre d'agents logés (cf. requete)
-                                if ((String.Compare(dr["Fonction"].ToString().Substring(0, 3), "ATC")) == 0)
+                                if (dr["Fonction"].ToString().StartsWith ("ATC"))
                                     resultat.NbrAgentsLoges += Convert.ToInt16(dr["NbrLogements"].ToString());
                             }
                         }
                     }
                 }
-                catch (Exception erreurInterne)
+                catch 
                 {
-                    throw new Exception(" " + erreurInterne);
+                    throw;
                 }
                 finally
                 {

+ 5 - 5
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/css/fichecollege.css

@@ -69,7 +69,7 @@ body
 
 h2
 {
-	background-color: #ff9900;
+	background-color: #ffd700;
 }
 table
 {
@@ -78,8 +78,8 @@ table
 }
 td
 {
-	border-right: #ffcc33 thin solid;
-	border-top: #ffcc33 thin solid;
-	border-left: #ffcc33 thin solid;
-	border-bottom: #ffcc33 thin solid;
+	border-right: #ffd700 thin solid;
+	border-top: #ffd700 thin solid;
+	border-left: #ffd700 thin solid;
+	border-bottom: #ffd700 thin solid;
 }

+ 3 - 0
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xml/Entete.xml

@@ -9,4 +9,7 @@
     <fax>03 69 20 75 23</fax>
     <email>pascale.hauger@cg67.fr</email>
   </suiviepar>
+  <chiffresgeneraux>
+    
+  </chiffresgeneraux>
 </entete>

+ 43 - 12
CG67.FicheCollege.root/CG67.FicheCollege/Web/CG67.FicheCollege.Web/xslt/FicheCollege.xslt

@@ -156,7 +156,7 @@
         </td>
       </tr>
       <tr>
-        <td>Superficie d'emprise</td>
+        <td>Superficie SHON</td>
         <td>
           <xsl:value-of select="Etablissement/Surface"/> m2
         </td>
@@ -181,6 +181,7 @@
       <tr>
         <td>Programmation des travaux Maintenance de 2ième niveau (année n-1, n, n+1)</td>
         <td>
+          <xsl:if test="count(Etablissement/LstTravaux/child::*) >0">
           <table id="travaux">
             <colgroup>
               <col class="travannee"></col>
@@ -205,7 +206,12 @@
                 </td>
               </tr>
             </xsl:for-each>
-          </table>
+          </table>          
+          </xsl:if>
+          <xsl:if test="count(Etablissement/LstTravaux/child::*) =0">
+            néant
+          </xsl:if>
+            
         </td>
       </tr>
       <tr>
@@ -367,18 +373,43 @@
       <tr>
         <td>Liste nominative des agents</td>
         <td>
-          <table>
-            <xsl:for-each select="Etablissement/LstATC/ATC">
+          <xsl:if test ="count(Etablissement/LstATC/child::*)>0">
+            <table id="listeagents">
               <tr>
-                <td><xsl:value-of select="Nom"/></td>
-                <td><xsl:value-of select="Prenom"/></td>
-                <td><xsl:value-of select="ValeurETP"/></td>                
-                <td><xsl:value-of select="Categorie"/></td>
-                <td><xsl:value-of select="TypeContact"/></td>
-                <td><xsl:value-of select="Fonction"/></td>
+                <th class="bordure">Nom</th>
+                <th class="bordure">Prénom</th>
+                <th class="bordure">Valeur ETP</th>
+                <th class="bordure">Categorie</th>
+                <th class="bordure">Type</th>
+                <th class="bordure">Fonction</th>
               </tr>
-            </xsl:for-each>
-          </table>
+              <xsl:for-each select="Etablissement/LstATC/ATC">
+                <tr>
+                  <td class="bordure">
+                    <xsl:value-of select="Nom"/>
+                  </td>
+                  <td class="bordure">
+                    <xsl:value-of select="Prenom"/>
+                  </td>
+                  <td class="bordure">
+                    <xsl:value-of select="ValeurETP"/>
+                  </td>
+                  <td class="bordure">
+                    <xsl:value-of select="Categorie"/>
+                  </td>
+                  <td class="bordure">
+                    <xsl:value-of select="TypeContact"/>
+                  </td>
+                  <td class="bordure">
+                    <xsl:value-of select="Fonction"/>
+                  </td>
+                </tr>
+              </xsl:for-each>
+            </table>
+          </xsl:if>
+          <xsl:if test ="count(Etablissement/LstATC/child::*)=0">
+            néant
+          </xsl:if>
         </td>
         <!--
         <tr>