|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
<VUE name="ACTI000173" label="Activité. Evolution Comparative occupation" database="iCTI" swf="*CTI_view1" softCode="iCTI_activite" globals="ACTI_globals.XML" componentsFile="ACTI_components.XML" dboptimizer="ACTI_dboptimizer.XML" helpFile="iCTI_ACTI_ACTI000123.HTML" helpDokuWIkiDir="activite:occupation_sejours" helpDokuWIkiFile="acti000173">
|
|
|
|
|
|
<title><![CDATA[=
|
|
|
|
|
|
var group_by_label = '';
|
|
|
if (SELECT.GROUPBY != '-1') {
|
|
|
group_by_label = SELECT.GROUPBY_LABEL + ' et ';
|
|
|
}
|
|
|
if (SELECT.GROUPBY_2 != '-1') {
|
|
|
group_by_label = ' par ' + group_by_label + SELECT.GROUPBY_2_LABEL;
|
|
|
}
|
|
|
|
|
|
var date_label = '(' + 'N-1 : '+ VIEW.PERIODE_D_LABEL + ' à ' + VIEW.TOPERIODE_D_LABEL + ' vs ' + ' N : '+ SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')';
|
|
|
|
|
|
return 'Evolution Comparative occupation ' + group_by_label + ' ' + date_label;
|
|
|
|
|
|
]]> </title>
|
|
|
<VIEWPROPERTIES componentName="PROPERTIES_OCCUPATION"/>
|
|
|
<VIEWPROPERTIES>
|
|
|
<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value"/>
|
|
|
<PROPERTY name="GROUPBY_DATE">
|
|
|
<value>
|
|
|
<![CDATA[
|
|
|
[EVAL
|
|
|
switch ('[GROUPBY]') {
|
|
|
case 'ANNEE' : $s = 'JOURS'; break;
|
|
|
case 'TRIM' : $s = 'JOURS'; break;
|
|
|
case 'MOIS' : $s = 'JOURS'; break;
|
|
|
case 'NUMEROMOIS' : $s = 'JOURS'; break;
|
|
|
case 'NUMEROTRIM' : $s = 'JOURS'; break;
|
|
|
case 'SEMAINEWE' : $s = 'JOURS'; break;
|
|
|
case 'SEMAINEANNE' : $s = 'JOURS'; break;
|
|
|
case 'NUMEROJOUR' : $s = 'JOURS'; break;
|
|
|
case 'JOURS' : $s = 'JOURS'; break;
|
|
|
case 'JOUR' : $s = 'JOURS'; break;
|
|
|
|
|
|
|
|
|
default :
|
|
|
{$s = 'JOURS'; break;}
|
|
|
|
|
|
}
|
|
|
return $s;
|
|
|
EVAL]
|
|
|
]]>
|
|
|
</value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATAHEADERTEXT">
|
|
|
<value><![CDATA[[EVAL
|
|
|
// <?php
|
|
|
function ACTI000173_dataheadertext($DATA) {
|
|
|
switch ($DATA) {
|
|
|
case 'NED':
|
|
|
return "Nombre entrées directes hospitalisés";
|
|
|
break;
|
|
|
case 'NEM':
|
|
|
return "Nombre entrées et mutations";
|
|
|
break;
|
|
|
case 'NSD':
|
|
|
return "Nombre sorties directes hospitalisés";
|
|
|
break;
|
|
|
case 'NSM':
|
|
|
return "Nombre sorties et mutations";
|
|
|
break;
|
|
|
case 'NJN':
|
|
|
return "Nombre journées hospitalisés";
|
|
|
break;
|
|
|
case 'NJNS':
|
|
|
return "Nombre journées (Séjours sortis hospitalisés)";
|
|
|
break;
|
|
|
case 'NEX':
|
|
|
return "Nombre externes";
|
|
|
break;
|
|
|
case 'NPX':
|
|
|
return "Nombre passages externes";
|
|
|
break;
|
|
|
case 'NAM':
|
|
|
return "Nombre ambulatoires";
|
|
|
break;
|
|
|
case 'NEDA':
|
|
|
return "Nombre entrées + ambulatoires";
|
|
|
break;
|
|
|
case 'NSDA':
|
|
|
return "Nombre sorties + ambulatoires";
|
|
|
break;
|
|
|
case 'NEDXA':
|
|
|
return "Nombre entrées + ambulatoires + externes";
|
|
|
break;
|
|
|
case 'NSDXA':
|
|
|
return "Nombre sorties + ambulatoires + externes";
|
|
|
break;
|
|
|
case 'NSDXBB':
|
|
|
return "Nombre sorties + ambulatoires + bébés";
|
|
|
break;
|
|
|
case 'NJNXA':
|
|
|
return "Nombre journées + ambulatoires + externes";
|
|
|
break;
|
|
|
case 'NEDXAS':
|
|
|
return "Nombre entrées + ambulatoires + externes + séances";
|
|
|
break;
|
|
|
case 'NSDXAS':
|
|
|
return "Nombre sorties + ambulatoires + externes + séances";
|
|
|
break;
|
|
|
case 'NSDXASSH':
|
|
|
return "Nombre sorties + ambulatoires + externes + séances (hors hospit)";
|
|
|
break;
|
|
|
case 'NJNXAS':
|
|
|
return "Nombre journées + ambulatoires + externes + séances";
|
|
|
break;
|
|
|
case 'NSE':
|
|
|
return "Nombre séances";
|
|
|
break;
|
|
|
case 'NSEDIA':
|
|
|
return "Nombre séances Dialyse";
|
|
|
break;
|
|
|
case 'NSECHM':
|
|
|
return "Nombre séances Chimio";
|
|
|
break;
|
|
|
case 'NSEDIV':
|
|
|
return "Nombre séances Autres";
|
|
|
break;
|
|
|
case 'NBB':
|
|
|
return "Nombre bébés";
|
|
|
break;
|
|
|
case 'NBP':
|
|
|
return "Nombre patients";
|
|
|
break;
|
|
|
case 'NCP':
|
|
|
return "Nombre journées chambres particulières";
|
|
|
break;
|
|
|
case 'NJO':
|
|
|
return "Durée ouverture";
|
|
|
break;
|
|
|
case 'NJNM':
|
|
|
return "Nombre moyen journées";
|
|
|
break;
|
|
|
case 'NEXM':
|
|
|
return "Nombre moyen externes";
|
|
|
break;
|
|
|
case 'NAMM':
|
|
|
return "Nombre moyen ambulatoires";
|
|
|
break;
|
|
|
case 'NSEM':
|
|
|
return "Nombre moyen séances";
|
|
|
break;
|
|
|
case 'NSEMDIA':
|
|
|
return "Nombre moyen séances Dialyse";
|
|
|
break;
|
|
|
case 'NSEMCHI':
|
|
|
return "Nombre moyen séances Chimio";
|
|
|
break;
|
|
|
case 'NSEMAUT':
|
|
|
return "Nombre moyen séances Autres";
|
|
|
break;
|
|
|
case 'NJNXAM':
|
|
|
return "Nombre moyen journées + ambulatoires + externes";
|
|
|
break;
|
|
|
case 'TAU':
|
|
|
return "Taux occupation";
|
|
|
break;
|
|
|
case 'TAUHOSPI':
|
|
|
return "Taux occupation hospitalisés";
|
|
|
break;
|
|
|
case 'TAUAMBU':
|
|
|
return "Taux occupation ambulatoires";
|
|
|
break;
|
|
|
case 'NJNAS':
|
|
|
return "Nombre journées + ambulatoires + séances (hospitalisation)";
|
|
|
break;
|
|
|
case 'NAD':
|
|
|
return "Nombre admissions période";
|
|
|
break;
|
|
|
case 'NADPRE':
|
|
|
return "Nombre admissions < période";
|
|
|
break;
|
|
|
case 'NSEJ':
|
|
|
return "Nombre séjours";
|
|
|
break;
|
|
|
case 'NNONSOR':
|
|
|
return "Nombre séjours non sortis";
|
|
|
break;
|
|
|
case 'NSHP':
|
|
|
return "Nombre sorties hors période";
|
|
|
break;
|
|
|
case 'NFULL':
|
|
|
return "Nombre séjours entiers sur période";
|
|
|
break;
|
|
|
case 'NSFAC':
|
|
|
return "Nombre sorties facturées";
|
|
|
break;
|
|
|
case 'NSNFAC':
|
|
|
return "Nombre sorties non facturées";
|
|
|
break;
|
|
|
case 'JRNSORFAC':
|
|
|
return "Nombre journées hospitalisés facturées";
|
|
|
break;
|
|
|
case 'JRNSORHONFAC':
|
|
|
return "Nombre journées d'hospitalisation facturées";
|
|
|
break;
|
|
|
case 'DMSHES':
|
|
|
return "DMS hospitalisés";
|
|
|
break;
|
|
|
case 'DMSHON':
|
|
|
return "DMS hospitalisation (Hospit. + séances + ambulatoires)";
|
|
|
break;
|
|
|
case 'URG':
|
|
|
return "Nombre urgences";
|
|
|
break;
|
|
|
case 'EMC':
|
|
|
return "EMC";
|
|
|
break;
|
|
|
case 'PCP':
|
|
|
return "SUM($case_when [VIEW.CP_FIELD] $case_else)";
|
|
|
break;
|
|
|
case 'GMP':
|
|
|
return "GIR Moyen Pondéré";
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
return "0";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// ?>
|
|
|
EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="HEADERTEXT">
|
|
|
<value><![CDATA[[EVAL
|
|
|
// <?php
|
|
|
|
|
|
return
|
|
|
ACTI000173_dataheadertext('[DATA1]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA2]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA3]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA4]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA5]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA6]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA7]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA8]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA9]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA010]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA011]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA012]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA013]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA014]') .'|'.
|
|
|
ACTI000173_dataheadertext('[DATA015]') .'|'.
|
|
|
ACTI000173_dataheadertext('1');
|
|
|
|
|
|
// ?>
|
|
|
EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA1F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA1]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA1D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA1]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA2F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA2]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA2D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA2]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA3F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA3]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA3D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA3]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA4F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA4]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA4D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA4]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA5F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA5]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA5D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA5]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA6F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA6]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA6D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA6]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA7F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA7]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA7D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA7]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA8F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA8]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA8D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA8]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA9F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA9]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA9D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA9]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA10F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA10]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA10D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA10]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA11F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA011]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA11D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA011]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA12F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA012]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA12D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA012]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA13F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA013]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA13D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA013]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA14F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA014]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA14D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA014]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA15F">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA015]', 0, "date BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "[PERIODE]", "[TOPERIODE]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATA15D">
|
|
|
<value><![CDATA[[EVAL return ACTI_MOUVEMENT_data('[DATA015]', 0, "date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "[VIEW.PERIODE_D]", "[VIEW.TOPERIODE_D]"); EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="RGB_FIELD_COD">
|
|
|
<value>
|
|
|
<![CDATA[
|
|
|
[EVAL
|
|
|
return "NUMEROMOIS";
|
|
|
EVAL]
|
|
|
]]>
|
|
|
</value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="NB_MOIS">
|
|
|
<value>
|
|
|
<![CDATA[
|
|
|
[EVAL
|
|
|
$filds1='[PERIODE]';
|
|
|
$filds2='[TOPERIODE]';
|
|
|
$DIFF= (int)(substr($filds2, 5, 2)) - (int)(substr($filds1, 5, 2));
|
|
|
for($i=(int)(substr($filds1, 5, 2));$i<=(int)(substr($filds2, 5, 2));$i++){
|
|
|
$tab.='|'.$i;
|
|
|
}
|
|
|
return $tab;
|
|
|
EVAL]
|
|
|
]]>
|
|
|
</value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="NB_DATA">
|
|
|
<value>
|
|
|
<![CDATA[
|
|
|
[EVAL
|
|
|
$maxdata = 5;
|
|
|
if('[DATA2]' != '0' ) {$maxdata = 10;}
|
|
|
if('[DATA3]' != '0' ) {$maxdata = 15;}
|
|
|
if('[DATA4]' != '0' ) {$maxdata = 20;}
|
|
|
if('[DATA5]' != '0' ) {$maxdata = 25;}
|
|
|
if('[DATA6]' != '0' ) {$maxdata = 30;}
|
|
|
if('[DATA7]' != '0' ) {$maxdata = 35;}
|
|
|
if('[DATA8]' != '0' ) {$maxdata = 40;}
|
|
|
if('[DATA9]' != '0' ) {$maxdata = 45;}
|
|
|
if('[DATA10]' != '0' ) {$maxdata = 50;}
|
|
|
if('[DATA011]' != '0' ) {$maxdata = 55;}
|
|
|
if('[DATA012]' != '0' ) {$maxdata = 60;}
|
|
|
if('[DATA013]' != '0' ) {$maxdata = 65;}
|
|
|
if('[DATA014]' != '0' ) {$maxdata = 70;}
|
|
|
if('[DATA015]' != '0' ) {$maxdata = 75;}
|
|
|
return $maxdata;
|
|
|
EVAL]
|
|
|
]]>
|
|
|
</value>
|
|
|
</PROPERTY>
|
|
|
</VIEWPROPERTIES>
|
|
|
<SELECTIONS label="Paramètres de l'analyse">
|
|
|
<GROUP>
|
|
|
<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
|
|
|
<FIELD name="PERIODE" label="Période" UI="combo" tree="true" width="150" default="2009-01-01" globalListProvider="DATE_DEBUT">
|
|
|
</FIELD>
|
|
|
<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="150" default="2009-01-31" globalListProvider="DATE_FIN">
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="Comparer avec">
|
|
|
<FIELD name="TYPE_COMPARAISON" label="" UI="combo" default="2" width="200" visible="false">
|
|
|
<OPTION label="Année précédente" data="2" />
|
|
|
</FIELD>
|
|
|
<FIELD name="PERIODE_D" label="De" UI="combo" tree="true" width="150" default="2008-01-01" globalListProvider="DATE_DEBUT" visible="= SELECT.TYPE_COMPARAISON == 'S'">
|
|
|
</FIELD>
|
|
|
<FIELD name="TOPERIODE_D" label="à" UI="combo" tree="true" width="150" default="2008-01-31" globalListProvider="DATE_FIN" visible="= SELECT.TYPE_COMPARAISON == 'S'">
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP>
|
|
|
<FIELD name="GROUPBY" label="Arborescence" UI="combo" width="300" default="-1" tree="true">
|
|
|
<OPTION label="" data="-1"/>
|
|
|
<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="GROUPBY_TAB" width="100" label="Présentation" UI="combo" default="TAB" value="TAB" visible="false">
|
|
|
<OPTION label="Onglet" data="TAB"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP>
|
|
|
<FIELD name="GROUPBY_2" label="Périodicité" UI="combo" width="300" default="NUMEROMOIS" value="return 'NUMEROMOIS';" tree="true">
|
|
|
<OPTION label="Mois d'occupation" data="NUMEROMOIS" treeLevel="1"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="Données">
|
|
|
<FIELD name="DATA1" label="Données" UI="combo" width="400" default="NED" default2="0" tree="true">
|
|
|
<OPTION label="Options" data="" globalListProvider="DATA_OCCUPATION" />
|
|
|
</FIELD>
|
|
|
<FIELD name="DATA2" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA1 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP>
|
|
|
<FIELD name="LGROUPBY" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
|
|
|
<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="LGROUPBY_2" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
|
|
|
<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="LGROUPBY_3" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
|
|
|
<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="DATA3" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA1 != '0') && ( SELECT.DATA2 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="DATA4" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="DATA5" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="DATA6" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="DATA7" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="DATA8" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="DATA9" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0') && ( SELECT.DATA8 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="DATA10" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0') && ( SELECT.DATA8 != '0') && ( SELECT.DATA9 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="DATA011" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0') && ( SELECT.DATA8 != '0') && ( SELECT.DATA9 != '0') && ( SELECT.DATA10 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="DATA012" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0') && ( SELECT.DATA8 != '0') && ( SELECT.DATA9 != '0') && ( SELECT.DATA10 != '0') && ( SELECT.DATA11 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="DATA013" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0') && ( SELECT.DATA8 != '0') && ( SELECT.DATA9 != '0') && ( SELECT.DATA10 != '0') && ( SELECT.DATA011 != '0') && ( SELECT.DATA012 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="DATA014" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0') && ( SELECT.DATA8 != '0') && ( SELECT.DATA9 != '0') && ( SELECT.DATA10 != '0') && ( SELECT.DATA011 != '0') && ( SELECT.DATA012 != '0') && ( SELECT.DATA013 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="DATA015" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') && ( SELECT.DATA2 != '0') && ( SELECT.DATA1 != '0') && ( SELECT.DATA4 != '0') && ( SELECT.DATA5 != '0') && ( SELECT.DATA6 != '0') && ( SELECT.DATA7 != '0') && ( SELECT.DATA8 != '0') && ( SELECT.DATA9 != '0') && ( SELECT.DATA10 != '0') && ( SELECT.DATA011 != '0') && ( SELECT.DATA012 != '0') && ( SELECT.DATA013 != '0') && ( SELECT.DATA014 != '0')">
|
|
|
<OPTION label="" data="0"/>
|
|
|
<OPTION label="DATA_OCCUPATION" data="" globalListProvider="DATA_OCCUPATION"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
</SELECTIONS>
|
|
|
|
|
|
<SELECTIONS componentName="DAYS_SELECTIONS" />
|
|
|
|
|
|
<SELECTIONS label="Modes de calcul" displayText="= var display:String = '';
|
|
|
display = display + 'Modes de calcul : #B#' + SELECT.QPLACES_LABEL + '. ' + VIEW.OPTADM_DAYOUT + '#/B#';
|
|
|
return display;
|
|
|
">
|
|
|
<GROUP label="Modes">
|
|
|
<FIELD name="QPLACES" label="" width="200" UI="combo" default="OUV">
|
|
|
<OPTION data="OUV" label="Lits et box ouverts"/>
|
|
|
<OPTION data="THEO" label="Lits et box théoriques"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="QJMUT" label="" UI="combo" default="f">
|
|
|
<OPTION data="d" label="Si mutation, journée affectée à la premiere localisation"/>
|
|
|
<OPTION data="f" label="Si mutation, journée affectée à la dernière localisation"/>
|
|
|
<OPTION data="12" label="Si mutation, journée affectée à la localisation occupée à 12h"/>
|
|
|
<OPTION data="prorata" label="Si mutation, journée affectée au prorata du temps passé"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
</SELECTIONS>
|
|
|
<SELECTIONS componentName="FILTRES_OCCUPATION_SOUSSELECTIONS"/>
|
|
|
<SELECTIONS componentName="FILTRES_MOUVEMENTS_SELECTIONS"/>
|
|
|
<SELECTIONS componentName="FILTRES_SEJOURS_SELECTIONS"/>
|
|
|
<SELECTIONS componentName="FILTRES_PATIENTS_SELECTIONS" />
|
|
|
<SELECTIONS componentName="FILTRES_PASSAGES_SELECTIONS" />
|
|
|
|
|
|
<QUERIES>
|
|
|
<QUERY label="">
|
|
|
<SQL>
|
|
|
<select><![CDATA[
|
|
|
|
|
|
|
|
|
CTIPREPAR_TREE
|
|
|
WORKTABLE{acti000056_places}
|
|
|
GROUPBY1{[VIEW.GROUPBY_PLACES_OID_FIELD],, [VIEW.GROUPBY_PLACES_COD_FIELD],, [VIEW.GROUPBY_PLACES_TXT_FIELD]}
|
|
|
GROUPBY1MODE{[GROUPBY_TAB]}
|
|
|
GROUPBY2{[VIEW.GROUPBY_2_PLACES_OID_FIELD],, [VIEW.GROUPBY_2_PLACES_COD_FIELD],, [VIEW.GROUPBY_2_PLACES_TXT_FIELD]}
|
|
|
GROUPBY3{[VIEW.GROUPBY_3_PLACES_OID_FIELD],, [VIEW.GROUPBY_3_PLACES_COD_FIELD],, [VIEW.GROUPBY_3_PLACES_TXT_FIELD]}
|
|
|
INDICATORS{
|
|
|
SUM(CASE WHEN date = '[TOPERIODE]' THEN v_places_1.nb_lits_theoriques ELSE 0 END),,
|
|
|
|
|
|
SUM(CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
SUM(CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
SUM(CASE WHEN date BETWEEN date_trunc('month','[TOPERIODE]'::date) AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
SUM(CASE WHEN date BETWEEN date_trunc('month','[VIEW.TOPERIODE_D]'::date) AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[TOPERIODE]'::date) AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[VIEW.TOPERIODE_D]'::date) AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' THEN date ELSE NULL END),,
|
|
|
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[TOPERIODE]'::date) AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[VIEW.TOPERIODE_D]'::date) AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN date ELSE NULL END),,
|
|
|
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_externes = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_externes = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[TOPERIODE]'::date) AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_externes = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[VIEW.TOPERIODE_D]'::date) AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_externes = '1' THEN date ELSE NULL END),,
|
|
|
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[TOPERIODE]'::date) AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[VIEW.TOPERIODE_D]'::date) AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN date ELSE NULL END),,
|
|
|
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_seances = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_seances = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[TOPERIODE]'::date) AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_seances = '1' THEN date ELSE NULL END),,
|
|
|
COUNT(DISTINCT CASE WHEN date BETWEEN date_trunc('month','[VIEW.TOPERIODE_D]'::date) AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_seances = '1' THEN date ELSE NULL END),,
|
|
|
|
|
|
SUM(CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
SUM(CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
|
|
|
SUM(CASE WHEN date BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
SUM(CASE WHEN date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE NULL END),,
|
|
|
|
|
|
}
|
|
|
|
|
|
FROM activite.v_places_1
|
|
|
WHERE
|
|
|
(date BETWEEN '[PERIODE]' AND '[TOPERIODE]' or date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]')
|
|
|
[VIEW.ETAGE_PLACES_SELECT]
|
|
|
|
|
|
]]> </select>
|
|
|
</SQL>
|
|
|
|
|
|
<SQL optimizer="V_SEJOURS_X" optimizer2="V_MOUVEMENTS_SEJOUR_X">
|
|
|
<select><![CDATA[
|
|
|
|
|
|
CTISELECT_TREE
|
|
|
[EVAL
|
|
|
if('[GROUPBY]' != '-1'){
|
|
|
return "
|
|
|
GROUPBY1{[VIEW.GROUPBY_OID_FIELD],, [VIEW.GROUPBY_COD_FIELD],, [VIEW.GROUPBY_TXT_FIELD]}
|
|
|
GROUPBY1MODE{[GROUPBY_TAB]}
|
|
|
GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if('[GROUPBY]' == '-1'){
|
|
|
return "
|
|
|
GROUPBY1{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
|
|
|
GROUPBY1MODE{[GROUPBY_TAB]}
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
|
|
|
|
|
|
INDICATORS{
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA1F],0),,
|
|
|
COALESCE([VIEW.DATA1D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA2F],0),,
|
|
|
COALESCE([VIEW.DATA2D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA3F],0),,
|
|
|
COALESCE([VIEW.DATA3D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA4F],0),,
|
|
|
COALESCE([VIEW.DATA4D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA5F],0),,
|
|
|
COALESCE([VIEW.DATA5D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA6F],0),,
|
|
|
COALESCE([VIEW.DATA6D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA7F],0),,
|
|
|
COALESCE([VIEW.DATA7D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA8F],0),,
|
|
|
COALESCE([VIEW.DATA8D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA9F],0),,
|
|
|
COALESCE([VIEW.DATA9D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA10F],0),,
|
|
|
COALESCE([VIEW.DATA10D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA11F],0),,
|
|
|
COALESCE([VIEW.DATA11D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA12F],0),,
|
|
|
COALESCE([VIEW.DATA12D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA13F],0),,
|
|
|
COALESCE([VIEW.DATA13D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA14F],0),,
|
|
|
COALESCE([VIEW.DATA14D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA15F],0),,
|
|
|
COALESCE([VIEW.DATA15D],0),,
|
|
|
0,,
|
|
|
0
|
|
|
}
|
|
|
FROM #V_SEJOURS_X#
|
|
|
JOIN #V_MOUVEMENTS_SEJOUR_X# ON v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour
|
|
|
WHERE
|
|
|
(date BETWEEN '[PERIODE]' AND '[TOPERIODE]' or date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]')
|
|
|
[VIEW.SEJOURS_SELECT] [VIEW.PATIENTS_SELECT]
|
|
|
[VIEW.MOUVEMENTS_SELECT] AND est_mouvement_previsionnel <> '1'
|
|
|
[VIEW.JOURS_SELECT]
|
|
|
[VIEW.PASSAGES_SELECT]
|
|
|
AND v_sejours_1.type_sejour <> '9'
|
|
|
|
|
|
AFTER{
|
|
|
|
|
|
UPDATE w_table SET
|
|
|
indicateurs[1] = acti000056_places.indicateurs[1]
|
|
|
[EVAL
|
|
|
if ('[DATA1]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA1]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[3] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
|
|
|
[EVAL
|
|
|
if ('[DATA2]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA2]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[7] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
|
|
|
[EVAL
|
|
|
if ('[DATA3]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA3]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[11] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA4]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA4]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[15] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA5]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA5]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[19] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA6]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA6]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[23] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA7]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA7]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[27] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA8]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA8]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[31] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA9]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA9]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[35] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA10]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA10]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[39] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA011]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA011]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[43] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA012]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA012]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[47] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA013]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA013]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[51] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA014]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA014]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[55] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA015]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA015]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[59] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
FROM acti000056_places
|
|
|
WHERE
|
|
|
(acti000056_places.oidt = w_table.oidt OR acti000056_places.oidt = -111) AND
|
|
|
(acti000056_places.oid1 = w_table.oid1 OR acti000056_places.oid1 = -111) AND
|
|
|
(acti000056_places.oid2 = w_table.oid2 OR acti000056_places.oid2 = -111) AND
|
|
|
(acti000056_places.oid3 = w_table.oid3 OR acti000056_places.oid3 = -111)
|
|
|
|
|
|
.,
|
|
|
|
|
|
UPDATE w_table SET
|
|
|
indicateurs[4] = indicateurs[2] - indicateurs[3],
|
|
|
indicateurs[5] = base.cti_division(indicateurs[2] - indicateurs[3] , indicateurs[3]) * 100,
|
|
|
indicateurs[8] = indicateurs[6] - indicateurs[7],
|
|
|
indicateurs[9] = base.cti_division(indicateurs[6] - indicateurs[7] , indicateurs[7]) * 100,
|
|
|
indicateurs[12] = indicateurs[10] - indicateurs[11],
|
|
|
indicateurs[13] = base.cti_division(indicateurs[10] - indicateurs[11] , indicateurs[11]) * 100,
|
|
|
indicateurs[16] = indicateurs[14] - indicateurs[15],
|
|
|
indicateurs[17] = base.cti_division(indicateurs[14] - indicateurs[15] , indicateurs[15]) * 100,
|
|
|
indicateurs[20] = indicateurs[18] - indicateurs[19],
|
|
|
indicateurs[21] = base.cti_division(indicateurs[18] - indicateurs[19] , indicateurs[19]) * 100,
|
|
|
indicateurs[24] = indicateurs[22] - indicateurs[23],
|
|
|
indicateurs[25] = base.cti_division(indicateurs[22] - indicateurs[23] , indicateurs[23]) * 100,
|
|
|
indicateurs[28] = indicateurs[26] - indicateurs[27],
|
|
|
indicateurs[29] = base.cti_division(indicateurs[26] - indicateurs[27] , indicateurs[27]) * 100,
|
|
|
indicateurs[32] = indicateurs[30] - indicateurs[31],
|
|
|
indicateurs[33] = base.cti_division(indicateurs[30] - indicateurs[31] , indicateurs[31]) * 100,
|
|
|
indicateurs[36] = indicateurs[34] - indicateurs[35],
|
|
|
indicateurs[37] = base.cti_division(indicateurs[34] - indicateurs[35] , indicateurs[35]) * 100,
|
|
|
indicateurs[40] = indicateurs[38] - indicateurs[39],
|
|
|
indicateurs[41] = base.cti_division(indicateurs[38] - indicateurs[39] , indicateurs[39]) * 100,
|
|
|
indicateurs[44] = indicateurs[42] - indicateurs[43],
|
|
|
indicateurs[45] = base.cti_division(indicateurs[42] - indicateurs[43] , indicateurs[43]) * 100,
|
|
|
indicateurs[48] = indicateurs[46] - indicateurs[47],
|
|
|
indicateurs[49] = base.cti_division(indicateurs[46] - indicateurs[47] , indicateurs[47]) * 100,
|
|
|
indicateurs[52] = indicateurs[50] - indicateurs[51],
|
|
|
indicateurs[53] = base.cti_division(indicateurs[50] - indicateurs[51] , indicateurs[51]) * 100,
|
|
|
indicateurs[56] = indicateurs[54] - indicateurs[55],
|
|
|
indicateurs[57] = base.cti_division(indicateurs[54] - indicateurs[55] , indicateurs[55]) * 100,
|
|
|
indicateurs[60] = indicateurs[58] - indicateurs[59],
|
|
|
indicateurs[61] = base.cti_division(indicateurs[58] - indicateurs[59] , indicateurs[59]) * 100
|
|
|
}
|
|
|
;
|
|
|
DELETE FROM w_table WHERE oidt = -9999999 ;
|
|
|
|
|
|
/**** Query ****/
|
|
|
CREATE EXTENSION IF NOT EXISTS tablefunc;
|
|
|
|
|
|
/*** parsing string header text ****/
|
|
|
DROP TABLE IF EXISTS w_header;
|
|
|
CREATE TEMP TABLE w_header AS
|
|
|
SELECT string_to_array('[VIEW.HEADERTEXT]','|') as libelle
|
|
|
;
|
|
|
|
|
|
/* DATA 1 */
|
|
|
DROP TABLE IF EXISTS w_temp0;
|
|
|
CREATE TEMP TABLE w_temp0 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp0 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp0 ADD COLUMN rang int;
|
|
|
update w_temp0 SET libellé = w_header.libelle[1]
|
|
|
FROM w_header;
|
|
|
update w_temp0 SET rang = 0;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp1;
|
|
|
CREATE TEMP TABLE w_temp1 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[3] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp1 ADD COLUMN libellé text;
|
|
|
update w_temp1 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp1 ADD COLUMN rang int;
|
|
|
update w_temp1 SET rang = 1;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp2;
|
|
|
CREATE TEMP TABLE w_temp2 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[2] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp2 ADD COLUMN libellé text;
|
|
|
update w_temp2 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp2 ADD COLUMN rang int;
|
|
|
update w_temp2 SET rang = 2;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp3;
|
|
|
CREATE TEMP TABLE w_temp3 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[4] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp3 ADD COLUMN libellé text;
|
|
|
update w_temp3 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp3 ADD COLUMN rang int;
|
|
|
update w_temp3 SET rang = 3;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp4;
|
|
|
CREATE TEMP TABLE w_temp4 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[5] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp4 ADD COLUMN libellé text;
|
|
|
update w_temp4 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp4 ADD COLUMN rang int;
|
|
|
update w_temp4 SET rang = 4;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp5;
|
|
|
CREATE TEMP TABLE w_temp5 AS
|
|
|
select * from w_temp0
|
|
|
union
|
|
|
select * from w_temp2
|
|
|
union
|
|
|
select * from w_temp1
|
|
|
UNION
|
|
|
select * from w_temp4
|
|
|
UNION
|
|
|
select * from w_temp3;
|
|
|
|
|
|
/* DATA 2 */
|
|
|
DROP TABLE IF EXISTS w_temp6;
|
|
|
CREATE TEMP TABLE w_temp6 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp6 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp6 ADD COLUMN rang int;
|
|
|
update w_temp6 SET libellé = w_header.libelle[2]
|
|
|
FROM w_header;
|
|
|
update w_temp6 SET rang = 5;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp7;
|
|
|
CREATE TEMP TABLE w_temp7 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[7] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp7 ADD COLUMN libellé text;
|
|
|
update w_temp7 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp7 ADD COLUMN rang int;
|
|
|
update w_temp7 SET rang = 6;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp8;
|
|
|
CREATE TEMP TABLE w_temp8 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[6] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp8 ADD COLUMN libellé text;
|
|
|
update w_temp8 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp8 ADD COLUMN rang int;
|
|
|
update w_temp8 SET rang = 7;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp9;
|
|
|
CREATE TEMP TABLE w_temp9 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[8] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp9 ADD COLUMN libellé text;
|
|
|
update w_temp9 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp9 ADD COLUMN rang int;
|
|
|
update w_temp9 SET rang = 8;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp10;
|
|
|
CREATE TEMP TABLE w_temp10 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[9] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp10 ADD COLUMN libellé text;
|
|
|
update w_temp10 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp10 ADD COLUMN rang int;
|
|
|
update w_temp10 SET rang = 9;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp11;
|
|
|
CREATE TEMP TABLE w_temp11 AS
|
|
|
select * from w_temp6
|
|
|
union
|
|
|
select * from w_temp7
|
|
|
union
|
|
|
select * from w_temp8
|
|
|
UNION
|
|
|
select * from w_temp9
|
|
|
UNION
|
|
|
select * from w_temp10;
|
|
|
|
|
|
/* DATA 3 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp12;
|
|
|
CREATE TEMP TABLE w_temp12 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp12 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp12 ADD COLUMN rang int;
|
|
|
update w_temp12 SET libellé = w_header.libelle[3]
|
|
|
FROM w_header;
|
|
|
update w_temp12 SET rang = 10;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp13;
|
|
|
CREATE TEMP TABLE w_temp13 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[11] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp13 ADD COLUMN libellé text;
|
|
|
update w_temp13 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp13 ADD COLUMN rang int;
|
|
|
update w_temp13 SET rang = 11;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp14;
|
|
|
CREATE TEMP TABLE w_temp14 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[10] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp14 ADD COLUMN libellé text;
|
|
|
update w_temp14 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp14 ADD COLUMN rang int;
|
|
|
update w_temp14 SET rang = 12;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp15;
|
|
|
CREATE TEMP TABLE w_temp15 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[12] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp15 ADD COLUMN libellé text;
|
|
|
update w_temp15 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp15 ADD COLUMN rang int;
|
|
|
update w_temp15 SET rang = 13;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp16;
|
|
|
CREATE TEMP TABLE w_temp16 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[13] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp16 ADD COLUMN libellé text;
|
|
|
update w_temp16 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp16 ADD COLUMN rang int;
|
|
|
update w_temp16 SET rang = 14;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp17;
|
|
|
CREATE TEMP TABLE w_temp17 AS
|
|
|
select * from w_temp12
|
|
|
union
|
|
|
select * from w_temp13
|
|
|
union
|
|
|
select * from w_temp14
|
|
|
UNION
|
|
|
select * from w_temp15
|
|
|
UNION
|
|
|
select * from w_temp16;
|
|
|
|
|
|
|
|
|
|
|
|
--data 4
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp18;
|
|
|
CREATE TEMP TABLE w_temp18 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp18 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp18 ADD COLUMN rang int;
|
|
|
update w_temp18 SET libellé = w_header.libelle[4]
|
|
|
FROM w_header;
|
|
|
update w_temp18 SET rang = 15;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp19;
|
|
|
CREATE TEMP TABLE w_temp19 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[15] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp19 ADD COLUMN libellé text;
|
|
|
update w_temp19 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp19 ADD COLUMN rang int;
|
|
|
update w_temp19 SET rang = 16;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp20;
|
|
|
CREATE TEMP TABLE w_temp20 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[14] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp20 ADD COLUMN libellé text;
|
|
|
update w_temp20 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp20 ADD COLUMN rang int;
|
|
|
update w_temp20 SET rang = 17;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp21;
|
|
|
CREATE TEMP TABLE w_temp21 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[16] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp21 ADD COLUMN libellé text;
|
|
|
update w_temp21 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp21 ADD COLUMN rang int;
|
|
|
update w_temp21 SET rang = 18;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp22;
|
|
|
CREATE TEMP TABLE w_temp22 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[17] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp22 ADD COLUMN libellé text;
|
|
|
update w_temp22 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp22 ADD COLUMN rang int;
|
|
|
update w_temp22 SET rang = 19;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp23;
|
|
|
CREATE TEMP TABLE w_temp23 AS
|
|
|
select * from w_temp18
|
|
|
union
|
|
|
select * from w_temp19
|
|
|
union
|
|
|
select * from w_temp20
|
|
|
UNION
|
|
|
select * from w_temp21
|
|
|
UNION
|
|
|
select * from w_temp22;
|
|
|
/* data 5 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp24;
|
|
|
CREATE TEMP TABLE w_temp24 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp24 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp24 ADD COLUMN rang int;
|
|
|
update w_temp24 SET libellé = w_header.libelle[5]
|
|
|
FROM w_header;
|
|
|
update w_temp24 SET rang = 20;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp25;
|
|
|
CREATE TEMP TABLE w_temp25 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[19] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp25 ADD COLUMN libellé text;
|
|
|
update w_temp25 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp25 ADD COLUMN rang int;
|
|
|
update w_temp25 SET rang = 21;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp26;
|
|
|
CREATE TEMP TABLE w_temp26 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[18] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp26 ADD COLUMN libellé text;
|
|
|
update w_temp26 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp26 ADD COLUMN rang int;
|
|
|
update w_temp26 SET rang = 22;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp27;
|
|
|
CREATE TEMP TABLE w_temp27 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[20] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp27 ADD COLUMN libellé text;
|
|
|
update w_temp27 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp27 ADD COLUMN rang int;
|
|
|
update w_temp27 SET rang = 23;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp28;
|
|
|
CREATE TEMP TABLE w_temp28 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[21] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp28 ADD COLUMN libellé text;
|
|
|
update w_temp28 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp28 ADD COLUMN rang int;
|
|
|
update w_temp28 SET rang = 24;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp29;
|
|
|
CREATE TEMP TABLE w_temp29 AS
|
|
|
select * from w_temp24
|
|
|
union
|
|
|
select * from w_temp25
|
|
|
union
|
|
|
select * from w_temp26
|
|
|
UNION
|
|
|
select * from w_temp27
|
|
|
UNION
|
|
|
select * from w_temp28;
|
|
|
|
|
|
/* data 6 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp30;
|
|
|
CREATE TEMP TABLE w_temp30 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp30 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp30 ADD COLUMN rang int;
|
|
|
update w_temp30 SET libellé = w_header.libelle[6]
|
|
|
FROM w_header;
|
|
|
update w_temp30 SET rang = 25;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp31;
|
|
|
CREATE TEMP TABLE w_temp31 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[23] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp31 ADD COLUMN libellé text;
|
|
|
update w_temp31 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp31 ADD COLUMN rang int;
|
|
|
update w_temp31 SET rang = 26;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp32;
|
|
|
CREATE TEMP TABLE w_temp32 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[22] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp32 ADD COLUMN libellé text;
|
|
|
update w_temp32 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp32 ADD COLUMN rang int;
|
|
|
update w_temp32 SET rang = 27;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp33;
|
|
|
CREATE TEMP TABLE w_temp33 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[24] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp33 ADD COLUMN libellé text;
|
|
|
update w_temp33 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp33 ADD COLUMN rang int;
|
|
|
update w_temp33 SET rang = 28;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp34;
|
|
|
CREATE TEMP TABLE w_temp34 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[25] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp34 ADD COLUMN libellé text;
|
|
|
update w_temp34 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp34 ADD COLUMN rang int;
|
|
|
update w_temp34 SET rang = 29;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp35;
|
|
|
CREATE TEMP TABLE w_temp35 AS
|
|
|
select * from w_temp30
|
|
|
union
|
|
|
select * from w_temp31
|
|
|
union
|
|
|
select * from w_temp32
|
|
|
UNION
|
|
|
select * from w_temp33
|
|
|
UNION
|
|
|
select * from w_temp34;
|
|
|
/* data 7 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp36;
|
|
|
CREATE TEMP TABLE w_temp36 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp36 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp36 ADD COLUMN rang int;
|
|
|
update w_temp36 SET libellé = w_header.libelle[7]
|
|
|
FROM w_header;
|
|
|
update w_temp36 SET rang = 30;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp37;
|
|
|
CREATE TEMP TABLE w_temp37 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[27] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp37 ADD COLUMN libellé text;
|
|
|
update w_temp37 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp37 ADD COLUMN rang int;
|
|
|
update w_temp37 SET rang = 31;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp38;
|
|
|
CREATE TEMP TABLE w_temp38 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[26] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp38 ADD COLUMN libellé text;
|
|
|
update w_temp38 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp38 ADD COLUMN rang int;
|
|
|
update w_temp38 SET rang = 32;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp39;
|
|
|
CREATE TEMP TABLE w_temp39 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[28] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp39 ADD COLUMN libellé text;
|
|
|
update w_temp39 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp39 ADD COLUMN rang int;
|
|
|
update w_temp39 SET rang = 33;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp40;
|
|
|
CREATE TEMP TABLE w_temp40 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[29] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp40 ADD COLUMN libellé text;
|
|
|
update w_temp40 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp40 ADD COLUMN rang int;
|
|
|
update w_temp40 SET rang = 34;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp41;
|
|
|
CREATE TEMP TABLE w_temp41 AS
|
|
|
select * from w_temp36
|
|
|
union
|
|
|
select * from w_temp37
|
|
|
union
|
|
|
select * from w_temp38
|
|
|
UNION
|
|
|
select * from w_temp39
|
|
|
UNION
|
|
|
select * from w_temp40;
|
|
|
|
|
|
/* data 8 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp42;
|
|
|
CREATE TEMP TABLE w_temp42 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp42 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp42 ADD COLUMN rang int;
|
|
|
update w_temp42 SET libellé = w_header.libelle[8]
|
|
|
FROM w_header;
|
|
|
update w_temp42 SET rang = 35;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp43;
|
|
|
CREATE TEMP TABLE w_temp43 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[31] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp43 ADD COLUMN libellé text;
|
|
|
update w_temp43 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp43 ADD COLUMN rang int;
|
|
|
update w_temp43 SET rang = 36;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp44;
|
|
|
CREATE TEMP TABLE w_temp44 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[30] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp44 ADD COLUMN libellé text;
|
|
|
update w_temp44 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp44 ADD COLUMN rang int;
|
|
|
update w_temp44 SET rang = 37;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp45;
|
|
|
CREATE TEMP TABLE w_temp45 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[32] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp45 ADD COLUMN libellé text;
|
|
|
update w_temp45 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp45 ADD COLUMN rang int;
|
|
|
update w_temp45 SET rang = 38;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp46;
|
|
|
CREATE TEMP TABLE w_temp46 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[33] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp46 ADD COLUMN libellé text;
|
|
|
update w_temp46 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp46 ADD COLUMN rang int;
|
|
|
update w_temp46 SET rang = 39;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp47;
|
|
|
CREATE TEMP TABLE w_temp47 AS
|
|
|
select * from w_temp42
|
|
|
union
|
|
|
select * from w_temp43
|
|
|
union
|
|
|
select * from w_temp44
|
|
|
UNION
|
|
|
select * from w_temp45
|
|
|
UNION
|
|
|
select * from w_temp46;
|
|
|
/* DATA 9 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp48;
|
|
|
CREATE TEMP TABLE w_temp48 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp48 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp48 ADD COLUMN rang int;
|
|
|
update w_temp48 SET libellé = w_header.libelle[9]
|
|
|
FROM w_header;
|
|
|
update w_temp48 SET rang = 40;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp49;
|
|
|
CREATE TEMP TABLE w_temp49 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[35] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp49 ADD COLUMN libellé text;
|
|
|
update w_temp49 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp49 ADD COLUMN rang int;
|
|
|
update w_temp49 SET rang = 41;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp50;
|
|
|
CREATE TEMP TABLE w_temp50 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[34] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp50 ADD COLUMN libellé text;
|
|
|
update w_temp50 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp50 ADD COLUMN rang int;
|
|
|
update w_temp50 SET rang = 42;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp51;
|
|
|
CREATE TEMP TABLE w_temp51 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[36] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp51 ADD COLUMN libellé text;
|
|
|
update w_temp51 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp51 ADD COLUMN rang int;
|
|
|
update w_temp51 SET rang = 43;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp52;
|
|
|
CREATE TEMP TABLE w_temp52 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[37] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp52 ADD COLUMN libellé text;
|
|
|
update w_temp52 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp52 ADD COLUMN rang int;
|
|
|
update w_temp52 SET rang = 44;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp53;
|
|
|
CREATE TEMP TABLE w_temp53 AS
|
|
|
select * from w_temp48
|
|
|
union
|
|
|
select * from w_temp49
|
|
|
union
|
|
|
select * from w_temp50
|
|
|
UNION
|
|
|
select * from w_temp51
|
|
|
UNION
|
|
|
select * from w_temp52;
|
|
|
|
|
|
/* DATA 10 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp54;
|
|
|
CREATE TEMP TABLE w_temp54 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp54 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp54 ADD COLUMN rang int;
|
|
|
update w_temp54 SET libellé = w_header.libelle[10]
|
|
|
FROM w_header;
|
|
|
update w_temp54 SET rang = 45;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp55;
|
|
|
CREATE TEMP TABLE w_temp55 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[39] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp55 ADD COLUMN libellé text;
|
|
|
update w_temp55 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp55 ADD COLUMN rang int;
|
|
|
update w_temp55 SET rang = 46;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp56;
|
|
|
CREATE TEMP TABLE w_temp56 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[38] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp56 ADD COLUMN libellé text;
|
|
|
update w_temp56 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp56 ADD COLUMN rang int;
|
|
|
update w_temp56 SET rang = 47;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp57;
|
|
|
CREATE TEMP TABLE w_temp57 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[40] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp57 ADD COLUMN libellé text;
|
|
|
update w_temp57 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp57 ADD COLUMN rang int;
|
|
|
update w_temp57 SET rang = 48;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp58;
|
|
|
CREATE TEMP TABLE w_temp58 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[41] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp58 ADD COLUMN libellé text;
|
|
|
update w_temp58 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp58 ADD COLUMN rang int;
|
|
|
update w_temp58 SET rang = 49;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp59;
|
|
|
CREATE TEMP TABLE w_temp59 AS
|
|
|
select * from w_temp54
|
|
|
union
|
|
|
select * from w_temp55
|
|
|
union
|
|
|
select * from w_temp56
|
|
|
UNION
|
|
|
select * from w_temp57
|
|
|
UNION
|
|
|
select * from w_temp58;
|
|
|
|
|
|
/*DATA 11*/
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp60;
|
|
|
CREATE TEMP TABLE w_temp60 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp60 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp60 ADD COLUMN rang int;
|
|
|
update w_temp60 SET libellé = w_header.libelle[11]
|
|
|
FROM w_header;
|
|
|
update w_temp60 SET rang = 50;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp61;
|
|
|
CREATE TEMP TABLE w_temp61 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[43] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp61 ADD COLUMN libellé text;
|
|
|
update w_temp61 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp61 ADD COLUMN rang int;
|
|
|
update w_temp61 SET rang = 51;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp62;
|
|
|
CREATE TEMP TABLE w_temp62 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[42] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp62 ADD COLUMN libellé text;
|
|
|
update w_temp62 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp62 ADD COLUMN rang int;
|
|
|
update w_temp62 SET rang = 52;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp63;
|
|
|
CREATE TEMP TABLE w_temp63 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[44] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp63 ADD COLUMN libellé text;
|
|
|
update w_temp63 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp63 ADD COLUMN rang int;
|
|
|
update w_temp63 SET rang = 53;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp64;
|
|
|
CREATE TEMP TABLE w_temp64 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[45] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp64 ADD COLUMN libellé text;
|
|
|
update w_temp64 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp64 ADD COLUMN rang int;
|
|
|
update w_temp64 SET rang = 54;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp65;
|
|
|
CREATE TEMP TABLE w_temp65 AS
|
|
|
select * from w_temp60
|
|
|
union
|
|
|
select * from w_temp61
|
|
|
union
|
|
|
select * from w_temp62
|
|
|
UNION
|
|
|
select * from w_temp63
|
|
|
UNION
|
|
|
select * from w_temp64;
|
|
|
|
|
|
/* DATA 12 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp66;
|
|
|
CREATE TEMP TABLE w_temp66 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp66 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp66 ADD COLUMN rang int;
|
|
|
update w_temp66 SET libellé = w_header.libelle[12]
|
|
|
FROM w_header;
|
|
|
update w_temp66 SET rang = 55;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp67;
|
|
|
CREATE TEMP TABLE w_temp67 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[47] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp67 ADD COLUMN libellé text;
|
|
|
update w_temp67 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp67 ADD COLUMN rang int;
|
|
|
update w_temp67 SET rang = 56;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp68;
|
|
|
CREATE TEMP TABLE w_temp68 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[46] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp68 ADD COLUMN libellé text;
|
|
|
update w_temp68 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp68 ADD COLUMN rang int;
|
|
|
update w_temp68 SET rang = 57;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp69;
|
|
|
CREATE TEMP TABLE w_temp69 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[48] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp69 ADD COLUMN libellé text;
|
|
|
update w_temp69 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp69 ADD COLUMN rang int;
|
|
|
update w_temp69 SET rang = 58;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp70;
|
|
|
CREATE TEMP TABLE w_temp70 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[49] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp70 ADD COLUMN libellé text;
|
|
|
update w_temp70 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp70 ADD COLUMN rang int;
|
|
|
update w_temp70 SET rang = 59;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp71;
|
|
|
CREATE TEMP TABLE w_temp71 AS
|
|
|
select * from w_temp66
|
|
|
union
|
|
|
select * from w_temp67
|
|
|
union
|
|
|
select * from w_temp68
|
|
|
UNION
|
|
|
select * from w_temp69
|
|
|
UNION
|
|
|
select * from w_temp70;
|
|
|
/* DATA 13 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp72;
|
|
|
CREATE TEMP TABLE w_temp72 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp72 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp72 ADD COLUMN rang int;
|
|
|
update w_temp72 SET libellé = w_header.libelle[13]
|
|
|
FROM w_header;
|
|
|
update w_temp72 SET rang = 60;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp73;
|
|
|
CREATE TEMP TABLE w_temp73 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[51] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp73 ADD COLUMN libellé text;
|
|
|
update w_temp73 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp73 ADD COLUMN rang int;
|
|
|
update w_temp73 SET rang = 61;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp74;
|
|
|
CREATE TEMP TABLE w_temp74 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[50] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp74 ADD COLUMN libellé text;
|
|
|
update w_temp74 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp74 ADD COLUMN rang int;
|
|
|
update w_temp74 SET rang = 62;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp75;
|
|
|
CREATE TEMP TABLE w_temp75 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[52] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp75 ADD COLUMN libellé text;
|
|
|
update w_temp75 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp75 ADD COLUMN rang int;
|
|
|
update w_temp75 SET rang = 63;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp76;
|
|
|
CREATE TEMP TABLE w_temp76 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[53] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp76 ADD COLUMN libellé text;
|
|
|
update w_temp76 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp76 ADD COLUMN rang int;
|
|
|
update w_temp76 SET rang = 64;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp77;
|
|
|
CREATE TEMP TABLE w_temp77 AS
|
|
|
select * from w_temp72
|
|
|
union
|
|
|
select * from w_temp73
|
|
|
union
|
|
|
select * from w_temp74
|
|
|
UNION
|
|
|
select * from w_temp75
|
|
|
UNION
|
|
|
select * from w_temp76;
|
|
|
/* DATA 14 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp78;
|
|
|
CREATE TEMP TABLE w_temp78 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp78 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp78 ADD COLUMN rang int;
|
|
|
update w_temp78 SET libellé = w_header.libelle[14]
|
|
|
FROM w_header;
|
|
|
update w_temp78 SET rang = 65;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp79;
|
|
|
CREATE TEMP TABLE w_temp79 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[55] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp79 ADD COLUMN libellé text;
|
|
|
update w_temp79 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp79 ADD COLUMN rang int;
|
|
|
update w_temp79 SET rang = 66;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp80;
|
|
|
CREATE TEMP TABLE w_temp80 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[54] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp80 ADD COLUMN libellé text;
|
|
|
update w_temp80 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp80 ADD COLUMN rang int;
|
|
|
update w_temp80 SET rang = 67;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp81;
|
|
|
CREATE TEMP TABLE w_temp81 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[56] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp81 ADD COLUMN libellé text;
|
|
|
update w_temp81 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp81 ADD COLUMN rang int;
|
|
|
update w_temp81 SET rang = 68;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp82;
|
|
|
CREATE TEMP TABLE w_temp82 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[57] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp82 ADD COLUMN libellé text;
|
|
|
update w_temp82 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp82 ADD COLUMN rang int;
|
|
|
update w_temp82 SET rang = 69;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp83;
|
|
|
CREATE TEMP TABLE w_temp83 AS
|
|
|
select * from w_temp78
|
|
|
union
|
|
|
select * from w_temp79
|
|
|
union
|
|
|
select * from w_temp80
|
|
|
UNION
|
|
|
select * from w_temp81
|
|
|
UNION
|
|
|
select * from w_temp82;
|
|
|
/* DATA 15 */
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp84;
|
|
|
CREATE TEMP TABLE w_temp84 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[0] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
ALTER TABLE w_temp84 ADD COLUMN libellé text;
|
|
|
ALTER TABLE w_temp84 ADD COLUMN rang int;
|
|
|
update w_temp84 SET libellé = w_header.libelle[15]
|
|
|
FROM w_header;
|
|
|
update w_temp84 SET rang = 70;
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp85;
|
|
|
CREATE TEMP TABLE w_temp85 AS
|
|
|
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[59] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
)
|
|
|
|
|
|
;
|
|
|
|
|
|
ALTER TABLE w_temp85 ADD COLUMN libellé text;
|
|
|
update w_temp85 SET libellé = 'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5);
|
|
|
ALTER TABLE w_temp85 ADD COLUMN rang int;
|
|
|
update w_temp85 SET rang = 71;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp86;
|
|
|
CREATE TEMP TABLE w_temp86 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[58] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
|
|
|
ALTER TABLE w_temp86 ADD COLUMN libellé text;
|
|
|
update w_temp86 SET libellé = 'Année ' || SUBSTR('[PERIODE]',0,5);
|
|
|
ALTER TABLE w_temp86 ADD COLUMN rang int;
|
|
|
update w_temp86 SET rang = 72;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp87;
|
|
|
CREATE TEMP TABLE w_temp87 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[60] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp87 ADD COLUMN libellé text;
|
|
|
update w_temp87 SET libellé = 'ECART N-1';
|
|
|
ALTER TABLE w_temp87 ADD COLUMN rang int;
|
|
|
update w_temp87 SET rang = 73;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp88;
|
|
|
CREATE TEMP TABLE w_temp88 AS
|
|
|
select * from crosstab(
|
|
|
'SELECT oidt,oid,indicateurs[61] FROM w_table ORDER BY labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
|
|
|
) AS (
|
|
|
|
|
|
oidt bigint,"Total" numeric,"Jan" numeric, "Fev" numeric, "Mar" numeric, "Avr" numeric, "Mai" numeric, "Juin" numeric, "Juil" numeric, "Aout" numeric, "Sep" numeric, "Oct" numeric, "Nov" numeric, "Dec" numeric
|
|
|
);
|
|
|
|
|
|
ALTER TABLE w_temp88 ADD COLUMN libellé text;
|
|
|
update w_temp88 SET libellé = '% N-1';
|
|
|
ALTER TABLE w_temp88 ADD COLUMN rang int;
|
|
|
update w_temp88 SET rang = 74;
|
|
|
|
|
|
DROP TABLE IF EXISTS w_temp89;
|
|
|
CREATE TEMP TABLE w_temp89 AS
|
|
|
select * from w_temp84
|
|
|
union
|
|
|
select * from w_temp85
|
|
|
union
|
|
|
select * from w_temp86
|
|
|
UNION
|
|
|
select * from w_temp87
|
|
|
UNION
|
|
|
select * from w_temp88;
|
|
|
|
|
|
delete from w_table where oid <> -9999999 ;
|
|
|
|
|
|
|
|
|
|
|
|
( select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
FROM w_temp5
|
|
|
JOIN w_table ON w_table.oidt = w_temp5.oidt
|
|
|
WHERE rang < '[VIEW.NB_DATA]'
|
|
|
ORDER BY w_temp5.rang ASC
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp11
|
|
|
join w_table on w_table.oidt = w_temp11.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp11.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp17
|
|
|
join w_table on w_table.oidt = w_temp17.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp17.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp23
|
|
|
join w_table on w_table.oidt = w_temp23.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp23.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp29
|
|
|
join w_table on w_table.oidt = w_temp29.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp29.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp35
|
|
|
join w_table on w_table.oidt = w_temp35.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp35.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp41
|
|
|
join w_table on w_table.oidt = w_temp41.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp41.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp47
|
|
|
join w_table on w_table.oidt = w_temp47.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp47.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp53
|
|
|
join w_table on w_table.oidt = w_temp53.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp53.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp59 join w_table on w_table.oidt = w_temp59.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp59.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp65
|
|
|
join w_table on w_table.oidt = w_temp65.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp65.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp71
|
|
|
join w_table on w_table.oidt = w_temp71.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp71.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp77
|
|
|
join w_table on w_table.oidt = w_temp77.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp77.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp83
|
|
|
join w_table on w_table.oidt = w_temp83.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp83.rang asc
|
|
|
)
|
|
|
union
|
|
|
(
|
|
|
select w_table.oidt,labelt, textet, oid1, code1, oid2, code2, oid3, code3, oid, code, texte, level,rang,libellé,*
|
|
|
from w_temp89
|
|
|
join w_table on w_table.oidt = w_temp89.oidt
|
|
|
where rang < '[VIEW.NB_DATA]'
|
|
|
order by w_temp89.rang asc
|
|
|
) order by 1,14;
|
|
|
]]> </select>
|
|
|
<FIELDS>
|
|
|
<INSERT name="CTISELECT_TREE_FIELDS"/>
|
|
|
<FIELD name="NN"/>
|
|
|
<FIELD name="N"/>
|
|
|
<FIELD name="N0"/>
|
|
|
<FIELD name="N1"/>
|
|
|
<FIELD name="N2"/>
|
|
|
<FIELD name="N3"/>
|
|
|
<FIELD name="N4"/>
|
|
|
<FIELD name="N5"/>
|
|
|
<FIELD name="N6"/>
|
|
|
<FIELD name="N7"/>
|
|
|
<FIELD name="N8"/>
|
|
|
<FIELD name="N9"/>
|
|
|
<FIELD name="N10"/>
|
|
|
<FIELD name="N11"/>
|
|
|
<FIELD name="N12"/>
|
|
|
<FIELD name="N13"/>
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
<QUERY>
|
|
|
<SQL optimizer="V_SEJOURS_X" optimizer2="V_MOUVEMENTS_SEJOUR_X">
|
|
|
<select><![CDATA[
|
|
|
|
|
|
|
|
|
CTISELECT_TREE
|
|
|
GROUPBY1{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
|
|
|
GROUPBY1MODE{[GROUPBY_TAB]}
|
|
|
SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
|
|
|
INDICATORS{
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA1F],0),,
|
|
|
COALESCE([VIEW.DATA1D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA2F],0),,
|
|
|
COALESCE([VIEW.DATA2D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA3F],0),,
|
|
|
COALESCE([VIEW.DATA3D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA4F],0),,
|
|
|
COALESCE([VIEW.DATA4D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA5F],0),,
|
|
|
COALESCE([VIEW.DATA5D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA6F],0),,
|
|
|
COALESCE([VIEW.DATA6D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA7F],0),,
|
|
|
COALESCE([VIEW.DATA7D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA8F],0),,
|
|
|
COALESCE([VIEW.DATA8D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA9F],0),,
|
|
|
COALESCE([VIEW.DATA9D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA10F],0),,
|
|
|
COALESCE([VIEW.DATA10D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA11F],0),,
|
|
|
COALESCE([VIEW.DATA11D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA12F],0),,
|
|
|
COALESCE([VIEW.DATA12D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA13F],0),,
|
|
|
COALESCE([VIEW.DATA13D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA14F],0),,
|
|
|
COALESCE([VIEW.DATA14D],0),,
|
|
|
0,,
|
|
|
0,,
|
|
|
COALESCE([VIEW.DATA15F],0),,
|
|
|
COALESCE([VIEW.DATA15D],0),,
|
|
|
0,,
|
|
|
0
|
|
|
}
|
|
|
FROM #V_SEJOURS_X#
|
|
|
JOIN #V_MOUVEMENTS_SEJOUR_X# ON v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour
|
|
|
WHERE
|
|
|
(date BETWEEN '[PERIODE]' AND '[TOPERIODE]' or date BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]')
|
|
|
[VIEW.SEJOURS_SELECT] [VIEW.PATIENTS_SELECT]
|
|
|
[VIEW.MOUVEMENTS_SELECT] AND est_mouvement_previsionnel <> '1'
|
|
|
[VIEW.JOURS_SELECT]
|
|
|
[VIEW.PASSAGES_SELECT]
|
|
|
AND v_sejours_1.type_sejour <> '9'
|
|
|
|
|
|
AFTER{
|
|
|
|
|
|
UPDATE w_table SET
|
|
|
indicateurs[1] = acti000056_places.indicateurs[1]
|
|
|
[EVAL
|
|
|
if ('[DATA1]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA1]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[2] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[3] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA1]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[3] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
|
|
|
[EVAL
|
|
|
if ('[DATA2]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[2] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[3] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA2]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = base.cti_division(w_table.indicateurs[6] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[7] = base.cti_division(w_table.indicateurs[7] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA2]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[6] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[7] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
|
|
|
[EVAL
|
|
|
if ('[DATA3]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA3]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = base.cti_division(w_table.indicateurs[10] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[11] = base.cti_division(w_table.indicateurs[11] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA3]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[10] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[11] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA4]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA4]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = base.cti_division(w_table.indicateurs[14] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[15] = base.cti_division(w_table.indicateurs[15] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA4]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[14] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[15] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA5]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA5]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = base.cti_division(w_table.indicateurs[18] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[19] = base.cti_division(w_table.indicateurs[19] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA5]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[18] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[19] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA6]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA6]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = base.cti_division(w_table.indicateurs[22] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[23] = base.cti_division(w_table.indicateurs[23] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA6]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[22] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[23] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA7]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA7]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = base.cti_division(w_table.indicateurs[26] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[27] = base.cti_division(w_table.indicateurs[27] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA7]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[26] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[27] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA8]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA8]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = base.cti_division(w_table.indicateurs[30] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[31] = base.cti_division(w_table.indicateurs[31] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA8]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[30] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[31] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA9]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA9]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = base.cti_division(w_table.indicateurs[34] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[35] = base.cti_division(w_table.indicateurs[35] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA9]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[34] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[35] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA10]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[26]) * 100,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[28]) * 100,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA10]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = base.cti_division(w_table.indicateurs[38] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[39] = base.cti_division(w_table.indicateurs[39] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA10]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[38] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[39] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA011]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA011]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = base.cti_division(w_table.indicateurs[42] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[43] = base.cti_division(w_table.indicateurs[43] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA011]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[42] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[43] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA012]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA012]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = base.cti_division(w_table.indicateurs[46] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[47] = base.cti_division(w_table.indicateurs[47] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA012]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[46] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[47] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA013]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA013]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = base.cti_division(w_table.indicateurs[50] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[51] = base.cti_division(w_table.indicateurs[51] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA013]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[50] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[51] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA014]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA014]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = base.cti_division(w_table.indicateurs[54] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[55] = base.cti_division(w_table.indicateurs[55] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA014]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[54] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[55] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA015]' == 'TAU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[2]) * 100,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[3]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'TAUHOSPI') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[26]) * 100 ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[27]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'TAUAMBU') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[28]) * 100 ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[29]) * 100
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NJNM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[10]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[11])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NEXM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[14]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[15])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NAMM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[18]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[19])
|
|
|
";
|
|
|
}
|
|
|
if ('[DATA015]' == 'NJNXAM') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = base.cti_division(w_table.indicateurs[58] , acti000056_places.indicateurs[6]) ,
|
|
|
indicateurs[59] = base.cti_division(w_table.indicateurs[59] , acti000056_places.indicateurs[7])
|
|
|
";
|
|
|
}
|
|
|
|
|
|
if ('[DATA015]' == 'NJO') {
|
|
|
return "
|
|
|
,
|
|
|
indicateurs[58] = acti000056_places.indicateurs[6] ,
|
|
|
indicateurs[59] = acti000056_places.indicateurs[7]
|
|
|
";
|
|
|
}
|
|
|
|
|
|
EVAL]
|
|
|
FROM acti000056_places
|
|
|
WHERE
|
|
|
(acti000056_places.oidt = w_table.oidt OR acti000056_places.oidt = -111) AND
|
|
|
(acti000056_places.oid1 = w_table.oid1 OR acti000056_places.oid1 = -111) AND
|
|
|
(acti000056_places.oid2 = w_table.oid2 OR acti000056_places.oid2 = -111) AND
|
|
|
(acti000056_places.oid3 = w_table.oid3 OR acti000056_places.oid3 = -111)
|
|
|
|
|
|
.,
|
|
|
|
|
|
UPDATE w_table SET
|
|
|
indicateurs[4] = indicateurs[2] - indicateurs[3],
|
|
|
indicateurs[5] = base.cti_division(indicateurs[2] - indicateurs[3] , indicateurs[3]) * 100,
|
|
|
indicateurs[8] = indicateurs[6] - indicateurs[7],
|
|
|
indicateurs[9] = base.cti_division(indicateurs[6] - indicateurs[7] , indicateurs[7]) * 100,
|
|
|
indicateurs[12] = indicateurs[10] - indicateurs[11],
|
|
|
indicateurs[13] = base.cti_division(indicateurs[10] - indicateurs[11] , indicateurs[11]) * 100,
|
|
|
indicateurs[16] = indicateurs[14] - indicateurs[15],
|
|
|
indicateurs[17] = base.cti_division(indicateurs[14] - indicateurs[15] , indicateurs[15]) * 100,
|
|
|
indicateurs[20] = indicateurs[18] - indicateurs[19],
|
|
|
indicateurs[21] = base.cti_division(indicateurs[18] - indicateurs[19] , indicateurs[19]) * 100,
|
|
|
indicateurs[24] = indicateurs[22] - indicateurs[23],
|
|
|
indicateurs[25] = base.cti_division(indicateurs[22] - indicateurs[23] , indicateurs[23]) * 100,
|
|
|
indicateurs[28] = indicateurs[26] - indicateurs[27],
|
|
|
indicateurs[29] = base.cti_division(indicateurs[26] - indicateurs[27] , indicateurs[27]) * 100,
|
|
|
indicateurs[32] = indicateurs[30] - indicateurs[31],
|
|
|
indicateurs[33] = base.cti_division(indicateurs[30] - indicateurs[31] , indicateurs[31]) * 100,
|
|
|
indicateurs[36] = indicateurs[34] - indicateurs[35],
|
|
|
indicateurs[37] = base.cti_division(indicateurs[34] - indicateurs[35] , indicateurs[35]) * 100,
|
|
|
indicateurs[40] = indicateurs[38] - indicateurs[39],
|
|
|
indicateurs[41] = base.cti_division(indicateurs[38] - indicateurs[39] , indicateurs[39]) * 100,
|
|
|
indicateurs[44] = indicateurs[42] - indicateurs[43],
|
|
|
indicateurs[45] = base.cti_division(indicateurs[42] - indicateurs[43] , indicateurs[43]) * 100,
|
|
|
indicateurs[48] = indicateurs[46] - indicateurs[47],
|
|
|
indicateurs[49] = base.cti_division(indicateurs[46] - indicateurs[47] , indicateurs[47]) * 100,
|
|
|
indicateurs[52] = indicateurs[50] - indicateurs[51],
|
|
|
indicateurs[53] = base.cti_division(indicateurs[50] - indicateurs[51] , indicateurs[51]) * 100,
|
|
|
indicateurs[56] = indicateurs[54] - indicateurs[55],
|
|
|
indicateurs[57] = base.cti_division(indicateurs[54] - indicateurs[55] , indicateurs[55]) * 100,
|
|
|
indicateurs[60] = indicateurs[58] - indicateurs[59],
|
|
|
indicateurs[61] = base.cti_division(indicateurs[58] - indicateurs[59] , indicateurs[59]) * 100
|
|
|
}
|
|
|
;
|
|
|
DROP TABLE IF EXISTS w_temp1;
|
|
|
CREATE TEMP TABLE w_temp1 AS
|
|
|
|
|
|
select
|
|
|
0 as rang,
|
|
|
(SELECT libelle[1] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02'),
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06'),
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08'),
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
1 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [3] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [3] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [3] as Fevrier from w_table where level <>9 and code1 = '02'),
|
|
|
(select indicateurs [3] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [3] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [3] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [3] as Juin from w_table where level <>9 and code1 = '06'),
|
|
|
(select indicateurs [3] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [3] as Aout from w_table where level <>9 and code1 = '08'),
|
|
|
(select indicateurs [3] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [3] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [3] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [3] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
2 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [2] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [2] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [2] as Fevrier from w_table where level <>9 and code1 = '02'),
|
|
|
(select indicateurs [2] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [2] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [2] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [2] as Juin from w_table where level <>9 and code1 = '06'),
|
|
|
(select indicateurs [2] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [2] as Aout from w_table where level <>9 and code1 = '08'),
|
|
|
(select indicateurs [2] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [2] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [2] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [2] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
3 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
((select indicateurs [2] as total from w_table where level = 9 ) - (select indicateurs [3] as total from w_table where level = 9 )),
|
|
|
((select indicateurs [2] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [3] as Janvier from w_table where level <>9 and code1 = '01')),
|
|
|
((select indicateurs [2] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [3] as Fevrier from w_table where level <>9 and code1 = '02')),
|
|
|
((select indicateurs [2] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [3] as Mars from w_table where level <>9 and code1 = '03')) ,
|
|
|
((select indicateurs [2] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [3] as Avril from w_table where level <>9 and code1 = '04')),
|
|
|
((select indicateurs [2] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [3] as Mai from w_table where level <>9 and code1 = '05')),
|
|
|
((select indicateurs [2] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [3] as Juin from w_table where level <>9 and code1 = '06')),
|
|
|
((select indicateurs [2] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [3] as Juillet from w_table where level <>9 and code1 = '07')) ,
|
|
|
((select indicateurs [2] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [3] as Aout from w_table where level <>9 and code1 = '08')) ,
|
|
|
((select indicateurs [2] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [3] as Septembre from w_table where level <>9 and code1 = '09')),
|
|
|
((select indicateurs [2] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [3] as Octobre from w_table where level <>9 and code1 = '10')),
|
|
|
((select indicateurs [2] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [3] as Novembre from w_table where level <>9 and code1 = '11')),
|
|
|
((select indicateurs [2] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [3] as Decembre from w_table where level <>9 and code1 = '12'))
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
4 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [2] as total from w_table where level = 9 ) - (select indicateurs [3] as total from w_table where level = 9 ))*100, (select indicateurs [3] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [3] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [3] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [3] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [3] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [3] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [3] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [3] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [3] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [3] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [3] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [3] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [3] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [3] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [3] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [3] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [3] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [3] as Septembre from w_table where level <>9 and code1 = '09'))*100, (select indicateurs [3] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [3] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [3] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [2] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [3] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [3] as Novembre from w_table where level <>9 and code1 = '11')),0),
|
|
|
round(base.cti_division(((select indicateurs [2] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [3] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [3] as Decembre from w_table where level <>9 and code1 = '12')),0)
|
|
|
|
|
|
|
|
|
|
|
|
[EVAL
|
|
|
if ('[DATA2]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
5 as rang,
|
|
|
(SELECT libelle[2] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
6 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [7] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [7] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [7] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [7] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [7] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [7] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [7] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [7] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [7] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [7] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [7] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [7] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [7] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
7 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [6] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [6] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [6] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [6] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [6] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [6] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [6] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [6] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [6] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [6] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [6] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [6] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [6] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
8 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [6] as total from w_table where level = 9 ) - (select indicateurs [7] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [6] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [7] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [6] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [7] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [6] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [7] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [6] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [7] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [6] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [7] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [6] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [7] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [6] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [7] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [6] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [7] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [6] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [7] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [6] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [7] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [6] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [7] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [6] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [7] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
9 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [6] as total from w_table where level = 9 ) - (select indicateurs [7] as total from w_table where level = 9 ))*100,(select indicateurs [7] as total from w_table where level = 9 )),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [7] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [7] as Janvier from w_table where level <>9 and code1 = '01')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [7] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [7] as Fevrier from w_table where level <>9 and code1 = '02')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [7] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [7] as Mars from w_table where level <>9 and code1 = '03')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [7] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [7] as Avril from w_table where level <>9 and code1 = '04')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [7] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [7] as Mai from w_table where level <>9 and code1 = '05')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [7] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [7] as Juin from w_table where level <>9 and code1 = '06')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [7] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [7] as Juillet from w_table where level <>9 and code1 = '07')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [7] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [7] as Aout from w_table where level <>9 and code1 = '08')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [7] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [7] as Septembre from w_table where level <>9 and code1 = '09')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [7] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [7] as Octobre from w_table where level <>9 and code1 = '10')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [7] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [7] as Novembre from w_table where level <>9 and code1 = '11')),0),
|
|
|
round(base.cti_division(((select indicateurs [6] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [7] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [7] as Decembre from w_table where level <>9 and code1 = '12')),0)
|
|
|
|
|
|
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA3]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
10 as rang,
|
|
|
(SELECT libelle[3] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
11 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [11] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [11] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [11] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [11] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [11] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [11] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [11] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [11] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [11] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [11] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [11] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [11] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [11] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
12 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [10] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [10] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [10] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [10] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [10] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [10] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [10] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [10] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [10] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [10] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [10] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [10] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [10] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
13 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [10] as total from w_table where level = 9 ) - (select indicateurs [11] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [10] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [11] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [10] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [11] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [10] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [11] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [10] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [11] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [10] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [11] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [10] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [11] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [10] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [11] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [10] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [11] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [10] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [11] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [10] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [11] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [10] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [11] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [10] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [11] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
14 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [10] as total from w_table where level = 9 ) - (select indicateurs [11] as total from w_table where level = 9 ))*100,(select indicateurs [11] as total from w_table where level = 9 )),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [11] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [11] as Janvier from w_table where level <>9 and code1 = '01')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [11] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [11] as Fevrier from w_table where level <>9 and code1 = '02')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [11] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [11] as Mars from w_table where level <>9 and code1 = '03')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [11] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [11] as Avril from w_table where level <>9 and code1 = '04')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [11] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [11] as Mai from w_table where level <>9 and code1 = '05')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [11] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [11] as Juin from w_table where level <>9 and code1 = '06')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [11] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [11] as Juillet from w_table where level <>9 and code1 = '07')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [11] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [11] as Aout from w_table where level <>9 and code1 = '08')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [11] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [11] as Septembre from w_table where level <>9 and code1 = '09')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [11] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [11] as Octobre from w_table where level <>9 and code1 = '10')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [11] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [11] as Novembre from w_table where level <>9 and code1 = '11')),0),
|
|
|
round(base.cti_division(((select indicateurs [10] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [11] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [11] as Decembre from w_table where level <>9 and code1 = '12')),0)
|
|
|
|
|
|
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA4]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
15 as rang,
|
|
|
(SELECT libelle[4] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
16 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [15] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [15] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [15] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [15] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [15] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [15] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [15] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [15] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [15] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [15] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [15] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [15] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [15] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
17 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [14] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [14] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [14] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [14] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [14] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [14] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [14] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [14] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [14] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [14] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [14] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [14] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [14] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
18 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [14] as total from w_table where level = 9 ) - (select indicateurs [15] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [14] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [15] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [14] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [15] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [14] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [15] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [14] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [15] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [14] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [15] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [14] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [15] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [14] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [15] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [14] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [15] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [14] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [15] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [14] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [15] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [14] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [15] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [14] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [15] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
19 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [14] as total from w_table where level = 9 ) - (select indicateurs [15] as total from w_table where level = 9 ))*100,(select indicateurs [15] as total from w_table where level = 9 )),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [15] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [15] as Janvier from w_table where level <>9 and code1 = '01')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [15] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [15] as Fevrier from w_table where level <>9 and code1 = '02')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [15] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [15] as Mars from w_table where level <>9 and code1 = '03')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [15] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [15] as Avril from w_table where level <>9 and code1 = '04')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [15] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [15] as Mai from w_table where level <>9 and code1 = '05')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [15] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [15] as Juin from w_table where level <>9 and code1 = '06')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [15] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [15] as Juillet from w_table where level <>9 and code1 = '07')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [15] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [15] as Aout from w_table where level <>9 and code1 = '08')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [15] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [15] as Septembre from w_table where level <>9 and code1 = '09')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [15] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [15] as Octobre from w_table where level <>9 and code1 = '10')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [15] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [15] as Novembre from w_table where level <>9 and code1 = '11')),0),
|
|
|
round(base.cti_division(((select indicateurs [14] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [15] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [15] as Decembre from w_table where level <>9 and code1 = '12')),0)
|
|
|
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA5]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
20 as rang,
|
|
|
(SELECT libelle[5] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
21 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [19] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [19] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [19] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [19] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [19] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [19] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [19] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [19] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [19] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [19] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [19] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [19] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [19] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
22 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [18] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [18] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [18] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [18] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [18] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [18] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [18] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [18] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [18] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [18] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [18] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [18] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [18] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
23 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [18] as total from w_table where level = 9 ) - (select indicateurs [19] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [18] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [19] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [18] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [19] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [18] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [19] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [18] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [19] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [18] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [19] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [18] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [19] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [18] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [19] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [18] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [19] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [18] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [19] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [18] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [19] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [18] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [19] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [18] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [19] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
24 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [18] as total from w_table where level = 9 ) - (select indicateurs [19] as total from w_table where level = 9 ))*100,(select indicateurs [19] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [19] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [19] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [19] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [19] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [19] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [19] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [19] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [19] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [19] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [19] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [19] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [19] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [19] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [19] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [19] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [19] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [19] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [19] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [19] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [19] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [19] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [19] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [18] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [19] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [19] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA6]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
25 as rang,
|
|
|
(SELECT libelle[6] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
26 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [23] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [23] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [23] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [23] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [23] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [23] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [23] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [23] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [23] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [23] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [23] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [23] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [23] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
27 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [22] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [22] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [22] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [22] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [22] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [22] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [22] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [22] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [22] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [22] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [22] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [22] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [22] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
28 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [22] as total from w_table where level = 9 ) - (select indicateurs [23] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [22] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [23] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [22] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [23] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [22] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [23] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [22] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [23] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [22] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [23] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [22] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [23] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [22] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [23] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [22] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [23] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [22] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [23] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [22] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [23] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [22] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [23] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [22] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [23] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
29 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [22] as total from w_table where level = 9 ) - (select indicateurs [23] as total from w_table where level = 9 ))*100, (select indicateurs [23] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [23] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [23] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [23] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [23] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [23] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [23] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [23] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [23] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [23] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [23] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [23] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [23] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [23] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [23] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [23] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [23] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [23] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [23] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [23] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [23] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [23] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [23] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [22] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [23] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [23] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA7]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
30 as rang,
|
|
|
(SELECT libelle[7] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
31 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [27] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [27] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [27] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [27] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [27] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [27] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [27] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [27] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [27] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [27] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [27] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [27] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [27] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
32 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [26] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [26] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [26] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [26] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [26] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [26] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [26] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [26] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [26] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [26] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [26] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [26] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [26] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
33 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [26] as total from w_table where level = 9 ) - (select indicateurs [27] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [26] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [27] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [26] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [27] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [26] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [27] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [26] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [27] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [26] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [27] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [26] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [27] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [26] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [27] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [26] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [27] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [26] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [27] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [26] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [27] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [26] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [27] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [26] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [27] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
34 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [26] as total from w_table where level = 9 ) - (select indicateurs [27] as total from w_table where level = 9 ))*100, (select indicateurs [27] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [27] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [27] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [27] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [27] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [27] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [27] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [27] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [27] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [27] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [27] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [27] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [27] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [27] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [27] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [27] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [27] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [27] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [27] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [27] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [27] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [27] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [27] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [26] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [27] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [27] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA8]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
35 as rang,
|
|
|
(SELECT libelle[8] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
36 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [31] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [31] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [31] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [31] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [31] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [31] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [31] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [31] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [31] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [31] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [31] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [31] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [31] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
37 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [30] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [30] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [30] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [30] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [30] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [30] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [30] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [30] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [30] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [30] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [30] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [30] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [30] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
38 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [30] as total from w_table where level = 9 ) - (select indicateurs [31] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [30] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [31] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [30] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [31] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [30] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [31] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [30] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [31] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [30] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [31] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [30] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [31] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [30] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [31] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [30] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [31] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [30] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [31] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [30] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [31] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [30] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [31] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [30] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [31] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
39 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [30] as total from w_table where level = 9 ) - (select indicateurs [31] as total from w_table where level = 9 ))*100, (select indicateurs [31] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [31] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [31] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [31] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [31] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [31] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [31] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [31] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [31] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [31] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [31] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [31] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [31] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [31] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [31] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [31] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [31] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [31] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [31] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [31] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [31] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [31] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [31] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [30] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [31] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [31] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA9]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
40 as rang,
|
|
|
(SELECT libelle[9] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
41 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [35] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [35] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [35] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [35] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [35] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [35] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [35] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [35] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [35] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [35] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [35] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [35] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [35] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
42 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [34] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [34] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [34] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [34] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [34] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [34] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [34] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [34] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [34] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [34] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [34] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [34] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [34] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
43 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [34] as total from w_table where level = 9 ) - (select indicateurs [35] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [34] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [35] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [34] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [35] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [34] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [35] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [34] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [35] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [34] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [35] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [34] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [35] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [34] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [35] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [34] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [35] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [34] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [35] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [34] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [35] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [34] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [35] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [34] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [35] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
44 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [34] as total from w_table where level = 9 ) - (select indicateurs [35] as total from w_table where level = 9 ))*100, (select indicateurs [35] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [35] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [35] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [35] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [35] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [35] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [35] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [35] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [35] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [35] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [35] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [35] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [35] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [35] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [35] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [35] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [35] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [35] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [35] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [35] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [35] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [35] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [35] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [34] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [35] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [35] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA10]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
45 as rang,
|
|
|
(SELECT libelle[10] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
46 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [39] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [39] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [39] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [39] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [39] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [39] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [39] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [39] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [39] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [39] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [39] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [39] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [39] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
47 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [38] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [38] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [38] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [38] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [38] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [38] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [38] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [38] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [38] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [38] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [38] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [38] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [38] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
48 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [38] as total from w_table where level = 9 ) - (select indicateurs [39] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [38] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [39] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [38] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [39] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [38] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [39] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [38] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [39] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [38] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [39] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [38] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [39] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [38] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [39] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [38] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [39] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [38] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [39] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [38] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [39] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [38] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [39] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [38] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [39] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
49 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [38] as total from w_table where level = 9 ) - (select indicateurs [39] as total from w_table where level = 9 ))*100, (select indicateurs [39] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [39] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [39] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [39] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [39] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [39] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [39] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [39] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [39] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [39] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [39] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [39] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [39] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [39] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [39] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [39] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [39] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [39] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [39] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [39] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [39] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [39] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [39] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [38] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [39] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [39] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA011]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
50 as rang,
|
|
|
(SELECT libelle[13] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
51 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [43] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [43] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [43] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [43] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [43] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [43] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [43] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [43] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [43] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [43] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [43] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [43] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [43] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
52 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [42] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [42] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [42] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [42] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [42] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [42] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [42] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [42] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [42] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [42] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [42] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [42] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [42] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
53 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [42] as total from w_table where level = 9 ) - (select indicateurs [43] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [42] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [43] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [42] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [43] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [42] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [43] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [42] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [43] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [42] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [43] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [42] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [43] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [42] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [43] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [42] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [43] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [42] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [43] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [42] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [43] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [42] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [43] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [42] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [43] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
54 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [42] as total from w_table where level = 9 ) - (select indicateurs [43] as total from w_table where level = 9 ))*100, (select indicateurs [42] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [43] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [42] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [43] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [42] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [43] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [42] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [43] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [42] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [43] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [42] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [43] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [42] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [43] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [42] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [43] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [42] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [43] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [42] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [43] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [42] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [43] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [42] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [42] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [43] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [42] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA012]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
55 as rang,
|
|
|
(SELECT libelle[12] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
56 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [47] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [47] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [47] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [47] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [47] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [47] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [47] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [47] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [47] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [47] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [47] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [47] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [47] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
57 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [46] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [46] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [46] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [46] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [46] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [46] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [46] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [46] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [46] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [46] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [46] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [46] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [46] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
58 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [46] as total from w_table where level = 9 ) - (select indicateurs [47] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [46] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [47] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [46] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [47] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [46] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [47] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [46] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [47] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [46] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [47] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [46] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [47] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [46] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [47] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [46] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [47] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [46] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [47] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [46] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [47] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [46] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [47] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [46] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [47] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
59 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [46] as total from w_table where level = 9 ) - (select indicateurs [47] as total from w_table where level = 9 ))*100, (select indicateurs [47] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [47] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [47] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [47] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [47] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [47] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [47] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [47] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [47] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [47] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [47] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [47] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [47] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [47] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [47] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [47] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [47] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [47] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [47] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [47] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [47] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [47] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [47] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [46] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [47] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [47] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA013]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
60 as rang,
|
|
|
(SELECT libelle[13] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
61 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [51] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [51] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [51] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [51] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [51] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [51] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [51] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [51] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [51] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [51] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [51] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [51] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [51] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
62 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [50] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [50] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [50] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [50] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [50] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [50] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [50] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [50] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [50] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [50] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [50] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [50] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [50] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
63 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [50] as total from w_table where level = 9 ) - (select indicateurs [51] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [50] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [51] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [50] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [51] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [50] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [51] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [50] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [51] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [50] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [51] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [50] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [51] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [50] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [51] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [50] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [51] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [50] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [51] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [50] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [51] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [50] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [51] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [50] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [51] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
64 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [50] as total from w_table where level = 9 ) - (select indicateurs [51] as total from w_table where level = 9 ))*100, (select indicateurs [51] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [51] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [51] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [51] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [51] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [51] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [51] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [51] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [51] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [51] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [51] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [51] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [51] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [51] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [51] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [51] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [51] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [51] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [51] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [51] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [51] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [51] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [51] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [50] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [51] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [51] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA014]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
65 as rang,
|
|
|
(SELECT libelle[14] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
66 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [55] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [55] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [55] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [55] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [55] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [55] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [55] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [55] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [55] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [55] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [55] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [55] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [55] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
67 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [54] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [54] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [54] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [54] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [54] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [54] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [54] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [54] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [54] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [54] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [54] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [54] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [54] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
68 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [54] as total from w_table where level = 9 ) - (select indicateurs [55] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [54] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [55] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [54] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [55] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [54] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [55] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [54] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [55] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [54] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [55] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [54] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [55] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [54] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [55] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [54] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [55] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [54] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [55] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [54] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [55] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [54] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [55] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [54] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [55] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
69 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [54] as total from w_table where level = 9 ) - (select indicateurs [55] as total from w_table where level = 9 ))*100, (select indicateurs [55] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [55] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [55] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [55] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [55] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [55] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [55] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [55] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [55] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [55] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [55] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [55] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [55] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [55] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [55] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [55] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [55] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [55] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [55] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [55] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [55] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [55] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [55] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [54] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [55] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [55] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
[EVAL
|
|
|
if ('[DATA015]' != '0') {
|
|
|
return "
|
|
|
union
|
|
|
select
|
|
|
70 as rang,
|
|
|
(SELECT libelle[15] FROM w_header),
|
|
|
(select indicateurs [0] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [0] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [0] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [0] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [0] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [0] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [0] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [0] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [0] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [0] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [0] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [0] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [0] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
union
|
|
|
select
|
|
|
71 as rang,
|
|
|
'Année ' || SUBSTR('[VIEW.PERIODE_D]',0,5),
|
|
|
(select indicateurs [59] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [59] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [59] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [59] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [59] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [59] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [59] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [59] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [59] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [59] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [59] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [59] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [59] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
72 as rang,
|
|
|
'Année ' || SUBSTR('[PERIODE]',0,5),
|
|
|
(select indicateurs [58] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [58] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [58] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [58] as Mars from w_table where level <>9 and code1 = '03'),
|
|
|
(select indicateurs [58] as Avril from w_table where level <>9 and code1 = '04'),
|
|
|
(select indicateurs [58] as Mai from w_table where level <>9 and code1 = '05'),
|
|
|
(select indicateurs [58] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [58] as Juillet from w_table where level <>9 and code1 = '07'),
|
|
|
(select indicateurs [58] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [58] as Septembre from w_table where level <>9 and code1 = '09') ,
|
|
|
(select indicateurs [58] as Octobre from w_table where level <>9 and code1 = '10') ,
|
|
|
(select indicateurs [58] as Novembre from w_table where level <>9 and code1 = '11') ,
|
|
|
(select indicateurs [58] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
73 as rang,
|
|
|
'Ecart N-1' ,
|
|
|
(select indicateurs [58] as total from w_table where level = 9 ) - (select indicateurs [59] as total from w_table where level = 9 ),
|
|
|
(select indicateurs [58] as Janvier from w_table where level <>9 and code1 = '01') -(select indicateurs [59] as Janvier from w_table where level <>9 and code1 = '01'),
|
|
|
(select indicateurs [58] as Fevrier from w_table where level <>9 and code1 = '02') -(select indicateurs [59] as Fevrier from w_table where level <>9 and code1 = '02') ,
|
|
|
(select indicateurs [58] as Mars from w_table where level <>9 and code1 = '03') -(select indicateurs [59] as Mars from w_table where level <>9 and code1 = '03') ,
|
|
|
(select indicateurs [58] as Avril from w_table where level <>9 and code1 = '04') -(select indicateurs [59] as Avril from w_table where level <>9 and code1 = '04') ,
|
|
|
(select indicateurs [58] as Mai from w_table where level <>9 and code1 = '05') -(select indicateurs [59] as Mai from w_table where level <>9 and code1 = '05') ,
|
|
|
(select indicateurs [58] as Juin from w_table where level <>9 and code1 = '06') -(select indicateurs [59] as Juin from w_table where level <>9 and code1 = '06') ,
|
|
|
(select indicateurs [58] as Juillet from w_table where level <>9 and code1 = '07') -(select indicateurs [59] as Juillet from w_table where level <>9 and code1 = '07') ,
|
|
|
(select indicateurs [58] as Aout from w_table where level <>9 and code1 = '08') -(select indicateurs [59] as Aout from w_table where level <>9 and code1 = '08') ,
|
|
|
(select indicateurs [58] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [59] as Septembre from w_table where level <>9 and code1 = '09'),
|
|
|
(select indicateurs [58] as Octobre from w_table where level <>9 and code1 = '10') -(select indicateurs [59] as Octobre from w_table where level <>9 and code1 = '10'),
|
|
|
(select indicateurs [58] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [59] as Novembre from w_table where level <>9 and code1 = '11'),
|
|
|
(select indicateurs [58] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [59] as Decembre from w_table where level <>9 and code1 = '12')
|
|
|
|
|
|
union
|
|
|
|
|
|
select
|
|
|
74 as rang,
|
|
|
'% N-1' ,
|
|
|
round(base.cti_division(((select indicateurs [58] as total from w_table where level = 9 ) - (select indicateurs [59] as total from w_table where level = 9 ))*100, (select indicateurs [59] as total from w_table where level = 9 )),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Janvier from w_table where level <>9 and code1 = '01') - (select indicateurs [59] as Janvier from w_table where level <>9 and code1 = '01'))*100, (select indicateurs [59] as Janvier from w_table where level <>9 and code1 = '01')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [59] as Fevrier from w_table where level <>9 and code1 = '02'))*100, (select indicateurs [59] as Fevrier from w_table where level <>9 and code1 = '02')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Mars from w_table where level <>9 and code1 = '03') - (select indicateurs [59] as Mars from w_table where level <>9 and code1 = '03'))*100, (select indicateurs [59] as Mars from w_table where level <>9 and code1 = '03')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [59] as Avril from w_table where level <>9 and code1 = '04'))*100, (select indicateurs [59] as Avril from w_table where level <>9 and code1 = '04')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Mai from w_table where level <>9 and code1 = '05') - (select indicateurs [59] as Mai from w_table where level <>9 and code1 = '05'))*100, (select indicateurs [59] as Mai from w_table where level <>9 and code1 = '05')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Juin from w_table where level <>9 and code1 = '06') - (select indicateurs [59] as Juin from w_table where level <>9 and code1 = '06'))*100, (select indicateurs [59] as Juin from w_table where level <>9 and code1 = '06')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [59] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [59] as Juillet from w_table where level <>9 and code1 = '07')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Aout from w_table where level <>9 and code1 = '08') - (select indicateurs [59] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [59] as Aout from w_table where level <>9 and code1 = '08')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [59] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [59] as Septembre from w_table where level <>9 and code1 = '09')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Octobre from w_table where level <>9 and code1 = '10') - (select indicateurs [59] as Octobre from w_table where level <>9 and code1 = '10'))*100, (select indicateurs [59] as Octobre from w_table where level <>9 and code1 = '10')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Novembre from w_table where level <>9 and code1 = '11') - (select indicateurs [59] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [59] as Novembre from w_table where level <>9 and code1 = '11')),1),
|
|
|
round(base.cti_division(((select indicateurs [58] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [59] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [59] as Decembre from w_table where level <>9 and code1 = '12')),1)
|
|
|
";
|
|
|
}
|
|
|
EVAL]
|
|
|
group by 1
|
|
|
order by 1 asc;
|
|
|
|
|
|
select * from w_temp1 ;
|
|
|
|
|
|
]]> </select>
|
|
|
<FIELDS>
|
|
|
<FIELD name="NN"/>
|
|
|
<FIELD name="N"/>
|
|
|
<FIELD name="N0"/>
|
|
|
<FIELD name="N1"/>
|
|
|
<FIELD name="N2"/>
|
|
|
<FIELD name="N3"/>
|
|
|
<FIELD name="N4"/>
|
|
|
<FIELD name="N5"/>
|
|
|
<FIELD name="N6"/>
|
|
|
<FIELD name="N7"/>
|
|
|
<FIELD name="N8"/>
|
|
|
<FIELD name="N9"/>
|
|
|
<FIELD name="N10"/>
|
|
|
<FIELD name="N11"/>
|
|
|
<FIELD name="N12"/>
|
|
|
<FIELD name="N13"/>
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
|
|
|
|
|
|
<SQL>
|
|
|
<select><![CDATA[
|
|
|
SELECT 'PERIODE_D' , CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[PERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') ELSE '[PERIODE_D]' END::text
|
|
|
UNION
|
|
|
SELECT 'TOPERIODE_D' , CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') ELSE '[TOPERIODE_D]' END::text
|
|
|
UNION
|
|
|
SELECT 'PERIODE_D_LABEL', CASE WHEN CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[PERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') ELSE '[PERIODE_D]' END = p_calendrier_mois.date_debut THEN p_calendrier_mois.texte ELSE p_calendrier.texte_court END
|
|
|
FROM base.p_calendrier
|
|
|
JOIN base.p_calendrier_mois ON p_calendrier.mois = p_calendrier_mois.mois
|
|
|
WHERE date = CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[PERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') ELSE '[PERIODE_D]' END
|
|
|
UNION
|
|
|
SELECT 'TOPERIODE_D_LABEL', CASE WHEN CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') ELSE '[TOPERIODE_D]' END = p_calendrier_mois.date_fin THEN p_calendrier_mois.texte ELSE p_calendrier.texte_court END
|
|
|
FROM base.p_calendrier
|
|
|
JOIN base.p_calendrier_mois ON p_calendrier.mois = p_calendrier_mois.mois
|
|
|
WHERE date = CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') ELSE '[TOPERIODE_D]' END
|
|
|
]]> </select>
|
|
|
<FIELDS>
|
|
|
<FIELD name="name" />
|
|
|
<FIELD name="value" />
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
|
|
|
</QUERY>
|
|
|
<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
|
|
|
<SQL>
|
|
|
<select><![CDATA[
|
|
|
|
|
|
SELECT 'ANA_CROI_PERIODE', to_char(greatest( date_trunc('year', '[TOPERIODE]'::date) - INTERVAL '3 year',
|
|
|
(SELECT date_trunc('year', min(date_comptable)) FROM activite.p_chiffrier_comptable)
|
|
|
)::date, 'YYYY-MM-DD')
|
|
|
UNION ALL
|
|
|
SELECT 'ANA_CROI_TOPERIODE', to_char(
|
|
|
least( date_trunc('year', '[TOPERIODE]'::date) - interval '1 day' + interval '1 year',
|
|
|
'[TOPERIODE]'::date)
|
|
|
, 'YYYY-MM-DD')
|
|
|
UNION ALL
|
|
|
SELECT 'COMP_PERIODE', to_char(
|
|
|
greatest( date_trunc('year', '[TOPERIODE]'::date),
|
|
|
date_trunc('month', '[PERIODE]'::date))
|
|
|
, 'YYYY-MM-DD')
|
|
|
UNION ALL
|
|
|
SELECT 'COMP_PERIODE_D', to_char(
|
|
|
greatest( date_trunc('year', '[TOPERIODE]'::date) - interval '1 year',
|
|
|
date_trunc('month', '[PERIODE]'::date) - interval '1 year')
|
|
|
, 'YYYY-MM-DD')
|
|
|
UNION ALL
|
|
|
SELECT 'COMP_TOPERIODE_D', to_char(
|
|
|
least( date_trunc('year', '[TOPERIODE]'::date) - interval '1 day',
|
|
|
'[TOPERIODE]'::date - interval '1 year')
|
|
|
, 'YYYY-MM-DD')
|
|
|
|
|
|
]]> </select>
|
|
|
<FIELDS>
|
|
|
<FIELD name="name" />
|
|
|
<FIELD name="value" />
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
</QUERIES>
|
|
|
<PRESENTATION>
|
|
|
<VIEWLINKS>
|
|
|
<VIEWLINK label="Dernier mois/année" shortLabel="Dernier mois/année" rowContext="false" buttonType="VIEWLINKPOPUP">
|
|
|
<VIEWITEM label="Dernier mois" shortLabel="Dernier mois" view="ACTI000056.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
|
|
|
<ARG name="ALIAS_PERIODE" value="return '-1';" />
|
|
|
<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,8)+'01';"/>
|
|
|
<ARG name="TOPERIODE" value=" return SELECT.TOPERIODE;"/>
|
|
|
<ARG name="GROUPBY" value="return VIEW.GROUPBY_DATE;"/>
|
|
|
<ARG name="GROUPBY_2" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_3" value="return '-1';" />
|
|
|
<ARG name="LGROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;" />
|
|
|
<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;" />
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="DATA4" value="'NAM';"/>
|
|
|
<ARG name="DATA5" value="'NJNAS';"/>
|
|
|
<ARG name="TYPE_COMPARAISON" value="'2'" />
|
|
|
<ARG name="GROUPBY_TAB" value="return 'TAB';" />
|
|
|
</VIEWITEM>
|
|
|
<VIEWITEM label="∑ dernier mois" data="2" shortLabel="∑ dernier mois" view="ACTI000182.XML" enabled="true" rowContext="false" buttonType="COMPARATIF">
|
|
|
<ARG name="ALIAS_PERIODE" value="return '-1';" />
|
|
|
<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,8)+'01';"/>
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="GROUPBY" value="return VIEW.GROUPBY_DATE;"/>
|
|
|
<ARG name="GROUPBY_2" value="return '-1';" />
|
|
|
<ARG name="GROUPBY_3" value="return '-1';" />
|
|
|
<ARG name="LGROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;" />
|
|
|
<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;" />
|
|
|
<ARG name="TYPE_COMPARAISON" value="return '2';" />
|
|
|
</VIEWITEM>
|
|
|
<VIEWITEM label="Dernière année" data="2" shortLabel="derniere année" view="ACTI000056.XML" enabled="true" rowContext="false" buttonType="COMPARATIF">
|
|
|
<ARG name="ALIAS_PERIODE" value="return '-1';" />
|
|
|
<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>
|
|
|
<ARG name="TOPERIODE" value=" return SELECT.TOPERIODE;"/>
|
|
|
<ARG name="GROUPBY" value="return 'NUMEROMOIS';"/>
|
|
|
<ARG name="GROUPBY_2" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_3" value="return '-1';" />
|
|
|
<ARG name="LGROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;" />
|
|
|
<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;" />
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="DATA4" value="'NAM';"/>
|
|
|
<ARG name="DATA5" value="'NJNAS';"/>
|
|
|
<ARG name="TYPE_COMPARAISON" value="'2'" />
|
|
|
<ARG name="GROUPBY_TAB" value="return 'TAB';" />
|
|
|
</VIEWITEM>
|
|
|
<VIEWITEM label="∑ dernière Année" shortLabel="∑ derniere année" view="ACTI000182.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
|
|
|
<ARG name="ALIAS_PERIODE" value="return '-1';" />
|
|
|
<ARG name="PERIODE_D" value="return VIEW.COMP_PERIODE_D;" />
|
|
|
<ARG name="TOPERIODE_D" value="return VIEW.COMP_TOPERIODE_D;" />
|
|
|
<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
|
|
|
<ARG name="TOPERIODE" value=" return SELECT.TOPERIODE;" />
|
|
|
<ARG name="GROUPBY" value="return 'NUMEROMOIS';"/>
|
|
|
<ARG name="GROUPBY_2" value="return '-1';"/>
|
|
|
<ARG name="GROUPBY_3" value="return '-1';"/>
|
|
|
<ARG name="LGROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;" />
|
|
|
<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;" />
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="TYPE_COMPARAISON" value="'2'" />
|
|
|
</VIEWITEM>
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Comparatif" shortLabel="Comparatif" view="ACTI000056.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
|
|
|
<ARG name="PERIODE" value="return VIEW.COMP_PERIODE;" />
|
|
|
<ARG name="PERIODE_D" value="return VIEW.COMP_PERIODE_D;" />
|
|
|
<ARG name="TOPERIODE_D" value="return VIEW.COMP_TOPERIODE_D;" />
|
|
|
<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_2" value="return '-1';" />
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="DATA4" value="'NAM';"/>
|
|
|
<ARG name="DATA5" value="'NJNAS';"/>
|
|
|
<ARG name="TYPE_COMPARAISON" value="'S'" />
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Comparatif mensuel" shortLabel="Comp. mensuel" view="ACTI000165.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
|
|
|
<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_2" value="return '-1';" />
|
|
|
<ARG name="TYPE_COMPARAISON" value="'2'" />
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Evolution comparative" shortLabel="Evol. comparative" rowContext="false" buttonType="VIEWLINK_EVO_COMP">
|
|
|
<VIEWITEM label="Standard" shortLabel="Evolution comparative" view="ACTI000173.XML" rowContext="false" enabled="true" buttonType="VIEWLINK_EVO_COMP">
|
|
|
<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_2" value="return 'NUMEROMOIS';" />
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="DATA4" value="'NAM';"/>
|
|
|
<ARG name="DATA5" value="'NJNAS';"/>
|
|
|
<ARG name="DATA6" value="return '0';" />
|
|
|
<ARG name="DATA7" value="return '0';" />
|
|
|
<ARG name="DATA8" value="return '0';" />
|
|
|
<ARG name="DATA9" value="return '0';"/>
|
|
|
<ARG name="DATA10" value="return '0';"/>
|
|
|
<ARG name="DATA011" value="return '0';" />
|
|
|
<ARG name="DATA012" value="return '0';" />
|
|
|
<ARG name="DATA013" value="return '0';" />
|
|
|
<ARG name="DATA014" value="return '0';"/>
|
|
|
<ARG name="DATA015" value="return '0';"/>
|
|
|
<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
|
|
|
<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;"/>
|
|
|
<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;"/>
|
|
|
<ARG name="GROUPBY_TAB" value="return 'TAB';" />
|
|
|
<ARG name="TYPE_COMPARAISON" value="'2'" />
|
|
|
</VIEWITEM>
|
|
|
<VIEWITEM label="Détaillée" shortLabel="Evolution comparative" view="ACTI000173.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
|
|
|
<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_2" value="return 'NUMEROMOIS';" />
|
|
|
<ARG name="DATA1" value="'NSEJ'" />
|
|
|
<ARG name="DATA2" value="'NSD'" />
|
|
|
<ARG name="DATA3" value="'NJN'" />
|
|
|
<ARG name="DATA4" value="'NAM';"/>
|
|
|
<ARG name="DATA5" value="'NJNAS';"/>
|
|
|
<ARG name="DATA6" value="'NSE'" />
|
|
|
<ARG name="DATA7" value="'NEX'" />
|
|
|
<ARG name="DATA8" value="'EMC'" />
|
|
|
<ARG name="DATA9" value="'DMSHES';"/>
|
|
|
<ARG name="DATA10" value="'DMSHON';"/>
|
|
|
<ARG name="DATA011" value="return '0';" />
|
|
|
<ARG name="DATA012" value="return '0';" />
|
|
|
<ARG name="DATA013" value="return '0';" />
|
|
|
<ARG name="DATA014" value="return '0';"/>
|
|
|
<ARG name="DATA015" value="return '0';"/>
|
|
|
<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
|
|
|
<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;"/>
|
|
|
<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;"/>
|
|
|
<ARG name="GROUPBY_TAB" value="return 'TAB';" />
|
|
|
<ARG name="TYPE_COMPARAISON" value="'2'" />
|
|
|
</VIEWITEM>
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Evolution" shortLabel="Evolution" view="ACTI000054.XML" rowContext="false" enabled="true" buttonType="EVOLUTION" componentName="PERIODICITE_VIEWLINK" component2Name="OCC_BASE_VIEWLINK">
|
|
|
<ARG name="DATA" value="'NSD'" />
|
|
|
<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_2" value="return '-1';" />
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Répartition hebdomadaire" shortLabel="Répartition hebdo" view="ACTI000036.XML" rowContext="false" enabled="true" buttonType="EVOLUTION" componentName="OCC_BASE_VIEWLINK">
|
|
|
<ARG name="DATA" value="'NSD'" />
|
|
|
<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
|
|
|
<ARG name="GROUPBY_2" value="return '-1';" />
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Analyse croisée" shortLabel="Analyse croisée" view="ACTI000072.XML" enabled="true" rowContext="false" buttonType="ANALYSE_CROISEE" componentName="OCC_BASE_VIEWLINK">
|
|
|
<ARG name="PERIODE" value="return VIEW.ANA_CROI_PERIODE;" />
|
|
|
<ARG name="TOPERIODE" value="return VIEW.ANA_CROI_TOPERIODE;" />
|
|
|
<ARG name="COLUMNBY" value="'NUMEROMOIS'" />
|
|
|
<ARG name="GROUPBY" value="'ANNEE'" />
|
|
|
<ARG name="GROUPBY_2" value="if (SELECT.GROUPBY == 'ANNEE' || SELECT.GROUPBY == 'JOUR') {return 'SER';} else {return SELECT.GROUPBY;}" />
|
|
|
<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
|
|
|
<ARG name="GROUPBY_TAB" value="'TAB'" />
|
|
|
<ARG name="COLUMNBYCOUNT" value="'12'" />
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Analyse" shortLabel="Analyse" view="ACTI000123.XML" enabled="true" rowContext="false" buttonType="ANALYSE">
|
|
|
<ARG name="ALIAS_PERIODE" value="return '-1'" />
|
|
|
<ARG name="GROUPBY" value="return SELECT.LGROUPBY;" />
|
|
|
<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY_2;" />
|
|
|
<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_3;" />
|
|
|
<ARG name="GROUPBY_TAB" value="return 'TAB';" />
|
|
|
</VIEWLINK>
|
|
|
<VIEWLINK label="Liste des séjours" shortLabel="Séjours" view="ACTI000052.XML" componentName="OCC_BASE_VIEWLINK" component3Name="STANDARD_BASE_VIEWLINK">
|
|
|
<ARG name="DATA" value="if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NED') {return 'ENT'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NEM') {return 'ENT'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NSD') {return 'SOR'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NSM') {return 'SOR'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NJN') {return 'JRN'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NJNM') {return 'JRN'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NCP') {return 'CP'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NEX') {return 'EXT'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NEXM') {return 'EXT'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NAM') {return 'AMB'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NAMM') {return 'AMB'}
|
|
|
if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') & SELECT.DATA1 == 'NSE') {return 'SEA'}
|
|
|
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NED') {return 'ENT'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NEM') {return 'ENT'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NSD') {return 'SOR'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NSM') {return 'SOR'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NJN') {return 'JRN'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NJNM') {return 'JRN'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NCP') {return 'CP'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NEX') {return 'EXT'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NEXM') {return 'EXT'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NAM') {return 'AMB'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NAMM') {return 'AMB'}
|
|
|
if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') & SELECT.DATA2 == 'NSE') {return 'SEA'}
|
|
|
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NED') {return 'ENT'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NEM') {return 'ENT'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NSD') {return 'SOR'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NSM') {return 'SOR'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NJN') {return 'JRN'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NJNM') {return 'JRN'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NCP') {return 'CP'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NEX') {return 'EXT'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NEXM') {return 'EXT'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NAM') {return 'AMB'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NAMM') {return 'AMB'}
|
|
|
if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') & SELECT.DATA3 == 'NSE') {return 'SEA'}
|
|
|
|
|
|
return '-1'"/>
|
|
|
</VIEWLINK>
|
|
|
</VIEWLINKS>
|
|
|
<ONGLET excelLabel="Répartition mensuelle" label="Synthèse" multiTab="true" queryNumber="1">
|
|
|
<CHART title="" type="group" subType="h" percentHeight="100" fromTotal="false">
|
|
|
<CHART title="Comparatif" type="columnChart" serieIsCategory="true" fromTotal="false" maxItems="2" maxItemsSortOn="" sortField="" sortSeq="" condition="ROW.NN == 1 || ROW.NN == 2">
|
|
|
<CATEGORY field="N" type="Char" displayName="return SELECT.DATA13" displayNameCalc="true"/>
|
|
|
<SERIE field="N0" displayName=" return SELECT.DATA13 + ' Total' " displayNameCalc="true" />
|
|
|
</CHART>
|
|
|
<CHART title="Comparatif total " type="lineChart" serieIsCategory="true" fromTotal="false" maxItems="2" maxItemsSortOn="" sortField="" sortSeq="" condition="ROW.NN == 1 || ROW.NN == 2">
|
|
|
<CATEGORY field="N" type="Char" displayName="return SELECT.DATA13" displayNameCalc="true" />
|
|
|
<SERIE field="N1" displayName="'Janvier'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|1|',0)) !='-1'" />
|
|
|
<SERIE field="N2" displayName="'Fevrier'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|2',0)) !='-1'" />
|
|
|
<SERIE field="N3" displayName="'Mars'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|3',0)) !='-1'" />
|
|
|
<SERIE field="N4" displayName="'Avril'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|4',0)) !='-1'" />
|
|
|
<SERIE field="N5" displayName="'Mai'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|5',0)) !='-1'" />
|
|
|
<SERIE field="N6" displayName="'Juin'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|6',0)) !='-1'" />
|
|
|
<SERIE field="N7" displayName="'Juillet'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|7',0)) !='-1'" />
|
|
|
<SERIE field="N8" displayName="'Aout'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|8',0)) !='-1'" />
|
|
|
<SERIE field="N9" displayName="'Septembre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|9',0)) !='-1'" />
|
|
|
<SERIE field="N10" displayName="'Octobre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|10',0)) !='-1'" />
|
|
|
<SERIE field="N11" displayName="'Novembre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|11',0)) !='-1'" />
|
|
|
<SERIE field="N12" displayName="'Décembre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|12',0)) !='-1'" />
|
|
|
</CHART>
|
|
|
</CHART>
|
|
|
<DATAGRID title="" total="true" showOthers="true" headerHeight="36" variableRowHeight="true" sortable="false" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
|
|
|
<INSERT name="DATAGRID_MULTITAB_STYLES"/>
|
|
|
<ROWSTYLE name="fontSize" value="12"/>
|
|
|
<ROWSTYLE name="fontSize" value="13" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="backgroundColor" value="0xCCCCCC" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="fontWeight" value="bold" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="color" value="0xC0392B" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="paddingLeft" value="20" condition=" ROW.NN % 5 != '0'"/>
|
|
|
<COLUMN dataField="N" minWidth="150" type="char" fixed="false" headerText="Libellé" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="NN" visible="false" />
|
|
|
<COLUMN dataField="N0" width="120" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Total" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N1" width="120" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Janvier" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|1|',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N2" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Février" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|2',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N3" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Mars" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|3',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N4" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Avril" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|4',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N5" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Mai" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|5',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N6" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Juin" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|6',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N7" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Juillet" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|7',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N8" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Aout" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|8',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N9" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Septembre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|9',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N10" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Octobre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|10',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N11" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Novembre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|11',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N12" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Décembre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|12',0)) !='-1'" textAlign="right" otherFunction="sum" totalFunction="sum">
|
|
|
</COLUMN>
|
|
|
</DATAGRID>
|
|
|
</ONGLET>
|
|
|
<ONGLET excelLabel="Répartition mensuelle" label="Arborescence" multiTab="true">
|
|
|
<CHART title="" type="group" subType="h" percentHeight="100" fromTotal="false">
|
|
|
<CHART title="Comparatif" type="columnChart" serieIsCategory="true" fromTotal="false" maxItems="2" maxItemsSortOn="" sortField="" sortSeq="" condition="ROW.NN == 1 || ROW.NN == 2">
|
|
|
<CATEGORY field="N" type="Char" displayName="return SELECT.DATA13" displayNameCalc="true"/>
|
|
|
<SERIE field="N1" displayName=" return 'Total' " displayNameCalc="true" />
|
|
|
</CHART>
|
|
|
<CHART title="Evolution comparative" type="lineChart" serieIsCategory="true" fromTotal="false" maxItems="2" maxItemsSortOn="" sortField="" sortSeq="" condition="ROW.NN == 1 || ROW.NN == 2">
|
|
|
<CATEGORY field="N" type="Char" />
|
|
|
<SERIE field="N2" displayName="'Janvier'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|1',0)) !='-1'" />
|
|
|
<SERIE field="N3" displayName="'Fevrier'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|2',0)) !='-1'" />
|
|
|
<SERIE field="N4" displayName="'Mars'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|3',0)) !='-1'" />
|
|
|
<SERIE field="N5" displayName="'Avril'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|4',0)) !='-1'" />
|
|
|
<SERIE field="N6" displayName="'Mai'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|5',0)) !='-1'" />
|
|
|
<SERIE field="N7" displayName="'Juin'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|6',0)) !='-1'" />
|
|
|
<SERIE field="N8" displayName="'Juillet'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|7',0)) !='-1'" />
|
|
|
<SERIE field="N9" displayName="'Aout'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|8',0)) !='-1'" />
|
|
|
<SERIE field="N10" displayName="'Septembre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|9',0)) !='-1'" />
|
|
|
<SERIE field="N11" displayName="'Octobre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|10',0)) !='-1'" />
|
|
|
<SERIE field="N12" displayName="'Novembre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|11',0)) !='-1'" />
|
|
|
<SERIE field="N13" displayName="'Décembre'" displayNameCalc="true" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|12',0)) !='-1'" />
|
|
|
</CHART>
|
|
|
</CHART>
|
|
|
<DATAGRID title="" total="true" showOthers="true" headerHeight="36" sortable="false" variableRowHeight="true">
|
|
|
<INSERT name="DATAGRID_MULTITAB_STYLES"/>
|
|
|
<ROWSTYLE name="fontSize" value="12"/>
|
|
|
<ROWSTYLE name="fontSize" value="13" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="backgroundColor" value="0xCCCCCC" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="fontWeight" value="bold" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="color" value="0xC0392B" condition=" ROW.NN % 5 == '0'"/>
|
|
|
<ROWSTYLE name="paddingLeft" value="20" condition=" ROW.NN % 5 != '0'"/>
|
|
|
<COLUMN dataField="N" minWidth="150" type="char" fixed="false" headerText="Libellé">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="NN" visible="false" />
|
|
|
<COLUMN dataField="N1" width="120" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Total" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N2" width="120" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Janvier" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|1|',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N3" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Février" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|2',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N4" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Mars" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|3',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N5" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Avril" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|4',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N6" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Mai" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|5',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N7" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Juin" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|6',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N8" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Juillet" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|7',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N9" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Aout" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|8',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N10" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Septembre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|9',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N11" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Octobre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|10',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N12" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Novembre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|11',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N13" width="100" type="Number" outputFormat="=
|
|
|
if(ROW.NN == 4 || ROW.NN == 9 || ROW.NN % 10 == 4 || ROW.NN % 10 == 9) {return '#%';}
|
|
|
else if(ROW.NN == 1 || ROW.NN == 2 || ROW.NN == 3){return SELECT.DATA12;}
|
|
|
else if(ROW.NN == 6 || ROW.NN == 7 || ROW.NN == 8){return SELECT.DATA22;}
|
|
|
else if(ROW.NN == 11 || ROW.NN == 12 || ROW.NN == 13){return SELECT.DATA32;}
|
|
|
else if(ROW.NN == 16 || ROW.NN == 17 || ROW.NN == 18){return SELECT.DATA42;}
|
|
|
else if(ROW.NN == 21 || ROW.NN == 22 || ROW.NN == 23){return SELECT.DATA52;}
|
|
|
else if(ROW.NN == 26 || ROW.NN == 27 || ROW.NN == 28){return SELECT.DATA62;}
|
|
|
else if(ROW.NN == 31 || ROW.NN == 32 || ROW.NN == 33){return SELECT.DATA72;}
|
|
|
else if(ROW.NN == 36 || ROW.NN == 37 || ROW.NN == 38){return SELECT.DATA82;}
|
|
|
else if(ROW.NN == 41 || ROW.NN == 42 || ROW.NN == 43){return SELECT.DATA92;}
|
|
|
else if(ROW.NN == 46 || ROW.NN == 47 || ROW.NN == 48){return SELECT.DATA102;}
|
|
|
else if(ROW.NN == 51 || ROW.NN == 52 || ROW.NN == 53){return SELECT.DATA0112;}
|
|
|
else if(ROW.NN == 56 || ROW.NN == 57 || ROW.NN == 58){return SELECT.DATA0122;}
|
|
|
else if(ROW.NN == 61 || ROW.NN == 62 || ROW.NN == 63){return SELECT.DATA0132;}
|
|
|
else if(ROW.NN == 66 || ROW.NN == 67 || ROW.NN == 68){return SELECT.DATA0142;}
|
|
|
else if(ROW.NN == 71 || ROW.NN == 72 || ROW.NN == 73){return SELECT.DATA0152;}
|
|
|
" fixed="false" headerText="Décembre" visibleCondition="('[VIEW.NB_MOIS]'.indexOf('|12',0)) !='-1'" textAlign="right">
|
|
|
</COLUMN>
|
|
|
</DATAGRID>
|
|
|
</ONGLET>
|
|
|
</PRESENTATION>
|
|
|
</VUE>
|