[Suiviobsmer-commits] r747 - in trunk: wao-business/src/main/java/fr/ifremer/wao/bean wao-business/src/main/resources/i18n wao-business/src/main/xmi wao-ui/src/main/resources/fr/ifremer/wao/ui/components wao-ui/src/main/webapp
Author: bleny Date: 2010-11-08 15:44:00 +0000 (Mon, 08 Nov 2010) New Revision: 747 Log: misc UI fixes Modified: trunk/wao-business/src/main/java/fr/ifremer/wao/bean/GlobalSynthesisResultImpl.java trunk/wao-business/src/main/resources/i18n/wao-business-fr_FR.properties trunk/wao-business/src/main/xmi/wao.zargo trunk/wao-ui/src/main/resources/fr/ifremer/wao/ui/components/IndicatorLevels.tml trunk/wao-ui/src/main/webapp/SamplingPlan.tml trunk/wao-ui/src/main/webapp/Synthesis.tml Modified: trunk/wao-business/src/main/java/fr/ifremer/wao/bean/GlobalSynthesisResultImpl.java =================================================================== --- trunk/wao-business/src/main/java/fr/ifremer/wao/bean/GlobalSynthesisResultImpl.java 2010-11-08 10:13:56 UTC (rev 746) +++ trunk/wao-business/src/main/java/fr/ifremer/wao/bean/GlobalSynthesisResultImpl.java 2010-11-08 15:44:00 UTC (rev 747) @@ -36,9 +36,8 @@ return result; } - /** return a value between 1 and 6 */ @Override - public GlobalIndicatorValue getGlobalLevel() { + public Double getGlobalResult() { // compute an average with coefficients double totalLevels = 0.0; double totalCoefficients = 0.0; @@ -70,6 +69,13 @@ log.debug("value for global indicator = " + value); } + return value; + } + + /** return a value between 1 and 6 */ + @Override + public GlobalIndicatorValue getGlobalLevel() { + // in this indicator, the level is the ordinal of GlobalIndicatorValue Indicator globalIndicator = getGlobalSynthesisParameters().getGlobalIndicator(); @@ -81,7 +87,7 @@ } } - int globalIndicatorValueOrdinal = globalIndicator.getLevelForValue(value).getLevel(); + int globalIndicatorValueOrdinal = globalIndicator.getLevelForValue(getGlobalResult()).getLevel(); GlobalIndicatorValue result = GlobalIndicatorValue.valueOf(globalIndicatorValueOrdinal); if (log.isDebugEnabled()) { log.debug("global indicator value is " + result); Modified: trunk/wao-business/src/main/resources/i18n/wao-business-fr_FR.properties =================================================================== --- trunk/wao-business/src/main/resources/i18n/wao-business-fr_FR.properties 2010-11-08 10:13:56 UTC (rev 746) +++ trunk/wao-business/src/main/resources/i18n/wao-business-fr_FR.properties 2010-11-08 15:44:00 UTC (rev 747) @@ -2,11 +2,11 @@ wao.business.bean.DataReliability.not_reliable=non exploitable wao.business.bean.DataReliability.reliable=exploitable wao.business.bean.DataReliability.unknown=non renseign\u00E9e -wao.business.bean.GlobalIndicatorValue.bad=P\u00E9nalit\u00E9 1 -wao.business.bean.GlobalIndicatorValue.good=Bonus 1 -wao.business.bean.GlobalIndicatorValue.neutral=Rien \u00E0 signaler -wao.business.bean.GlobalIndicatorValue.very_bad=P\u00E9nalit\u00E9 2 -wao.business.bean.GlobalIndicatorValue.very_good=Bonus 2 +wao.business.bean.GlobalIndicatorValue.bad=P\u00E9nalit\u00E9 de niveau 1 +wao.business.bean.GlobalIndicatorValue.good=Bonus de niveau 1 +wao.business.bean.GlobalIndicatorValue.neutral=Conforme au cahier des charges +wao.business.bean.GlobalIndicatorValue.very_bad=P\u00E9nalit\u00E9 de niveau 2 +wao.business.bean.GlobalIndicatorValue.very_good=Bonus de niveau 2 wao.business.bean.SynthesisId.allegro_reactivity=D\u00E9lais de transmission des donn\u00E9es wao.business.bean.SynthesisId.compliance_boarding=Respect du nombre d'observateurs embarqu\u00E9s wao.business.bean.SynthesisId.contact_state=\u00C9tats des contacts Modified: trunk/wao-business/src/main/xmi/wao.zargo =================================================================== (Binary files differ) Modified: trunk/wao-ui/src/main/resources/fr/ifremer/wao/ui/components/IndicatorLevels.tml =================================================================== --- trunk/wao-ui/src/main/resources/fr/ifremer/wao/ui/components/IndicatorLevels.tml 2010-11-08 10:13:56 UTC (rev 746) +++ trunk/wao-ui/src/main/resources/fr/ifremer/wao/ui/components/IndicatorLevels.tml 2010-11-08 15:44:00 UTC (rev 747) @@ -27,7 +27,7 @@ <tr> <th /> <th colspan="${indicator.indicatorLevel.size()}">Indicateur : ${indicator.synthesisId.label}</th> - <th>coefficient</th> + <th>Pondération</th> </tr> <tr> <th>Niveaux</th> @@ -86,7 +86,9 @@ </tbody> </table> <t:if test="isWithLegend()"> - En jaune, la position actuelle de la société selon cet indicateur. + <div class="acenter"> + En jaune, la position actuelle de la société selon cet indicateur. + </div> </t:if> </html> \ No newline at end of file Modified: trunk/wao-ui/src/main/webapp/SamplingPlan.tml =================================================================== --- trunk/wao-ui/src/main/webapp/SamplingPlan.tml 2010-11-08 10:13:56 UTC (rev 746) +++ trunk/wao-ui/src/main/webapp/SamplingPlan.tml 2010-11-08 15:44:00 UTC (rev 747) @@ -327,13 +327,9 @@ </tr> </t:loop> <tr> - <td colspan="${nbColumnsTotal}" class="facade"> + <td colspan="${nbColumnsForProfession}" /> Totaux </td> - </tr> - <tr> - <td colspan="${nbColumnsForProfession}" /> - <t:loop source="months" value="month"> <td class="width50 acenter ${monthCurrentClass}"> ${totalExpectedForMonth} Modified: trunk/wao-ui/src/main/webapp/Synthesis.tml =================================================================== --- trunk/wao-ui/src/main/webapp/Synthesis.tml 2010-11-08 10:13:56 UTC (rev 746) +++ trunk/wao-ui/src/main/webapp/Synthesis.tml 2010-11-08 15:44:00 UTC (rev 747) @@ -111,12 +111,6 @@ </a> </li> <li> - <a t:type="actionlink" t:context="[actionSynthesisId,'IND_CONTACT_STATE']" t:zone="so-synthesis-main"> - <img src="${asset:context:}/img/synthesis-ind-contact-states.png" alt="Indicateur sur les états des contacts" - title="Indicateur sur les états des contacts" /> - </a> - </li> - <li> <a t:type="actionlink" t:context="[actionSynthesisId,'IND_ALLEGRO_REACTIVITY']" t:zone="so-synthesis-main"> <img src="${asset:context:}/img/synthesis-ind-allegro-reactivity.png" alt="Indicateur de réactivité sur la saisie des données dans Allegro" title="Indicateur de réactivité sur la saisie des données dans Allegro" /> @@ -136,6 +130,12 @@ </a> </li> </t:if> + <li> + <a t:type="actionlink" t:context="[actionSynthesisId,'IND_CONTACT_STATE']" t:zone="so-synthesis-main"> + <img src="${asset:context:}/img/synthesis-ind-contact-states.png" alt="Indicateur sur les états des contacts" + title="Indicateur sur les états des contacts" /> + </a> + </li> </ul> </div> <div t:type="zone" t:id="delegator" class="fleft" t:update="show" id="so-synthesis-main"> @@ -193,15 +193,14 @@ </t:block> <!-- IND1 : COMPLIANCE_BOARDING --> <t:block t:id="ind2"> - <h2>Respect du nombre d'observateurs embarqués</h2> - <br /> - <div class="ind-table acenter" id="so-noncomplianceboarding"> + <h2>Respect du nombre d'observateurs embarqués</h2> + <br /> + <p> + Respect du nombre prévu d'observateurs pour chaque marée réalisée. + </p> + <t:if t:test="user.admin"> - <p> - Ces résultats concernent l'ensemble des contrats en cours - ayant des données réelles (contacts validés). - </p> <table class="t-data-grid"> <thead> <tr> @@ -219,10 +218,6 @@ </tbody> </table> <p:else> - <p> - Ce résultat concerne l'ensemble des contrats en cours - pour votre société ayant des données réelles (contacts validés). - </p> <div class="indicator"> <p class="number"> <span t:type="output" t:value="complianceBoardingValue" t:format="percentFormat"> @@ -243,7 +238,7 @@ <!-- IND2 : CONTACT_STATE --> <t:block t:id="ind3"> <div class="ind-table acenter" id="so-contactstate"> - <h2>Etats des contacts</h2> + <h2>États des contacts</h2> <br /> <p> Ces résultats concernent l'ensemble des états des contacts<br /> excepté @@ -289,7 +284,7 @@ <h2>Réactivité de la saisie dans Allegro par rapport à la date de fin de la marée</h2> <br /> <p> - Ce résultat est une moyenne du nombre de jours entre la date de saisie dans Allegro et la date de fin de la marée des contacts validés. + Ce résultat est une moyenne du nombre de jours entre la date de saisie dans Allegro et la date de fin de la marée. </p> <br /> <t:if t:test="user.admin"> @@ -330,33 +325,25 @@ <div class="ind-table acenter" id="so-datareliability"> <h2>Qualité de la donnée</h2> <br /> - <t:if t:test="user.admin"> - <table class="t-data-grid"> - <thead> - <tr> - <th class="company">Société</th> - <th>Indicateur</th> - </tr> - </thead> - <tbody> - <tr t:type="loop" t:source="dataReliability.entrySet()" t:value="dataReliabilityEntry"> - <td class="company">${dataReliabilityEntry.key}</td> - <td class="number"> - <t:output t:value="dataReliabilityEntry.value" t:format="percentFormat"/> - </td> - </tr> - </tbody> - </table> - <p:else> - <div class="indicator"> - <p class="number"> - <span t:type="output" t:value="complianceBoardingValue" t:format="percentFormat"> - ${complianceBoardingValue} - </span> - </p> - </div> - </p:else> - </t:if> + <p> + Pourcentage du nombre de marées exploitables par rapport nombre de marée réalisées + </p> + <table class="t-data-grid"> + <thead> + <tr> + <th class="company">Société</th> + <th>Indicateur</th> + </tr> + </thead> + <tbody> + <tr t:type="loop" t:source="dataReliability.entrySet()" t:value="dataReliabilityEntry"> + <td class="company">${dataReliabilityEntry.key}</td> + <td class="number"> + <t:output t:value="dataReliabilityEntry.value" t:format="percentFormat"/> + </td> + </tr> + </tbody> + </table> <t:if test="user.indicatorsViewer"> <!-- now render a table with position on global synthesis --> @@ -368,7 +355,7 @@ <!-- GLOBAL SYNTHESIS --> <t:block t:id="globalSynthesis"> <t:if test="user.indicatorsViewer"> - <div class="print"> + <div class="print acenter"> <h2>Synthèse globale</h2> <br /> @@ -379,6 +366,12 @@ <table class="indicatorLevels"> <tbody> <tr> + <td colspan="5"> + Bilan de la synthèse global : + <t:output t:value="globalSynthesisResult.globalResult" t:format="numberFormat" /> + </td> + </tr> + <tr> <t:loop t:source="globalLevels" t:value="globalLevel"> <t:if test="highlightGlobalLevel()"> <td class="highlight selected">
participants (1)
-
bleny@users.labs.libre-entreprise.org