<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="ACTI000151" label="Activité. Facturation" title="= SELECT.QUELMONTANT2 + ' 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_ACTI000018.HTML"
    helpDokuWIkiDir="activite:activite_facturee_et_valorisee:activite_clinique" 
    helpDokuWIkiFile="acti000018" 
>
	<VIEWPROPERTIES componentName="PROPERTIES_PRESTATIONS"/>
	
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
		<PROPERTY name="ACTIVITE_SIGNIFICATIVE_DATA">
				<value>
					<![CDATA[
						[EVAL 
							if ('[ACTIVITE_SIGNIFICATIVE_BASE]' == 'REGNB') {
								return 'v_factures_lignes_c_4.nb_rubrique * v_factures_lignes_c_4.coefficient';
							}
							if ('[ACTIVITE_SIGNIFICATIVE_BASE]' == 'REGCA') {
								return 'v_factures_lignes_c_4.montant_facture';
							}
							return '';
						EVAL]
					]]>
				</value>
		</PROPERTY>
		<PROPERTY name="ORDER_BY">
			<value>
					<![CDATA[
						[EVAL 
							if(SELECT.LS_DATA !='-1'){
								return 'indicateurs[2]';
							}else {return 'indicateurs[1]';}
						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="NB_DATA">
			<value>
				<![CDATA[
					[EVAL 
						$array1 = array('[DATA1]', '[DATA2]', '[DATA3]','[DATA4]','[DATA5]','[DATA6]','[DATA7]','[DATA8]','[DATA9]','[DATA10]','[DATA011]','[DATA012]','[DATA013]','[DATA014]','[DATA015]','0');
						$nb_data = array_search('0',$array1);
						if('[LS_DATA]' != "-1"){
							$nb_data = 0;
						}
						return $nb_data;
					EVAL] 
					]]>
				</value>
		</PROPERTY>		
		<PROPERTY name="NB_DATA_LS">
			<value>
				<![CDATA[
					[EVAL 

						$wdata_array_1 = explode("=",'[LS_DATA]');
						$wdata_array_2 = $wdata_array_1[1];
						$wdata_array = explode(",",$wdata_array_2);


						for($i=0;$i<=14;$i++){
							$taille = strlen($wdata_array[$i]);
							if( $taille > 1){
									$nb_data = $i+1;
							}
						}
						return $nb_data;
					EVAL] 
					]]>
				</value>
		</PROPERTY>			
		<PROPERTY name="H_DATA">
			<value>
				<![CDATA[
					[EVAL 
						$Myarray1 = array('L_DATA_4', 'L_DATA_5','L_DATA_104','L_DATA_105');
						$Myarray2 = array('L_DATA_3','L_DATA_103');
						$Myarray3 = array('L_DATA_6','L_DATA_106');
						$Myarray4 = array('L_DATA_7','L_DATA_107');
						$Myarray5 = array('L_DATA_8','L_DATA_108');
						if(in_array('[VIEW.LIB_DATA_LS]',$Myarray1)){
							$result = "1";
						}else if(in_array('[VIEW.LIB_DATA_LS]',$Myarray2)){
							$result = "2";
						} else if (in_array('[VIEW.LIB_DATA_LS]',$Myarray3)){
							$result = "3";
						}else if (in_array('[VIEW.LIB_DATA_LS]',$Myarray4)){
							$result = '4';
						}else if (in_array('[VIEW.LIB_DATA_LS]',$Myarray5)){
							$result = '5';
						}else {
							$result = '-1';
						}
						return $result;
					EVAL] 
					]]>
				</value>
		</PROPERTY>
		<PROPERTY name="LIB_DATA_LS">
			<value>
				<![CDATA[
					[EVAL 

						$wdata_array_1 = explode("=",'[LS_DATA]');
						$wdata_array = $wdata_array_1[0];
						return $wdata_array;
					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_param_data('[LS_DATA]',1,'[DATA1]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA2F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',2,'[DATA2]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA3F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',3,'[DATA3]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>		
		<PROPERTY name="DATA4F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',4,'[DATA4]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>		
		<PROPERTY name="DATA5F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',5,'[DATA5]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>	
		<PROPERTY name="DATA6F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',6,'[DATA6]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA7F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',7,'[DATA7]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA8F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',8,'[DATA8]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>			
		<PROPERTY name="DATA9F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',9,'[DATA9]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>			
		<PROPERTY name="DATA10F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',10,'[DATA10]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>	
		<PROPERTY name="DATA11F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',11,'[DATA011]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA12F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',12,'[DATA012]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA13F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',13,'[DATA013]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>			
		<PROPERTY name="DATA14F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',14,'[DATA014]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>		
		<PROPERTY name="DATA15F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_param_data('[LS_DATA]',15,'[DATA015]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0"); EVAL]]]></value>
		</PROPERTY>	
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse">
		<GROUP label="date" visible="false">
			<FIELD name="QUELLEDATE" label="" UI="combo" default="1" default2="date_fin" visible="false">
				<OPTION label="Date activité" data="1" data2="v_factures_lignes_c_4.date_fin"/>
			</FIELD>
		</GROUP>
		<GROUP label="Période">
			<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="200" default="2009-01-01" globalListProvider="DATE_DEBUT" >
			</FIELD>
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2009-01-31" globalListProvider="DATE_FIN" >
			</FIELD>
		</GROUP>
		<GROUP >
			<FIELD name="GROUPBY" label="Regroupement" UI="combo" default="FOACLS2"  width="300" tree="true" >
				<OPTION label="PRESTATIONS_FA_GROUPBY"  globalListProvider="PRESTATIONS_FA_GROUPBY"/>
			</FIELD>
			<FIELD name="GROUPBY_TAB" label="Présentation" UI="combo" default="TAB">
				<OPTION label="Automatique" data="AUTO"/>
				<OPTION label="Arbre" data="TREE"/>
				<OPTION label="Onglet" data="TAB"/>
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="GROUPBY_2" label="" UI="combo" default="FOA"  width="300" tree="true">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_FA_GROUPBY"  globalListProvider="PRESTATIONS_FA_GROUPBY"/>
			</FIELD>
		</GROUP>		
		<GROUP label="">
			<FIELD name="GROUPBY_3" label="" UI="combo" default="UFS"  width="300" tree="true">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_UF_GROUPBY"  globalListProvider="PRESTATIONS_UF_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP label="Champs prédéfinis">
			<FIELD name="LS_DATA" tree="true" label="" UI="combo" default="-1" default2="0" width="450">
				<OPTION label="LS_DATA" data="" globalListProvider="LS_DATA"/>
			</FIELD>
		</GROUP>
		<GROUP label="Données">
			<FIELD name="DATA1" tree="true" label="Données" UI="combo" default="0"  width="400" showIfNotDefault="true" printable="false" visible="= (SELECT.LS_DATA == '-1')">
				<OPTION label="" data="0"/>
				<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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp;  (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.LS_DATA == '-1') &amp;&amp;  (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.LS_DATA == '-1') &amp;&amp;  (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.LS_DATA == '-1') &amp;&amp;  (SELECT.LS_DATA != '0') &amp;&amp;  (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.LS_DATA == '-1') &amp;&amp;  (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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp; (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.LS_DATA == '-1') &amp;&amp; (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 label="Données">
			<FIELD name="QUELMONTANT" label="" UI="combo" value="1" visible="false" default="1" width="300">
				<OPTION label="Montant facturé" data="1" data2="Facturation"/>
				<OPTION label="Montant comptabilisé" data="2" data2="Comptabilisation"/>
			</FIELD>
		</GROUP>		
		<GROUP>
			<FIELD name="RUBRIQUE_CA" label="C.A." UI="combo" tree="true"  width="200" default="#LICTI_T2A_R"  globalListProvider="RUBRIQUES_CA" showIfNotDefault="true" />
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_PRESTATIONS_CA_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SEJOURS_UF_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.PRESTATIONS_CA_SELECT]
						[VIEW.SEJOURS_UF_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_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 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),,                   
                                 
				   
                    /* 02 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),,
      
                    /* 03 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),,                    						

                    /* 04 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),,                    
      
                    /* 05 FAVEMC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' then equivalent_malade_complet ELSE 0 END),,                            						
	
                    /* 06 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),,
      
					/*07 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)),,
			
					
					/* 08 FAVNBEMCHC (N)*/
                        SUM(CASE WHEN [VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' AND type_sejour = '1' then equivalent_malade_complet ELSE 0 END)                           						
      
					}
					
				FROM #V_MOUVEMENTS_SEJOUR_X#
                    JOIN ACTI000063_SEJ ON v_mouvements_sejour_2.no_sejour = ACTI000063_SEJ.no_sejour
					JOIN #V_SEJOURS_X#  ON v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour 
                    JOIN activite.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
						([VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]')
						
                        [VIEW.QMVT_SELECT]
						[VIEW.SEJOURS_UF_SELECT]
						AND v_sejours_1.type_sejour <> '9' 
				
				]]></select>
			</SQL>
			<SQL optimizer="V_SEJOURS_X">
				<select><![CDATA[		
					CTISELECT_TREE
						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]}
						GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD],, [VIEW.GROUPBY_3_COD_FIELD],, [VIEW.GROUPBY_3_TXT_FIELD]}
						SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						INDICATORS{
						
							[VIEW.DATA1F],,

							[VIEW.DATA2F],,

							[VIEW.DATA3F],,
			
							[VIEW.DATA4F],,
						
							[VIEW.DATA5F],,
							
							[VIEW.DATA6F],,

							[VIEW.DATA7F],,

							[VIEW.DATA8F],,
		
							[VIEW.DATA9F],,
							
							[VIEW.DATA10F],,
						
							[VIEW.DATA11F],,

							[VIEW.DATA12F],,

							[VIEW.DATA13F],,
			
							[VIEW.DATA14F],,
						
							[VIEW.DATA15F]
							
						}
						ORDERBY{[VIEW.ORDER_BY],, DESC}
					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 '[PERIODE]' AND '[TOPERIODE]') 
						[VIEW.SEJOURS_UF_SELECT]
						[VIEW.PRESTATIONS_CA_SELECT]
					AFTER{
				
					UPDATE w_table 
						SET indicateurs[3] = w_table.indicateurs[3]
							[EVAL 
								$wdata_array_1 = explode("=",'[LS_DATA]');
								$wdata_array_2 = $wdata_array_1[1];
								$wdata_array = explode(",",$wdata_array_2);
								if ('[DATA1]' == 'EMC' || $wdata_array[0] == 'EMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA1]' == 'VALEMC' || $wdata_array[0] == 'VALEMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA1]' == 'FAVEMC' || $wdata_array[0] == 'FAVEMC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA1]' == 'FACNBJ' || $wdata_array[0] == 'FACNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA1]' == 'VALNBJ' || $wdata_array[0] == 'VALNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA1]' == 'FAVNBJ' || $wdata_array[0] == 'FAVNBJ') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA1]' == 'FAVDMS' || $wdata_array[0] == 'FAVDMS') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA1]' == 'FAVNBEMCHC' || $wdata_array[0] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[1] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA1]' == 'MFAVCAMHC' || $wdata_array[0] == 'MFAVCAMHC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA1]' == 'MMFPVEMC' || $wdata_array[0] == 'MMFPVEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA1]' == 'MMFACEMC' || $wdata_array[0] == 'MMFACEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA1]' == 'MMVALEMC' || $wdata_array[0] == 'MMVALEMC') {
									return "
										,
										indicateurs[1] = base.cti_division(w_table.indicateurs[1],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								$wdata_array = explode(",",'[LS_DATA]');
								
								if ('[DATA2]' == 'EMC' || $wdata_array[1] == 'EMC') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA2]' == 'VALEMC' || $wdata_array[1] == 'VALEMC') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA2]' == 'FAVEMC' || $wdata_array[1] == 'FAVEMC') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA2]' == 'FACNBJ' || $wdata_array[1] == 'FACNBJ') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA2]' == 'VALNBJ' || $wdata_array[1] == 'VALNBJ') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA2]' == 'FAVNBJ' || $wdata_array[1] == 'FAVNBJ') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA2]' == 'FAVDMS' || $wdata_array[1] == 'FAVDMS') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA2]' == 'FAVNBEMCHC' || $wdata_array[1] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[2] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA2]' == 'MFAVCAMHC' || $wdata_array[1] == 'MFAVCAMHC') {
									return "
										,
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA2]' == 'MMFPVEMC' || $wdata_array[1] == 'MMFPVEMC') {
									return "
										,
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA2]' == 'MMFACEMC' || $wdata_array[1] == 'MMFACEMC' ) {
									return "
										,
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA2]' == 'MMVALEMC' || $wdata_array[1] == 'MMVALEMC' ) {
									return "
										,
										indicateurs[2] = base.cti_division(w_table.indicateurs[2],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA3]' == 'EMC' || $wdata_array[2] == 'EMC' ) {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA3]' == 'VALEMC' || $wdata_array[2] ==  'VALEMC') {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA3]' == 'FAVEMC' || $wdata_array[2] == 'FAVEMC') {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA3]' == 'FACNBJ' || $wdata_array[2] == 'FACNBJ') {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA3]' == 'VALNBJ' || $wdata_array[2] == 'VALNBJ') {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA3]' == 'FAVNBJ' || $wdata_array[2] == 'FAVNBJ') {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA3]' == 'FAVDMS' || $wdata_array[2] == 'FAVDMS') {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA3]' == 'FAVNBEMCHC' || $wdata_array[2] == 'FAVNBEMCHC' ) {
									return "
										,
										indicateurs[3] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA3]' == 'MFAVCAMHC' || $wdata_array[2] == 'MFAVCAMHC') {
									return "
										,
										indicateurs[3] = base.cti_division(w_table.indicateurs[3],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA3]' == 'MMFPVEMC' || $wdata_array[2] == 'MMFPVEMC') {
									return "
										,
										indicateurs[3] = base.cti_division(w_table.indicateurs[3],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA3]' == 'MMFACEMC' || $wdata_array[2] == 'MMFACEMC') {
									return "
										,
										indicateurs[3] = base.cti_division(w_table.indicateurs[3],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA3]' == 'MMVALEMC' || $wdata_array[2] == 'MMVALEMC') {
									return "
										,
										indicateurs[3] = base.cti_division(w_table.indicateurs[3],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA4]' == 'EMC' || $wdata_array[3] == 'EMC' ) {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA4]' == 'VALEMC' || $wdata_array[3] ==  'VALEMC') {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA4]' == 'FAVEMC' || $wdata_array[3] == 'FAVEMC') {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA4]' == 'FACNBJ' || $wdata_array[3] =='FACNBJ') {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA4]' == 'VALNBJ' || $wdata_array[3] =='VALNBJ') {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA4]' == 'FAVNBJ'|| $wdata_array[3] =='FAVNBJ') {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA4]' == 'FAVDMS' || $wdata_array[3] == 'FAVDMS') {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA4]' == 'FAVNBEMCHC' || $wdata_array[3] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[4] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA4]' == 'MFAVCAMHC' || $wdata_array[3] =='MFAVCAMHC') {
									return "
										,
										indicateurs[4] = base.cti_division(w_table.indicateurs[4],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA4]' == 'MMFPVEMC' || $wdata_array[3] =='MMFPVEMC') {
									return "
										,
										indicateurs[4] = base.cti_division(w_table.indicateurs[4],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA4]' == 'MMFACEMC' || $wdata_array[3] =='MMFACEMC') {
									return "
										,
										indicateurs[4] = base.cti_division(w_table.indicateurs[4],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA4]' == 'MMVALEMC' || $wdata_array[3] == 'MMVALEMC') {
									return "
										,
										indicateurs[4] = base.cti_division(w_table.indicateurs[4],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA5]' == 'EMC' || $wdata_array[4] == 'EMC' ) {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA5]' == 'VALEMC' || $wdata_array[4] == 'VALEMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA5]' == 'FAVEMC' || $wdata_array[4] == 'FAVEMC') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA5]' == 'FACNBJ' || $wdata_array[4] == 'FACNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA5]' == 'VALNBJ' || $wdata_array[4] == 'VALNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA5]' == 'FAVNBJ' || $wdata_array[4] =='FAVNBJ') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA5]' == 'FAVDMS' || $wdata_array[4] =='FAVDMS') {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA5]' == 'FAVNBEMCHC' || $wdata_array[4] == 'FAVNBEMCHC' ) {
									return "
										,
										indicateurs[5] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA5]' == 'MFAVCAMHC' || $wdata_array[4] == 'MFAVCAMHC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA5]' == 'MMFPVEMC' || $wdata_array[4] == 'MMFPVEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA5]' == 'MMFACEMC' || $wdata_array[4] =='MMFACEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA5]' == 'MMVALEMC' || $wdata_array[4] =='MMVALEMC') {
									return "
										,
										indicateurs[5] = base.cti_division(w_table.indicateurs[5],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA6]' == 'EMC' || $wdata_array[5] == 'EMC' ) {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA6]' == 'VALEMC' || $wdata_array[5] == 'VALEMC' ) {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA6]' == 'FAVEMC' || $wdata_array[5] == 'FAVEMC') {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA6]' == 'FACNBJ' || $wdata_array[5] == 'FACNBJ') {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA6]' == 'VALNBJ' || $wdata_array[5] == 'VALNBJ') {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA6]' == 'FAVNBJ' || $wdata_array[5] == 'FAVNBJ') {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA6]' == 'FAVDMS' || $wdata_array[5] == 'FAVDMS' ) {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA6]' == 'FAVNBEMCHC' || $wdata_array[5] == 'FAVNBEMCHC' ) {
									return "
										,
										indicateurs[6] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA6]' == 'MFAVCAMHC' || $wdata_array[5] == 'MFAVCAMHC') {
									return "
										,
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA6]' == 'MMFPVEMC' || $wdata_array[5] == 'MMFPVEMC') {
									return "
										,
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA6]' == 'MMFACEMC' || $wdata_array[5] == 'MMFACEMC') {
									return "
										,
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA6]' == 'MMVALEMC' || $wdata_array[5] ==  'MMVALEMC') {
									return "
										,
										indicateurs[6] = base.cti_division(w_table.indicateurs[6],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA7]' == 'EMC' || $wdata_array[6] == 'EMC') {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA7]' == 'VALEMC' || $wdata_array[6] == 'VALEMC') {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA7]' == 'FAVEMC' || $wdata_array[6] ==  'FAVEMC' ) {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA7]' == 'FACNBJ' || $wdata_array[6] == 'FACNBJ') {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA7]' == 'VALNBJ' || $wdata_array[6] ==  'VALNBJ') {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA7]' == 'FAVNBJ' || $wdata_array[6] == 'FAVNBJ') {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA7]' == 'FAVDMS' || $wdata_array[6] == 'FAVDMS') {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA7]' == 'FAVNBEMCHC' || $wdata_array[6] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[7] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA7]' == 'MFAVCAMHC' || $wdata_array[6] == 'MFAVCAMHC') {
									return "
										,
										indicateurs[7] = base.cti_division(w_table.indicateurs[7],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA7]' == 'MMFPVEMC' || $wdata_array[6] == 'MMFPVEMC' ) {
									return "
										,
										indicateurs[7] = base.cti_division(w_table.indicateurs[7],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA7]' == 'MMFACEMC' || $wdata_array[6] == 'MMFACEMC') {
									return "
										,
										indicateurs[7] = base.cti_division(w_table.indicateurs[7],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA7]' == 'MMVALEMC' || $wdata_array[6] == 'MMVALEMC') {
									return "
										,
										indicateurs[7] = base.cti_division(w_table.indicateurs[7],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA8]' == 'EMC' || $wdata_array[7] == 'EMC') {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA8]' == 'VALEMC' || $wdata_array[7] == 'VALEMC' ) {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA8]' == 'FAVEMC' || $wdata_array[7] =='FAVEMC' ) {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA8]' == 'FACNBJ' || $wdata_array[7] =='FACNBJ' ) {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA8]' == 'VALNBJ' || $wdata_array[7] =='VALNBJ') {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA8]' == 'FAVNBJ' || $wdata_array[7] == 'FAVNBJ' ) {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA8]' == 'FAVDMS' || $wdata_array[7] =='FAVDMS') {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA8]' == 'FAVNBEMCHC' || $wdata_array[7] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[8] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA8]' == 'MFAVCAMHC' || $wdata_array[7] =='MFAVCAMHC') {
									return "
										,
										indicateurs[8] = base.cti_division(w_table.indicateurs[8],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA8]' == 'MMFPVEMC' || $wdata_array[7] == 'MMFPVEMC') {
									return "
										,
										indicateurs[8] = base.cti_division(w_table.indicateurs[8],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA8]' == 'MMFACEMC' || $wdata_array[7] == 'MMFACEMC') {
									return "
										,
										indicateurs[8] = base.cti_division(w_table.indicateurs[8],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA8]' == 'MMVALEMC' || $wdata_array[7] ==  'MMVALEMC') {
									return "
										,
										indicateurs[8] = base.cti_division(w_table.indicateurs[8],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA9]' == 'EMC' || $wdata_array[8] == 'EMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA9]' == 'VALEMC' || $wdata_array[8] ==  'VALEMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA9]' == 'FAVEMC' || $wdata_array[8] ==  'FAVEMC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA9]' == 'FACNBJ' || $wdata_array[8] == 'FACNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA9]' == 'VALNBJ' || $wdata_array[8] ==  'VALNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA9]' == 'FAVNBJ' || $wdata_array[8] == 'FAVNBJ') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA9]' == 'FAVDMS' || $wdata_array[8] ==  'FAVDMS') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA9]' == 'FAVNBEMCHC' || $wdata_array[8] ==  'FAVNBEMCHC') {
									return "
										,
										indicateurs[9] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA9]' == 'MFAVCAMHC' || $wdata_array[8] ==  'MFAVCAMHC' ) {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA9]' == 'MMFPVEMC' || $wdata_array[8] ==  'MMFPVEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA9]' == 'MMFACEMC' || $wdata_array[8] ==  'MMFACEMC' ) {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA9]' == 'MMVALEMC' || $wdata_array[8] ==  'MMVALEMC') {
									return "
										,
										indicateurs[9] = base.cti_division(w_table.indicateurs[9],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA10]' == 'EMC' || $wdata_array[9] == 'EMC') {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA10]' == 'VALEMC' || $wdata_array[9] ==  'VALEMC') {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA10]' == 'FAVEMC' || $wdata_array[9] ==  'FAVEMC') {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA10]' == 'FACNBJ' || $wdata_array[9] ==  'FACNBJ' ) {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA10]' == 'VALNBJ' || $wdata_array[9] ==  'VALNBJ') {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA10]' == 'FAVNBJ' || $wdata_array[9] ==  'FAVNBJ') {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA10]' == 'FAVDMS' || $wdata_array[9] ==  'FAVDMS' ) {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA10]' == 'FAVNBEMCHC' || $wdata_array[9] ==  'FAVNBEMCHC') {
									return "
										,
										indicateurs[10] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA10]' == 'MFAVCAMHC' || $wdata_array[9] ==  'MFAVCAMHC') {
									return "
										,
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA10]' == 'MMFPVEMC' || $wdata_array[9] == 'MMFPVEMC') {
									return "
										,
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA10]' == 'MMFACEMC' || $wdata_array[9] == 'MMFACEMC') {
									return "
										,
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA10]' == 'MMVALEMC' || $wdata_array[9] == 'MMVALEMC') {
									return "
										,
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA011]' == 'EMC' || $wdata_array[10] == 'EMC') {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA011]' == 'VALEMC' || $wdata_array[10] == 'VALEMC') {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA011]' == 'FAVEMC' || $wdata_array[10] ==  'FAVEMC') {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA011]' == 'FACNBJ' || $wdata_array[10] ==  'FACNBJ' ) {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA011]' == 'VALNBJ' || $wdata_array[10] ==  'VALNBJ') {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA011]' == 'FAVNBJ' || $wdata_array[10] ==  'FAVNBJ') {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA011]' == 'FAVDMS' || $wdata_array[10] == 'FAVDMS') {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA011]' == 'FAVNBEMCHC' || $wdata_array[10] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[11] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA011]' == 'MFAVCAMHC' || $wdata_array[10] ==  'MFAVCAMHC') {
									return "
										,
										indicateurs[11] = base.cti_division(w_table.indicateurs[11],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA011]' == 'MMFPVEMC' || $wdata_array[10] ==  'MMFPVEMC') {
									return "
										,
										indicateurs[11] = base.cti_division(w_table.indicateurs[11],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA011]' == 'MMFACEMC' || $wdata_array[10] ==  'MMFACEMC' ) {
									return "
										,
										indicateurs[11] = base.cti_division(w_table.indicateurs[11],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA011]' == 'MMVALEMC' || $wdata_array[10] ==  'MMVALEMC') {
									return "
										,
										indicateurs[11] = base.cti_division(w_table.indicateurs[11],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA012]' == 'EMC' || $wdata_array[11] == 'EMC') {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA012]' == 'VALEMC' || $wdata_array[11] ==  'VALEMC') {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA012]' == 'FAVEMC' || $wdata_array[11] ==  'FAVEMC') {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA012]' == 'FACNBJ' || $wdata_array[11] == 'FACNBJ') {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA012]' == 'VALNBJ' || $wdata_array[11] =='VALNBJ' ) {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA012]' == 'FAVNBJ' || $wdata_array[11] == 'FAVNBJ') {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA012]' == 'FAVDMS' || $wdata_array[11] ==  'FAVDMS') {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA012]' == 'FAVNBEMCHC' || $wdata_array[11] ==  'FAVNBEMCHC') {
									return "
										,
										indicateurs[12] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA012]' == 'MFAVCAMHC' || $wdata_array[11] ==  'MFAVCAMHC' ) {
									return "
										,
										indicateurs[12] = base.cti_division(w_table.indicateurs[12],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA012]' == 'MMFPVEMC' || $wdata_array[11] ==  'MMFPVEMC') {
									return "
										,
										indicateurs[12] = base.cti_division(w_table.indicateurs[12],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA012]' == 'MMFACEMC' || $wdata_array[11] ==  'MMFACEMC') {
									return "
										,
										indicateurs[12] = base.cti_division(w_table.indicateurs[12],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA012]' == 'MMVALEMC' || $wdata_array[11] ==  'MMVALEMC') {
									return "
										,
										indicateurs[12] = base.cti_division(w_table.indicateurs[12],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA013]' == 'EMC' || $wdata_array[12] == 'EMC') {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA013]' == 'VALEMC' || $wdata_array[12] ==  'VALEMC' ) {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA013]' == 'FAVEMC' || $wdata_array[12] == 'FAVEMC') {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA013]' == 'FACNBJ' || $wdata_array[12] =='FACNBJ' ) {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA013]' == 'VALNBJ' || $wdata_array[12] == 'VALNBJ') {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA013]' == 'FAVNBJ' || $wdata_array[12] == 'FAVNBJ') {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA013]' == 'FAVDMS' || $wdata_array[12] ==  'FAVDMS' ) {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA013]' == 'FAVNBEMCHC' || $wdata_array[12] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[13] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA013]' == 'MFAVCAMHC' || $wdata_array[12] =='MFAVCAMHC' ) {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA013]' == 'MMFPVEMC' || $wdata_array[12] ==  'MMFPVEMC' ) {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA013]' == 'MMFACEMC' || $wdata_array[12] ==  'MMFACEMC') {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA013]' == 'MMVALEMC' || $wdata_array[12] ==  'MMVALEMC' ) {
									return "
										,
										indicateurs[13] = base.cti_division(w_table.indicateurs[13],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA014]' == 'EMC' || $wdata_array[13] == 'EMC') {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA014]' == 'VALEMC' || $wdata_array[13] ==  'VALEMC') {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA014]' == 'FAVEMC' || $wdata_array[13] ==  'FAVEMC' ) {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA014]' == 'FACNBJ' || $wdata_array[13] ==  'FACNBJ' ) {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA014]' == 'VALNBJ' || $wdata_array[13] ==  'VALNBJ') {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA014]' == 'FAVNBJ' || $wdata_array[13] ==  'FAVNBJ') {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA014]' == 'FAVDMS' || $wdata_array[13] == 'FAVDMS') {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA014]' == 'FAVNBEMCHC' || $wdata_array[13] == 'FAVNBEMCHC') {
									return "
										,
										indicateurs[14] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA014]' == 'MFAVCAMHC' || $wdata_array[13] == 'MFAVCAMHC' ) {
									return "
										,
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA014]' == 'MMFPVEMC' || $wdata_array[13] ==  'MMFPVEMC' ) {
									return "
										,
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA014]' == 'MMFACEMC' || $wdata_array[13] ==  'MMFACEMC') {
									return "
										,
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA014]' == 'MMVALEMC' || $wdata_array[13] ==  'MMVALEMC') {
									return "
										,
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							EVAL]
							[EVAL 
								if ('[DATA015]' == 'EMC' || $wdata_array[14] == 'EMC') {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[001]
										
									"; 
								}								
								if ('[DATA015]' == 'VALEMC' || $wdata_array[14] == 'VALEMC' ) {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[003]
										
									";
								}								
								if ('[DATA015]' == 'FAVEMC' || $wdata_array[14] ==  'FAVEMC') {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[005]
										
									";
								}	
								if ('[DATA015]' == 'FACNBJ' || $wdata_array[14] ==  'FACNBJ') {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[002]
										
									";
								}									
								if ('[DATA015]' == 'VALNBJ' || $wdata_array[14] ==  'VALNBJ') {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[004]
										
									";
								}								
								if ('[DATA015]' == 'FAVNBJ' || $wdata_array[14] ==  'FAVNBJ') {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[006]
										
									";
								}									
								if ('[DATA015]' == 'FAVDMS' || $wdata_array[14] ==  'FAVDMS') {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[007]
										
									";
								}									
								if ('[DATA015]' == 'FAVNBEMCHC' || $wdata_array[14] ==  'FAVNBEMCHC') {
									return "
										,
										indicateurs[15] = ACTI000063_MVT.indicateurs[008]
										
									";
								}								
								if ('[DATA015]' == 'MFAVCAMHC' || $wdata_array[14] ==  'MFAVCAMHC') {
									return "
										,
										indicateurs[15] = base.cti_division(w_table.indicateurs[15],ACTI000063_MVT.indicateurs[008])
										
									";
								}									
								if ('[DATA015]' == 'MMFPVEMC' || $wdata_array[14] ==  'MMFPVEMC' ) {
									return "
										,
										indicateurs[15] = base.cti_division(w_table.indicateurs[15],ACTI000063_MVT.indicateurs[005])
										
										
									";
								}									
								if ('[DATA015]' == 'MMFACEMC' || $wdata_array[14] ==  'MMFACEMC' ) {
									return "
										,
										indicateurs[15] = base.cti_division(w_table.indicateurs[15],ACTI000063_MVT.indicateurs[001])
										
									";
								}								
								if ('[DATA015]' == 'MMVALEMC' || $wdata_array[14] ==  'MMVALEMC') {
									return "
										,
										indicateurs[15] = base.cti_division(w_table.indicateurs[15],ACTI000063_MVT.indicateurs[003])
										
									";
								}								
							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

					}
				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="SORT" />
					<FIELD name="F1"/>
					<FIELD name="F2"/>
					<FIELD name="F3"/>						
					<FIELD name="F4"/>						
					<FIELD name="F5"/>						
					<FIELD name="F6"/>
					<FIELD name="F7"/>
					<FIELD name="F8"/>
					<FIELD name="F9"/>
					<FIELD name="F10"/>
					<FIELD name="F11"/>
					<FIELD name="F12"/>					
					<FIELD name="F13"/>
					<FIELD name="F14"/>
					<FIELD name="F15"/>
				</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>		
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
			<SQL>
				<select><![CDATA[
						CREATE TEMP TABLE w_lsdata AS SELECT oid,code,texte,data_code,data_entete,data_format,data_description,rang,position_ratio FROM activite.t_vue_parametre  WHERE code = '[VIEW.LIB_DATA_LS]'
                        UNION ALL 
                        SELECT 99999,'-1','-1',string_to_array('-1', '@'),string_to_array('-1', '@'),string_to_array('-1', '@'),string_to_array('-1', '@'),0,'0' 
						;
						
						SELECT 'DATA_LS1_ENT1',data_entete[1] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT1',data_format[1] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION							
						SELECT 'DATA_LS1_DSC1',data_description[1] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION						
						SELECT 'DATA_LS1_ENT2',data_entete[2] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT2',data_format[2] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC2',data_description[2] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION						
						SELECT 'DATA_LS1_ENT3',data_entete[3] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT3',data_format[3] FROM w_lsdata	WHERE code = '[VIEW.LIB_DATA_LS]'					
						UNION
						SELECT 'DATA_LS1_DSC3',data_description[3] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_ENT4',data_entete[4] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT4',data_format[4] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC4',data_description[4] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION						
						SELECT 'DATA_LS1_ENT5',data_entete[5] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT5',data_format[5] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC5',data_description[5] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'					
						
						UNION						
						SELECT 'DATA_LS1_ENT6',data_entete[6] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT6',data_format[6] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC6',data_description[6] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'					
						
						UNION						
						SELECT 'DATA_LS1_ENT7',data_entete[7] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT7',data_format[7] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC7',data_description[7] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'						
						
						UNION						
						SELECT 'DATA_LS1_ENT8',data_entete[8] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT8',data_format[8] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC8',data_description[8] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'					
						
						UNION						
						SELECT 'DATA_LS1_ENT9',data_entete[9] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT9',data_format[9] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC9',data_description[9] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'						
						
						UNION						
						SELECT 'DATA_LS1_ENT10',data_entete[10] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT10',data_format[10] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC10',data_description[10] FROM w_lsdata	WHERE code = '[VIEW.LIB_DATA_LS]'						
						
						UNION						
						SELECT 'DATA_LS1_ENT11',data_entete[11] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT11',data_format[11] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC11',data_description[11] FROM w_lsdata	 WHERE code = '[VIEW.LIB_DATA_LS]'						
						
						UNION						
						SELECT 'DATA_LS1_ENT12',data_entete[12] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT12',data_format[12] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC12',data_description[12] FROM w_lsdata	 WHERE code = '[VIEW.LIB_DATA_LS]'						
						
						UNION						
						SELECT 'DATA_LS1_ENT13',data_entete[13] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT13',data_format[13] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC13',data_description[13] FROM w_lsdata	 WHERE code = '[VIEW.LIB_DATA_LS]'						
						
						UNION						
						SELECT 'DATA_LS1_ENT14',data_entete[14] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT14',data_format[14] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC14',data_description[14] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'							
						
						UNION						
						SELECT 'DATA_LS1_ENT15',data_entete[15] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_FMT15',data_format[15] FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]'
						UNION
						SELECT 'DATA_LS1_DSC15',data_description[15] FROM w_lsdata	WHERE code = '[VIEW.LIB_DATA_LS]'
                        UNION
                        SELECT 'DATA_LS_RATIO',position_ratio FROM w_lsdata WHERE code = '[VIEW.LIB_DATA_LS]';					
			
						

				]]></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" component2Name="PRESTATIONS_DATA_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;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="LGROUPBY" value="return SELECT.GROUPBY;" />
					<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;" />
					<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;" />						
					<ARG name="TYPE_COMPARAISON" value="'2'" />
					<ARG name="GROUPBY_TAB" value="return 'TAB';" />
				</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;}
								
							}
							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" componentName="PRESTATIONS_DATA_VIEWLINK"  >
					<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;}
								
							}
							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'" />
					<ARG name="GROUPBY_TAB" value="return 'TAB';" />
				</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;}
								
							}
							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" componentName="PRESTATIONS_DATA_VIEWLINK" enabled="true" rowContext="false">
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
				<ARG name="GROUPBY" value="if (SELECT.GROUPBY == 'JOUR' ) {return 'JOURS'}
											   if (SELECT.GROUPBY == 'JOURF' ) {return 'JOURSF'}
											   if (SELECT.GROUPBY == 'JOURA' ) {return 'JOURSA'}
											   if (SELECT.GROUPBY == 'MOIS' ) {return 'NUMEROMOIS'}
											   if (SELECT.GROUPBY == 'MOISF' ) {return 'NUMEROMOISF'}
											   return 	SELECT.GROUPBY;
					
					" />
				<ARG name="GROUPBY" value="return SELECT.GROUPBY;"/>
				<ARG name="GROUPBY_2" value="return SELECT.GROUPBY_2;"/>
				<ARG name="GROUPBY_3" value="return SELECT.GROUPBY_3;"/>
				<ARG name="LGROUPBY" value="return SELECT.GROUPBY;" />
				<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;" />
				<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;" />
				<ARG name="GROUPBY_TAB" value="return 'TAB';" />
				<ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>
			<VIEWLINK label="Comparatif mensuel" shortLabel="Comp. Mensuel" view="ACTI000156.XML" enabled="true" rowContext="false" buttonType="COMPARATIF" componentName="PRESTATIONS_DATA_VIEWLINK" >
				<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';" />
				<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
				<ARG name="GROUPBY_2" value="return SELECT.GROUPBY_2;" />
				<ARG name="GROUPBY_3" value="return SELECT.GROUPBY_3;" />
				<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
				<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;"/>
				<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;"/>
				<ARG name="TYPE_COMPARAISON" value="'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.GROUPBY;" />
					<ARG name="GROUPBY_2" value="return SELECT.GROUPBY_2;" />
					<ARG name="GROUPBY_3" value="return SELECT.GROUPBY_3;" />
					<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
					<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;"/>
					<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;"/>
					<ARG name="DATA01" value="'1.1'" />
                    <ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>
			<VIEWLINK label="Evolution comparative" shortLabel="Evol. comparative"  view="ACTI000154.XML"  rowContext="false" componentName="PRESTATIONS_DATA_VIEWLINK"  enabled="true" buttonType="VIEWLINK_EVO_COMP_1" >
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>
					<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="GROUPBY_TAB" value="return 'TAB';" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
			</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.GROUPBY;" />
				<ARG name="GROUPBY_2" value="return SELECT.GROUPBY_2;" />
				<ARG name="GROUPBY_3" value="return SELECT.GROUPBY_3;" />
				<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
				<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;"/>
				<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;"/>
				<ARG name="DATA1" value="return 'FAVMTT';" />   
				<ARG name="PERIODICITE" value="'MONTH'" />   
			</VIEWLINK>
			<VIEWLINK label="Analyse croisée" shortLabel="Analyse croisée" view="ACTI000082.XML" enabled="true" rowContext="false" componentName="PRESTATIONS_ANALYSE_CROISEE_MULTIVIEWLINK" buttonType="ANALYSE_CROISEE" >
				<ARG name="PERIODE" value="return VIEW.X_PERIODE.substr(0,4)+'-01-01';"/>			
			</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="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
					<ARG name="QUELMONTANT" value="return '1';" /> 
					<ARG name="GROUPBY" value="return SELECT.GROUPBY;" />
					<ARG name="GROUPBY_2" value="reurn SELECT.GROUPBY_2" />
					<ARG name="GROUPBY_2" value="reurn SELECT.GROUPBY_3" />
					<ARG name="GROUPBY_TAB" value="return 'TAB';" />
					<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
					<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;"/>
					<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;"/>
				</VIEWITEM>					
				<VIEWITEM label="Analyse paramètrable" shortLabel="Analyse"  view="ACTI000165.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.GROUPBY;" />
					<ARG name="GROUPBY_2" value="return SELECT.GROUPBY_2;" />
					<ARG name="GROUPBY_3" value="return SELECT.GROUPBY_3;" />
					<ARG name="LGROUPBY" value="return SELECT.GROUPBY;"/>
					<ARG name="LGROUPBY_2" value="return SELECT.GROUPBY_2;"/>
					<ARG name="LGROUPBY_3" value="return SELECT.GROUPBY_3;"/>
					<ARG name="DATA1" value="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 'FAVNBEMCHC';"/>
					<ARG name="DATA5" value="return 'FAVMTTHC';"/>
					<ARG name="DATA6" value="return 'FAVCAMHC';"/>
					<ARG name="DATA7" value="return 'FAVNBSHJ';"/>
					<ARG name="DATA8" value="return 'FAVMTTHJ';"/>
					<ARG name="DATA9" value="return 'FAVCAMHJ';"/>
					<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="DATA014" value="return '0'" />
					<ARG name="GROUPBY_TAB" value="'TAB'" />
				</VIEWITEM>	
			</VIEWLINK>	
			<VIEWLINK label="Liste 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="QUELLEDATE" value="return SELECT.QUELLEDATE;"/>
				<ARG name="QUELMONTANT" value="return 'FAV';" /> 				
				<ARG name="GROUPBY_2" value="return '-1';"/>			   
				<ARG name="PERIODE">
					<value>
						<![CDATA[
							if (SELECT.GROUPBY == 'MOIS') {return ROW.OID1;}
							if (SELECT.GROUPBY_2 == 'MOIS' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOIS' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 							
							if (SELECT.GROUPBY == 'MOISV') {return ROW.OID1;}
							if (SELECT.GROUPBY_2 == 'MOISV' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOISV' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 
							if (SELECT.GROUPBY == 'MOISF') {return ROW.OID1;}
							if (SELECT.GROUPBY_2 == 'MOISF' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOISF' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 
							if (SELECT.GROUPBY == 'MOISEX') {return ROW.OID1;}
							if (SELECT.GROUPBY_2 == 'MOISEX' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOISEX' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 
							
						]]>
					</value>
				</ARG>
				<ARG name="TOPERIODE">
					<value>
						<![CDATA[
							if (SELECT.GROUPBY == 'MOIS') {return ROW.OID1;} 	
							if (SELECT.GROUPBY_2 == 'MOIS' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOIS' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 	
							if (SELECT.GROUPBY == 'MOISV') {return ROW.OID1;} 	
							if (SELECT.GROUPBY_2 == 'MOISV' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOISV' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 
							if (SELECT.GROUPBY == 'MOISF') {return ROW.OID1;}	
							if (SELECT.GROUPBY_2 == 'MOISF' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOISF' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 
							if (SELECT.GROUPBY == 'MOISEX') {return ROW.OID1;}	
							if (SELECT.GROUPBY_2 == 'MOISEX' && ROW.OID2 != '0' && ROW.OID2 != '-9999999') {return ROW.OID2;} 
							if (SELECT.GROUPBY_3 == 'MOISEX' && ROW.OID3 != '0' && ROW.OID3 != '-9999999') {return ROW.OID3;} 
						]]>
					</value>
				</ARG>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Analyse" label="Analyse" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<CHART title="" type="group" subType="" percentHeight="100" visibleCondition="VIEW.H_DATA == '-1'">
				<CHART title="Graphique 1ère donnée" type="pieChart" subType="" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F1" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F1" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT1;}else{return SELECT.DATA13;}" displayNameCalc="true"/>
				</CHART>
				<CHART title="Histogramme 2ème donnée" type="columnChart" subType="" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F2" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F2" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT2;}else{return SELECT.DATA23;}" displayNameCalc="true"/>
				</CHART>
			</CHART>			
			<CHART title="" type="group" subType="" percentHeight="100" visibleCondition="VIEW.H_DATA == '2'" >
				<CHART title="Graphique 1ère donnée" type="pieChart" subType="" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F1" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F1" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT1;}else{return SELECT.DATA13;}" displayNameCalc="true"/>
				</CHART>
				<CHART title="Histogramme 2ème donnée" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F2" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F6" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT6;}" displayNameCalc="true"/>
					<SERIE field="F9" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT9;}" displayNameCalc="true"/>
				</CHART>
			</CHART>			
			<CHART title="" type="group" subType="" percentHeight="100" visibleCondition="VIEW.H_DATA == '1'" >
				<CHART title="Graphique 1ère donnée" type="pieChart" subType="" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F1" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F1" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT1;}else{return SELECT.DATA13;}" displayNameCalc="true"/>
				</CHART>
				<CHART title="Histogramme 2ème donnée" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F2" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F6" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT6;}" displayNameCalc="true"/>
					<SERIE field="F9" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT9;}" displayNameCalc="true"/>
					<SERIE field="F12" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT12;}" displayNameCalc="true"/>
				</CHART>
			</CHART>			
			<CHART title="" type="group" subType="" percentHeight="100" visibleCondition="VIEW.H_DATA == '3'" >
				<CHART title="Graphique 1ère donnée" type="pieChart" subType="" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F1" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F1" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT1;}else{return SELECT.DATA13;}" displayNameCalc="true"/>
				</CHART>
				<CHART title="Histogramme 2ème donnée" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F2" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F7" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT7;}" displayNameCalc="true"/>
					<SERIE field="F9" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT9;}" displayNameCalc="true"/>
					<SERIE field="F11" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT11;}" displayNameCalc="true"/>
				</CHART>
			</CHART>			
			<CHART title="" type="group" subType="" percentHeight="100" visibleCondition="VIEW.H_DATA == '4'" >
				<CHART title="Graphique 1ère donnée" type="pieChart" subType="" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F1" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F1" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT1;}else{return SELECT.DATA13;}" displayNameCalc="true"/>
				</CHART>
				<CHART title="Histogramme 2ème donnée" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F2" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F7" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT7;}" displayNameCalc="true"/>
					<SERIE field="F8" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT8;}" displayNameCalc="true"/>
					<SERIE field="F9" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT9;}" displayNameCalc="true"/>
				</CHART>
			</CHART>
            <CHART title="" type="group" subType="" percentHeight="100" visibleCondition="VIEW.H_DATA == '5'" >
				<CHART title="Graphique 1ère donnée" type="pieChart" subType="" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F1" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F1" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT1;}else{return SELECT.DATA13;}" displayNameCalc="true"/>
				</CHART>
				<CHART title="Histogramme 2ème donnée" type="columnChart" subType="stacked" maxItems="10" maxItemsSortOn="" maxItemsSortSeq="" sortField="F2" sortSeq="D" condition="ROW.LVL == '1'">
					<CATEGORY field="TXT" type="Char" />
					<SERIE field="F7" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT7;}" displayNameCalc="true"/>
					<SERIE field="F8" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT8;}" displayNameCalc="true"/>
					<SERIE field="F9" displayName="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT9;}" displayNameCalc="true"/>
				</CHART>
			</CHART>			
			<DATAGRID title="" total="true" showOthers="true" headerHeight="48" variableRowHeight="true" sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
				<INSERT name="DATAGRID_MULTITAB_STYLES"/>
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
				</COLUMN>
				<COLUMN dataField="COD" width="80" type="Char" visibleCondition="SELECT.GROUPBY != '5'" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="150" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW">
				</COLUMN>
				<COLUMN dataField="F1" width="85"  visibleCondition="(VIEW.NB_DATA_LS >= 1) || (VIEW.NB_DATA >= 1)" visible="true" type="Number" outputFormat="=if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT1;}else{return SELECT.DATA12}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT1;}else{return SELECT.DATA13;}" headerTextCalc="true" description="=if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC1;}else{return SELECT.DATA14;}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F2" width="85"  visibleCondition="(VIEW.NB_DATA_LS >= 2) || VIEW.NB_DATA >= 2" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT2;}else{return SELECT.DATA22}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT2;}else{return SELECT.DATA23;}" headerTextCalc="true"  description="=if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC2;}else{return SELECT.DATA24;}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>	
				<COLUMN dataField="P2" type="Number" headerText="% Total" width="45" outputFormat="#%" fixed="false" textAlign="right" totalFunction="calc" otherFunction="calc" calc="true" >
						<CALC formula="ROW.F2 * 100 / TOTALROW.F2" />
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>					
				<COLUMN dataField="F3" width="85"  visibleCondition="(VIEW.NB_DATA_LS >= 3) || (VIEW.NB_DATA >= 3)" type="Number"  outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT3;}else{return SELECT.DATA32}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT3;}else{return SELECT.DATA33;}" headerTextCalc="true"  description="=if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC3;}else{return SELECT.DATA34;}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="P3" type="Number" headerText="% " width="45" outputFormat="#%" fixed="false" visibleCondition="SELECT.LS_DATA == 'L_DATA_7'" textAlign="right" description="Pourcentage EMC HC par rapport au EMC total" totalFunction="calc" otherFunction="calc" calc="true" >
						<CALC formula="ROW.F3 * 100 / ROW.F1" />
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>				
				<COLUMN dataField="F4" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 4) || (VIEW.NB_DATA >= 4)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT4;}else{return SELECT.DATA42}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT4;}else{return SELECT.DATA43;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC4;}else{return SELECT.DATA44}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F5" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 5) || (VIEW.NB_DATA >= 5)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT5;}else{return SELECT.DATA52}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT5;}else{return SELECT.DATA53;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC5;}else{return SELECT.DATA54}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F6" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 6) || (VIEW.NB_DATA >= 6)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT6;}else{return SELECT.DATA62}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT6;}else{return SELECT.DATA63;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC6;}else{return SELECT.DATA64}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F7" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 7) || (VIEW.NB_DATA >= 7)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT7;}else{return SELECT.DATA72}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT7;}else{return SELECT.DATA73;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC7;}else{return SELECT.DATA74}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F8" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 8) || (VIEW.NB_DATA >= 8)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT8;}else{return SELECT.DATA82}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT8;}else{return SELECT.DATA83;}" headerTextCalc="true"  description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC8;}else{return SELECT.DATA84}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F9" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 9) || (VIEW.NB_DATA >= 9)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT9;}else{return SELECT.DATA92}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT9;}else{return SELECT.DATA93;}" headerTextCalc="true"  description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC9;}else{return SELECT.DATA94}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F10" width="85"  visibleCondition="(VIEW.NB_DATA_LS >= 10) || (VIEW.NB_DATA >= 10)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT10;}else{return SELECT.DATA102}" fixed="false" selectable="true"  headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT10;}else{return SELECT.DATA103;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC10;}else{return SELECT.DATA104}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F11" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 11) || (VIEW.NB_DATA >= 11)"  type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT11;}else{return SELECT.DATA0112}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT11;}else{return SELECT.DATA0113;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC11;}else{return SELECT.DATA0114}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F12" width="85"  visibleCondition="(VIEW.NB_DATA_LS >= 12) || (VIEW.NB_DATA >= 12)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT12;}else{return SELECT.DATA0122}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT12;}else{return SELECT.DATA0123;}" headerTextCalc="true"  description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC12;}else{return SELECT.DATA0124}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F13" width="85"  visibleCondition="(VIEW.NB_DATA_LS >= 13) || (VIEW.NB_DATA >= 13)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT13;}else{return SELECT.DATA0132}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT13;}else{return SELECT.DATA0133;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC13;}else{return SELECT.DATA0134}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F14" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 14) || (VIEW.NB_DATA >= 14)"  type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT14;}else{return SELECT.DATA0142}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT14;}else{return SELECT.DATA0143;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC14;}else{return SELECT.DATA0144}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="0xDCDCDC"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>
				<COLUMN dataField="F15" width="85" visibleCondition="(VIEW.NB_DATA_LS >= 15) || (VIEW.NB_DATA >= 15)" type="Number" outputFormat="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_FMT15;}else{return SELECT.DATA0152}" fixed="false" selectable="true" headerText="if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_ENT15;}else{return SELECT.DATA0153;}" headerTextCalc="true" description="= if(SELECT.LS_DATA != '-1'){ return VIEW.DATA_LS1_DSC15;}else{return SELECT.DATA0154}" textAlign="right" totalFunction="sum" otherFunction="sum">
						<HEADERCELLSTYLE name="backgroundColor" value="EFEFEF"/>
						<HEADERCELLSTYLE name="textAlign" value="center"/>
				</COLUMN>			
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
