<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="ACTI000154" label="Activité. Evolution comparatif facturation" title="= SELECT.DATA_LABEL + ' par ' +  SELECT.GROUPBY_LABEL + ' (' + SELECT.QUELLEDATE_LABEL + ' : ' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'" database="iCTI" swf="*CTI_view1" softCode="iCTI_activite" globals="ACTI_globals.XML" componentsFile="ACTI_components.XML" helpFile="iCTI_ACTI_ACTI000154.HTML" helpDokuWIkiDir="activite:activite_facturee_et_valorisee:activite_clinique" helpDokuWIkiFile="acti000154">
	<title><![CDATA[=	
		
		var group_by_label = '';
		if (SELECT.GROUPBY_2 != '-1') {
			group_by_label = ' par ' + SELECT.GROUPBY_2_LABEL;
		}
		if (SELECT.GROUPBY != '-1') {
			group_by_label = group_by_label + ' et ' + SELECT.GROUPBY_LABEL;
		}
		
		var date_label = '('+ SELECT.QUELLEDATE_LABEL +' : '+ 'N-1 : '+ VIEW.PERIODE_D_LABEL + ' à ' +  VIEW.TOPERIODE_D_LABEL + ' vs ' + ' N : '+ SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')';

		
		return 'Evolution comparative ' + group_by_label + ' ' + date_label;
		
	]]>	</title>

	<VIEWPROPERTIES componentName="PROPERTIES_PRESTATIONS"/>
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />

		<PROPERTY name="DATAHEADERTEXT">
			<value><![CDATA[[EVAL 
				// <?php
				function ACTI000154_dataheadertext($DATA) {
					switch ($DATA) {
					case 'NBSEJ':
						return "Nombre de séjours facturés";
						break;
					case 'NBSEJHC':
						return "Nombre de séjours facturés HC";
						break;
					case 'NBSEJHJ':
						return "Nombre de séjours facturés HJ";
						break;
					case 'NBSEJAU':
						return "Nombre de séjours facturés AUTRES";
						break;
					case 'NBSEJAU':
						return "Nombre de séjours facturés AUTRES";
						break;
					case 'NBFAC':
						return "Nombre de factures";
						break;
					case 'NBRUB':
						return "Nombre de rubriques facturées";
						break;
					case 'NBPRE':
						return "Nombre de prestations facturées";
						break;
					case 'FACNBJ':
						return "Nombre de journées facturées";
						break;
					case 'MTFAC':
						return "CA facturé";
						break;
					case 'MMFACEMC':
						return "CA facturé moyen EMC";
						break;
					case 'MMTFAC':
						return "CA facturé moyen";
						break;
					case 'FACMTTHC':
						return "CA facturé HC";
						break;
					case 'MFACMTTHC':
						return "CA moyen facturé HC";
						break;
					case 'MMTFACHC':
						return "CA EMC facturé moyen HC";
						break;
					case 'FACMTTHJ':
						return "CA facturé HJ";
						break;
					case 'MMTFACHJ':
						return "CA moyen facturé HJ";
						break;
					case 'FACMTTHA':
						return "CA facturé Autres";
						break;
					case 'MMTFACAU':
						return "CA moyen facturé Autres";
						break;
					case 'VALNBS':
						return "Séjours valorisés";
						break;
					case 'VALEMC':
						return "Nombre EMC valorisés";
						break;
					case 'NBSEJENC2':
						return "Nb séjours valorisés (Sorties non facturés Non groupés)";
						break;
					case 'NBSEJENC1':
						return "Nb séjours valorisés (Sorties non facturés Groupés ou Hors PMSI)";
						break;
					case 'NBSEJENC':
						return "Nb séjours valorisés (Sorties non facturés)";
						break;
					case 'NBSEJENC3':
						return "Nb séjours valorisés (Présents)";
						break;
					case 'NBRUBENC1':
						return "Nb rubriques valorisées (Sorties non facturés Groupés ou Hors PMSI)";
						break;
					case 'NBRUBENC2':
						return "Nb rubriques valorisées (Sorties non facturés Non groupés)";
						break;
					case 'NBRUBENC3':
						return "Nb rubriques valorisées (Présents)";
						break;
					case 'NBRUBENC':
						return "Nb rubriques valorisées (Sorties non facturés)";
						break;
					case 'NBPREENC':
						return "Nb prestations valorisées (Sorties non facturés)";
						break;
					case 'NBPREENC1':
						return "Nb prestations valorisées (Sorties non facturés Groupés ou Hors PMSI)";
						break;
					case 'NBPREENC2':
						return "Nb prestations valorisées (Sorties non facturés Non groupés)";
						break;
					case 'NBPREENC3':
						return "Nb prestations valorisées (Présents)";
						break;
					case 'VALNBJ':
						return "Nombre de journées valorisées";
						break;
					case 'MTENC':
						return "C.A valorisé";
						break;
					case 'MMVALEMC':
						return "CA moyen valorisé EMC";
						break;
					case 'MTENC':
						return "C.A valorisé (Sorties non facturés)";
						break;
					case 'MTENC1':
						return "C.A valorisé (Sorties non facturés Groupés ou Hors PMSI)";
						break;
					case 'MTENC2':
						return "C.A valorisé (Sorties non facturés Non groupés)";
						break;
					case 'MTENC3':
						return "C.A valorisé (Présents)";
						break;
					case 'VALMTHCGR':
						return "C.A valorisé HC (Groupés)";
						break;
					case 'VALMTHCNG':
						return "C.A valorisé HC ( Non groupés)";
						break;
					case 'VALMTHCT':
						return "C.A valorisé HC total";
						break;
					case 'VALMTHJGR':
						return "C.A valorisé HJ (Groupés)";
						break;
					case 'VALMTHJNG':
						return "C.A valorisé HJ ( Non groupés)";
						break;
					case 'VALMTHJT':
						return "C.A valorisé HJ total";
						break;
					case 'VALMTHA':
						return "C.A valorisé Autres";
						break;
					case 'MTFACENC':
						return "C.A facturé et valorisé (Sorties non facturés)";
						break;
					case 'FAVNBS':
						return "Séjours facturés et valorisés";
						break;
					case 'FAVEMC':
						return "Nombre EMC facturés et valorisés";
						break;
					case 'NBSEJFACENC':
						return "Nb séjours facturés et valorisés (Sorties non facturés)";
						break;
					case 'FAVNBSHC':
						return "Nombre de séjours  HC";
						break;
					case 'FAVNBEMCHC':
						return "Nombre EMC HC";
						break;
					case 'FAVNBSHJ':
						return "Nombre de séjours  HJ";
						break;
					case 'FAVNBSHA':
						return "Nombre de séjours AUTRES";
						break;
					case 'NBRUBFACENC':
						return "Nb rubriques facturées et valorisées (Sorties non facturés)";
						break;
					case 'NBPREFACENC':
						return "Nb prestations facturées et valorisées (Sorties non facturés)";
						break;
					case 'FAVNBJ':
						return "Nombre de journées total";
						break;
					case 'FAVNBJ':
						return "Nombre de journées total";
						break;
					case 'MMFPVEMC':
						return "C.A Moyen EMC Facturé et valorisé";
						break;
					case 'MTFACENC':
						return "C.A facturé et valorisé (Sorties non facturés)";
						break;
					case 'MMTFACENC':
						return "C.A Moyen Facturé et valorisé (Sorties non facturés)";
						break;
					case 'FAVMTTHC':
						return "C.A facturé et valorisé HC";
						break;
					case 'FAVCAMHC':
						return "CA Moyen facturé et valorisé HC";
						break;
					case 'MFPVEMCHC':
						return "C.A EMC facturé et valorisé HC";
						break;
					case 'MFAVCAMHC':
						return "CA moyen EMC facturé et valorisé HC";
						break;
					case 'FAVMTTHJ':
						return "C.A facturé et valorisé HJ";
						break;
					case 'FAVCAMHJ':
						return "CA moyen facturé et valorisé HJ";
						break;
					case 'FAVMTTHA':
						return "C.A facturé et valorisé Autres";
						break;
					case 'FAVCAMAU':
						return "CA moyen facturé et valorisé Autres";
						break;
					case 'FAVDMS':
						return "DMS hospitalisés";
						break;
					case 'MTCPT':
						return "C.A comptabilisé total";
						break;
					case 'MTCPTHBG':
						return "C.A comptabilisé Hors Budget Global";
						break;
					case 'NBSEJ':
						return "Séjours par tiers";
						break;
					case 'FACNS1':
						return "Séjours AMO";
						break;
					case 'FACNS2':
						return "Séjours AMC";
						break;
					case 'FACNS0':
						return "Séjours Patient";
						break;
					case 'MTFACC':
						return "C.A facturé séjour";
						break;
					case 'MTFACHI':
						return "C.A actes inclus dans séjour";
						break;
					case 'MTFACH':
						return "C.A facturé actes";
						break;
					case 'MTFAC1':
						return "C.A facturé AMO";
						break;
					case 'MTFAC2':
						return "C.A facturé AMC";
						break;
					case 'MTFAC0':
						return "C.A facturé patient";
						break;
					case 'MTCPT1':
						return "C.A comptabilisé AMO";
						break;
					case 'MTCPT1HBG':
						return "C.A comptabilisé AMO Hors Budget Global";
						break;
					case 'MTCPT1BG':
						return "C.A comptabilisé AMO Budget Global";
						break;
					case 'MTCPT2':
						return "C.A comptabilisé AMC";
						break;
					case 'MTCPTHBG':
						return "C.A comptabilisé Hors Budget Global";
						break;
					case 'MTCPT0':
						return "C.A comptabilisé patient";
						break;

					default:
						return "0";
					}
				}				
				
				// ?>
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="HEADERTEXT">
			<value><![CDATA[[EVAL 
				// <?php
				
				return 
					ACTI000154_dataheadertext('[DATA1]') .'|'. 
					ACTI000154_dataheadertext('[DATA2]') .'|'.
					ACTI000154_dataheadertext('[DATA3]') .'|'. 
					ACTI000154_dataheadertext('[DATA4]') .'|'. 
					ACTI000154_dataheadertext('[DATA5]') .'|'. 
					ACTI000154_dataheadertext('[DATA6]') .'|'.
					ACTI000154_dataheadertext('[DATA7]') .'|'. 
					ACTI000154_dataheadertext('[DATA8]') .'|'.
					ACTI000154_dataheadertext('[DATA9]') .'|'.					
                    ACTI000154_dataheadertext('[DATA10]') .'|'.
					ACTI000154_dataheadertext('[DATA011]') .'|'. 
					ACTI000154_dataheadertext('[DATA012]') .'|'.
					ACTI000154_dataheadertext('[DATA013]') .'|'.
					ACTI000154_dataheadertext('[DATA014]') .'|'.
					ACTI000154_dataheadertext('[DATA015]') .'|'.
					ACTI000154_dataheadertext('1');
				
				// ?>
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="RGB_FIELD_COD">
			<value>
				<![CDATA[
					[EVAL 
						if('[QUELLEDATE]' == '1'){return "NUMEROMOISA";}
						if('[QUELLEDATE]' == '2'){return "NUMEROMOIS";}
						if('[QUELLEDATE]' == '3'){return "NUMEROMOISF";}
						if('[QUELLEDATE]' == '4'){return "NUMEROMOISV";}
						if('[QUELLEDATE]' == '5'){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_MOIS_CROSSTAB">
			<value>
				<![CDATA[
					[EVAL 
						$filds1='[PERIODE]';
						$filds2='[TOPERIODE]';
						$format_query = "oidt BIGINT, Total  NUMERIC";
						$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++){
							if($i == '1'){
								$format_query .= ",Jan NUMERIC";
							} 
							if ($i == '2'){
									$format_query .= ",Fev NUMERIC";
								}							
							if ($i == '3'){
									$format_query .= ",Mar NUMERIC";
								}							
							if ($i == '4'){
									$format_query .= ",Avr NUMERIC";
								}							
							if ($i == '5'){
									$format_query .= ",Mai NUMERIC";
								}							
							if ($i == '6'){
									$format_query .= ",Juin NUMERIC";
								}							
							if ($i == '7'){
									$format_query .= ",Juil NUMERIC";
								}							
							if ($i == '8'){
									$format_query .= ",Aout NUMERIC";
								}							
							if ($i == '9'){
									$format_query .= ",Sep NUMERIC";
								}							
							if ($i == '10'){
									$format_query .= ",Oct NUMERIC";
								}							
							if ($i == '11'){
									$format_query .= ",Nov NUMERIC";
								}							
							if ($i == '12'){
									$format_query .= ",Dec NUMERIC";
								}
						}
						return $format_query;
					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>
		<PROPERTY name="JOURNEES_FIELD">
			<value>
				<![CDATA[
						[EVAL 
							$field = 'nb_jours';
							if ('[QJMUT]' == 'd') {$field = $field . '_d';}
							else {
								if ('[QJMUT]' == 'f') {$field = $field . '_f';}
								else {
									if ('[QJMUT]' == '12') {$field = $field . '_12';}
									else {
										if ('[QJMUT]' == 'prorata') {$field = $field . '_prorata';}
										else {
											$field = $field . '_f';
										}
									}
								}
							}
							return $field;
						EVAL]
					]]>
			</value>
		</PROPERTY>
		<PROPERTY name="QUELLEDATE_MVT">
			<value><![CDATA[[EVAL 
                    $column_date = "v_mouvements_sejour_2.date";
                    if ('[QUELLEDATE]' == '2') {
                        $column_date = "p_factures_reference.date_fin_facture";
					}
					return $column_date;
				EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="QMVT_SELECT">
			<value><![CDATA[[EVAL 
                    $qmvt_select = "AND 1=1";
                    if ('[QUELLEDATE]' != '1' && '[QUELLEDATE]' != '2') {
                        $qmvt_select = "AND 1<>1";
                    }
					return $qmvt_select;
				EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA1F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA1]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA1D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA1]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA2F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA2]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA2D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA2]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA3F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA3]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA3D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA3]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA4F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA4]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA4D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA4]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA5F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA5]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA5D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA5]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA6F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA6]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA6D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA6]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA7F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA7]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA7D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA7]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA8F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA8]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA8D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA8]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA9F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA9]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA9D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA9]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA10F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA10]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA10D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA10]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA11F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA011]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA11D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA011]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA12F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA012]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA12D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA012]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA13F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA013]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA13D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA013]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA14F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA014]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA14D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA014]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA15F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA015]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA15D">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA015]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'", "","0"); EVAL]]]></value>
		</PROPERTY>
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse">
		<GROUP label="Période">
			<FIELD name="QUELLEDATE" label="" UI="combo" width="130" default="1" default2="date_fin">
				<OPTION label="Date activité" data="1" data2="v_factures_lignes_c_4.date_fin" />
				<OPTION label="Date sortie" data="2" data2="v_factures_lignes_c_4.date_fin_facture"/>
				<OPTION label="Date facture" data="3" data2="v_factures_lignes_c_4.date_facture"/>
				<OPTION label="Date vente" data="4" data2="v_factures_lignes_c_4.date_vente"/>
				<OPTION label="Date groupage" data="5" data2="v_sejours_1.date_groupage"/>
			</FIELD>
			<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
			<FIELD name="PERIODE" label="De" 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" value="2" width="130" 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" default="-1" tree="true" width="300">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
			<FIELD name="GROUPBY_TAB" label="Présentation" UI="combo" default="TAB" visible="false">
				<OPTION label="Automatique" data="AUTO"/>
				<OPTION label="Arbre" data="TREE"/>
				<OPTION label="Onglet" data="TAB"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="GROUPBY_2" label="Périodicité " UI="combo" default="NUMEROMOISA" tree="true" width="300">
				<OPTION label="Mois d'activité" data="NUMEROMOISA" treeLevel="1"/>
				<OPTION label="Mois de sortie" data="NUMEROMOIS" treeLevel="1"/>
				<OPTION label="Mois de facture" data="NUMEROMOISF" treeLevel="1" />
				<OPTION label="Mois de Vente" data="NUMEROMOISV" treeLevel="1" />
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="GROUPBY_3" label="" UI="combo" default="-1" tree="true" visible="false" width="300">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="LGROUPBY" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
			<FIELD name="LGROUPBY_2" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
			<FIELD name="LGROUPBY_3" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP label="Données">
			<FIELD name="DATA1" tree="true" label="Données" UI="combo" default="MTFAC" width="400" showIfNotDefault="true" printable="false">
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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') &amp;&amp; ( SELECT.DATA2 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
			<FIELD name="DATA4" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
			<FIELD name="DATA6" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
			<FIELD name="DATA8" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0') &amp;&amp; ( SELECT.DATA8 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
			<FIELD name="DATA10" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0') &amp;&amp; ( SELECT.DATA8 != '0') &amp;&amp; ( SELECT.DATA9 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0') &amp;&amp; ( SELECT.DATA8 != '0') &amp;&amp; ( SELECT.DATA9 != '0') &amp;&amp; ( SELECT.DATA10 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
			<FIELD name="DATA012" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0') &amp;&amp; ( SELECT.DATA8 != '0') &amp;&amp; ( SELECT.DATA9 != '0') &amp;&amp; ( SELECT.DATA10 != '0') &amp;&amp; ( SELECT.DATA11 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0') &amp;&amp; ( SELECT.DATA8 != '0') &amp;&amp; ( SELECT.DATA9 != '0') &amp;&amp; ( SELECT.DATA10 != '0') &amp;&amp; ( SELECT.DATA011 != '0') &amp;&amp; ( SELECT.DATA012 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
			<FIELD name="DATA014" tree="true" label="" UI="combo" default="0" default2="0" width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.DATA3 != '0') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0') &amp;&amp; ( SELECT.DATA8 != '0') &amp;&amp; ( SELECT.DATA9 != '0') &amp;&amp; ( SELECT.DATA10 != '0') &amp;&amp; ( SELECT.DATA011 != '0') &amp;&amp; ( SELECT.DATA012 != '0') &amp;&amp; ( SELECT.DATA013 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</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') &amp;&amp; ( SELECT.DATA2 != '0') &amp;&amp; ( SELECT.DATA1 != '0') &amp;&amp; ( SELECT.DATA4 != '0') &amp;&amp; ( SELECT.DATA5 != '0') &amp;&amp; ( SELECT.DATA6 != '0') &amp;&amp; ( SELECT.DATA7 != '0') &amp;&amp; ( SELECT.DATA8 != '0') &amp;&amp; ( SELECT.DATA9 != '0') &amp;&amp; ( SELECT.DATA10 != '0') &amp;&amp; ( SELECT.DATA011 != '0') &amp;&amp; ( SELECT.DATA012 != '0') &amp;&amp; ( SELECT.DATA013 != '0') &amp;&amp; ( SELECT.DATA014 != '0')">
				<OPTION label="" data="0"/>
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="RUBRIQUE_CA" label="C.A." UI="combo" tree="true" width="200" default="-1" globalListProvider="RUBRIQUES_CA" showIfNotDefault="true" />
			<FIELD name="RUBRIQUE_CODES" label="Codes" UI="text" width="150" default="" showIfNotDefault="true" visible="= SELECT.RUBRIQUE == 'SAISIECODE' " />
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_PRESTATIONS_SOUSSELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PRESTATIONS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SEJOURS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PATIENTS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PASSAGES_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_SEJOURS_X" optimizer2="V_FACTURES_LIGNES_C_X">
				<select><![CDATA[ 
					
					DROP TABLE IF EXISTS ACTI000063_SEJ;
                    CREATE TEMP TABLE ACTI000063_SEJ AS
                    SELECT v_factures_lignes_c_4.no_sejour
                        FROM #V_FACTURES_LIGNES_C_X#
                        JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
                    WHERE 
                        v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        
                        [VIEW.SEJOURS_SELECT]
                        [VIEW.PRESTATIONS_SELECT]
                        [VIEW.PASSAGES_SELECT]
						[VIEW.PATIENTS_SELECT]
                        [VIEW.QMVT_SELECT]
						GROUP BY 1
					UNION
                    SELECT v_factures_lignes_c_4.no_sejour
                        FROM #V_FACTURES_LIGNES_C_X#
                        JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
                    WHERE 
                        v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'
                        
                        [VIEW.SEJOURS_SELECT]
                        [VIEW.PRESTATIONS_SELECT]
                        [VIEW.PASSAGES_SELECT]
						[VIEW.QMVT_SELECT]
        				[VIEW.PATIENTS_SELECT]
		            GROUP BY 1
                    ;
                    CREATE INDEX ACTI000063_SEJ_i1 ON ACTI000063_SEJ USING btree (no_sejour);
				
				
				]]>				</select>
			</SQL>
			<SQL optimizer="V_SEJOURS_X" optimizer2="V_MOUVEMENTS_SEJOUR_X">
				<select><![CDATA[

                    DROP TABLE IF EXISTS empty;
                    CREATE TEMP TABLE empty AS
                    SELECT -123::bigint AS empty_id, ''::text AS empty_code, ''::text AS empty_texte
                    ;
					
					DROP TABLE IF EXISTS w_factures_reference;
					CREATE TEMP TABLE w_factures_reference AS
					SELECT p_factures_reference.no_sejour,
							p_factures_reference.date_debut_facture,
							p_factures_reference.date_fin_facture,
							p_factures_reference.code_facture,
							p_factures_reference.montant_comptabilise_c,
							p_factures_reference.montant_comptabilise_budget_global_c,
							p_factures_reference.montant_comptabilise_h,
							row_number() OVER (PARTITION BY p_factures_reference.no_sejour ORDER BY date_debut_facture, date_facture) AS seq
					FROM activite.p_factures_reference
					JOIN ACTI000063_SEJ ON p_factures_reference.no_sejour = ACTI000063_SEJ.no_sejour
					;

					
					CREATE INDEX w_factures_reference_i1 ON w_factures_reference USING btree (no_sejour)
					;

					UPDATE w_factures_reference
					SET date_debut_facture = date(w_factures_reference1.date_fin_facture+interval '1 day')
					FROM w_factures_reference w_factures_reference1
					WHERE w_factures_reference.no_sejour = w_factures_reference1.no_sejour AND
						w_factures_reference.seq = w_factures_reference1.seq +1
					;
					
					CTIPREPAR_TREE 
						WORKTABLE{ACTI000063_MVT} 
						GROUPBY1{[VIEW.GROUPBY_MVT_OID_FIELD],, [VIEW.GROUPBY_MVT_COD_FIELD],, [VIEW.GROUPBY_MVT_TXT_FIELD]} 
						GROUPBY1MODE{[GROUPBY_TAB]} 
						GROUPBY2{[VIEW.GROUPBY_MVT_2_OID_FIELD],, [VIEW.GROUPBY_MVT_2_COD_FIELD],, [VIEW.GROUPBY_MVT_2_TXT_FIELD]} 
						GROUPBY3{[VIEW.GROUPBY_MVT_3_OID_FIELD],, [VIEW.GROUPBY_MVT_3_COD_FIELD],, [VIEW.GROUPBY_MVT_3_TXT_FIELD]} 
					INDICATORS{ 
					/* 01_1_1 FACEMC (N)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]'   and  (p_factures_reference.code_facture = '1') THEN equivalent_malade_complet ELSE 0 END),,                   
                    /* 01_2_2 FACEMC (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'   and  (p_factures_reference.code_facture = '1') THEN equivalent_malade_complet ELSE 0 END),,
                                 
				   
                    /* 02_1_3 FACNBJ (N)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND (p_factures_reference.code_facture = '1') THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
					/* 02_2_4 FACNBJ (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND (p_factures_reference.code_facture = '1') THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
                    
                    /* 03_1_5 VALEMC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND p_factures_reference.code_facture = '0' THEN equivalent_malade_complet ELSE 0 END),,                    						
					/* 03_1_6 VALEMC (N-1)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'  and p_factures_reference.code_facture = '0' THEN equivalent_malade_complet ELSE 0 END),,
                    
					
                    /* 04_1_7 VALNBJ (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND p_factures_reference.code_facture = '0' THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,                    
                    /* 04_2_8 VALNBJ (N-1)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'  and  p_factures_reference.code_facture = '0' THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
                    
                    /* 05_1_9 FAVEMC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' then equivalent_malade_complet ELSE 0 END),,                            						
					/* 05_2_10 FAVEMC (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'  then equivalent_malade_complet ELSE 0 END),,                    
					
                    /* 06_1_11 FAVNBJ (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]'    then nb_jours_f + nb_ambulatoires  + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
					/* 06_2_12 FAVNBJ (N-1)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' and  (p_factures_reference.code_facture = '1' or p_factures_reference.code_facture = '0' )   then nb_jours_f + nb_ambulatoires   + CASE WHEN  type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
                   
					/*07_01_13 DMS hospitalisés (N)	*/		
						base.cti_division(SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' and v_sejours_1.date_sortie <= '[TOPERIODE]' AND v_sejours_1.code_sorti = 1 then [VIEW.JOURNEES_FIELD] ELSE null END),SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' then nb_sorties_directes else 0 end)),,
					/*07_01_14 DMS hospitalisés (N-1)*/			
						base.cti_division(SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' and v_sejours_1.date_sortie <= '[VIEW.TOPERIODE_D]' AND v_sejours_1.code_sorti = 1 then [VIEW.JOURNEES_FIELD] ELSE null END),SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' then nb_sorties_directes else 0 end)),,
					
					
					/* 08_1_15 FAVNBEMCHC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND type_sejour = '1' then equivalent_malade_complet ELSE 0 END),,                            						
					/* 08_2_16 FAVNBEMCHC (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND type_sejour = '1' then equivalent_malade_complet ELSE 0 END)  
					}
					
				FROM #V_SEJOURS_X#,#V_MOUVEMENTS_SEJOUR_X#
                    JOIN ACTI000063_SEJ ON v_mouvements_sejour_2.no_sejour = ACTI000063_SEJ.no_sejour
                    JOIN w_factures_reference p_factures_reference ON
                        p_factures_reference.no_sejour = v_mouvements_sejour_2.no_sejour AND
                        (v_mouvements_sejour_2.date BETWEEN p_factures_reference.date_debut_facture AND p_factures_reference.date_fin_facture) 
                    JOIN empty ON 1=1
				WHERE '[QUELLEDATE]' IN ('1','2') AND
						v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour AND
						([VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' OR 
						[VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]')
						
						[VIEW.SEJOURS_SELECT] 
                        [VIEW.PASSAGES_SELECT]
						[VIEW.PATIENTS_SELECT]
                        [VIEW.QMVT_SELECT]
                        [VIEW.MOUVEMENTS_SELECT]
						AND v_sejours_1.type_sejour <> '9' 
				
				]]>				</select>
			</SQL>
			<SQL optimizer="V_SEJOURS_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{
						
							[VIEW.DATA1F],,
							[VIEW.DATA1D],,
							0,,
							0,,
							[VIEW.DATA2F],,
							[VIEW.DATA2D],,
							0,,
							0,,
							[VIEW.DATA3F],,
							[VIEW.DATA3D],,
							0,,
							0,,			
							[VIEW.DATA4F],,
							[VIEW.DATA4D],,
							0,,
							0,,							
							[VIEW.DATA5F],,
							[VIEW.DATA5D],,
							0,,
							0,,							
							[VIEW.DATA6F],,
							[VIEW.DATA6D],,
							0,,
							0,,
							[VIEW.DATA7F],,
							[VIEW.DATA7D],,
							0,,
							0,,
							[VIEW.DATA8F],,
							[VIEW.DATA8D],,
							0,,
							0,,			
							[VIEW.DATA9F],,
							[VIEW.DATA9D],,
							0,,
							0,,							
							[VIEW.DATA10F],,
							[VIEW.DATA10D],,
							0,,
							0,,							
							[VIEW.DATA11F],,
							[VIEW.DATA11D],,
							0,,
							0,,
							[VIEW.DATA12F],,
							[VIEW.DATA12D],,
							0,,
							0,,
							[VIEW.DATA13F],,
							[VIEW.DATA13D],,
							0,,
							0,,			
							[VIEW.DATA14F],,
							[VIEW.DATA14D],,
							0,,
							0,,							
							[VIEW.DATA15F],,
							[VIEW.DATA15D],,
							0,,
							0
						}
					FROM #V_FACTURES_LIGNES_C_X#
						JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
						LEFT JOIN ACTI000063_SEJ ON v_factures_lignes_c_4.no_sejour = ACTI000063_SEJ.no_sejour

					WHERE 
							(v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' OR
							v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]') 
							[VIEW.SEJOURS_SELECT]
							[VIEW.PRESTATIONS_SELECT]
							[VIEW.PASSAGES_SELECT]
							[VIEW.PATIENTS_SELECT]
					AFTER{
				
					UPDATE w_table 
						SET indicateurs[3] = COALESCE(ACTI000063_MVT.indicateurs[001],0) - COALESCE(ACTI000063_MVT.indicateurs[002],0)
							[EVAL 
								if ('[DATA1]' == 'EMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[001],
										indicateurs[2] = ACTI000063_MVT.indicateurs[002]
										
									"; 
								}								
								if ('[DATA1]' == 'VALEMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[005],
										indicateurs[2] = ACTI000063_MVT.indicateurs[006]
										
									";
								}								
								if ('[DATA1]' == 'FAVEMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[009],
										indicateurs[2] = ACTI000063_MVT.indicateurs[010]
										
									";
								}	
								if ('[DATA1]' == 'FACNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[003],
										indicateurs[2] = ACTI000063_MVT.indicateurs[004]
										
									";
								}									
								if ('[DATA1]' == 'VALNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[007],
										indicateurs[2] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA1]' == 'FAVNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[011],
										indicateurs[2] = ACTI000063_MVT.indicateurs[012]
										
									";
								}									
								if ('[DATA1]' == 'FAVDMS') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[013],
										indicateurs[2] = ACTI000063_MVT.indicateurs[014]
										
									";
								}									
								if ('[DATA1]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[015],
										indicateurs[2] = ACTI000063_MVT.indicateurs[016]
										
									";
								}								
								if ('[DATA1]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[015]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[016])
										
									";
								}									
								if ('[DATA1]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[009]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[010])
										
									";
								}									
								if ('[DATA1]' == 'MMFACEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[001]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[002])
										
									";
								}								
								if ('[DATA1]' == 'MMVALEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[005]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[006])
										
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA2]' == 'EMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[001],
										indicateurs[6] = ACTI000063_MVT.indicateurs[002]									
									";
								}								
								if ('[DATA2]' == 'VALEMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[005],
										indicateurs[6] = ACTI000063_MVT.indicateurs[006]
										
									";
								}								
								if ('[DATA2]' == 'FAVEMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[009],
										indicateurs[6] = ACTI000063_MVT.indicateurs[010]
										
									";
								}	
								if ('[DATA2]' == 'FACNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[003],
										indicateurs[6] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA2]' == 'VALNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[007],
										indicateurs[6] = ACTI000063_MVT.indicateurs[008]
										
									";
								}
								if ('[DATA2]' == 'FAVNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[011],
										indicateurs[6] = ACTI000063_MVT.indicateurs[012]
										
									";
								}								
								if ('[DATA2]' == 'FAVDMS') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[013],
										indicateurs[6] = ACTI000063_MVT.indicateurs[014]
										
									";
								}									
								if ('[DATA2]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[015],
										indicateurs[6] = ACTI000063_MVT.indicateurs[016]
										
									";
								}
								if ('[DATA2]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[015]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[016])
										
									";
								}									
								if ('[DATA2]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[009]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[010])
										
										
									";
								}									
								if ('[DATA2]' == 'MMFACEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[001]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[002])
										
									";
								}								
								if ('[DATA2]' == 'MMVALEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[005]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[006])
										
									";
								}									
							EVAL]							
							[EVAL 
								if ('[DATA3]' == 'EMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[001],
										indicateurs[10] = ACTI000063_MVT.indicateurs[002]										

										
										
									";
								}								
								if ('[DATA3]' == 'VALEMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[005],
										indicateurs[10] = ACTI000063_MVT.indicateurs[006]
										
									";
								}								
								if ('[DATA3]' == 'FAVEMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[009],
										indicateurs[10] = ACTI000063_MVT.indicateurs[010]
										
									";
								}	
								if ('[DATA3]' == 'FACNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[003],
										indicateurs[10] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA3]' == 'VALNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[007],
										indicateurs[10] = ACTI000063_MVT.indicateurs[008]
										
									";
								}
								if ('[DATA3]' == 'FAVNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[011],
										indicateurs[10] = ACTI000063_MVT.indicateurs[012]
										
									";
								}								
								if ('[DATA3]' == 'FAVDMS') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[013],
										indicateurs[10] = ACTI000063_MVT.indicateurs[014]
										
									";
								}									
								if ('[DATA3]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[015],
										indicateurs[10] = ACTI000063_MVT.indicateurs[016]
										
									";
								}
								if ('[DATA3]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[015]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[016])
										
									";
								}									
								if ('[DATA3]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[009]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[010])
										
										
									";
								}									
								if ('[DATA3]' == 'MMFACEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[001]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[002])
										
									";
								}								
								if ('[DATA3]' == 'MMVALEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[005]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[006])
										
									";
								}									
							EVAL]							
							[EVAL 
								if ('[DATA4]' == 'EMC') {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[001],
										indicateurs[14] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA4]' == 'VALEMC') {
									return "
										,
										indicateurs[13] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[14] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA4]' == 'FAVEMC') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[14] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA4]' == 'FACNBJ') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[14] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA4]' == 'VALNBJ') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[14] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA4]' == 'FAVNBJ') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[14] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA4]' == 'FAVDMS') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[14] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA4]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[14] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA4]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13],ACTI000063_MVT.indicateurs[015]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA4]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[13]  = base.cti_division(w_table.indicateurs[13], ACTI000063_MVT.indicateurs[009]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA4]' == 'MMFACEMC') {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13], ACTI000063_MVT.indicateurs[001]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA4]' == 'MMVALEMC') {
									return "
										,
										indicateurs[13]  = base.cti_division(w_table.indicateurs[13], ACTI000063_MVT.indicateurs[005]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA5]' == 'EMC') {
									return "
										,
										indicateurs[17] = ACTI000063_MVT.indicateurs[001],
										indicateurs[18] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA5]' == 'VALEMC') {
									return "
										,
										indicateurs[17] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[18] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA5]' == 'FAVEMC') {
									return "
										,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[18] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA5]' == 'FACNBJ') {
									return "
										,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[18] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA5]' == 'VALNBJ') {
									return "
										,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[18] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA5]' == 'FAVNBJ') {
									return "
									,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[18] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA5]' == 'FAVDMS') {
									return "
									,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[18] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA5]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[18] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA5]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[17] = base.cti_division(w_table.indicateurs[17],ACTI000063_MVT.indicateurs[015]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA5]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[17]  = base.cti_division(w_table.indicateurs[17], ACTI000063_MVT.indicateurs[009]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA5]' == 'MMFACEMC') {
									return "
									,
										indicateurs[17] = base.cti_division(w_table.indicateurs[17], ACTI000063_MVT.indicateurs[001]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA5]' == 'MMVALEMC') {
									return "
									,
										indicateurs[17]  = base.cti_division(w_table.indicateurs[17], ACTI000063_MVT.indicateurs[005]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[006])
									";
								}
							EVAL]							
							[EVAL 
								if ('[DATA6]' == 'EMC') {
									return "
										,
										indicateurs[21] = ACTI000063_MVT.indicateurs[001],
										indicateurs[22] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA6]' == 'VALEMC') {
									return "
										,
										indicateurs[21] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[22] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA6]' == 'FAVEMC') {
									return "
										,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[22] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA6]' == 'FACNBJ') {
									return "
										,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[22] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA6]' == 'VALNBJ') {
									return "
										,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[22] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA6]' == 'FAVNBJ') {
									return "
									,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[22] = ACTI000063_MVT.indicateurs[012],
										indicateurs[78] = ACTI000063_MVT.indicateurs[038]
									";
								}								
								if ('[DATA6]' == 'FAVDMS') {
									return "
									,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[22] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA6]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[22] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA6]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[21] = base.cti_division(w_table.indicateurs[21],ACTI000063_MVT.indicateurs[015]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA6]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[21]  = base.cti_division(w_table.indicateurs[21], ACTI000063_MVT.indicateurs[009]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA6]' == 'MMFACEMC') {
									return "
									,
										indicateurs[21] = base.cti_division(w_table.indicateurs[21], ACTI000063_MVT.indicateurs[001]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA6]' == 'MMVALEMC') {
									return "
									,
										indicateurs[21]  = base.cti_division(w_table.indicateurs[21], ACTI000063_MVT.indicateurs[005]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA7]' == 'EMC') {
									return "
										,
										indicateurs[25] = ACTI000063_MVT.indicateurs[001],
										indicateurs[26] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA7]' == 'VALEMC') {
									return "
										,
										indicateurs[25] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[26] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA7]' == 'FAVEMC') {
									return "
										,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[26] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA7]' == 'FACNBJ') {
									return "
										,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[26] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA7]' == 'VALNBJ') {
									return "
										,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[26] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA7]' == 'FAVNBJ') {
									return "
									,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[26] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA7]' == 'FAVDMS') {
									return "
									,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[26] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA7]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[26] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA7]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[25] = base.cti_division(w_table.indicateurs[25],ACTI000063_MVT.indicateurs[015]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA7]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[25]  = base.cti_division(w_table.indicateurs[25], ACTI000063_MVT.indicateurs[009]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA7]' == 'MMFACEMC') {
									return "
									,
										indicateurs[25] = base.cti_division(w_table.indicateurs[25], ACTI000063_MVT.indicateurs[001]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA7]' == 'MMVALEMC') {
									return "
									,
										indicateurs[25]  = base.cti_division(w_table.indicateurs[25], ACTI000063_MVT.indicateurs[005]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA8]' == 'EMC') {
									return "
										,
										indicateurs[29] = ACTI000063_MVT.indicateurs[001],
										indicateurs[30] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA8]' == 'VALEMC') {
									return "
										,
										indicateurs[29] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[30] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA8]' == 'FAVEMC') {
									return "
										,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[30] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA8]' == 'FACNBJ') {
									return "
										,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[30] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA8]' == 'VALNBJ') {
									return "
										,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[30] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA8]' == 'FAVNBJ') {
									return "
									,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[30] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA8]' == 'FAVDMS') {
									return "
									,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[30] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA8]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[30] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA8]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[29] = base.cti_division(w_table.indicateurs[29],ACTI000063_MVT.indicateurs[015]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA8]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[29]  = base.cti_division(w_table.indicateurs[29], ACTI000063_MVT.indicateurs[009]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA8]' == 'MMFACEMC') {
									return "
									,
										indicateurs[29] = base.cti_division(w_table.indicateurs[29], ACTI000063_MVT.indicateurs[001]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA8]' == 'MMVALEMC') {
									return "
									,
										indicateurs[29]  = base.cti_division(w_table.indicateurs[29], ACTI000063_MVT.indicateurs[005]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA9]' == 'EMC') {
									return "
										,
										indicateurs[33] = ACTI000063_MVT.indicateurs[001],
										indicateurs[34] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA9]' == 'VALEMC') {
									return "
										,
										indicateurs[33] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[34] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA9]' == 'FAVEMC') {
									return "
										,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[34] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA9]' == 'FACNBJ') {
									return "
										,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[34] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA9]' == 'VALNBJ') {
									return "
										,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[34] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA9]' == 'FAVNBJ') {
									return "
									,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[34] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA9]' == 'FAVDMS') {
									return "
									,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[34] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA9]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[34] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA9]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[33] = base.cti_division(w_table.indicateurs[33],ACTI000063_MVT.indicateurs[015]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[34],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA9]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[33]  = base.cti_division(w_table.indicateurs[33], ACTI000063_MVT.indicateurs[009]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[44],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA9]' == 'MMFACEMC') {
									return "
									,
										indicateurs[33] = base.cti_division(w_table.indicateurs[33], ACTI000063_MVT.indicateurs[001]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[34],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA9]' == 'MMVALEMC') {
									return "
									,
										indicateurs[33]  = base.cti_division(w_table.indicateurs[33], ACTI000063_MVT.indicateurs[005]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[44],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA10]' == 'EMC') {
									return "
										,
										indicateurs[37] = ACTI000063_MVT.indicateurs[001],
										indicateurs[38] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA10]' == 'VALEMC') {
									return "
										,
										indicateurs[37] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[38] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA10]' == 'FAVEMC') {
									return "
										,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[38] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA10]' == 'FACNBJ') {
									return "
										,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[38] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA10]' == 'VALNBJ') {
									return "
										,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[38] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA10]' == 'FAVNBJ') {
									return "
									,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[38] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA10]' == 'FAVDMS') {
									return "
									,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[38] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA10]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[38] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA10]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[37] = base.cti_division(w_table.indicateurs[37],ACTI000063_MVT.indicateurs[015]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA10]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[37]  = base.cti_division(w_table.indicateurs[37], ACTI000063_MVT.indicateurs[009]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA10]' == 'MMFACEMC') {
									return "
									,
										indicateurs[37] = base.cti_division(w_table.indicateurs[37], ACTI000063_MVT.indicateurs[001]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA10]' == 'MMVALEMC') {
									return "
									,
										indicateurs[37]  = base.cti_division(w_table.indicateurs[37], ACTI000063_MVT.indicateurs[005]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA011]' == 'EMC') {
									return "
										,
										indicateurs[41] = ACTI000063_MVT.indicateurs[001],
										indicateurs[42] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA011]' == 'VALEMC') {
									return "
										,
										indicateurs[41] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[42] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA011]' == 'FAVEMC') {
									return "
										,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[42] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA011]' == 'FACNBJ') {
									return "
										,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[42] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA011]' == 'VALNBJ') {
									return "
										,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[42] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA011]' == 'FAVNBJ') {
									return "
									,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[42] = ACTI000063_MVT.indicateurs[012],
										indicateurs[83] = ACTI000063_MVT.indicateurs[038]
									";
								}								
								if ('[DATA011]' == 'FAVDMS') {
									return "
									,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[42] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA011]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[42] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA011]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[41] = base.cti_division(w_table.indicateurs[41],ACTI000063_MVT.indicateurs[015]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA011]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[41]  = base.cti_division(w_table.indicateurs[41], ACTI000063_MVT.indicateurs[009]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA011]' == 'MMFACEMC') {
									return "
									,
										indicateurs[41] = base.cti_division(w_table.indicateurs[41], ACTI000063_MVT.indicateurs[001]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA011]' == 'MMVALEMC') {
									return "
									,
										indicateurs[41]  = base.cti_division(w_table.indicateurs[41], ACTI000063_MVT.indicateurs[005]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA012]' == 'EMC') {
									return "
										,
										indicateurs[45] = ACTI000063_MVT.indicateurs[001],
										indicateurs[46] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA012]' == 'VALEMC') {
									return "
										,
										indicateurs[45] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[46] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA012]' == 'FAVEMC') {
									return "
										,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[46] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA012]' == 'FACNBJ') {
									return "
										,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[46] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA012]' == 'VALNBJ') {
									return "
										,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[46] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA012]' == 'FAVNBJ') {
									return "
									,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[46] = ACTI000063_MVT.indicateurs[012],
										indicateurs[83] = ACTI000063_MVT.indicateurs[038]
									";
								}								
								if ('[DATA012]' == 'FAVDMS') {
									return "
									,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[46] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA012]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[46] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA012]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[45] = base.cti_division(w_table.indicateurs[45],ACTI000063_MVT.indicateurs[015]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA012]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[45]  = base.cti_division(w_table.indicateurs[45], ACTI000063_MVT.indicateurs[009]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA012]' == 'MMFACEMC') {
									return "
									,
										indicateurs[45] = base.cti_division(w_table.indicateurs[45], ACTI000063_MVT.indicateurs[001]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA012]' == 'MMVALEMC') {
									return "
									,
										indicateurs[45]  = base.cti_division(w_table.indicateurs[45], ACTI000063_MVT.indicateurs[005]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA013]' == 'EMC') {
									return "
										,
										indicateurs[49] = ACTI000063_MVT.indicateurs[001],
										indicateurs[50] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA013]' == 'VALEMC') {
									return "
										,
										indicateurs[49] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[50] = ACTI000063_MVT.indicateurs[006],
										indicateurs[85] = ACTI000063_MVT.indicateurs[035]
									";
								}								
								if ('[DATA013]' == 'FAVEMC') {
									return "
										,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[50] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA013]' == 'FACNBJ') {
									return "
										,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[50] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA013]' == 'VALNBJ') {
									return "
										,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[50] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA013]' == 'FAVNBJ') {
									return "
									,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[50] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA013]' == 'FAVDMS') {
									return "
									,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[50] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA013]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[50] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA013]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[49] = base.cti_division(w_table.indicateurs[49],ACTI000063_MVT.indicateurs[015]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA013]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[49]  = base.cti_division(w_table.indicateurs[49], ACTI000063_MVT.indicateurs[009]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA013]' == 'MMFACEMC') {
									return "
									,
										indicateurs[49] = base.cti_division(w_table.indicateurs[49], ACTI000063_MVT.indicateurs[001]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA013]' == 'MMVALEMC') {
									return "
									,
										indicateurs[49]  = base.cti_division(w_table.indicateurs[49], ACTI000063_MVT.indicateurs[005]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA014]' == 'EMC') {
									return "
										,
										indicateurs[53] = ACTI000063_MVT.indicateurs[001],
										indicateurs[54] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA014]' == 'VALEMC') {
									return "
										,
										indicateurs[53] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[54] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA014]' == 'FAVEMC') {
									return "
										,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[54] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA014]' == 'FACNBJ') {
									return "
										,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[54] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA014]' == 'VALNBJ') {
									return "
										,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[54] = ACTI000063_MVT.indicateurs[008],
										indicateurs[86] = ACTI000063_MVT.indicateurs[036]
									";
								}
								if ('[DATA014]' == 'FAVNBJ') {
									return "
									,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[54] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA014]' == 'FAVDMS') {
									return "
									,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[54] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA014]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[54] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA014]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[53] = base.cti_division(w_table.indicateurs[53],ACTI000063_MVT.indicateurs[015]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA014]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[53]  = base.cti_division(w_table.indicateurs[53], ACTI000063_MVT.indicateurs[009]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA014]' == 'MMFACEMC') {
									return "
									,
										indicateurs[53] = base.cti_division(w_table.indicateurs[53], ACTI000063_MVT.indicateurs[001]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA014]' == 'MMVALEMC') {
									return "
									,
										indicateurs[53]  = base.cti_division(w_table.indicateurs[53], ACTI000063_MVT.indicateurs[005]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA015]' == 'EMC') {
									return "
										,
										indicateurs[57] = ACTI000063_MVT.indicateurs[001],
										indicateurs[58] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA015]' == 'VALEMC') {
									return "
										,
										indicateurs[57] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[58] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA015]' == 'FAVEMC') {
									return "
										,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[58] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA015]' == 'FACNBJ') {
									return "
										,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[58] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA015]' == 'VALNBJ') {
									return "
										,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[58] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA015]' == 'FAVNBJ') {
									return "
									,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[58] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA015]' == 'FAVDMS') {
									return "
									,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[58] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA015]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[58] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA015]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[57] = base.cti_division(w_table.indicateurs[57],ACTI000063_MVT.indicateurs[015]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA015]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[57]  = base.cti_division(w_table.indicateurs[57], ACTI000063_MVT.indicateurs[009]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA015]' == 'MMFACEMC') {
									return "
									,
										indicateurs[57] = base.cti_division(w_table.indicateurs[57], ACTI000063_MVT.indicateurs[001]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA015]' == 'MMVALEMC') {
									return "
									,
										indicateurs[57]  = base.cti_division(w_table.indicateurs[57], ACTI000063_MVT.indicateurs[005]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]
								FROM ACTI000063_MVT
									WHERE w_table.OIDT = ACTI000063_MVT.OIDT AND
										w_table.OID1 = ACTI000063_MVT.OID1 AND
										w_table.OID2 = ACTI000063_MVT.OID2 AND
										w_table.OID3 = ACTI000063_MVT.OID3
						.,
						UPDATE w_table 
						SET 
							indicateurs[3] = COALESCE(indicateurs[1],0) - COALESCE(indicateurs[2],0),
							indicateurs[4] = base.cti_division(COALESCE(indicateurs[1],0) - indicateurs[2],indicateurs[2]/100.00),
							indicateurs[7] = COALESCE(indicateurs[5],0) - COALESCE(indicateurs[6],0),
							indicateurs[8] = base.cti_division(COALESCE(indicateurs[5],0) - indicateurs[6],indicateurs[6]/100.00),
							indicateurs[11] = COALESCE(indicateurs[9],0) - COALESCE(indicateurs[10],0),
							indicateurs[12] = base.cti_division(COALESCE(indicateurs[9],0) - indicateurs[10],indicateurs[10]/100.00),					
							indicateurs[15] = COALESCE(indicateurs[13],0) - COALESCE(indicateurs[14],0),
							indicateurs[16] = base.cti_division(COALESCE(indicateurs[13],0) - indicateurs[14],indicateurs[14]/100.00),							
							indicateurs[19] = COALESCE(indicateurs[17],0) - COALESCE(indicateurs[18],0),
							indicateurs[20] = base.cti_division(COALESCE(indicateurs[17],0) - indicateurs[18],indicateurs[18]/100.00),						
							indicateurs[23] = COALESCE(indicateurs[21],0) - COALESCE(indicateurs[22],0),
							indicateurs[24] = base.cti_division(COALESCE(indicateurs[21],0) - indicateurs[22],indicateurs[22]/100.00),							
							indicateurs[27] = COALESCE(indicateurs[25],0) - COALESCE(indicateurs[26],0),
							indicateurs[28] = base.cti_division(COALESCE(indicateurs[25],0) - indicateurs[26],indicateurs[26]/100.00),							
							indicateurs[31] = COALESCE(indicateurs[29],0) - COALESCE(indicateurs[30],0),
							indicateurs[32] = base.cti_division(COALESCE(indicateurs[29],0) - indicateurs[30],indicateurs[30]/100.00),							
							indicateurs[35] = COALESCE(indicateurs[33],0) - COALESCE(indicateurs[34],0),
							indicateurs[36] = base.cti_division(COALESCE(indicateurs[33],0) - indicateurs[34],indicateurs[34]/100.00),							
							indicateurs[39] = COALESCE(indicateurs[37],0) - COALESCE(indicateurs[38],0),
							indicateurs[40] = base.cti_division(COALESCE(indicateurs[37],0) - indicateurs[38],indicateurs[38]/100.00),							
							indicateurs[43] = COALESCE(indicateurs[41],0) - COALESCE(indicateurs[42],0),
							indicateurs[44] = base.cti_division(COALESCE(indicateurs[41],0) - indicateurs[42],indicateurs[42]/100.00),							
							indicateurs[47] = COALESCE(indicateurs[45],0) - COALESCE(indicateurs[46],0),
							indicateurs[48] = base.cti_division(COALESCE(indicateurs[45],0) - indicateurs[46],indicateurs[46]/100.00),							
							indicateurs[51] = COALESCE(indicateurs[49],0) - COALESCE(indicateurs[50],0),
							indicateurs[52] = base.cti_division(COALESCE(indicateurs[49],0) - indicateurs[50],indicateurs[50]/100.00),							
							indicateurs[55] = COALESCE(indicateurs[53],0) - COALESCE(indicateurs[54],0),
							indicateurs[56] = base.cti_division(COALESCE(indicateurs[53],0) - indicateurs[54],indicateurs[54]/100.00),							
							indicateurs[59] = COALESCE(indicateurs[57],0) - COALESCE(indicateurs[58],0),
							indicateurs[60] = base.cti_division(COALESCE(indicateurs[57],0) - indicateurs[58],indicateurs[58]/100.00)
					}						
						;				 
					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 (
						
						[VIEW.NB_MOIS_CROSSTAB]	
						)
						
						;
						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[2] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
						) AS (
						[VIEW.NB_MOIS_CROSSTAB]
						)
						
						;
						
						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[1]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
						) AS (
						
[VIEW.NB_MOIS_CROSSTAB]						);
						
						
						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[3]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
						) AS (
						
[VIEW.NB_MOIS_CROSSTAB]						);
					
						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[4]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
						) AS (
						
[VIEW.NB_MOIS_CROSSTAB]						);
					
						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;

						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
						SELECT base.cti_execute('ALTER TABLE w_temp5 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
				
					/* 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 (
							
	[VIEW.NB_MOIS_CROSSTAB]							)
							
							;
							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[6] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							)
							
							;
							
							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[5]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
							
							
							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[7]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
						
							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[8]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
						
							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;

							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp11 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
							
						/* 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 (
							
	[VIEW.NB_MOIS_CROSSTAB]							)
							
							;
							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[10] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							)
							
							;
							
							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[9]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
							
							
							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[11]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
						
							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[12]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp17 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;						
							
							
							--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 (
							
	[VIEW.NB_MOIS_CROSSTAB]							)
							
							;
							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[14] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							)
							
							;
							
							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[13]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
							
							
							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[15]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
	[VIEW.NB_MOIS_CROSSTAB]							);
						
							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[16]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
								[VIEW.NB_MOIS_CROSSTAB]							
								);
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp23 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
						/* 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 (
							
								[VIEW.NB_MOIS_CROSSTAB]							
								)
							;
							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[18] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[17]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[19]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[20]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp29 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
							
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[22] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[21]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[23]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[24]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp35 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[26] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[25]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[27]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[28]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp41 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
							
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[30] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[29]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[31]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[32]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp47 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[34] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[33]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[35]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[36]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp53 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
							
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[38] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[37]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[39]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[40]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp59 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
							
						/*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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[42] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[41]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[43]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[44]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE  w_temp65 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
							
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[46] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[45]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[47]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[48]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp71 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[50] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[49]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[51]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[52]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]')  =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]')  =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]')  =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]')  =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]')  =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]')  =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp77 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]')  =0;
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[54] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[53]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[55]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[56]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp83 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
						/* 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 (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							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[58] FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							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[57]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
							
							
							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[59]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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[60]  FROM w_table   ORDER BY  labelt,oidt,code1,oid1,code2,oid2,code3,oid3 '
							) AS (
							
							[VIEW.NB_MOIS_CROSSTAB]
							)
							;
						
							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;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Jan numeric',1) where position('|1|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Fev numeric',1) where position('|2|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Mar numeric',1) where position('|3|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Avr numeric',1) where position('|4|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Mai numeric',1) where position('|5|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Juin numeric',1) where position('|6|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Juil numeric',1) where position('|7|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Aout numeric',1) where position('|8|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Sep numeric',1) where position('|9|' in '[VIEW.NB_MOIS]') =0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Oct numeric',1) where position('|10|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Nov numeric',1) where position('|11|' in '[VIEW.NB_MOIS]')=0;
							SELECT base.cti_execute('ALTER TABLE w_temp89 ADD COLUMN Dec numeric',1) where position('|12' in '[VIEW.NB_MOIS]') =0;
							
			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é,w_temp5.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp11.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec  
		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é,w_temp17.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp23.oidt ,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec  
		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é,w_temp29.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec  
		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é,w_temp35.oidt ,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec  
		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é,w_temp41.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp47.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp53.oidt ,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec  
		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é,w_temp59.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp65.oidt ,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp71.oidt ,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp77.oidt,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,w_temp83.oidt  ,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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é,0,Total,Jan,Fev,Mar,Avr,Mai,Juin,Juil,Aout,Sep,Oct,Nov,Dec 
		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 label="">
			<SQL optimizer="V_SEJOURS_X" optimizer2="V_FACTURES_LIGNES_C_X">
				<select><![CDATA[ 
					
					DROP TABLE IF EXISTS ACTI000063_SEJ;
                    CREATE TEMP TABLE ACTI000063_SEJ AS
                    SELECT v_factures_lignes_c_4.no_sejour
                        FROM #V_FACTURES_LIGNES_C_X#
                        JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
                    WHERE 
                        v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        
                        [VIEW.SEJOURS_SELECT]
                        [VIEW.PRESTATIONS_SELECT]
                        [VIEW.PASSAGES_SELECT]
						[VIEW.PATIENTS_SELECT]
                        [VIEW.QMVT_SELECT]
						GROUP BY 1
					UNION
                    SELECT v_factures_lignes_c_4.no_sejour
                        FROM #V_FACTURES_LIGNES_C_X#
                        JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
                    WHERE 
                        v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'
                        
                        [VIEW.SEJOURS_SELECT]
                        [VIEW.PRESTATIONS_SELECT]
						[VIEW.PATIENTS_SELECT]
                        [VIEW.PASSAGES_SELECT]
                        [VIEW.QMVT_SELECT]
                    GROUP BY 1
                    ;
                    CREATE INDEX ACTI000063_SEJ_i1 ON ACTI000063_SEJ USING btree (no_sejour);
				
				
				]]>				</select>
			</SQL>
			<SQL optimizer="V_SEJOURS_X" optimizer2="V_MOUVEMENTS_SEJOUR_X">
				<select><![CDATA[

                    DROP TABLE IF EXISTS empty;
                    CREATE TEMP TABLE empty AS
                    SELECT -123::bigint AS empty_id, ''::text AS empty_code, ''::text AS empty_texte
                    ;
					
					CTIPREPAR_TREE 
						WORKTABLE{ACTI000063_MVT} 
						GROUPBY1{[VIEW.GROUPBY_MVT_2_OID_FIELD],, [VIEW.GROUPBY_MVT_2_COD_FIELD],, [VIEW.GROUPBY_MVT_2_TXT_FIELD]} 
						GROUPBY1MODE{[GROUPBY_TAB]} 

					INDICATORS{ 
					/* 01_1_1 FACEMC (N)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]'   and  (p_factures_reference.code_facture = '1') THEN equivalent_malade_complet ELSE 0 END),,                   
                    /* 01_2_2 FACEMC (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'   and  (p_factures_reference.code_facture = '1') THEN equivalent_malade_complet ELSE 0 END),,
                                 
				   
                    /* 02_1_3 FACNBJ (N)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND (p_factures_reference.code_facture = '1') THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
					/* 02_2_4 FACNBJ (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND (p_factures_reference.code_facture = '1') THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
                    
                    /* 03_1_5 VALEMC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND p_factures_reference.code_facture = '0' THEN equivalent_malade_complet ELSE 0 END),,                    						
					/* 03_1_6 VALEMC (N-1)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'  and p_factures_reference.code_facture = '0' THEN equivalent_malade_complet ELSE 0 END),,
                    
					
                    /* 04_1_7 VALNBJ (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND p_factures_reference.code_facture = '0' THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,                    
                    /* 04_2_8 VALNBJ (N-1)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'  and  p_factures_reference.code_facture = '0' THEN nb_jours_f + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
                    
                    /* 05_1_9 FAVEMC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' then equivalent_malade_complet ELSE 0 END),,                            						
					/* 05_2_10 FAVEMC (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]'  then equivalent_malade_complet ELSE 0 END),,                    
					
                    /* 06_1_11 FAVNBJ (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]'    then nb_jours_f + nb_ambulatoires  + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
					/* 06_2_12 FAVNBJ (N-1)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' and  (p_factures_reference.code_facture = '1' or p_factures_reference.code_facture = '0' )   then nb_jours_f + nb_ambulatoires   + CASE WHEN  type_sejour = '5' THEN nb_seances ELSE 0 END ELSE 0 END),,
                   
					/*07_01_13 DMS hospitalisés (N)	*/		
						base.cti_division(SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' and v_sejours_1.date_sortie <= '[TOPERIODE]' AND v_sejours_1.code_sorti = 1 then [VIEW.JOURNEES_FIELD] ELSE null END),SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' then nb_sorties_directes else 0 end)),,
					/*07_01_14 DMS hospitalisés (N-1)*/			
						base.cti_division(SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' and v_sejours_1.date_sortie <= '[VIEW.TOPERIODE_D]' AND v_sejours_1.code_sorti = 1 then [VIEW.JOURNEES_FIELD] ELSE null END),SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' then nb_sorties_directes else 0 end)),,
					
					
					/* 08_1_15 FAVNBEMCHC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND type_sejour = '1' then equivalent_malade_complet ELSE 0 END),,                            						
					/* 08_2_16 FAVNBEMCHC (N-1)*/
						SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' AND type_sejour = '1' then equivalent_malade_complet ELSE 0 END)  
					}
					
				FROM #V_SEJOURS_X#,#V_MOUVEMENTS_SEJOUR_X#
                    JOIN ACTI000063_SEJ ON v_mouvements_sejour_2.no_sejour = ACTI000063_SEJ.no_sejour
                    JOIN w_factures_reference p_factures_reference ON
                        p_factures_reference.no_sejour = v_mouvements_sejour_2.no_sejour AND
                        (v_mouvements_sejour_2.date BETWEEN p_factures_reference.date_debut_facture AND p_factures_reference.date_fin_facture) 
                    JOIN empty ON 1=1
				WHERE '[QUELLEDATE]' IN ('1','2') AND
						v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour AND
						([VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' OR 
						[VIEW.QUELLEDATE_MVT] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]')
						
						[VIEW.SEJOURS_SELECT] 
						[VIEW.PATIENTS_SELECT]
                        [VIEW.PASSAGES_SELECT]
                        [VIEW.QMVT_SELECT]
                        [VIEW.MOUVEMENTS_SELECT]
						AND v_sejours_1.type_sejour <> '9' 
				
				]]>				</select>
			</SQL>
			<SQL optimizer="V_SEJOURS_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{
						
							[VIEW.DATA1F],,
							[VIEW.DATA1D],,
							0,,
							0,,
							[VIEW.DATA2F],,
							[VIEW.DATA2D],,
							0,,
							0,,
							[VIEW.DATA3F],,
							[VIEW.DATA3D],,
							0,,
							0,,			
							[VIEW.DATA4F],,
							[VIEW.DATA4D],,
							0,,
							0,,							
							[VIEW.DATA5F],,
							[VIEW.DATA5D],,
							0,,
							0,,							
							[VIEW.DATA6F],,
							[VIEW.DATA6D],,
							0,,
							0,,
							[VIEW.DATA7F],,
							[VIEW.DATA7D],,
							0,,
							0,,
							[VIEW.DATA8F],,
							[VIEW.DATA8D],,
							0,,
							0,,			
							[VIEW.DATA9F],,
							[VIEW.DATA9D],,
							0,,
							0,,							
							[VIEW.DATA10F],,
							[VIEW.DATA10D],,
							0,,
							0,,							
							[VIEW.DATA11F],,
							[VIEW.DATA11D],,
							0,,
							0,,
							[VIEW.DATA12F],,
							[VIEW.DATA12D],,
							0,,
							0,,
							[VIEW.DATA13F],,
							[VIEW.DATA13D],,
							0,,
							0,,			
							[VIEW.DATA14F],,
							[VIEW.DATA14D],,
							0,,
							0,,							
							[VIEW.DATA15F],,
							[VIEW.DATA15D],,
							0,,
							0
						}
					FROM #V_FACTURES_LIGNES_C_X#
						JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
						JOIN ACTI000063_SEJ ON v_factures_lignes_c_4.no_sejour = ACTI000063_SEJ.no_sejour

					WHERE 
							(v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' OR
							v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]') 
							[VIEW.SEJOURS_SELECT]
							[VIEW.PRESTATIONS_SELECT]
							[VIEW.PASSAGES_SELECT]
							[VIEW.PATIENTS_SELECT]
					AFTER{
				
					UPDATE w_table 
						SET indicateurs[3] = COALESCE(ACTI000063_MVT.indicateurs[001],0) - COALESCE(ACTI000063_MVT.indicateurs[002],0)
							[EVAL 
								if ('[DATA1]' == 'EMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[001],
										indicateurs[2] = ACTI000063_MVT.indicateurs[002]
										
									"; 
								}								
								if ('[DATA1]' == 'VALEMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[005],
										indicateurs[2] = ACTI000063_MVT.indicateurs[006]
										
									";
								}								
								if ('[DATA1]' == 'FAVEMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[009],
										indicateurs[2] = ACTI000063_MVT.indicateurs[010]
										
									";
								}	
								if ('[DATA1]' == 'FACNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[003],
										indicateurs[2] = ACTI000063_MVT.indicateurs[004]
										
									";
								}									
								if ('[DATA1]' == 'VALNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[007],
										indicateurs[2] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA1]' == 'FAVNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[011],
										indicateurs[2] = ACTI000063_MVT.indicateurs[012]
										
									";
								}									
								if ('[DATA1]' == 'FAVDMS') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[013],
										indicateurs[2] = ACTI000063_MVT.indicateurs[014]
										
									";
								}									
								if ('[DATA1]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[015],
										indicateurs[2] = ACTI000063_MVT.indicateurs[016]
										
									";
								}								
								if ('[DATA1]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[015]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[016])
										
									";
								}									
								if ('[DATA1]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[009]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[010])
										
									";
								}									
								if ('[DATA1]' == 'MMFACEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[001]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[002])
										
									";
								}								
								if ('[DATA1]' == 'MMVALEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[005]),
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[006])
										
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA2]' == 'EMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[001],
										indicateurs[6] = ACTI000063_MVT.indicateurs[002]									
									";
								}								
								if ('[DATA2]' == 'VALEMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[005],
										indicateurs[6] = ACTI000063_MVT.indicateurs[006]
										
									";
								}								
								if ('[DATA2]' == 'FAVEMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[009],
										indicateurs[6] = ACTI000063_MVT.indicateurs[010]
										
									";
								}	
								if ('[DATA2]' == 'FACNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[003],
										indicateurs[6] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA2]' == 'VALNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[007],
										indicateurs[6] = ACTI000063_MVT.indicateurs[008]
										
									";
								}
								if ('[DATA2]' == 'FAVNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[011],
										indicateurs[6] = ACTI000063_MVT.indicateurs[012]
										
									";
								}								
								if ('[DATA2]' == 'FAVDMS') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[013],
										indicateurs[6] = ACTI000063_MVT.indicateurs[014]
										
									";
								}									
								if ('[DATA2]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[015],
										indicateurs[6] = ACTI000063_MVT.indicateurs[016]
										
									";
								}
								if ('[DATA2]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[015]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[016])
										
									";
								}									
								if ('[DATA2]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[009]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[010])
										
										
									";
								}									
								if ('[DATA2]' == 'MMFACEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[001]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[002])
										
									";
								}								
								if ('[DATA2]' == 'MMVALEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[005]),
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[006])
										
									";
								}									
							EVAL]							
							[EVAL 
								if ('[DATA3]' == 'EMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[001],
										indicateurs[10] = ACTI000063_MVT.indicateurs[002]										

										
										
									";
								}								
								if ('[DATA3]' == 'VALEMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[005],
										indicateurs[10] = ACTI000063_MVT.indicateurs[006]
										
									";
								}								
								if ('[DATA3]' == 'FAVEMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[009],
										indicateurs[10] = ACTI000063_MVT.indicateurs[010]
										
									";
								}	
								if ('[DATA3]' == 'FACNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[003],
										indicateurs[10] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA3]' == 'VALNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[007],
										indicateurs[10] = ACTI000063_MVT.indicateurs[008]
										
									";
								}
								if ('[DATA3]' == 'FAVNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[011],
										indicateurs[10] = ACTI000063_MVT.indicateurs[012]
										
									";
								}								
								if ('[DATA3]' == 'FAVDMS') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[013],
										indicateurs[10] = ACTI000063_MVT.indicateurs[014]
										
									";
								}									
								if ('[DATA3]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[015],
										indicateurs[10] = ACTI000063_MVT.indicateurs[016]
										
									";
								}
								if ('[DATA3]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[015]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[016])
										
									";
								}									
								if ('[DATA3]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[009]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[010])
										
										
									";
								}									
								if ('[DATA3]' == 'MMFACEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[001]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[002])
										
									";
								}								
								if ('[DATA3]' == 'MMVALEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[005]),
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[006])
										
									";
								}									
							EVAL]							
							[EVAL 
								if ('[DATA4]' == 'EMC') {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[001],
										indicateurs[14] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA4]' == 'VALEMC') {
									return "
										,
										indicateurs[13] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[14] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA4]' == 'FAVEMC') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[14] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA4]' == 'FACNBJ') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[14] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA4]' == 'VALNBJ') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[14] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA4]' == 'FAVNBJ') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[14] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA4]' == 'FAVDMS') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[14] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA4]' == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[13]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[14] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA4]' == 'MFAVCAMHC') {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13],ACTI000063_MVT.indicateurs[015]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA4]' == 'MMFPVEMC') {
									return "
										,
										indicateurs[13]  = base.cti_division(w_table.indicateurs[13], ACTI000063_MVT.indicateurs[009]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA4]' == 'MMFACEMC') {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13], ACTI000063_MVT.indicateurs[001]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA4]' == 'MMVALEMC') {
									return "
										,
										indicateurs[13]  = base.cti_division(w_table.indicateurs[13], ACTI000063_MVT.indicateurs[005]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA5]' == 'EMC') {
									return "
										,
										indicateurs[17] = ACTI000063_MVT.indicateurs[001],
										indicateurs[18] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA5]' == 'VALEMC') {
									return "
										,
										indicateurs[17] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[18] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA5]' == 'FAVEMC') {
									return "
										,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[18] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA5]' == 'FACNBJ') {
									return "
										,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[18] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA5]' == 'VALNBJ') {
									return "
										,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[18] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA5]' == 'FAVNBJ') {
									return "
									,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[18] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA5]' == 'FAVDMS') {
									return "
									,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[18] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA5]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[17]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[18] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA5]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[17] = base.cti_division(w_table.indicateurs[17],ACTI000063_MVT.indicateurs[015]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA5]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[17]  = base.cti_division(w_table.indicateurs[17], ACTI000063_MVT.indicateurs[009]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA5]' == 'MMFACEMC') {
									return "
									,
										indicateurs[17] = base.cti_division(w_table.indicateurs[17], ACTI000063_MVT.indicateurs[001]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA5]' == 'MMVALEMC') {
									return "
									,
										indicateurs[17]  = base.cti_division(w_table.indicateurs[17], ACTI000063_MVT.indicateurs[005]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000063_MVT.indicateurs[006])
									";
								}
							EVAL]							
							[EVAL 
								if ('[DATA6]' == 'EMC') {
									return "
										,
										indicateurs[21] = ACTI000063_MVT.indicateurs[001],
										indicateurs[22] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA6]' == 'VALEMC') {
									return "
										,
										indicateurs[21] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[22] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA6]' == 'FAVEMC') {
									return "
										,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[22] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA6]' == 'FACNBJ') {
									return "
										,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[22] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA6]' == 'VALNBJ') {
									return "
										,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[22] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA6]' == 'FAVNBJ') {
									return "
									,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[22] = ACTI000063_MVT.indicateurs[012],
										indicateurs[78] = ACTI000063_MVT.indicateurs[038]
									";
								}								
								if ('[DATA6]' == 'FAVDMS') {
									return "
									,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[22] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA6]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[21]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[22] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA6]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[21] = base.cti_division(w_table.indicateurs[21],ACTI000063_MVT.indicateurs[015]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA6]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[21]  = base.cti_division(w_table.indicateurs[21], ACTI000063_MVT.indicateurs[009]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA6]' == 'MMFACEMC') {
									return "
									,
										indicateurs[21] = base.cti_division(w_table.indicateurs[21], ACTI000063_MVT.indicateurs[001]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA6]' == 'MMVALEMC') {
									return "
									,
										indicateurs[21]  = base.cti_division(w_table.indicateurs[21], ACTI000063_MVT.indicateurs[005]),
										indicateurs[22] = base.cti_division(w_table.indicateurs[22],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA7]' == 'EMC') {
									return "
										,
										indicateurs[25] = ACTI000063_MVT.indicateurs[001],
										indicateurs[26] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA7]' == 'VALEMC') {
									return "
										,
										indicateurs[25] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[26] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA7]' == 'FAVEMC') {
									return "
										,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[26] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA7]' == 'FACNBJ') {
									return "
										,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[26] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA7]' == 'VALNBJ') {
									return "
										,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[26] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA7]' == 'FAVNBJ') {
									return "
									,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[26] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA7]' == 'FAVDMS') {
									return "
									,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[26] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA7]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[25]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[26] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA7]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[25] = base.cti_division(w_table.indicateurs[25],ACTI000063_MVT.indicateurs[015]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA7]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[25]  = base.cti_division(w_table.indicateurs[25], ACTI000063_MVT.indicateurs[009]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA7]' == 'MMFACEMC') {
									return "
									,
										indicateurs[25] = base.cti_division(w_table.indicateurs[25], ACTI000063_MVT.indicateurs[001]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA7]' == 'MMVALEMC') {
									return "
									,
										indicateurs[25]  = base.cti_division(w_table.indicateurs[25], ACTI000063_MVT.indicateurs[005]),
										indicateurs[26] = base.cti_division(w_table.indicateurs[26],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA8]' == 'EMC') {
									return "
										,
										indicateurs[29] = ACTI000063_MVT.indicateurs[001],
										indicateurs[30] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA8]' == 'VALEMC') {
									return "
										,
										indicateurs[29] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[30] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA8]' == 'FAVEMC') {
									return "
										,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[30] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA8]' == 'FACNBJ') {
									return "
										,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[30] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA8]' == 'VALNBJ') {
									return "
										,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[30] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA8]' == 'FAVNBJ') {
									return "
									,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[30] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA8]' == 'FAVDMS') {
									return "
									,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[30] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA8]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[29]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[30] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA8]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[29] = base.cti_division(w_table.indicateurs[29],ACTI000063_MVT.indicateurs[015]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA8]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[29]  = base.cti_division(w_table.indicateurs[29], ACTI000063_MVT.indicateurs[009]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA8]' == 'MMFACEMC') {
									return "
									,
										indicateurs[29] = base.cti_division(w_table.indicateurs[29], ACTI000063_MVT.indicateurs[001]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA8]' == 'MMVALEMC') {
									return "
									,
										indicateurs[29]  = base.cti_division(w_table.indicateurs[29], ACTI000063_MVT.indicateurs[005]),
										indicateurs[30] = base.cti_division(w_table.indicateurs[30],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA9]' == 'EMC') {
									return "
										,
										indicateurs[33] = ACTI000063_MVT.indicateurs[001],
										indicateurs[34] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA9]' == 'VALEMC') {
									return "
										,
										indicateurs[33] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[34] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA9]' == 'FAVEMC') {
									return "
										,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[34] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA9]' == 'FACNBJ') {
									return "
										,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[34] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA9]' == 'VALNBJ') {
									return "
										,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[34] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA9]' == 'FAVNBJ') {
									return "
									,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[34] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA9]' == 'FAVDMS') {
									return "
									,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[34] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA9]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[33]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[34] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA9]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[33] = base.cti_division(w_table.indicateurs[33],ACTI000063_MVT.indicateurs[015]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[34],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA9]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[33]  = base.cti_division(w_table.indicateurs[33], ACTI000063_MVT.indicateurs[009]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[44],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA9]' == 'MMFACEMC') {
									return "
									,
										indicateurs[33] = base.cti_division(w_table.indicateurs[33], ACTI000063_MVT.indicateurs[001]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[34],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA9]' == 'MMVALEMC') {
									return "
									,
										indicateurs[33]  = base.cti_division(w_table.indicateurs[33], ACTI000063_MVT.indicateurs[005]),
										indicateurs[34] = base.cti_division(w_table.indicateurs[44],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA10]' == 'EMC') {
									return "
										,
										indicateurs[37] = ACTI000063_MVT.indicateurs[001],
										indicateurs[38] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA10]' == 'VALEMC') {
									return "
										,
										indicateurs[37] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[38] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA10]' == 'FAVEMC') {
									return "
										,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[38] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA10]' == 'FACNBJ') {
									return "
										,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[38] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA10]' == 'VALNBJ') {
									return "
										,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[38] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA10]' == 'FAVNBJ') {
									return "
									,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[38] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA10]' == 'FAVDMS') {
									return "
									,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[38] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA10]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[37]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[38] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA10]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[37] = base.cti_division(w_table.indicateurs[37],ACTI000063_MVT.indicateurs[015]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA10]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[37]  = base.cti_division(w_table.indicateurs[37], ACTI000063_MVT.indicateurs[009]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA10]' == 'MMFACEMC') {
									return "
									,
										indicateurs[37] = base.cti_division(w_table.indicateurs[37], ACTI000063_MVT.indicateurs[001]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA10]' == 'MMVALEMC') {
									return "
									,
										indicateurs[37]  = base.cti_division(w_table.indicateurs[37], ACTI000063_MVT.indicateurs[005]),
										indicateurs[38] = base.cti_division(w_table.indicateurs[38],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA011]' == 'EMC') {
									return "
										,
										indicateurs[41] = ACTI000063_MVT.indicateurs[001],
										indicateurs[42] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA011]' == 'VALEMC') {
									return "
										,
										indicateurs[41] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[42] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA011]' == 'FAVEMC') {
									return "
										,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[42] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA011]' == 'FACNBJ') {
									return "
										,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[42] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA011]' == 'VALNBJ') {
									return "
										,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[42] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA011]' == 'FAVNBJ') {
									return "
									,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[42] = ACTI000063_MVT.indicateurs[012],
										indicateurs[83] = ACTI000063_MVT.indicateurs[038]
									";
								}								
								if ('[DATA011]' == 'FAVDMS') {
									return "
									,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[42] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA011]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[41]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[42] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA011]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[41] = base.cti_division(w_table.indicateurs[41],ACTI000063_MVT.indicateurs[015]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA011]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[41]  = base.cti_division(w_table.indicateurs[41], ACTI000063_MVT.indicateurs[009]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA011]' == 'MMFACEMC') {
									return "
									,
										indicateurs[41] = base.cti_division(w_table.indicateurs[41], ACTI000063_MVT.indicateurs[001]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA011]' == 'MMVALEMC') {
									return "
									,
										indicateurs[41]  = base.cti_division(w_table.indicateurs[41], ACTI000063_MVT.indicateurs[005]),
										indicateurs[42] = base.cti_division(w_table.indicateurs[42],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA012]' == 'EMC') {
									return "
										,
										indicateurs[45] = ACTI000063_MVT.indicateurs[001],
										indicateurs[46] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA012]' == 'VALEMC') {
									return "
										,
										indicateurs[45] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[46] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA012]' == 'FAVEMC') {
									return "
										,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[46] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA012]' == 'FACNBJ') {
									return "
										,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[46] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA012]' == 'VALNBJ') {
									return "
										,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[46] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA012]' == 'FAVNBJ') {
									return "
									,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[46] = ACTI000063_MVT.indicateurs[012],
										indicateurs[83] = ACTI000063_MVT.indicateurs[038]
									";
								}								
								if ('[DATA012]' == 'FAVDMS') {
									return "
									,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[46] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA012]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[45]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[46] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA012]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[45] = base.cti_division(w_table.indicateurs[45],ACTI000063_MVT.indicateurs[015]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA012]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[45]  = base.cti_division(w_table.indicateurs[45], ACTI000063_MVT.indicateurs[009]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA012]' == 'MMFACEMC') {
									return "
									,
										indicateurs[45] = base.cti_division(w_table.indicateurs[45], ACTI000063_MVT.indicateurs[001]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA012]' == 'MMVALEMC') {
									return "
									,
										indicateurs[45]  = base.cti_division(w_table.indicateurs[45], ACTI000063_MVT.indicateurs[005]),
										indicateurs[46] = base.cti_division(w_table.indicateurs[46],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]							
							[EVAL 
								if ('[DATA013]' == 'EMC') {
									return "
										,
										indicateurs[49] = ACTI000063_MVT.indicateurs[001],
										indicateurs[50] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA013]' == 'VALEMC') {
									return "
										,
										indicateurs[49] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[50] = ACTI000063_MVT.indicateurs[006],
										indicateurs[85] = ACTI000063_MVT.indicateurs[035]
									";
								}								
								if ('[DATA013]' == 'FAVEMC') {
									return "
										,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[50] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA013]' == 'FACNBJ') {
									return "
										,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[50] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA013]' == 'VALNBJ') {
									return "
										,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[50] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA013]' == 'FAVNBJ') {
									return "
									,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[50] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA013]' == 'FAVDMS') {
									return "
									,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[50] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA013]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[49]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[50] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA013]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[49] = base.cti_division(w_table.indicateurs[49],ACTI000063_MVT.indicateurs[015]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA013]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[49]  = base.cti_division(w_table.indicateurs[49], ACTI000063_MVT.indicateurs[009]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA013]' == 'MMFACEMC') {
									return "
									,
										indicateurs[49] = base.cti_division(w_table.indicateurs[49], ACTI000063_MVT.indicateurs[001]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA013]' == 'MMVALEMC') {
									return "
									,
										indicateurs[49]  = base.cti_division(w_table.indicateurs[49], ACTI000063_MVT.indicateurs[005]),
										indicateurs[50] = base.cti_division(w_table.indicateurs[50],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA014]' == 'EMC') {
									return "
										,
										indicateurs[53] = ACTI000063_MVT.indicateurs[001],
										indicateurs[54] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA014]' == 'VALEMC') {
									return "
										,
										indicateurs[53] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[54] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA014]' == 'FAVEMC') {
									return "
										,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[54] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA014]' == 'FACNBJ') {
									return "
										,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[54] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA014]' == 'VALNBJ') {
									return "
										,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[54] = ACTI000063_MVT.indicateurs[008],
										indicateurs[86] = ACTI000063_MVT.indicateurs[036]
									";
								}
								if ('[DATA014]' == 'FAVNBJ') {
									return "
									,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[54] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA014]' == 'FAVDMS') {
									return "
									,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[54] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA014]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[53]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[54] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA014]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[53] = base.cti_division(w_table.indicateurs[53],ACTI000063_MVT.indicateurs[015]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA014]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[53]  = base.cti_division(w_table.indicateurs[53], ACTI000063_MVT.indicateurs[009]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA014]' == 'MMFACEMC') {
									return "
									,
										indicateurs[53] = base.cti_division(w_table.indicateurs[53], ACTI000063_MVT.indicateurs[001]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA014]' == 'MMVALEMC') {
									return "
									,
										indicateurs[53]  = base.cti_division(w_table.indicateurs[53], ACTI000063_MVT.indicateurs[005]),
										indicateurs[54] = base.cti_division(w_table.indicateurs[54],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA015]' == 'EMC') {
									return "
										,
										indicateurs[57] = ACTI000063_MVT.indicateurs[001],
										indicateurs[58] = ACTI000063_MVT.indicateurs[002]
									";
								}								
								if ('[DATA015]' == 'VALEMC') {
									return "
										,
										indicateurs[57] =  ACTI000063_MVT.indicateurs[005],
										indicateurs[58] = ACTI000063_MVT.indicateurs[006]
									";
								}								
								if ('[DATA015]' == 'FAVEMC') {
									return "
										,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[009],
										indicateurs[58] = ACTI000063_MVT.indicateurs[010]
									";
								}	
								if ('[DATA015]' == 'FACNBJ') {
									return "
										,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[003],
										indicateurs[58] = ACTI000063_MVT.indicateurs[004]
									";
								}								
								if ('[DATA015]' == 'VALNBJ') {
									return "
										,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[007],
										indicateurs[58] = ACTI000063_MVT.indicateurs[008]
									";
								}
								if ('[DATA015]' == 'FAVNBJ') {
									return "
									,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[011],
										indicateurs[58] = ACTI000063_MVT.indicateurs[012]
									";
								}								
								if ('[DATA015]' == 'FAVDMS') {
									return "
									,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[013],
										indicateurs[58] = ACTI000063_MVT.indicateurs[014]
									";
								}									
								if ('[DATA015]' == 'FAVNBEMCHC') {
									return "
									,
										indicateurs[57]  = ACTI000063_MVT.indicateurs[015],
										indicateurs[58] = ACTI000063_MVT.indicateurs[016]
									";
								}
								if ('[DATA015]' == 'MFAVCAMHC') {
									return "
									,
										indicateurs[57] = base.cti_division(w_table.indicateurs[57],ACTI000063_MVT.indicateurs[015]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[016])
									";
								}	
								if ('[DATA015]' == 'MMFPVEMC') {
									return "
									,
										indicateurs[57]  = base.cti_division(w_table.indicateurs[57], ACTI000063_MVT.indicateurs[009]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[010])
									";
								}	
								if ('[DATA015]' == 'MMFACEMC') {
									return "
									,
										indicateurs[57] = base.cti_division(w_table.indicateurs[57], ACTI000063_MVT.indicateurs[001]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[002])
									";
								}
								if ('[DATA015]' == 'MMVALEMC') {
									return "
									,
										indicateurs[57]  = base.cti_division(w_table.indicateurs[57], ACTI000063_MVT.indicateurs[005]),
										indicateurs[58] = base.cti_division(w_table.indicateurs[58],ACTI000063_MVT.indicateurs[006])
									";
								}								
							EVAL]
								FROM ACTI000063_MVT
									WHERE w_table.OIDT = ACTI000063_MVT.OIDT AND
										w_table.OID1 = ACTI000063_MVT.OID1 AND
										w_table.OID2 = ACTI000063_MVT.OID2 AND
										w_table.OID3 = ACTI000063_MVT.OID3
						.,
						UPDATE w_table 
						SET 
							indicateurs[3] = COALESCE(indicateurs[1],0) - COALESCE(indicateurs[2],0),
							indicateurs[4] = base.cti_division(COALESCE(indicateurs[1],0) - indicateurs[2],indicateurs[2]/100.00),
							indicateurs[7] = COALESCE(indicateurs[5],0) - COALESCE(indicateurs[6],0),
							indicateurs[8] = base.cti_division(COALESCE(indicateurs[5],0) - indicateurs[6],indicateurs[6]/100.00),
							indicateurs[11] = COALESCE(indicateurs[9],0) - COALESCE(indicateurs[10],0),
							indicateurs[12] = base.cti_division(COALESCE(indicateurs[9],0) - indicateurs[10],indicateurs[10]/100.00),					
							indicateurs[15] = COALESCE(indicateurs[13],0) - COALESCE(indicateurs[14],0),
							indicateurs[16] = base.cti_division(COALESCE(indicateurs[13],0) - indicateurs[14],indicateurs[14]/100.00),							
							indicateurs[19] = COALESCE(indicateurs[17],0) - COALESCE(indicateurs[18],0),
							indicateurs[20] = base.cti_division(COALESCE(indicateurs[17],0) - indicateurs[18],indicateurs[18]/100.00),						
							indicateurs[23] = COALESCE(indicateurs[21],0) - COALESCE(indicateurs[22],0),
							indicateurs[24] = base.cti_division(COALESCE(indicateurs[21],0) - indicateurs[22],indicateurs[22]/100.00),							
							indicateurs[27] = COALESCE(indicateurs[25],0) - COALESCE(indicateurs[26],0),
							indicateurs[28] = base.cti_division(COALESCE(indicateurs[25],0) - indicateurs[26],indicateurs[26]/100.00),							
							indicateurs[31] = COALESCE(indicateurs[29],0) - COALESCE(indicateurs[30],0),
							indicateurs[32] = base.cti_division(COALESCE(indicateurs[29],0) - indicateurs[30],indicateurs[30]/100.00),							
							indicateurs[35] = COALESCE(indicateurs[33],0) - COALESCE(indicateurs[34],0),
							indicateurs[36] = base.cti_division(COALESCE(indicateurs[33],0) - indicateurs[34],indicateurs[34]/100.00),							
							indicateurs[39] = COALESCE(indicateurs[37],0) - COALESCE(indicateurs[38],0),
							indicateurs[40] = base.cti_division(COALESCE(indicateurs[37],0) - indicateurs[38],indicateurs[38]/100.00),							
							indicateurs[43] = COALESCE(indicateurs[41],0) - COALESCE(indicateurs[42],0),
							indicateurs[44] = base.cti_division(COALESCE(indicateurs[41],0) - indicateurs[42],indicateurs[42]/100.00),							
							indicateurs[47] = COALESCE(indicateurs[45],0) - COALESCE(indicateurs[46],0),
							indicateurs[48] = base.cti_division(COALESCE(indicateurs[45],0) - indicateurs[46],indicateurs[46]/100.00),							
							indicateurs[51] = COALESCE(indicateurs[49],0) - COALESCE(indicateurs[50],0),
							indicateurs[52] = base.cti_division(COALESCE(indicateurs[49],0) - indicateurs[50],indicateurs[50]/100.00),							
							indicateurs[55] = COALESCE(indicateurs[53],0) - COALESCE(indicateurs[54],0),
							indicateurs[56] = base.cti_division(COALESCE(indicateurs[53],0) - indicateurs[54],indicateurs[54]/100.00),							
							indicateurs[59] = COALESCE(indicateurs[57],0) - COALESCE(indicateurs[58],0),
							indicateurs[60] = base.cti_division(COALESCE(indicateurs[57],0) - indicateurs[58],indicateurs[58]/100.00)
					}
					;

					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 [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 
					2 as rang,
					'Année ' || SUBSTR('[PERIODE]',0,5),
					(select indicateurs [1] as total from w_table where level = 9 ),
					(select indicateurs [1] as Janvier from w_table where level <>9 and code1 = '01'),
					(select indicateurs [1] as Fevrier from w_table where level <>9 and code1 = '02'), 	
					(select indicateurs [1] as Mars from w_table where level <>9 and code1 = '03'),
					(select indicateurs [1] as Avril from w_table where level <>9 and code1 = '04'), 	
					(select indicateurs [1] as Mai from w_table where level <>9 and code1 = '05'),
					(select indicateurs [1] as Juin from w_table where level <>9 and code1 = '06'), 	
					(select indicateurs [1] as Juillet from w_table where level <>9 and code1 = '07'),
					(select indicateurs [1] as Aout from w_table where level <>9 and code1 = '08'),
					(select indicateurs [1] as Septembre from w_table where level <>9 and code1 = '09'), 
					(select indicateurs [1] as Octobre from w_table where level <>9 and code1 = '10'), 
					(select indicateurs [1] as Novembre from w_table where level <>9 and code1 = '11'),
					(select indicateurs [1] as Decembre from w_table where level <>9 and code1 = '12') 
				
					union 
				
					select 
					3 as rang,
					'Ecart N-1' ,
					((select indicateurs [1] as total from w_table where level = 9 ) - (select indicateurs [2] as total from w_table where level = 9 )),
					((select indicateurs [1] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [2] as Janvier from w_table where level <>9 and code1 = '01')),
					((select indicateurs [1] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [2] as Fevrier from w_table where level <>9 and code1 = '02')), 	
					((select indicateurs [1] as Mars from w_table where level <>9 and code1 = '03') -   (select indicateurs [2] as Mars from w_table where level <>9 and code1 = '03')) ,
					((select indicateurs [1] as Avril from w_table where level <>9 and code1 = '04') -   (select indicateurs [2] as Avril from w_table where level <>9 and code1 = '04')), 	
					((select indicateurs [1] as Mai from w_table where level <>9 and code1 = '05')   -  (select indicateurs [2] as Mai from w_table where level <>9 and code1 = '05')),
					((select indicateurs [1] as Juin from w_table where level <>9 and code1 = '06')  -   (select indicateurs [2] as Juin from w_table where level <>9 and code1 = '06')), 	
					((select indicateurs [1] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [2] as Juillet from w_table where level <>9 and code1 = '07')) ,
					((select indicateurs [1] as Aout from w_table where level <>9 and code1 = '08')  -   (select indicateurs [2] as Aout from w_table where level <>9 and code1 = '08'))   ,
					((select indicateurs [1] as Septembre from w_table where level <>9 and code1 = '09') -  (select indicateurs [2] as Septembre from w_table where level <>9 and code1 = '09')), 
					((select indicateurs [1] as Octobre from w_table where level <>9 and code1 = '10')  -   (select indicateurs [2] as Octobre from w_table where level <>9 and code1 = '10')), 
					((select indicateurs [1] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [2] as Novembre from w_table where level <>9 and code1 = '11')),
					((select indicateurs [1] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [2] as Decembre from w_table where level <>9 and code1 = '12'))
				
					union
				
					select 
					4 as rang,
					'% N-1' ,
					round(base.cti_division(((select indicateurs [1] as total from w_table where level = 9 ) - (select indicateurs [2] as total from w_table where level = 9 ))*100,											(select indicateurs [2] as total from w_table where level = 9 )),2),
					round(base.cti_division(((select indicateurs [1] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [2] as Janvier from w_table where level <>9 and code1 = '01'))*100,		(select indicateurs [2] as Janvier from w_table where level <>9 and code1 = '01')),2),
					round(base.cti_division(((select indicateurs [1] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [2] as Fevrier from w_table where level <>9 and code1 = '02'))*100,		(select indicateurs [2] as Fevrier from w_table where level <>9 and code1 = '02')),2), 	
					round(base.cti_division(((select indicateurs [1] as Mars from w_table where level <>9 and code1 = '03') -   (select indicateurs [2] as Mars from w_table where level <>9 and code1 = '03'))*100,			(select indicateurs [2] as Mars from w_table where level <>9 and code1 = '03')),2),
					round(base.cti_division(((select indicateurs [1] as Avril from w_table where level <>9 and code1 = '04') -   (select indicateurs [2] as Avril from w_table where level <>9 and code1 = '04'))*100,		(select indicateurs [2] as Avril from w_table where level <>9 and code1 = '04')),2),	
					round(base.cti_division(((select indicateurs [1] as Mai from w_table where level <>9 and code1 = '05')   -  (select indicateurs [2] as Mai from w_table where level <>9 and code1 = '05'))*100,			(select indicateurs [2] as Mai from w_table where level <>9 and code1 = '05')),2),
					round(base.cti_division(((select indicateurs [1] as Juin from w_table where level <>9 and code1 = '06')  -   (select indicateurs [2] as Juin from w_table where level <>9 and code1 = '06'))*100,			(select indicateurs [2] as Juin from w_table where level <>9 and code1 = '06')),2),	
					round(base.cti_division(((select indicateurs [1] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [2] as Juillet from w_table where level <>9 and code1 = '07'))*100, 		(select indicateurs [2] as Juillet from w_table where level <>9 and code1 = '07')),2),
					round(base.cti_division(((select indicateurs [1] as Aout from w_table where level <>9 and code1 = '08')  -   (select indicateurs [2] as Aout from w_table where level <>9 and code1 = '08'))*100, 		(select indicateurs [2] as Aout from w_table where level <>9 and code1 = '08')),2),
					round(base.cti_division(((select indicateurs [1] as Septembre from w_table where level <>9 and code1 = '09') -  (select indicateurs [2] as Septembre from w_table where level <>9 and code1 = '09'))*100, (select indicateurs [2] as Septembre from w_table where level <>9 and code1 = '09')),2),
					round(base.cti_division(((select indicateurs [1] as Octobre from w_table where level <>9 and code1 = '10')  -   (select indicateurs [2] as Octobre from w_table where level <>9 and code1 = '10'))*100,   (select indicateurs [2] as Octobre from w_table where level <>9 and code1 = '10')),2), 
					round(base.cti_division(((select indicateurs [1] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [2] as Novembre from w_table where level <>9 and code1 = '11'))*100,   (select indicateurs [2] as Novembre from w_table where level <>9 and code1 = '11')),2),
					round(base.cti_division(((select indicateurs [1] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [2] as Decembre from w_table where level <>9 and code1 = '12'))*100,    (select indicateurs [2] as Decembre from w_table where level <>9 and code1 = '12')),2)
				
	
	
					[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 [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 
								7 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [5] as total from w_table where level = 9 ),
								(select indicateurs [5] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [5] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [5] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [5] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [5] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [5] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [5] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [5] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [5] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [5] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [5] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [5] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								8 as rang,
								'Ecart N-1' ,
								(select indicateurs [5] as total from w_table where level = 9 ) - (select indicateurs [6] as total from w_table where level = 9 ),
								(select indicateurs [5] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [6] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [5] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [6] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [5] as Mars from w_table where level <>9 and code1 = '03') -   (select indicateurs [6] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [5] as Avril from w_table where level <>9 and code1 = '04') -   (select indicateurs [6] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [5] as Mai from w_table where level <>9 and code1 = '05')   -  (select indicateurs [6] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [5] as Juin from w_table where level <>9 and code1 = '06')  -   (select indicateurs [6] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [5] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [6] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [5] as Aout from w_table where level <>9 and code1 = '08')  -   (select indicateurs [6] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [5] as Septembre from w_table where level <>9 and code1 = '09') -  (select indicateurs [6] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [5] as Octobre from w_table where level <>9 and code1 = '10')  -   (select indicateurs [6] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [5] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [6] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [5] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [6] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								9 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [5] as total from w_table where level = 9 ) - (select indicateurs [6] as total from w_table where level = 9 ))*100,(select indicateurs [6] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [5] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [6] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [6] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [5] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [6] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [6] as Fevrier from w_table where level <>9 and code1 = '02')),2), 	
								round(base.cti_division(((select indicateurs [5] as Mars from w_table where level <>9 and code1 = '03') -   (select indicateurs [6] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [6] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [5] as Avril from w_table where level <>9 and code1 = '04') -   (select indicateurs [6] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [6] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [5] as Mai from w_table where level <>9 and code1 = '05')   -  (select indicateurs [6] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [6] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [5] as Juin from w_table where level <>9 and code1 = '06')  -   (select indicateurs [6] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [6] as Juin from w_table where level <>9 and code1 = '06')),2), 	
								round(base.cti_division(((select indicateurs [5] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [6] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [6] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [5] as Aout from w_table where level <>9 and code1 = '08')  -   (select indicateurs [6] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [6] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [5] as Septembre from w_table where level <>9 and code1 = '09') -  (select indicateurs [6] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [6] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [5] as Octobre from w_table where level <>9 and code1 = '10')  -   (select indicateurs [6] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [6] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [5] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [6] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [6] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [5] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [6] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [6] as Decembre from w_table where level <>9 and code1 = '12')),2)

																
															"; 
						} 																					
					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 [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 
								12 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [9] as total from w_table where level = 9 ),
								(select indicateurs [9] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [9] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [9] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [9] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [9] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [9] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [9] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [9] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [9] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [9] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [9] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [9] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								13 as rang,
								'Ecart N-1' ,
								(select indicateurs [9] as total from w_table where level = 9 ) -  (select indicateurs [10] as total from w_table where level = 9 ),
								(select indicateurs [9] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [10] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [9] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [10] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [9] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [10] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [9] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [10] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [9] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [10] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [9] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [10] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [9] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [10] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [9] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [10] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [9] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [10] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [9] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [10] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [9] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [10] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [9] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [10] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								14 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [9] as total from w_table where level = 9 ) - (select indicateurs [10] as total from w_table where level = 9 ))*100,(select indicateurs [10] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [9] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [10] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [10] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [9] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [10] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [10] as Fevrier from w_table where level <>9 and code1 = '02')),2),	
								round(base.cti_division(((select indicateurs [9] as Mars from w_table where level <>9 and code1 = '03') -  (select indicateurs [10] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [10] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [9] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [10] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [10] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [9] as Mai from w_table where level <>9 and code1 = '05')   - (select indicateurs [10] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [10] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [9] as Juin from w_table where level <>9 and code1 = '06')  - (select indicateurs [10] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [10] as Juin from w_table where level <>9 and code1 = '06')),2),	
								round(base.cti_division(((select indicateurs [9] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [10] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [10] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [9] as Aout from w_table where level <>9 and code1 = '08')  -  (select indicateurs [10] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [10] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [9] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [10] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [10] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [9] as Octobre from w_table where level <>9 and code1 = '10')  - (select indicateurs [10] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [10] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [9] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [10] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [10] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [9] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [10] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [10] as Decembre from w_table where level <>9 and code1 = '12')),2)
						
																
															"; 
						} 																					
					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 [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 
								17 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [13] as total from w_table where level = 9 ),
								(select indicateurs [13] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [13] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [13] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [13] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [13] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [13] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [13] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [13] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [13] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [13] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [13] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [13] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								18 as rang,
								'Ecart N-1' ,
								(select indicateurs [13] as total from w_table where level = 9 ) -  (select indicateurs [14] as total from w_table where level = 9 ),
								(select indicateurs [13] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [14] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [13] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [14] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [13] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [14] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [13] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [14] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [13] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [14] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [13] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [14] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [13] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [14] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [13] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [14] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [13] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [14] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [13] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [14] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [13] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [14] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [13] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [14] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								19 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [13] as total from w_table where level = 9 ) - (select indicateurs [14] as total from w_table where level = 9 ))*100,(select indicateurs [14] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [13] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [14] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [14] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [13] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [14] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [14] as Fevrier from w_table where level <>9 and code1 = '02')),2),	
								round(base.cti_division(((select indicateurs [13] as Mars from w_table where level <>9 and code1 = '03') -  (select indicateurs [14] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [14] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [13] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [14] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [14] as Avril from w_table where level <>9 and code1 = '04')),2),
								round(base.cti_division(((select indicateurs [13] as Mai from w_table where level <>9 and code1 = '05')   - (select indicateurs [14] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [14] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [13] as Juin from w_table where level <>9 and code1 = '06')  - (select indicateurs [14] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [14] as Juin from w_table where level <>9 and code1 = '06')),2),	
								round(base.cti_division(((select indicateurs [13] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [14] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [14] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [13] as Aout from w_table where level <>9 and code1 = '08')  -  (select indicateurs [14] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [14] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [13] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [14] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [14] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [13] as Octobre from w_table where level <>9 and code1 = '10')  - (select indicateurs [14] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [14] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [13] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [14] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [14] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [13] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [14] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [14] as Decembre from w_table where level <>9 and code1 = '12')),2)
								
							"; 
						} 																					
					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 [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 
								22 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [17] as total from w_table where level = 9 ),
								(select indicateurs [17] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [17] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [17] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [17] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [17] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [17] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [17] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [17] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [17] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [17] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [17] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [17] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								23 as rang,
								'Ecart N-1' ,
								(select indicateurs [17] as total from w_table where level = 9 ) -  (select indicateurs [18] as total from w_table where level = 9 ),
								(select indicateurs [17] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [18] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [17] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [18] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [17] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [18] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [17] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [18] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [17] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [18] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [17] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [18] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [17] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [18] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [17] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [18] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [17] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [18] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [17] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [18] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [17] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [18] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [17] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [18] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								24 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [17] as total from w_table where level = 9 ) - (select indicateurs [18] as total from w_table where level = 9 ))*100,(select indicateurs [18] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [17] as Janvier from w_table where level <>9 and code1 = '01')-(select indicateurs [18] as Janvier from w_table where level <>9 and code1 = '01'))*100,(select indicateurs [18] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [17] as Fevrier from w_table where level <>9 and code1 = '02') - (select indicateurs [18] as Fevrier from w_table where level <>9 and code1 = '02'))*100,(select indicateurs [18] as Fevrier from w_table where level <>9 and code1 = '02')),2),	
								round(base.cti_division(((select indicateurs [17] as Mars from w_table where level <>9 and code1 = '03') -  (select indicateurs [18] as Mars from w_table where level <>9 and code1 = '03'))*100,(select indicateurs [18] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [17] as Avril from w_table where level <>9 and code1 = '04') - (select indicateurs [18] as Avril from w_table where level <>9 and code1 = '04'))*100,(select indicateurs [18] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [17] as Mai from w_table where level <>9 and code1 = '05')   - (select indicateurs [18] as Mai from w_table where level <>9 and code1 = '05'))*100,(select indicateurs [18] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [17] as Juin from w_table where level <>9 and code1 = '06')  - (select indicateurs [18] as Juin from w_table where level <>9 and code1 = '06'))*100,(select indicateurs [18] as Juin from w_table where level <>9 and code1 = '06')),2),	
								round(base.cti_division(((select indicateurs [17] as Juillet from w_table where level <>9 and code1 = '07') - (select indicateurs [18] as Juillet from w_table where level <>9 and code1 = '07'))*100, (select indicateurs [18] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [17] as Aout from w_table where level <>9 and code1 = '08')  -  (select indicateurs [18] as Aout from w_table where level <>9 and code1 = '08'))*100, (select indicateurs [18] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [17] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [18] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [18] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [17] as Octobre from w_table where level <>9 and code1 = '10')  - (select indicateurs [18] as Octobre from w_table where level <>9 and code1 = '10'))*100,(select indicateurs [18] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [17] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [18] as Novembre from w_table where level <>9 and code1 = '11'))*100,(select indicateurs [18] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [17] as Decembre from w_table where level <>9 and code1 = '12') - (select indicateurs [18] as Decembre from w_table where level <>9 and code1 = '12'))*100,(select indicateurs [18] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								27 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [21] as total from w_table where level = 9 ),
								(select indicateurs [21] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [21] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [21] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [21] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [21] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [21] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [21] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [21] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [21] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [21] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [21] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [21] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								28 as rang,
								'Ecart N-1' ,
								(select indicateurs [21] as total from w_table where level = 9 ) -  (select indicateurs [22] as total from w_table where level = 9 ),
								(select indicateurs [21] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [22] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [21] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [22] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [21] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [22] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [21] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [22] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [21] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [22] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [21] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [22] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [21] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [22] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [21] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [22] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [21] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [22] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [21] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [22] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [21] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [22] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [21] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [22] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								29 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [21] as total from w_table where level = 9 )                     - (select indicateurs [22] as total from w_table where level = 9 ))*100,                    (select indicateurs [22] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [21] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [22] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [22] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [21] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [22] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [22] as Fevrier from w_table where level <>9 and code1 = '02')),2),	
								round(base.cti_division(((select indicateurs [21] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [22] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [22] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [21] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [22] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [22] as Avril from w_table where level <>9 and code1 = '04')),2),
								round(base.cti_division(((select indicateurs [21] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [22] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [22] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [21] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [22] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [22] as Juin from w_table where level <>9 and code1 = '06')),2),	
								round(base.cti_division(((select indicateurs [21] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [22] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [22] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [21] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [22] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [22] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [21] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [22] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [22] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [21] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [22] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [22] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [21] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [22] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [22] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [21] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [22] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [22] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								32 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [25] as total from w_table where level = 9 ),
								(select indicateurs [25] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [25] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [25] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [25] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [25] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [25] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [25] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [25] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [25] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [25] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [25] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [25] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								33 as rang,
								'Ecart N-1' ,
								(select indicateurs [25] as total from w_table where level = 9 ) -  (select indicateurs [26] as total from w_table where level = 9 ),
								(select indicateurs [25] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [26] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [25] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [26] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [25] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [26] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [25] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [26] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [25] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [26] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [25] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [26] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [25] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [26] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [25] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [26] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [25] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [26] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [25] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [26] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [25] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [26] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [25] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [26] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								34 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [25] as total from w_table where level = 9 )                     - (select indicateurs [26] as total from w_table where level = 9 ))*100,                    (select indicateurs [26] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [25] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [26] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [26] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [25] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [26] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [26] as Fevrier from w_table where level <>9 and code1 = '02')),2), 	
								round(base.cti_division(((select indicateurs [25] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [26] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [26] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [25] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [26] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [26] as Avril from w_table where level <>9 and code1 = '04')),2),
								round(base.cti_division(((select indicateurs [25] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [26] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [26] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [25] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [26] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [26] as Juin from w_table where level <>9 and code1 = '06')),2), 	
								round(base.cti_division(((select indicateurs [25] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [26] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [26] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [25] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [26] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [26] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [25] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [26] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [26] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [25] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [26] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [26] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [25] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [26] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [26] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [25] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [26] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [26] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								37 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [29] as total from w_table where level = 9 ),
								(select indicateurs [29] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [29] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [29] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [29] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [29] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [29] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [29] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [29] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [29] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [29] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [29] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [29] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								38 as rang,
								'Ecart N-1' ,
								(select indicateurs [29] as total from w_table where level = 9 ) -  (select indicateurs [30] as total from w_table where level = 9 ),
								(select indicateurs [29] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [30] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [29] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [30] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [29] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [30] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [29] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [30] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [29] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [30] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [29] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [30] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [29] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [30] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [29] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [30] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [29] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [30] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [29] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [30] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [29] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [30] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [29] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [30] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								39 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [29] as total from w_table where level = 9 )                     - (select indicateurs [30] as total from w_table where level = 9 ))*100,                    (select indicateurs [30] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [29] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [30] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [30] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [29] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [30] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [30] as Fevrier from w_table where level <>9 and code1 = '02')),2),	
								round(base.cti_division(((select indicateurs [29] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [30] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [30] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [29] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [30] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [30] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [29] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [30] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [30] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [29] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [30] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [30] as Juin from w_table where level <>9 and code1 = '06')),2), 	
								round(base.cti_division(((select indicateurs [29] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [30] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [30] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [29] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [30] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [30] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [29] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [30] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [30] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [29] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [30] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [30] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [29] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [30] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [30] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [29] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [30] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [30] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								42 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [33] as total from w_table where level = 9 ),
								(select indicateurs [33] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [33] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [33] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [33] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [33] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [33] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [33] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [33] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [33] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [33] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [33] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [33] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								43 as rang,
								'Ecart N-1' ,
								(select indicateurs [33] as total from w_table where level = 9 ) -  (select indicateurs [34] as total from w_table where level = 9 ),
								(select indicateurs [33] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [34] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [33] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [34] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [33] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [34] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [33] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [34] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [33] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [34] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [33] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [34] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [33] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [34] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [33] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [34] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [33] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [34] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [33] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [34] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [33] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [34] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [33] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [34] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								44 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [33] as total from w_table where level = 9 )                     - (select indicateurs [34] as total from w_table where level = 9 ))*100,                    (select indicateurs [34] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [33] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [34] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [34] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [33] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [34] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [34] as Fevrier from w_table where level <>9 and code1 = '02')),2), 	
								round(base.cti_division(((select indicateurs [33] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [34] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [34] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [33] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [34] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [34] as Avril from w_table where level <>9 and code1 = '04')),2),
								round(base.cti_division(((select indicateurs [33] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [34] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [34] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [33] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [34] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [34] as Juin from w_table where level <>9 and code1 = '06')),2), 	
								round(base.cti_division(((select indicateurs [33] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [34] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [34] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [33] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [34] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [34] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [33] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [34] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [34] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [33] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [34] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [34] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [33] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [34] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [34] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [33] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [34] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [34] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								47 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [37] as total from w_table where level = 9 ),
								(select indicateurs [37] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [37] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [37] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [37] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [37] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [37] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [37] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [37] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [37] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [37] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [37] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [37] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								48 as rang,
								'Ecart N-1' ,
								(select indicateurs [37] as total from w_table where level = 9 ) -  (select indicateurs [38] as total from w_table where level = 9 ),
								(select indicateurs [37] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [38] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [37] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [38] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [37] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [38] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [37] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [38] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [37] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [38] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [37] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [38] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [37] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [38] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [37] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [38] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [37] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [38] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [37] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [38] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [37] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [38] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [37] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [38] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								49 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [37] as total from w_table where level = 9 )                     - (select indicateurs [38] as total from w_table where level = 9 ))*100,                    (select indicateurs [38] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [37] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [38] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [38] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [37] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [38] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [38] as Fevrier from w_table where level <>9 and code1 = '02')),2),	
								round(base.cti_division(((select indicateurs [37] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [38] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [38] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [37] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [38] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [38] as Avril from w_table where level <>9 and code1 = '04')),2),
								round(base.cti_division(((select indicateurs [37] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [38] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [38] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [37] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [38] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [38] as Juin from w_table where level <>9 and code1 = '06')),2),	
								round(base.cti_division(((select indicateurs [37] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [38] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [38] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [37] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [38] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [38] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [37] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [38] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [38] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [37] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [38] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [38] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [37] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [38] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [38] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [37] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [38] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [38] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					EVAL]					
					[EVAL 
						if ('[DATA011]' != '0') {
							return "
							union
							select 
								50 as rang,
								(SELECT libelle[11] 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 [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 
								52 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [41] as total from w_table where level = 9 ),
								(select indicateurs [41] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [41] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [41] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [41] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [41] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [41] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [41] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [41] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [41] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [41] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [41] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [41] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								53 as rang,
								'Ecart N-1' ,
								(select indicateurs [41] as total from w_table where level = 9 ) -  (select indicateurs [42] as total from w_table where level = 9 ),
								(select indicateurs [41] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [42] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [41] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [42] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [41] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [42] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [41] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [42] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [41] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [42] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [41] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [42] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [41] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [42] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [41] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [42] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [41] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [42] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [41] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [42] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [41] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [42] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [41] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [42] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								54 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [41] as total from w_table where level = 9 )                     - (select indicateurs [42] as total from w_table where level = 9 ))*100,                    (select indicateurs [42] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [41] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [42] 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')),2), 	
								round(base.cti_division(((select indicateurs [41] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [42] 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')),2), 	
								round(base.cti_division(((select indicateurs [41] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [42] 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')),2),
								round(base.cti_division(((select indicateurs [41] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [42] 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')),2)
							"; 
						} 																					
					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 [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 
								57 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [45] as total from w_table where level = 9 ),
								(select indicateurs [45] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [45] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [45] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [45] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [45] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [45] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [45] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [45] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [45] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [45] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [45] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [45] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								58 as rang,
								'Ecart N-1' ,
								(select indicateurs [45] as total from w_table where level = 9 ) -  (select indicateurs [46] as total from w_table where level = 9 ),
								(select indicateurs [45] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [46] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [45] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [46] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [45] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [46] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [45] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [46] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [45] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [46] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [45] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [46] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [45] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [46] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [45] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [46] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [45] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [46] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [45] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [46] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [45] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [46] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [45] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [46] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								59 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [45] as total from w_table where level = 9 )                     - (select indicateurs [46] as total from w_table where level = 9 ))*100,                    (select indicateurs [46] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [45] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [46] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [46] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [45] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [46] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [46] as Fevrier from w_table where level <>9 and code1 = '02')),2), 	
								round(base.cti_division(((select indicateurs [45] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [46] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [46] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [45] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [46] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [46] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [45] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [46] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [46] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [45] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [46] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [46] as Juin from w_table where level <>9 and code1 = '06')),2), 	
								round(base.cti_division(((select indicateurs [45] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [46] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [46] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [45] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [46] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [46] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [45] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [46] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [46] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [45] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [46] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [46] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [45] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [46] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [46] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [45] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [46] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [46] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								62 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [49] as total from w_table where level = 9 ),
								(select indicateurs [49] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [49] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [49] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [49] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [49] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [49] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [49] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [49] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [49] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [49] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [49] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [49] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								63 as rang,
								'Ecart N-1' ,
								(select indicateurs [49] as total from w_table where level = 9 ) -  (select indicateurs [50] as total from w_table where level = 9 ),
								(select indicateurs [49] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [50] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [49] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [50] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [49] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [50] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [49] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [50] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [49] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [50] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [49] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [50] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [49] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [50] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [49] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [50] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [49] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [50] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [49] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [50] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [49] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [50] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [49] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [50] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								64 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [49] as total from w_table where level = 9 )                     - (select indicateurs [50] as total from w_table where level = 9 ))*100,                    (select indicateurs [50] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [49] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [50] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [50] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [49] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [50] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [50] as Fevrier from w_table where level <>9 and code1 = '02')),2),	
								round(base.cti_division(((select indicateurs [49] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [50] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [50] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [49] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [50] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [50] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [49] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [50] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [50] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [49] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [50] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [50] as Juin from w_table where level <>9 and code1 = '06')),2), 	
								round(base.cti_division(((select indicateurs [49] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [50] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [50] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [49] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [50] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [50] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [49] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [50] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [50] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [49] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [50] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [50] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [49] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [50] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [50] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [49] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [50] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [50] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								67 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [53] as total from w_table where level = 9 ),
								(select indicateurs [53] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [53] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [53] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [53] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [53] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [53] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [53] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [53] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [53] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [53] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [53] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [53] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								68 as rang,
								'Ecart N-1' ,
								(select indicateurs [53] as total from w_table where level = 9 ) -  (select indicateurs [54] as total from w_table where level = 9 ),
								(select indicateurs [53] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [54] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [53] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [54] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [53] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [54] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [53] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [54] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [53] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [54] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [53] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [54] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [53] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [54] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [53] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [54] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [53] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [54] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [53] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [54] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [53] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [54] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [53] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [54] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								69 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [53] as total from w_table where level = 9 )                     - (select indicateurs [54] as total from w_table where level = 9 ))*100,                    (select indicateurs [54] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [53] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [54] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [54] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [53] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [54] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [54] as Fevrier from w_table where level <>9 and code1 = '02')),2), 	
								round(base.cti_division(((select indicateurs [53] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [54] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [54] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [53] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [54] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [54] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [53] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [54] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [54] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [53] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [54] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [54] as Juin from w_table where level <>9 and code1 = '06')),2),	
								round(base.cti_division(((select indicateurs [53] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [54] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [54] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [53] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [54] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [54] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [53] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [54] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [54] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [53] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [54] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [54] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [53] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [54] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [54] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [53] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [54] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [54] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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 [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 
								72 as rang,
								'Année ' || SUBSTR('[PERIODE]',0,5),
								(select indicateurs [57] as total from w_table where level = 9 ),
								(select indicateurs [57] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [57] as Fevrier from w_table where level <>9 and code1 = '02') , 	
								(select indicateurs [57] as Mars from w_table where level <>9 and code1 = '03'),
								(select indicateurs [57] as Avril from w_table where level <>9 and code1 = '04'), 	
								(select indicateurs [57] as Mai from w_table where level <>9 and code1 = '05'),
								(select indicateurs [57] as Juin from w_table where level <>9 and code1 = '06') , 	
								(select indicateurs [57] as Juillet from w_table where level <>9 and code1 = '07'),
								(select indicateurs [57] as Aout from w_table where level <>9 and code1 = '08') ,
								(select indicateurs [57] as Septembre from w_table where level <>9 and code1 = '09') , 
								(select indicateurs [57] as Octobre from w_table where level <>9 and code1 = '10') , 
								(select indicateurs [57] as Novembre from w_table where level <>9 and code1 = '11')  ,
								(select indicateurs [57] as Decembre from w_table where level <>9 and code1 = '12')  
						
							union 
						
							select 
								73 as rang,
								'Ecart N-1' ,
								(select indicateurs [57] as total from w_table where level = 9 ) -  (select indicateurs [58] as total from w_table where level = 9 ),
								(select indicateurs [57] as Janvier from w_table where level <>9 and code1 = '01')  -(select indicateurs [58] as Janvier from w_table where level <>9 and code1 = '01'),
								(select indicateurs [57] as Fevrier from w_table where level <>9 and code1 = '02')  -(select indicateurs [58] as Fevrier from w_table where level <>9 and code1 = '02')  , 	
								(select indicateurs [57] as Mars from w_table where level <>9 and code1 = '03')     -(select indicateurs [58] as Mars from w_table where level <>9 and code1 = '03')   ,
								(select indicateurs [57] as Avril from w_table where level <>9 and code1 = '04')    -(select indicateurs [58] as Avril from w_table where level <>9 and code1 = '04')  , 	
								(select indicateurs [57] as Mai from w_table where level <>9 and code1 = '05')      -(select indicateurs [58] as Mai from w_table where level <>9 and code1 = '05')  ,
								(select indicateurs [57] as Juin from w_table where level <>9 and code1 = '06')     -(select indicateurs [58] as Juin from w_table where level <>9 and code1 = '06')  , 	
								(select indicateurs [57] as Juillet from w_table where level <>9 and code1 = '07')  -(select indicateurs [58] as Juillet from w_table where level <>9 and code1 = '07')   ,
								(select indicateurs [57] as Aout from w_table where level <>9 and code1 = '08')     -(select indicateurs [58] as Aout from w_table where level <>9 and code1 = '08')   ,
								(select indicateurs [57] as Septembre from w_table where level <>9 and code1 = '09')-(select indicateurs [58] as Septembre from w_table where level <>9 and code1 = '09'), 
								(select indicateurs [57] as Octobre from w_table where level <>9 and code1 = '10')  -(select indicateurs [58] as Octobre from w_table where level <>9 and code1 = '10'), 
								(select indicateurs [57] as Novembre from w_table where level <>9 and code1 = '11') -(select indicateurs [58] as Novembre from w_table where level <>9 and code1 = '11'),
								(select indicateurs [57] as Decembre from w_table where level <>9 and code1 = '12') -(select indicateurs [58] as Decembre from w_table where level <>9 and code1 = '12')
						
							union
						
							select 
								74 as rang,
								'% N-1' ,
								round(base.cti_division(((select indicateurs [57] as total from w_table where level = 9 )                     - (select indicateurs [58] as total from w_table where level = 9 ))*100,                    (select indicateurs [58] as total from w_table where level = 9 )),2),
								round(base.cti_division(((select indicateurs [57] as Janvier from w_table where level <>9 and code1 = '01')   - (select indicateurs [58] as Janvier from w_table where level <>9 and code1 = '01'))*100,  (select indicateurs [58] as Janvier from w_table where level <>9 and code1 = '01')),2),
								round(base.cti_division(((select indicateurs [57] as Fevrier from w_table where level <>9 and code1 = '02')   - (select indicateurs [58] as Fevrier from w_table where level <>9 and code1 = '02'))*100,  (select indicateurs [58] as Fevrier from w_table where level <>9 and code1 = '02')),2), 	
								round(base.cti_division(((select indicateurs [57] as Mars from w_table where level <>9 and code1 = '03')      - (select indicateurs [58] as Mars from w_table where level <>9 and code1 = '03'))*100,     (select indicateurs [58] as Mars from w_table where level <>9 and code1 = '03')),2),
								round(base.cti_division(((select indicateurs [57] as Avril from w_table where level <>9 and code1 = '04')     - (select indicateurs [58] as Avril from w_table where level <>9 and code1 = '04'))*100,    (select indicateurs [58] as Avril from w_table where level <>9 and code1 = '04')),2),	
								round(base.cti_division(((select indicateurs [57] as Mai from w_table where level <>9 and code1 = '05')       - (select indicateurs [58] as Mai from w_table where level <>9 and code1 = '05'))*100,      (select indicateurs [58] as Mai from w_table where level <>9 and code1 = '05')),2),
								round(base.cti_division(((select indicateurs [57] as Juin from w_table where level <>9 and code1 = '06')      - (select indicateurs [58] as Juin from w_table where level <>9 and code1 = '06'))*100,     (select indicateurs [58] as Juin from w_table where level <>9 and code1 = '06')),2),	
								round(base.cti_division(((select indicateurs [57] as Juillet from w_table where level <>9 and code1 = '07')   - (select indicateurs [58] as Juillet from w_table where level <>9 and code1 = '07'))*100,  (select indicateurs [58] as Juillet from w_table where level <>9 and code1 = '07')),2),
								round(base.cti_division(((select indicateurs [57] as Aout from w_table where level <>9 and code1 = '08')      - (select indicateurs [58] as Aout from w_table where level <>9 and code1 = '08'))*100,     (select indicateurs [58] as Aout from w_table where level <>9 and code1 = '08')),2),
								round(base.cti_division(((select indicateurs [57] as Septembre from w_table where level <>9 and code1 = '09') - (select indicateurs [58] as Septembre from w_table where level <>9 and code1 = '09'))*100,(select indicateurs [58] as Septembre from w_table where level <>9 and code1 = '09')),2),
								round(base.cti_division(((select indicateurs [57] as Octobre from w_table where level <>9 and code1 = '10')   - (select indicateurs [58] as Octobre from w_table where level <>9 and code1 = '10'))*100,  (select indicateurs [58] as Octobre from w_table where level <>9 and code1 = '10')),2),
								round(base.cti_division(((select indicateurs [57] as Novembre from w_table where level <>9 and code1 = '11')  - (select indicateurs [58] as Novembre from w_table where level <>9 and code1 = '11'))*100, (select indicateurs [58] as Novembre from w_table where level <>9 and code1 = '11')),2),
								round(base.cti_division(((select indicateurs [57] as Decembre from w_table where level <>9 and code1 = '12')  - (select indicateurs [58] as Decembre from w_table where level <>9 and code1 = '12'))*100, (select indicateurs [58] as Decembre from w_table where level <>9 and code1 = '12')),2)
							"; 
						} 																					
					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"/>
				</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 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 'X_PERIODE', greatest(to_date(to_char('[PERIODE]'::date - INTERVAL  '3 year', 'YYYY-MM-DD'), 'YYYY-MM-DD'), (SELECT min(date_debut) FROM activite.p_factures ))::text;
				]]>				</select>
				<FIELDS>
					<FIELD name="name"/>
					<FIELD name="value"/>
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="(&#8721;) Dernier Mois/Année " shortLabel="Mois/Année" rowContext="false" buttonType="VIEWLINKPOPUP">
				<VIEWITEM label="Dernier mois" shortLabel="Dernier mois" view="ACTI000063.XML" rowContext="false" enabled="true" buttonType="COMPARATIF" componentName="PRESTATIONS_BASE_VIEWLINK">
					<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>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.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;
								
								case 'ANNEEF' :			s = 'JOURSF'; 		break;
								case 'TRIMF' :			s = 'JOURSF';		break;
								case 'MOISF' :			s = 'JOURSF';		break;
								case 'NUMEROMOISF' :	s = 'JOURSF';		break;
								case 'NUMEROTRIMF' :	s = 'JOURSF';		break;
								case 'SEMAINEWEF' :		s = 'JOURSF';		break;
								case 'SEMAINEANNEF' :	s = 'JOURSF';		break;
								case 'NUMEROJOURF' :	s = 'JOURSF';		break;
								case 'JOURSF' :			s = 'JOURSF';		break;
								case 'JOURF' :			s = 'JOURSF';		break;
								
								case 'ANNEEA' :			s = 'JOURSA'; 		break;
								case 'TRIMA' :			s = 'JOURSA';		break;
								case 'MOISA' :			s = 'JOURSA';		break;
								case 'NUMEROMOISA' :	s = 'JOURSA';		break;
								case 'NUMEROTRIMA' :	s = 'JOURSA';		break;
								case 'SEMAINEWEA' :		s = 'JOURSA';		break;
								case 'SEMAINEANNEA' :	s = 'JOURSA';		break;
								case 'NUMEROJOURA' :	s = 'JOURSA';		break;
								case 'JOURSA' :			s = 'JOURSA';		break;
								case 'JOURA' :			s = 'JOURSA';		break;
								
								case 'ANNEEV' :			s = 'JOURSV'; 		break;
								case 'TRIMV' :			s = 'JOURSV';		break;
								case 'MOISV' :			s = 'JOURSV';		break;
								case 'NUMEROMOISV' :	s = 'JOURSV';		break;
								case 'NUMEROTRIMV' :	s = 'JOURSV';		break;
								case 'SEMAINEWEV' :		s = 'JOURSV';		break;
								case 'SEMAINEANNEV' :	s = 'JOURSV';		break;
								case 'NUMEROJOURV' :	s = 'JOURSV';		break;
								case 'JOURSV' :			s = 'JOURSV';		break;
								case 'JOURV' :			s = 'JOURSV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'JOURSA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'JOURS';			break;}
										if(SELECT.QUELLEDATE == 3) {s = 'JOURSF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'JOURSV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'JOURS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="DATA1" value="'FAVNBS'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="DATA3" value="'MTENC'" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>
				<VIEWITEM label="&#8721; dernier mois" data="2" shortLabel="&#8721; dernier  mois" view="ACTI000149.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="'NBSEJ'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="GROUPBY">
						<value>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.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;
								
								case 'ANNEEF' :			s = 'JOURSF'; 		break;
								case 'TRIMF' :			s = 'JOURSF';		break;
								case 'MOISF' :			s = 'JOURSF';		break;
								case 'NUMEROMOISF' :	s = 'JOURSF';		break;
								case 'NUMEROTRIMF' :	s = 'JOURSF';		break;
								case 'SEMAINEWEF' :		s = 'JOURSF';		break;
								case 'SEMAINEANNEF' :	s = 'JOURSF';		break;
								case 'NUMEROJOURF' :	s = 'JOURSF';		break;
								case 'JOURSF' :			s = 'JOURSF';		break;
								case 'JOURF' :			s = 'JOURSF';		break;
								
								case 'ANNEEA' :			s = 'JOURSA'; 		break;
								case 'TRIMA' :			s = 'JOURSA';		break;
								case 'MOISA' :			s = 'JOURSA';		break;
								case 'NUMEROMOISA' :	s = 'JOURSA';		break;
								case 'NUMEROTRIMA' :	s = 'JOURSA';		break;
								case 'SEMAINEWEA' :		s = 'JOURSA';		break;
								case 'SEMAINEANNEA' :	s = 'JOURSA';		break;
								case 'NUMEROJOURA' :	s = 'JOURSA';		break;
								case 'JOURSA' :			s = 'JOURSA';		break;
								case 'JOURA' :			s = 'JOURSA';		break;
								
								case 'ANNEEV' :			s = 'JOURSV'; 		break;
								case 'TRIMV' :			s = 'JOURSV';		break;
								case 'MOISV' :			s = 'JOURSV';		break;
								case 'NUMEROMOISV' :	s = 'JOURSV';		break;
								case 'NUMEROTRIMV' :	s = 'JOURSV';		break;
								case 'SEMAINEWEV' :		s = 'JOURSV';		break;
								case 'SEMAINEANNEV' :	s = 'JOURSV';		break;
								case 'NUMEROJOURV' :	s = 'JOURSV';		break;
								case 'JOURSV' :			s = 'JOURSV';		break;
								case 'JOURV' :			s = 'JOURSV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'JOURSA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'JOURS';			break;}
										if(SELECT.QUELLEDATE == 3) {s = 'JOURSF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'JOURSV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'JOURS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE"/>
					<ARG name="TYPE_COMPARAISON" value="return '2';" />
				</VIEWITEM>
				<VIEWITEM label="Dernière année" data="2" shortLabel="derniere  année" view="ACTI000063.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>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.GROUPBY) {
								case 'ANNEE' :			s = 'NUMEROMOIS'; 		break;
								case 'TRIM' :			s = 'NUMEROMOIS';		break;
								case 'MOIS' :			s = 'NUMEROMOIS';		break;
								case 'NUMEROMOIS' :		s = 'NUMEROMOIS';		break;
								case 'NUMEROTRIM' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEWE' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEANNE' :	s = 'NUMEROMOIS';		break;
								case 'NUMEROJOUR' :		s = 'NUMEROMOIS';		break;
								case 'JOURS' :			s = 'NUMEROMOIS';		break;
								case 'JOUR' :			s = 'NUMEROMOIS';		break;
								
								case 'ANNEEF' :			s = 'NUMEROMOISF'; 		break;
								case 'TRIMF' :			s = 'NUMEROMOISF';		break;
								case 'MOISF' :			s = 'NUMEROMOISF';		break;
								case 'NUMEROMOISF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROTRIMF' :	s = 'NUMEROMOISF';		break;
								case 'SEMAINEWEF' :		s = 'NUMEROMOISF';		break;
								case 'SEMAINEANNEF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROJOURF' :	s = 'NUMEROMOISF';		break;
								case 'JOURSF' :			s = 'NUMEROMOISF';		break;
								case 'JOURF' :			s = 'NUMEROMOISF';		break;
								
								case 'ANNEEA' :			s = 'NUMEROMOISA'; 		break;
								case 'TRIMA' :			s = 'NUMEROMOISA';		break;
								case 'MOISA' :			s = 'NUMEROMOISA';		break;
								case 'NUMEROMOISA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROTRIMA' :	s = 'NUMEROMOISA';		break;
								case 'SEMAINEWEA' :		s = 'NUMEROMOISA';		break;
								case 'SEMAINEANNEA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROJOURA' :	s = 'NUMEROMOISA';		break;
								case 'JOURSA' :			s = 'NUMEROMOISA';		break;
								case 'JOURA' :			s = 'NUMEROMOISA';		break;
								
								case 'ANNEEV' :			s = 'NUMEROMOISV'; 		break;
								case 'TRIMV' :			s = 'NUMEROMOISV';		break;
								case 'MOISV' :			s = 'NUMEROMOISV';		break;
								case 'NUMEROMOISV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROTRIMV' :	s = 'NUMEROMOISV';		break;
								case 'SEMAINEWEV' :		s = 'NUMEROMOISV';		break;
								case 'SEMAINEANNEV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROJOURV' :	s = 'NUMEROMOISV';		break;
								case 'JOURSV' :			s = 'NUMEROMOISV';		break;
								case 'JOURV' :			s = 'NUMEROMOISV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'NUMEROMOISA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'NUMEROMOIS';			break;}
										if(SELECT.QUELLEDATE == 3) {s = 'NUMEROMOISF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'NUMEROMOISV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'NUMEROMOIS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="DATA1" value="'NBSEJ'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>
				<VIEWITEM label="&#8721; dernière Année" shortLabel="&#8721; derniere année" view="ACTI000149.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>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.GROUPBY) {
								case 'ANNEE' :			s = 'NUMEROMOIS'; 		break;
								case 'TRIM' :			s = 'NUMEROMOIS';		break;
								case 'MOIS' :			s = 'NUMEROMOIS';		break;
								case 'NUMEROMOIS' :		s = 'NUMEROMOIS';		break;
								case 'NUMEROTRIM' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEWE' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEANNE' :	s = 'NUMEROMOIS';		break;
								case 'NUMEROJOUR' :		s = 'NUMEROMOIS';		break;
								case 'JOURS' :			s = 'NUMEROMOIS';		break;
								case 'JOUR' :			s = 'NUMEROMOIS';		break;
								
								case 'ANNEEF' :			s = 'NUMEROMOISF'; 		break;
								case 'TRIMF' :			s = 'NUMEROMOISF';		break;
								case 'MOISF' :			s = 'NUMEROMOISF';		break;
								case 'NUMEROMOISF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROTRIMF' :	s = 'NUMEROMOISF';		break;
								case 'SEMAINEWEF' :		s = 'NUMEROMOISF';		break;
								case 'SEMAINEANNEF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROJOURF' :	s = 'NUMEROMOISF';		break;
								case 'JOURSF' :			s = 'NUMEROMOISF';		break;
								case 'JOURF' :			s = 'NUMEROMOISF';		break;
								
								case 'ANNEEA' :			s = 'NUMEROMOISA'; 		break;
								case 'TRIMA' :			s = 'NUMEROMOISA';		break;
								case 'MOISA' :			s = 'NUMEROMOISA';		break;
								case 'NUMEROMOISA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROTRIMA' :	s = 'NUMEROMOISA';		break;
								case 'SEMAINEWEA' :		s = 'NUMEROMOISA';		break;
								case 'SEMAINEANNEA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROJOURA' :	s = 'NUMEROMOISA';		break;
								case 'JOURSA' :			s = 'NUMEROMOISA';		break;
								case 'JOURA' :			s = 'NUMEROMOISA';		break;
								
								case 'ANNEEV' :			s = 'NUMEROMOISV'; 		break;
								case 'TRIMV' :			s = 'NUMEROMOISV';		break;
								case 'MOISV' :			s = 'NUMEROMOISV';		break;
								case 'NUMEROMOISV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROTRIMV' :	s = 'NUMEROMOISV';		break;
								case 'SEMAINEWEV' :		s = 'NUMEROMOISV';		break;
								case 'SEMAINEANNEV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROJOURV' :	s = 'NUMEROMOISV';		break;
								case 'JOURSV' :			s = 'NUMEROMOISV';		break;
								case 'JOURV' :			s = 'NUMEROMOISV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'NUMEROMOISA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'NUMEROMOIS';			break;}
										if(SELECT.QUELLEDATE == 3) {s = 'NUMEROMOISF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'NUMEROMOISV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'NUMEROMOIS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="DATA1" value="'NBSEJ'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>
			</VIEWLINK>
			<VIEWLINK label="Comparatif" shortLabel="Comparatif" view="ACTI000063.XML" enabled="true" rowContext="false">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
				<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['TYPE_COMPARAISON'] = '2';
						LINKVARIABLES['DATA1'] = 'MTFAC';
						LINKVARIABLES['DATA2'] = '0';
						LINKVARIABLES['DATA3'] = '0';
						if (SELECT.QUELMONTANT == '2') {
							LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'FACVSBG') {
							//LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'ENF') {
							LINKVARIABLES['DATA1'] = 'MTENC';
						}
						if (SELECT.QUELMONTANT == 'MF-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						if (SELECT.QUELMONTANT == 'MC-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						return 'OK';
					]]>					</value>
				</ARGS>
				<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="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
				<ARG name="DATA2" value="'MTFACENC'" />
				<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
				<ARG name="DATA4" value="return '0'"/>
				<ARG name="DATA5" value="return '0'"/>
				<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="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>
			<VIEWLINK label="Comparatif mensuel" shortLabel="Comp. Mensuel" view="ACTI000156.XML" enabled="true" rowContext="false" buttonType="COMPARATIF">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
				<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['TYPE_COMPARAISON'] = '2';
						LINKVARIABLES['DATA1'] = 'MTFAC';
						LINKVARIABLES['DATA2'] = '0';
						LINKVARIABLES['DATA3'] = '0';
						if (SELECT.QUELMONTANT == '2') {
							LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'FACVSBG') {
							//LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'ENF') {
							LINKVARIABLES['DATA1'] = 'MTENC';
						}
						if (SELECT.QUELMONTANT == 'MF-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						if (SELECT.QUELMONTANT == 'MC-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						return 'OK';
					]]>					</value>
				</ARGS>
				<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="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
				<ARG name="DATA2" value="'MTFACENC'" />
				<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
				<ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>
			<VIEWLINK label="Effets" shortLabel="Effets" view="ACTI000141.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="PERIODE" value="return VIEW.COMP_PERIODE;" />
				<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="DATA01" value="'1.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="ACTI000154.XML" rowContext="false" enabled="true" buttonType="VIEWLINK_EVO_COMP">
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>
					<ARGS name="SPEC">
						<value><![CDATA[
							LINKVARIABLES['TYPE_COMPARAISON'] = '2';
							LINKVARIABLES['DATA1'] = 'MTFAC';
							LINKVARIABLES['DATA2'] = '0';
							LINKVARIABLES['DATA3'] = '0';
							if (SELECT.QUELMONTANT == '2') {
								LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'FACVSBG') {
								//LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'ENF') {
								LINKVARIABLES['DATA1'] = 'MTENC';
							}
							if (SELECT.QUELMONTANT == 'MF-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							if (SELECT.QUELMONTANT == 'MC-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							return 'OK';
						]]>						</value>
					</ARGS>
					<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
					<ARG name="GROUPBY_2" value="if (SELECT.QUELLEDATE == '1' ) {return 'NUMEROMOISA';}
												 if (SELECT.QUELLEDATE == '2' ) {return 'NUMEROMOIS';}
												 if (SELECT.QUELLEDATE == '3'  ) {return 'NUMEROMOISF';}
												 if (SELECT.QUELLEDATE == '4'  ) {return 'NUMEROMOISV';}
						" />
					<ARG name="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
					<ARG name="DATA4" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FACNBJ';} else {return 'FAVNBSHC';}"/>
					<ARG name="DATA5" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVDMS';} else {return 'FAVMTTHC';}"/>
					<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_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="Evol. comparative" view="ACTI000154.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>
					<ARGS name="SPEC">
						<value><![CDATA[
							LINKVARIABLES['TYPE_COMPARAISON'] = '2';
							LINKVARIABLES['DATA1'] = 'MTFAC';
							LINKVARIABLES['DATA2'] = '0';
							LINKVARIABLES['DATA3'] = '0';
							if (SELECT.QUELMONTANT == '2') {
								LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'FACVSBG') {
								//LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'ENF') {
								LINKVARIABLES['DATA1'] = 'MTENC';
							}
							if (SELECT.QUELMONTANT == 'MF-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							if (SELECT.QUELMONTANT == 'MC-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							return 'OK';
						]]>						</value>
					</ARGS>
					<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
					<ARG name="GROUPBY_2" value="if (SELECT.QUELLEDATE == '1' ) {return 'NUMEROMOISA';}
												 if (SELECT.QUELLEDATE == '2' ) {return 'NUMEROMOIS';}
												 if (SELECT.QUELLEDATE == '3'  ) {return 'NUMEROMOISF';}
												if (SELECT.QUELLEDATE == '4'  ) {return 'NUMEROMOISV';}
						" />
					<ARG name="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
					<ARG name="DATA4" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FACNBJ';} else {return 'FAVNBSHC';}"/>
					<ARG name="DATA5" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVDMS';} else {return 'FAVMTTHC';}"/>
					<ARG name="DATA6" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVNBSHC';} else {return 'FAVCAMHC';}"/>
					<ARG name="DATA7" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVMTTHC';} else {return 'FAVNBSHJ';}"/>
					<ARG name="DATA8" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVCAMHC';} else {return 'FAVMTTHJ';}"/>
					<ARG name="DATA9" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVNBSHJ';} else {return 'FAVCAMHJ';}"/>
					<ARG name="DATA10" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVMTTHJ';} else {return 'FAVNBSHA';}"/>
					<ARG name="DATA011" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVCAMHJ';} else {return 'FAVMTTHA';}"/>
					<ARG name="DATA012" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVNBSHA';} else {return 'FAVCAMAU';}"/>
					<ARG name="DATA013" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVMTTHA';} else {return '0';}"/>
					<ARG name="DATA014" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVCAMAU';} else {return '0';}"/>

					<ARG name="LGROUPBY" value="return SELECT.GROUPBY;" />
					<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="ACTI000062.XML" enabled="true" rowContext="false" componentName="PERIODICITE_VIEWLINK" component2Name="PRESTATIONS_BASE_VIEWLINK">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['TYPE_COMPARAISON'] = '2';
						LINKVARIABLES['DATA'] = 'MTFAC';
						if (SELECT.QUELMONTANT == '2') {
							LINKVARIABLES['DATA'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'FACVSBG') {
							//LINKVARIABLES['DATA'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'ENF') {
							LINKVARIABLES['DATA'] = 'MTENC';
						}
						if (SELECT.QUELMONTANT == 'MF-ENF') {
							LINKVARIABLES['DATA'] = 'MTFACENC';
						}
						if (SELECT.QUELMONTANT == 'MC-ENF') {
							LINKVARIABLES['DATA'] = 'MTFACENC';
						}
						return 'OK';
					]]>					</value>
				</ARGS>
				<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="DATA1" value="return 'MTFACENC';" />
				<ARG name="PERIODICITE" value="'MONTH'" />
			</VIEWLINK>
			<VIEWLINK label="Analyse croisée" shortLabel="Analyse croisée" view="ACTI000082.XML" enabled="true" rowContext="false" buttonType="ANALYSE_CROISEE">
				<ARG name="ALIAS_PERIODE" value="return '-1'"/>
				<ARG name="PERIODE" value="return VIEW.X_PERIODE.substr(0,4)+'-01-01';"/>
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;"/>
				<ARG name="DATA" value="'MTFACENC';"/>
				<ARG name="COLUMNBY" value="'NUMEROMOIS'"/>
				<ARG name="GROUPBY">
					<value>
						<![CDATA[			
								if(SELECT.QUELLEDATE == '1') {s = 'ANNEEA';}
								if(SELECT.QUELLEDATE == '2') {s = 'ANNEE';}
								if(SELECT.QUELLEDATE == '3') {s = 'ANNEEF';}
								if(SELECT.QUELLEDATE == '4') {s = 'ANNEEV';}
								if(SELECT.QUELLEDATE == '5') {s = 'ANNEE';}
							return s;
							]]>
					</value>
				</ARG>
				<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY;" />
				<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_2;" />
				<ARG name="GROUPBY_TAB" value="'TAB'" />
				<ARG name="COLUMNBYCOUNT" value="'12'" />
			</VIEWLINK>
			<VIEWLINK label="Analyse" shortLabel="Analyse" rowContext="false" buttonType="ANALYSE_VIEWLINK">
				<VIEWITEM label="Analyse" shortLabel="Analyse" view="ACTI000018.XML" rowContext="false" enabled="true" buttonType="ANALYSE_VIEWLINK" componentName="PRESTATIONS_BASE_VIEWLINK">
					<ARG name="ALIAS_PERIODE" value="return '-1'" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01'" />
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
					<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="'TAB'" />
				</VIEWITEM>
				<VIEWITEM label="Analyse paramètrable" shortLabel="Analyse" view="ACTI000165.XML" rowContext="false" enabled="true" buttonType="ANALYSE_VIEWLINK" componentName="PRESTATIONS_BASE_VIEWLINK" component2Name="PRESTATIONS_DATA_VIEWLINK">
					<ARG name="ALIAS_PERIODE" value="return '-1'" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01'" />
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
					<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="LS_DATA" value="return '-1';"/>
					<ARG name="GROUPBY_TAB" value="'TAB'" />
				</VIEWITEM>
			</VIEWLINK>
			<VIEWLINK label="Liste des séjours" shortLabel="Séjours" view="ACTI000016.XML" componentName="PRESTATIONS_BASE_VIEWLINK" component2Name="ETA_DOS_BASE_VIEWLINK">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="GROUPBY_2" value="return '-1';"/>
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" />
				<ARG name="QUELMONTANT" value="
										if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') &amp;&amp; SELECT.DATA1 == 'MTCPT') {return '2'}
										if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') &amp;&amp; SELECT.DATA1 == 'MTCPT0') {return '2'}
										if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') &amp;&amp; SELECT.DATA1 == 'MTCPT1') {return '2'}
										if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') &amp;&amp; SELECT.DATA1 == 'MTCPT2') {return '2'}
										if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') &amp;&amp; SELECT.DATA1 == 'MTFACENC') {return 'MF-ENF'}
										if ((COLUMN.NAME == 'D1' || COLUMN.NAME == 'F1') &amp;&amp; SELECT.DATA1 == 'MTENC') {return 'ENF'}
										
										if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') &amp;&amp; SELECT.DATA2 == 'MTCPT') {return '2'}
										if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') &amp;&amp; SELECT.DATA2 == 'MTCPT0') {return '2'}
										if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') &amp;&amp; SELECT.DATA2 == 'MTCPT1') {return '2'}
										if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') &amp;&amp; SELECT.DATA2 == 'MTCPT2') {return '2'}
										if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') &amp;&amp; SELECT.DATA2 == 'MTFACENC') {return 'MF-ENF'}
										if ((COLUMN.NAME == 'D2' || COLUMN.NAME == 'F2') &amp;&amp; SELECT.DATA2 == 'MTENC') {return 'ENF'}
										
										if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') &amp;&amp; SELECT.DATA3 == 'MTCPT') {return '2'}
										if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') &amp;&amp; SELECT.DATA3 == 'MTCPT0') {return '2'}
										if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') &amp;&amp; SELECT.DATA3 == 'MTCPT1') {return '2'}
										if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') &amp;&amp; SELECT.DATA3 == 'MTCPT2') {return '2'}
										if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') &amp;&amp; SELECT.DATA3 == 'MTFACENC') {return 'MF-ENF'}
										if ((COLUMN.NAME == 'D3' || COLUMN.NAME == 'F3') &amp;&amp; SELECT.DATA3 == 'MTENC') {return 'ENF'}
										
										if ((COLUMN.NAME == 'D4' || COLUMN.NAME == 'F4') &amp;&amp; SELECT.DATA4 == 'MTCPT') {return '2'}
										if ((COLUMN.NAME == 'D4' || COLUMN.NAME == 'F4') &amp;&amp; SELECT.DATA4 == 'MTCPT0') {return '2'}
										if ((COLUMN.NAME == 'D4' || COLUMN.NAME == 'F4') &amp;&amp; SELECT.DATA4 == 'MTCPT1') {return '2'}
										if ((COLUMN.NAME == 'D4' || COLUMN.NAME == 'F4') &amp;&amp; SELECT.DATA4 == 'MTCPT2') {return '2'}
										if ((COLUMN.NAME == 'D4' || COLUMN.NAME == 'F4') &amp;&amp; SELECT.DATA4 == 'MTFACENC') {return 'MF-ENF'}
										if ((COLUMN.NAME == 'D4' || COLUMN.NAME == 'F4') &amp;&amp; SELECT.DATA4 == 'MTENC') {return 'ENF'}
										
										if ((COLUMN.NAME == 'D5' || COLUMN.NAME == 'F5') &amp;&amp; SELECT.DATA5 == 'MTCPT') {return '2'}
										if ((COLUMN.NAME == 'D5' || COLUMN.NAME == 'F5') &amp;&amp; SELECT.DATA5 == 'MTCPT0') {return '2'}
										if ((COLUMN.NAME == 'D5' || COLUMN.NAME == 'F5') &amp;&amp; SELECT.DATA5 == 'MTCPT1') {return '2'}
										if ((COLUMN.NAME == 'D5' || COLUMN.NAME == 'F5') &amp;&amp; SELECT.DATA5 == 'MTCPT2') {return '2'}
										if ((COLUMN.NAME == 'D5' || COLUMN.NAME == 'F5') &amp;&amp; SELECT.DATA5 == 'MTFACENC') {return 'MF-ENF'}
										if ((COLUMN.NAME == 'D5' || COLUMN.NAME == 'F5') &amp;&amp; SELECT.DATA5 == 'MTENC') {return 'ENF'}
										return 'FAC'
										"/>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Répartition mensuelle" label="Synthèse" multiTab="true" queryNumber="1">
			<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" 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>
			<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="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" displayName="return SELECT.DATA13" displayNameCalc="true" />
				<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>
			<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>
