<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="ACTI000082" label="Activité. Tableau croisé facturation" title="= SELECT.DATA_LABEL + ' par ' +  SELECT.GROUPBY_LABEL + ' (' + SELECT.QUELLEDATE_LABEL + ' : ' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'" database="iCTI" swf="*CTI_view1" softCode="iCTI_activite" globals="ACTI_globals.XML" componentsFile="ACTI_components.XML"
    helpFile="iCTI_ACTI_ACTI000082.HTML"
    helpDokuWIkiDir="activite:activite_facturee_et_valorisee:activite_clinique" 
    helpDokuWIkiFile="acti000082" 
>
	<VIEWPROPERTIES componentName="PROPERTIES_PRESTATIONS"/>
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
		<PROPERTY name="DATA1F">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data('[DATA]', 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_data('[DATA]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","1"); EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA1C">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data_col('[DATA]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","0",'[TOPERIODE]'); EVAL]]]></value>
		</PROPERTY>		
		<PROPERTY name="DATA2C">
			<value><![CDATA[[EVAL return ACTI_facturation_clinique_data_col('[DATA]', 0, "v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'", "","1",'[TOPERIODE]'); EVAL]]]></value>
		</PROPERTY>
				<PROPERTY name="JOURNEES_FIELD">
			<value>
					<![CDATA[
						[EVAL 
							$field = 'nb_jours';
							if ('[QJMUT]' == 'd') {$field = $field . '_d';}
							else {
								if ('[QJMUT]' == 'f') {$field = $field . '_f';}
								else {
									if ('[QJMUT]' == '12') {$field = $field . '_12';}
									else {
										if ('[QJMUT]' == 'prorata') {$field = $field . '_prorata';}
										else {
											$field = $field . '_f';
										}
									}
								}
							}
							return $field;
						EVAL]
					]]>
				</value>
		</PROPERTY>
		<PROPERTY name="QUELLEDATE_MVT">
			<value><![CDATA[[EVAL 
                    $column_date = "v_mouvements_sejour_2.date";
                    if ('[QUELLEDATE]' == '2') {
                        $column_date = "p_factures_reference.date_fin_facture";
					}
					return $column_date;
				EVAL]]]></value>
		</PROPERTY>
        <PROPERTY name="QMVT_SELECT">
			<value><![CDATA[[EVAL 
                    $qmvt_select = "AND 1=1";
                    if ('[QUELLEDATE]' != '1' && '[QUELLEDATE]' != '2') {
                        $qmvt_select = "AND 1<>1";
                    }
					return $qmvt_select;
				EVAL]]]></value>
		</PROPERTY>
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse">
		<GROUP label="Période">
			<FIELD name="QUELLEDATE" label="" UI="combo" default="1" default2="date_fin">
				<OPTION label="Date activité" data="1" data2="v_factures_lignes_c_4.date_fin"/>
				<OPTION label="Date sortie" data="2" data2="v_factures_lignes_c_4.date_fin_facture"/>
				<OPTION label="Date facture" data="3" data2="v_factures_lignes_c_4.date_facture"/>
				<OPTION label="Date vente" data="4" data2="v_factures_lignes_c_4.date_vente"/>
				<OPTION label="Date groupage" data="5" data2="v_sejours_1.date_groupage"/>
			</FIELD>
			<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
            <FIELD name="PERIODE" label="de" UI="combo" tree="true" width="200" default="2007-01-01" globalListProvider="DATE_DEBUT" >
			</FIELD>
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2007-01-31" globalListProvider="DATE_FIN" >
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="GROUPBY" label="Regroupement" UI="combo" default="PRF" tree="true" width="300">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
			<FIELD name="GROUPBY_TAB" label="Présentation" UI="combo" default="AUTO" visible="= SELECT.GROUPBY_2 != '-1' ">
				<OPTION label="Automatique" data="AUTO"/>
				<OPTION label="Arbre" data="TREE"/>
				<OPTION label="Onglet" data="TAB"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="GROUPBY_2" label="" UI="combo" default="-1" tree="true" width="300">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="GROUPBY_3" label="" UI="combo" default="-1" tree="true" width="300">
				<OPTION label="" data="-1"/>
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="LGROUPBY" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
			<FIELD name="LGROUPBY_2" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>				
			<FIELD name="LGROUPBY_3" label="Regroupement" UI="combo" default="-1" width="200" tree="true" visible="false">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>				
		</GROUP>
		<GROUP>
			<FIELD name="COLUMNBY" label="Colonnes" UI="combo" width="300" default="SER" tree="true">
				<OPTION label="PRESTATIONS_GROUPBY" data="" globalListProvider="PRESTATIONS_GROUPBY"/>
			</FIELD>
			<FIELD name="COLUMNBYCOUNT" label="Nombre" UI="combo" default="10" tree="false">
				<OPTION label="5" data="5"/>
				<OPTION label="6" data="6"/>
				<OPTION label="7" data="7"/>
				<OPTION label="8" data="8"/>
				<OPTION label="9" data="9"/>
				<OPTION label="10" data="10"/>
				<OPTION label="11" data="11"/>
				<OPTION label="12" data="12"/>
				<OPTION label="13" data="13"/>
				<OPTION label="14" data="14"/>
				<OPTION label="15" data="15"/>
				<OPTION label="16" data="16"/>
				<OPTION label="17" data="17"/>
				<OPTION label="18" data="18"/>
				<OPTION label="19" data="19"/>
				<OPTION label="20" data="20"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="DATA" tree="true" label="Données" UI="combo" width="300" default="MTFAC">
				<OPTION label="PRESTATIONS_DATA" data="" globalListProvider="PRESTATIONS_DATA"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="RUBRIQUE_CA" label="C.A." UI="combo" tree="true" width="200" default="-1" globalListProvider="RUBRIQUES_CA" showIfNotDefault="true" />
			<FIELD name="RUBRIQUE_CODES" label="Codes" UI="text" width="150" default="" showIfNotDefault="true" visible="= SELECT.RUBRIQUE == 'SAISIECODE' " />
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_PRESTATIONS_SOUSSELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PRESTATIONS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SEJOURS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PATIENTS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PASSAGES_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
				    <SQL optimizer="V_SEJOURS_X" optimizer2="V_FACTURES_LIGNES_C_X">
				<select><![CDATA[ 
					
					DROP TABLE IF EXISTS ACTI000082_SEJ;
                    CREATE TEMP TABLE ACTI000082_SEJ AS
                    SELECT v_factures_lignes_c_4.no_sejour
                        FROM #V_FACTURES_LIGNES_C_X#
                        JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
                    WHERE 
                        v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]' 
                        
                        [VIEW.SEJOURS_SELECT]
                        [VIEW.PRESTATIONS_SELECT]
                        [VIEW.PASSAGES_SELECT]
						[VIEW.PATIENTS_SELECT]
                        [VIEW.QMVT_SELECT]
                    GROUP BY 1
                    ;
                    CREATE INDEX ACTI000082_SEJ_i1 ON ACTI000082_SEJ USING btree (no_sejour);
				
				
				]]></select>
			</SQL>
            <SQL optimizer="V_SEJOURS_X" optimizer2="V_MOUVEMENTS_SEJOUR_X" >
				<select><![CDATA[

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

					
					CREATE INDEX w_factures_reference_i1 ON w_factures_reference USING btree (no_sejour)
					;

					UPDATE w_factures_reference
					SET date_debut_facture = date(w_factures_reference1.date_fin_facture+interval '1 day')
					FROM w_factures_reference w_factures_reference1
					WHERE w_factures_reference.no_sejour = w_factures_reference1.no_sejour AND
						w_factures_reference.seq = w_factures_reference1.seq +1
					;
					
					CTIPREPAR_TREE 
						WORKTABLE{ACTI000082_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]} 
						SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
                        COLUMNBYOID{[VIEW.COLUMNBY_MVT_OID_FIELD],, [VIEW.COLUMNBY_MVT_COD_FIELD] ,, [VIEW.COLUMNBY_MVT_TXT_FIELD],, [VIEW.DATA1C] ,, [COLUMNBYCOUNT]}
						INDICATORS{[VIEW.DATA1C]}	
						INDICATORS_COLUMNS{[VIEW.DATA2C]}
					FROM #V_SEJOURS_X#,#V_MOUVEMENTS_SEJOUR_X#
                    JOIN ACTI000082_SEJ ON v_mouvements_sejour_2.no_sejour = ACTI000082_SEJ.no_sejour
                    JOIN w_factures_reference p_factures_reference ON
                        p_factures_reference.no_sejour = v_mouvements_sejour_2.no_sejour AND
                        (v_mouvements_sejour_2.date BETWEEN p_factures_reference.date_debut_facture AND p_factures_reference.date_fin_facture) 
                    JOIN empty ON 1=1
					WHERE '[QUELLEDATE]' IN ('1','2') AND
						v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour AND
						[VIEW.QUELLEDATE_MVT] BETWEEN '[PERIODE]' AND '[TOPERIODE]' 
						
						[VIEW.SEJOURS_SELECT] 
                        [VIEW.PASSAGES_SELECT]
						[VIEW.PATIENTS_SELECT]
                        [VIEW.QMVT_SELECT]
                        [VIEW.MOUVEMENTS_SELECT]
						AND v_sejours_1.type_sejour <> '9' 
				
				]]></select>
			</SQL>
			<SQL optimizer="V_SEJOURS_X">
				<select><![CDATA[		

					CTISELECT_TREE
						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]}
						COLUMNBYOID{[VIEW.COLUMNBY_OID_FIELD],, [VIEW.COLUMNBY_COD_FIELD] ,, [VIEW.COLUMNBY_TXT_FIELD],, [VIEW.DATA1F] ,, [COLUMNBYCOUNT]}
						INDICATORS{[VIEW.DATA1F],,}	
						INDICATORS_COLUMNS{[VIEW.DATA2F],,}
					FROM #V_FACTURES_LIGNES_C_X#
						JOIN #V_SEJOURS_X# ON v_sejours_1.no_sejour = v_factures_lignes_c_4.no_sejour
					WHERE 
						v_factures_lignes_c_4.[VIEW.QUELLEDATE_FIELD] BETWEEN '[PERIODE]' AND '[TOPERIODE]'
						[VIEW.SEJOURS_SELECT]
						[VIEW.PRESTATIONS_SELECT]
						[VIEW.PASSAGES_SELECT]
						[VIEW.PATIENTS_SELECT]
				AFTER{
					
					UPDATE w_table 
						SET indicateurs[0] = ACTI000082_MVT.indicateurs[000]
							[EVAL 
								if ('[DATA]' == 'EMC' || '[DATA]' == 'VALEMC'|| '[DATA]' == 'FAVEMC'|| '[DATA]' == 'FACNBJ' || '[DATA]' == 'VALNBJ'|| '[DATA]' == 'FAVNBJ'|| '[DATA]' == 'FAVNBEMCHC'|| '[DATA]' == 'FAVDMS') {
									return "
										,
										
										indicateurs[1] 	= ACTI000082_MVT.indicateurs[001],
										indicateurs[2] 	= ACTI000082_MVT.indicateurs[002],
										indicateurs[3] 	= ACTI000082_MVT.indicateurs[003],
										indicateurs[4] 	= ACTI000082_MVT.indicateurs[004],										
										indicateurs[5] 	= ACTI000082_MVT.indicateurs[005],
										indicateurs[6] 	= ACTI000082_MVT.indicateurs[006],
										indicateurs[7] 	= ACTI000082_MVT.indicateurs[007],
										indicateurs[8] 	= ACTI000082_MVT.indicateurs[008],										
										indicateurs[9] 	= ACTI000082_MVT.indicateurs[009],										
										indicateurs[10] = ACTI000082_MVT.indicateurs[010],
										indicateurs[11] = ACTI000082_MVT.indicateurs[011],
										indicateurs[12] = ACTI000082_MVT.indicateurs[012],
										indicateurs[13] = ACTI000082_MVT.indicateurs[013],
										indicateurs[14] = ACTI000082_MVT.indicateurs[014],									
										indicateurs[15] = ACTI000082_MVT.indicateurs[015],										
										indicateurs[16] = ACTI000082_MVT.indicateurs[016],
										indicateurs[17] = ACTI000082_MVT.indicateurs[017],
										indicateurs[18] = ACTI000082_MVT.indicateurs[018],
										indicateurs[19] = ACTI000082_MVT.indicateurs[019],
										indicateurs[20] = ACTI000082_MVT.indicateurs[020]
									"; 
								}								
								if ('[DATA]' == 'MMFACEMC' || '[DATA]' == 'MMVALEMC'|| '[DATA]' == 'MMFPVEMC'|| '[DATA]' == 'MFAVCAMHC'|| '[DATA]' == 'MFACMTTHC') {
									return "
										,
										indicateurs[1] 	= base.cti_division(w_table.indicateurs[1] ,ACTI000082_MVT.indicateurs[001]),
										indicateurs[2] 	= base.cti_division(w_table.indicateurs[2] ,ACTI000082_MVT.indicateurs[002]),
										indicateurs[3] 	= base.cti_division(w_table.indicateurs[3] ,ACTI000082_MVT.indicateurs[003]),
										indicateurs[4] 	= base.cti_division(w_table.indicateurs[4] ,ACTI000082_MVT.indicateurs[004]),										
										indicateurs[5] 	= base.cti_division(w_table.indicateurs[5] ,ACTI000082_MVT.indicateurs[005]),
										indicateurs[6] 	= base.cti_division(w_table.indicateurs[6] ,ACTI000082_MVT.indicateurs[006]),
										indicateurs[7] 	= base.cti_division(w_table.indicateurs[7] ,ACTI000082_MVT.indicateurs[007]),
										indicateurs[8] 	= base.cti_division(w_table.indicateurs[8] ,ACTI000082_MVT.indicateurs[008]),										
										indicateurs[9] 	= base.cti_division(w_table.indicateurs[9] ,ACTI000082_MVT.indicateurs[009]),										
										indicateurs[10] = base.cti_division(w_table.indicateurs[10],ACTI000082_MVT.indicateurs[010]),
										indicateurs[11] = base.cti_division(w_table.indicateurs[11],ACTI000082_MVT.indicateurs[011]),
										indicateurs[12] = base.cti_division(w_table.indicateurs[12],ACTI000082_MVT.indicateurs[012]),
										indicateurs[13] = base.cti_division(w_table.indicateurs[13],ACTI000082_MVT.indicateurs[013]),
										indicateurs[14] = base.cti_division(w_table.indicateurs[14],ACTI000082_MVT.indicateurs[014]),										
										indicateurs[15] = base.cti_division(w_table.indicateurs[15],ACTI000082_MVT.indicateurs[015]),										
										indicateurs[16] = base.cti_division(w_table.indicateurs[16],ACTI000082_MVT.indicateurs[016]),
										indicateurs[17] = base.cti_division(w_table.indicateurs[17],ACTI000082_MVT.indicateurs[017]),
										indicateurs[18] = base.cti_division(w_table.indicateurs[18],ACTI000082_MVT.indicateurs[018]),
										indicateurs[19] = base.cti_division(w_table.indicateurs[19],ACTI000082_MVT.indicateurs[019]),
										indicateurs[20] = base.cti_division(w_table.indicateurs[20],ACTI000082_MVT.indicateurs[020])
									"; 
								}
								
							EVAL]					
							FROM ACTI000082_MVT 
									WHERE w_table.OIDT = ACTI000082_MVT.OIDT AND
										w_table.OID1 = ACTI000082_MVT.OID1 AND
										w_table.OID2 = ACTI000082_MVT.OID2 AND
										w_table.OID3 = ACTI000082_MVT.OID3
					
				}

				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="N"/>
					<FIELD name="N1"/>
					<FIELD name="N2"/>
					<FIELD name="N3"/>
					<FIELD name="N4"/>
					<FIELD name="N5"/>
					<FIELD name="N6"/>
					<FIELD name="N7"/>
					<FIELD name="N8"/>
					<FIELD name="N9"/>
					<FIELD name="N10"/>
					<FIELD name="N11"/>
					<FIELD name="N12"/>
					<FIELD name="N13"/>
					<FIELD name="N14"/>
					<FIELD name="N15"/>
					<FIELD name="N16"/>
					<FIELD name="N17"/>
					<FIELD name="N18"/>
					<FIELD name="N19"/>
					<FIELD name="N20"/>
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
			<SQL>
				<select><![CDATA[
						SELECT 'X_PERIODE', greatest(to_date(to_char('[PERIODE]'::date - INTERVAL  '3 year', 'YYYY-MM-DD'), 'YYYY-MM-DD'), (SELECT min(date_debut) FROM activite.p_factures ))::text;
				]]></select>
				<FIELDS>
					<FIELD name="name"/>
					<FIELD name="value"/>
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="(&#8721;) Dernier Mois/Année " shortLabel="Mois/Année"   rowContext="false" buttonType="VIEWLINKPOPUP">
				<VIEWITEM label="Dernier mois" shortLabel="Dernier mois"  view="ACTI000063.XML" rowContext="false" enabled="true" buttonType="COMPARATIF" componentName="PRESTATIONS_BASE_VIEWLINK">
					<ARG name="ALIAS_PERIODE" value="return '-1';" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,8)+'01';"/>
					<ARG name="TOPERIODE" value=" return SELECT.TOPERIODE;"/>
					<ARG name="GROUPBY">
						<value>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.GROUPBY) {
								case 'ANNEE' :			s = 'JOURS'; 		break;
								case 'TRIM' :			s = 'JOURS';		break;
								case 'MOIS' :			s = 'JOURS';		break;
								case 'NUMEROMOIS' :		s = 'JOURS';		break;
								case 'NUMEROTRIM' :		s = 'JOURS';		break;
								case 'SEMAINEWE' :		s = 'JOURS';		break;
								case 'SEMAINEANNE' :	s = 'JOURS';		break;
								case 'NUMEROJOUR' :		s = 'JOURS';		break;
								case 'JOURS' :			s = 'JOURS';		break;
								case 'JOUR' :			s = 'JOURS';		break;
								
								case 'ANNEEF' :			s = 'JOURSF'; 		break;
								case 'TRIMF' :			s = 'JOURSF';		break;
								case 'MOISF' :			s = 'JOURSF';		break;
								case 'NUMEROMOISF' :	s = 'JOURSF';		break;
								case 'NUMEROTRIMF' :	s = 'JOURSF';		break;
								case 'SEMAINEWEF' :		s = 'JOURSF';		break;
								case 'SEMAINEANNEF' :	s = 'JOURSF';		break;
								case 'NUMEROJOURF' :	s = 'JOURSF';		break;
								case 'JOURSF' :			s = 'JOURSF';		break;
								case 'JOURF' :			s = 'JOURSF';		break;
								
								case 'ANNEEA' :			s = 'JOURSA'; 		break;
								case 'TRIMA' :			s = 'JOURSA';		break;
								case 'MOISA' :			s = 'JOURSA';		break;
								case 'NUMEROMOISA' :	s = 'JOURSA';		break;
								case 'NUMEROTRIMA' :	s = 'JOURSA';		break;
								case 'SEMAINEWEA' :		s = 'JOURSA';		break;
								case 'SEMAINEANNEA' :	s = 'JOURSA';		break;
								case 'NUMEROJOURA' :	s = 'JOURSA';		break;
								case 'JOURSA' :			s = 'JOURSA';		break;
								case 'JOURA' :			s = 'JOURSA';		break;
								
								case 'ANNEEV' :			s = 'JOURSV'; 		break;
								case 'TRIMV' :			s = 'JOURSV';		break;
								case 'MOISV' :			s = 'JOURSV';		break;
								case 'NUMEROMOISV' :	s = 'JOURSV';		break;
								case 'NUMEROTRIMV' :	s = 'JOURSV';		break;
								case 'SEMAINEWEV' :		s = 'JOURSV';		break;
								case 'SEMAINEANNEV' :	s = 'JOURSV';		break;
								case 'NUMEROJOURV' :	s = 'JOURSV';		break;
								case 'JOURSV' :			s = 'JOURSV';		break;
								case 'JOURV' :			s = 'JOURSV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'JOURSA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'JOURS';			break;}
										if(SELECT.QUELLEDATE == 3) {s = 'JOURSF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'JOURSV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'JOURS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="DATA1" value="'FAVNBS'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="DATA3" value="'MTENC'" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>	
				<VIEWITEM label="&#8721; dernier mois" data="2" shortLabel="&#8721; dernier  mois"  view="ACTI000149.XML" enabled="true" rowContext="false" buttonType="COMPARATIF" >
					<ARG name="ALIAS_PERIODE" value="return '-1';" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,8)+'01';"/>
					<ARG name="DATA1" value="'NBSEJ'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="GROUPBY_2" value="return '-1'" />
					<ARG name="GROUPBY">
						<value>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.GROUPBY) {
								case 'ANNEE' :			s = 'JOURS'; 		break;
								case 'TRIM' :			s = 'JOURS';		break;
								case 'MOIS' :			s = 'JOURS';		break;
								case 'NUMEROMOIS' :		s = 'JOURS';		break;
								case 'NUMEROTRIM' :		s = 'JOURS';		break;
								case 'SEMAINEWE' :		s = 'JOURS';		break;
								case 'SEMAINEANNE' :	s = 'JOURS';		break;
								case 'NUMEROJOUR' :		s = 'JOURS';		break;
								case 'JOURS' :			s = 'JOURS';		break;
								case 'JOUR' :			s = 'JOURS';		break;
								
								case 'ANNEEF' :			s = 'JOURSF'; 		break;
								case 'TRIMF' :			s = 'JOURSF';		break;
								case 'MOISF' :			s = 'JOURSF';		break;
								case 'NUMEROMOISF' :	s = 'JOURSF';		break;
								case 'NUMEROTRIMF' :	s = 'JOURSF';		break;
								case 'SEMAINEWEF' :		s = 'JOURSF';		break;
								case 'SEMAINEANNEF' :	s = 'JOURSF';		break;
								case 'NUMEROJOURF' :	s = 'JOURSF';		break;
								case 'JOURSF' :			s = 'JOURSF';		break;
								case 'JOURF' :			s = 'JOURSF';		break;
								
								case 'ANNEEA' :			s = 'JOURSA'; 		break;
								case 'TRIMA' :			s = 'JOURSA';		break;
								case 'MOISA' :			s = 'JOURSA';		break;
								case 'NUMEROMOISA' :	s = 'JOURSA';		break;
								case 'NUMEROTRIMA' :	s = 'JOURSA';		break;
								case 'SEMAINEWEA' :		s = 'JOURSA';		break;
								case 'SEMAINEANNEA' :	s = 'JOURSA';		break;
								case 'NUMEROJOURA' :	s = 'JOURSA';		break;
								case 'JOURSA' :			s = 'JOURSA';		break;
								case 'JOURA' :			s = 'JOURSA';		break;
								
								case 'ANNEEV' :			s = 'JOURSV'; 		break;
								case 'TRIMV' :			s = 'JOURSV';		break;
								case 'MOISV' :			s = 'JOURSV';		break;
								case 'NUMEROMOISV' :	s = 'JOURSV';		break;
								case 'NUMEROTRIMV' :	s = 'JOURSV';		break;
								case 'SEMAINEWEV' :		s = 'JOURSV';		break;
								case 'SEMAINEANNEV' :	s = 'JOURSV';		break;
								case 'NUMEROJOURV' :	s = 'JOURSV';		break;
								case 'JOURSV' :			s = 'JOURSV';		break;
								case 'JOURV' :			s = 'JOURSV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'JOURSA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'JOURS';			break;}
										if(SELECT.QUELLEDATE == 3) {s = 'JOURSF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'JOURSV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'JOURS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE"/>
					<ARG name="TYPE_COMPARAISON" value="return '2';" />
				</VIEWITEM>
				<VIEWITEM  label="Dernière année" data="2" shortLabel="derniere  année"  view="ACTI000063.XML" enabled="true" rowContext="false" buttonType="COMPARATIF" >
					<ARG name="ALIAS_PERIODE" value="return '-1';" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>
					<ARG name="TOPERIODE" value=" return SELECT.TOPERIODE;"/>
					<ARG name="GROUPBY">
						<value>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.GROUPBY) {
								case 'ANNEE' :			s = 'NUMEROMOIS'; 		break;
								case 'TRIM' :			s = 'NUMEROMOIS';		break;
								case 'MOIS' :			s = 'NUMEROMOIS';		break;
								case 'NUMEROMOIS' :		s = 'NUMEROMOIS';		break;
								case 'NUMEROTRIM' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEWE' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEANNE' :	s = 'NUMEROMOIS';		break;
								case 'NUMEROJOUR' :		s = 'NUMEROMOIS';		break;
								case 'JOURS' :			s = 'NUMEROMOIS';		break;
								case 'JOUR' :			s = 'NUMEROMOIS';		break;
								
								case 'ANNEEF' :			s = 'NUMEROMOISF'; 		break;
								case 'TRIMF' :			s = 'NUMEROMOISF';		break;
								case 'MOISF' :			s = 'NUMEROMOISF';		break;
								case 'NUMEROMOISF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROTRIMF' :	s = 'NUMEROMOISF';		break;
								case 'SEMAINEWEF' :		s = 'NUMEROMOISF';		break;
								case 'SEMAINEANNEF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROJOURF' :	s = 'NUMEROMOISF';		break;
								case 'JOURSF' :			s = 'NUMEROMOISF';		break;
								case 'JOURF' :			s = 'NUMEROMOISF';		break;
								
								case 'ANNEEA' :			s = 'NUMEROMOISA'; 		break;
								case 'TRIMA' :			s = 'NUMEROMOISA';		break;
								case 'MOISA' :			s = 'NUMEROMOISA';		break;
								case 'NUMEROMOISA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROTRIMA' :	s = 'NUMEROMOISA';		break;
								case 'SEMAINEWEA' :		s = 'NUMEROMOISA';		break;
								case 'SEMAINEANNEA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROJOURA' :	s = 'NUMEROMOISA';		break;
								case 'JOURSA' :			s = 'NUMEROMOISA';		break;
								case 'JOURA' :			s = 'NUMEROMOISA';		break;
								
								case 'ANNEEV' :			s = 'NUMEROMOISV'; 		break;
								case 'TRIMV' :			s = 'NUMEROMOISV';		break;
								case 'MOISV' :			s = 'NUMEROMOISV';		break;
								case 'NUMEROMOISV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROTRIMV' :	s = 'NUMEROMOISV';		break;
								case 'SEMAINEWEV' :		s = 'NUMEROMOISV';		break;
								case 'SEMAINEANNEV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROJOURV' :	s = 'NUMEROMOISV';		break;
								case 'JOURSV' :			s = 'NUMEROMOISV';		break;
								case 'JOURV' :			s = 'NUMEROMOISV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'NUMEROMOISA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'NUMEROMOIS';			break;}
										if(SELECT.QUELLEDATE == 3) {s = 'NUMEROMOISF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'NUMEROMOISV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'NUMEROMOIS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="DATA1" value="'NBSEJ'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>	
				<VIEWITEM label="&#8721; dernière Année" shortLabel="&#8721; derniere année"  view="ACTI000149.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
					<ARG name="ALIAS_PERIODE" value="return '-1';" />
					<ARG name="PERIODE_D" value="return VIEW.COMP_PERIODE_D;" />
					<ARG name="TOPERIODE_D" value="return VIEW.COMP_TOPERIODE_D;" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
					<ARG name="TOPERIODE" value=" return SELECT.TOPERIODE;" />
					<ARG name="GROUPBY">
						<value>
							<![CDATA[
								
							var s:String = '';
							switch (SELECT.GROUPBY) {
								case 'ANNEE' :			s = 'NUMEROMOIS'; 		break;
								case 'TRIM' :			s = 'NUMEROMOIS';		break;
								case 'MOIS' :			s = 'NUMEROMOIS';		break;
								case 'NUMEROMOIS' :		s = 'NUMEROMOIS';		break;
								case 'NUMEROTRIM' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEWE' :		s = 'NUMEROMOIS';		break;
								case 'SEMAINEANNE' :	s = 'NUMEROMOIS';		break;
								case 'NUMEROJOUR' :		s = 'NUMEROMOIS';		break;
								case 'JOURS' :			s = 'NUMEROMOIS';		break;
								case 'JOUR' :			s = 'NUMEROMOIS';		break;
								
								case 'ANNEEF' :			s = 'NUMEROMOISF'; 		break;
								case 'TRIMF' :			s = 'NUMEROMOISF';		break;
								case 'MOISF' :			s = 'NUMEROMOISF';		break;
								case 'NUMEROMOISF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROTRIMF' :	s = 'NUMEROMOISF';		break;
								case 'SEMAINEWEF' :		s = 'NUMEROMOISF';		break;
								case 'SEMAINEANNEF' :	s = 'NUMEROMOISF';		break;
								case 'NUMEROJOURF' :	s = 'NUMEROMOISF';		break;
								case 'JOURSF' :			s = 'NUMEROMOISF';		break;
								case 'JOURF' :			s = 'NUMEROMOISF';		break;
								
								case 'ANNEEA' :			s = 'NUMEROMOISA'; 		break;
								case 'TRIMA' :			s = 'NUMEROMOISA';		break;
								case 'MOISA' :			s = 'NUMEROMOISA';		break;
								case 'NUMEROMOISA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROTRIMA' :	s = 'NUMEROMOISA';		break;
								case 'SEMAINEWEA' :		s = 'NUMEROMOISA';		break;
								case 'SEMAINEANNEA' :	s = 'NUMEROMOISA';		break;
								case 'NUMEROJOURA' :	s = 'NUMEROMOISA';		break;
								case 'JOURSA' :			s = 'NUMEROMOISA';		break;
								case 'JOURA' :			s = 'NUMEROMOISA';		break;
								
								case 'ANNEEV' :			s = 'NUMEROMOISV'; 		break;
								case 'TRIMV' :			s = 'NUMEROMOISV';		break;
								case 'MOISV' :			s = 'NUMEROMOISV';		break;
								case 'NUMEROMOISV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROTRIMV' :	s = 'NUMEROMOISV';		break;
								case 'SEMAINEWEV' :		s = 'NUMEROMOISV';		break;
								case 'SEMAINEANNEV' :	s = 'NUMEROMOISV';		break;
								case 'NUMEROJOURV' :	s = 'NUMEROMOISV';		break;
								case 'JOURSV' :			s = 'NUMEROMOISV';		break;
								case 'JOURV' :			s = 'NUMEROMOISV';		break;
					
								default :				
										if(SELECT.QUELLEDATE == 1) {s = 'NUMEROMOISA';			break;}
										if(SELECT.QUELLEDATE == 2) {s = 'ANNEE';			    break;}
										if(SELECT.QUELLEDATE == 3) {s = 'NUMEROMOISF';			break;}
										if(SELECT.QUELLEDATE == 4) {s = 'NUMEROMOISV';			break;}
										if(SELECT.QUELLEDATE == 5) {s = 'NUMEROMOIS';			break;}
								
							}
							return s;
							]]>
						</value>
					</ARG>
					<ARG name="GROUPBY_2" value="return '-1';" />
					<ARG name="GROUPBY_3" value="return '-1';" />
					<ARG name="DATA1" value="'NBSEJ'" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>	
			</VIEWLINK>		
			<VIEWLINK label="Comparatif" shortLabel="Comparatif" view="ACTI000063.XML" enabled="true" rowContext="false" >
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
				<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['TYPE_COMPARAISON'] = '2';
						LINKVARIABLES['DATA1'] = 'MTFAC';
						LINKVARIABLES['DATA2'] = '0';
						LINKVARIABLES['DATA3'] = '0';
						if (SELECT.QUELMONTANT == '2') {
							LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'FACVSBG') {
							//LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'ENF') {
							LINKVARIABLES['DATA1'] = 'MTENC';
						}
						if (SELECT.QUELMONTANT == 'MF-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						if (SELECT.QUELMONTANT == 'MC-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						return 'OK';
					]]></value>
				</ARGS>
				<ARG name="GROUPBY" value="return SELECT.LGROUPBY;"/>
				<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY_2;"/>
				<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_3;"/>
				<ARG name="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
				<ARG name="DATA2" value="'MTFACENC'" />
				<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
				<ARG name="DATA4" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FACNBJ';} else {return 'FAVNBSHC';}"/>
				<ARG name="DATA5" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVDMS';} else {return 'FAVMTTHC';}"/>					
				<ARG name="DATA6"   value="return '0';" />
				<ARG name="DATA7"   value="return '0';" />
				<ARG name="DATA8"   value="return '0';" />
				<ARG name="DATA9"   value="return '0';"/>
				<ARG name="DATA10" 	value="return '0';"/>			
				<ARG name="DATA011" value="return '0';" />
				<ARG name="DATA012" value="return '0';" />
				<ARG name="DATA013" value="return '0';" />
				<ARG name="DATA014" value="return '0';"/>
				<ARG name="DATA015" value="return '0';"/>
				<ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>
			<VIEWLINK label="Comparatif mensuel" shortLabel="Comp. Mensuel" view="ACTI000156.XML" enabled="true" rowContext="false" buttonType="COMPARATIF" >
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
				<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['TYPE_COMPARAISON'] = '2';
						LINKVARIABLES['DATA1'] = 'MTFAC';
						LINKVARIABLES['DATA2'] = '0';
						LINKVARIABLES['DATA3'] = '0';
						if (SELECT.QUELMONTANT == '2') {
							LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'FACVSBG') {
							//LINKVARIABLES['DATA1'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'ENF') {
							LINKVARIABLES['DATA1'] = 'MTENC';
						}
						if (SELECT.QUELMONTANT == 'MF-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						if (SELECT.QUELMONTANT == 'MC-ENF') {
							LINKVARIABLES['DATA1'] = 'MTFACENC';
						}
						return 'OK';
					]]></value>
				</ARGS>
				<ARG name="GROUPBY" value="return SELECT.LGROUPBY;"/>
				<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY_2;"/>
				<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_3;"/>
				<ARG name="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
				<ARG name="DATA2" value="'MTFACENC'" />
				<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
				<ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>
			<VIEWLINK label="Effets" shortLabel="Effets"  view="ACTI000141.XML" rowContext="false" enabled="true" buttonType="COMPARATIF" >
					<ARG name="ALIAS_PERIODE" value="return '-1';" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
                    <ARG name="PERIODE" value="return VIEW.COMP_PERIODE;" />
					<ARG name="GROUPBY" value="return SELECT.LGROUPBY;" />
					<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY_2;" />
					<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_3;" />
					<ARG name="DATA01" value="'1.1'" />
                    <ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>			
			<VIEWLINK label="Evolution comparative" shortLabel="Evol. comparative"   rowContext="false" buttonType="VIEWLINK_EVO_COMP" >			
				<VIEWITEM label="Standard" shortLabel="Evolution comparative" view="ACTI000154.XML" rowContext="false" enabled="true" buttonType="VIEWLINK_EVO_COMP">
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
					<ARGS name="SPEC">
						<value><![CDATA[
							LINKVARIABLES['TYPE_COMPARAISON'] = '2';
							LINKVARIABLES['DATA1'] = 'MTFAC';
							LINKVARIABLES['DATA2'] = '0';
							LINKVARIABLES['DATA3'] = '0';
							if (SELECT.QUELMONTANT == '2') {
								LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'FACVSBG') {
								//LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'ENF') {
								LINKVARIABLES['DATA1'] = 'MTENC';
							}
							if (SELECT.QUELMONTANT == 'MF-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							if (SELECT.QUELMONTANT == 'MC-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							return 'OK';
						]]></value>
					</ARGS>
					<ARG name="GROUPBY" value="return SELECT.LGROUPBY;" />
					<ARG name="GROUPBY_2" value="if (SELECT.QUELLEDATE == '1' ) {return 'NUMEROMOISA';}
												 if (SELECT.QUELLEDATE == '2' ) {return 'NUMEROMOIS';}
												 if (SELECT.QUELLEDATE == '3'  ) {return 'NUMEROMOISF';}
												 if (SELECT.QUELLEDATE == '4'  ) {return 'NUMEROMOISV';}
						" />
					<ARG name="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
					<ARG name="DATA4" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FACNBJ';} else {return 'FAVNBSHC';}"/>
					<ARG name="DATA5" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVDMS';} else {return 'FAVMTTHC';}"/>					
					<ARG name="DATA6"   value="return '0';" />
					<ARG name="DATA7"   value="return '0';" />
					<ARG name="DATA8"   value="return '0';" />
					<ARG name="DATA9"   value="return '0';"/>
					<ARG name="DATA10" 	value="return '0';"/>			
					<ARG name="DATA011" value="return '0';" />
					<ARG name="DATA012" value="return '0';" />
					<ARG name="DATA013" value="return '0';" />
					<ARG name="DATA014" value="return '0';"/>
					<ARG name="DATA015" value="return '0';"/>
					<ARG name="GROUPBY_TAB" value="return 'TAB';" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>	
				<VIEWITEM label="Détaillée" shortLabel="Evol. comparative" view="ACTI000154.XML" rowContext="false" enabled="true" buttonType="COMPARATIF">
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
					<ARGS name="SPEC">
						<value><![CDATA[
							LINKVARIABLES['TYPE_COMPARAISON'] = '2';
							LINKVARIABLES['DATA1'] = 'MTFAC';
							LINKVARIABLES['DATA2'] = '0';
							LINKVARIABLES['DATA3'] = '0';
							if (SELECT.QUELMONTANT == '2') {
								LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'FACVSBG') {
								//LINKVARIABLES['DATA1'] = 'MTCPT';
							}
							if (SELECT.QUELMONTANT == 'ENF') {
								LINKVARIABLES['DATA1'] = 'MTENC';
							}
							if (SELECT.QUELMONTANT == 'MF-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							if (SELECT.QUELMONTANT == 'MC-ENF') {
								LINKVARIABLES['DATA1'] = 'MTFACENC';
							}
							return 'OK';
						]]></value>
					</ARGS>
					<ARG name="GROUPBY" value="return SELECT.LGROUPBY;" />
					<ARG name="GROUPBY_2" value="if (SELECT.QUELLEDATE == '1' ) {return 'NUMEROMOISA';}
												 if (SELECT.QUELLEDATE == '2' ) {return 'NUMEROMOIS';}
												 if (SELECT.QUELLEDATE == '3'  ) {return 'NUMEROMOISF';}
												if (SELECT.QUELLEDATE == '4'  ) {return 'NUMEROMOISV';}
						" />
					<ARG name="DATA1" value="if(SELECT.QUELLEDATE == '1') {return 'FAVEMC';} else {return 'FAVNBS';}" />
					<ARG name="DATA2" value="'MTFACENC'" />
					<ARG name="DATA3" value="if(SELECT.QUELLEDATE == '1') {return 'MMFPVEMC';} else {return 'MMTFACENC';}" />
					<ARG name="DATA4" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FACNBJ';} else {return 'FAVNBSHC';}"/>
					<ARG name="DATA5" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVDMS';} else {return 'FAVMTTHC';}"/>
					<ARG name="DATA6" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVNBSHC';} else {return 'FAVCAMHC';}"/>
					<ARG name="DATA7" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVMTTHC';} else {return 'FAVNBSHJ';}"/>
					<ARG name="DATA8" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVCAMHC';} else {return 'FAVMTTHJ';}"/>
					<ARG name="DATA9" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVNBSHJ';} else {return 'FAVCAMHJ';}"/>
					<ARG name="DATA10" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVMTTHJ';} else {return 'FAVNBSHA';}"/>
					<ARG name="DATA011" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVCAMHJ';} else {return 'FAVMTTHA';}"/>
					<ARG name="DATA012" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVNBSHA';} else {return 'FAVCAMAU';}"/>
					<ARG name="DATA013" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVMTTHA';} else {return '0';}"/>
					<ARG name="DATA014" value="if(SELECT.QUELLEDATE == '1' || SELECT.QUELLEDATE == '2') {return 'FAVCAMAU';} else {return '0';}"/>
					<ARG name="GROUPBY_TAB" value="return 'TAB';" />
					<ARG name="TYPE_COMPARAISON" value="'2'" />
				</VIEWITEM>	
			</VIEWLINK>
			<VIEWLINK label="Evolution" shortLabel="Evolution" view="ACTI000062.XML" enabled="true" rowContext="false" componentName="PERIODICITE_VIEWLINK" component2Name="PRESTATIONS_BASE_VIEWLINK">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['TYPE_COMPARAISON'] = '2';
						LINKVARIABLES['DATA'] = 'MTFAC';
						if (SELECT.QUELMONTANT == '2') {
							LINKVARIABLES['DATA'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'FACVSBG') {
							//LINKVARIABLES['DATA'] = 'MTCPT';
						}
						if (SELECT.QUELMONTANT == 'ENF') {
							LINKVARIABLES['DATA'] = 'MTENC';
						}
						if (SELECT.QUELMONTANT == 'MF-ENF') {
							LINKVARIABLES['DATA'] = 'MTFACENC';
						}
						if (SELECT.QUELMONTANT == 'MC-ENF') {
							LINKVARIABLES['DATA'] = 'MTFACENC';
						}
						return 'OK';
					]]></value>
				</ARGS>
				<ARG name="GROUPBY" value="return SELECT.LGROUPBY;" />
				<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY_2;" />
				<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_3;" />
				<ARG name="DATA" value="return 'MTFACENC';" />   
				<ARG name="PERIODICITE" value="'MONTH'" />   
			</VIEWLINK>	
			<VIEWLINK label="Analyse croisée" shortLabel="Analyse croisée" view="ACTI000082.XML" enabled="true" rowContext="false" buttonType="ANALYSE_CROISEE" >
				<ARG name="ALIAS_PERIODE" value="return '-1'"/>
				<ARG name="PERIODE" value="return SELECT.PERIODE;"/>
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;"/> 
				<ARG name="DATA" value="'MTFACENC';"/>
				<ARG name="COLUMNBY" value="'NUMEROMOIS'"/>
					<ARG name="GROUPBY">
						<value>
							<![CDATA[			
								if(SELECT.QUELLEDATE == '1') {s = 'ANNEEA';}
								if(SELECT.QUELLEDATE == '2') {s = 'ANNEE';}
								if(SELECT.QUELLEDATE == '3') {s = 'ANNEEF';}
								if(SELECT.QUELLEDATE == '4') {s = 'ANNEEV';}
								if(SELECT.QUELLEDATE == '5') {s = 'ANNEE';}
							return s;
							]]>
						</value>
					</ARG>
				<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY;" />
				<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_2;" />
				<ARG name="GROUPBY_TAB" value="'TAB'" />
				<ARG name="COLUMNBYCOUNT" value="'12'" />
			</VIEWLINK>			
			<VIEWLINK label="Analyse"  shortLabel="Analyse"  rowContext="false" buttonType="ANALYSE_VIEWLINK">
				<VIEWITEM label="Analyse" shortLabel="Analyse"  view="ACTI000018.XML" rowContext="false" enabled="true" buttonType="ANALYSE_VIEWLINK" componentName="PRESTATIONS_BASE_VIEWLINK">
					<ARG name="ALIAS_PERIODE" value="return '-1'" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';" />
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
					<ARG name="GROUPBY" value="return SELECT.LGROUPBY;" />
					<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY_2;" />
					<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_3;" />
					<ARG name="GROUPBY_TAB" value="'TAB'" />
				</VIEWITEM>					
				<VIEWITEM label="Analyse paramètrable" shortLabel="Analyse"  view="ACTI000165.XML" rowContext="false" enabled="true" buttonType="ANALYSE_VIEWLINK" componentName="PRESTATIONS_BASE_VIEWLINK">
					<ARG name="ALIAS_PERIODE" value="return '-1'" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01'" />
					<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
					<ARG name="GROUPBY" value="return SELECT.LGROUPBY;"/>
					<ARG name="GROUPBY_2" value="return SELECT.LGROUPBY_2;"/>
					<ARG name="GROUPBY_3" value="return SELECT.LGROUPBY_3;"/>
					<ARG name="LS_DATA" value="return '-1';"/>
					<ARG name="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="DATA015" value="return '0'" />
					<ARG name="GROUPBY_TAB" value="'TAB'" />
				</VIEWITEM>	
			</VIEWLINK>	
			<VIEWLINK label="Liste des séjours" shortLabel="Séjours" view="ACTI000016.XML" componentName="PRESTATIONS_BASE_VIEWLINK" component2Name="ETA_DOS_BASE_VIEWLINK">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />
				<ARG name="GROUPBY_2" value="return '-1';"/>
				<ARG name="QUELLEDATE" value="return SELECT.QUELLEDATE;" /> 
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Répartition mensuelle" label="Répartition mensuelle" multiTab="true">
			<CHART title="Evolution" type="lineChart" serieIsCategory="true" fromTotal="false" maxItems="5" maxItemsSortOn="N" sortField="N" sortSeq="D"   condition="Number(ROW.LVL) == 1">
				<CATEGORY field="TXT" type="Char"/>
				<SERIE field="N1" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null"/>
				<SERIE field="N2" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null"/>
				<SERIE field="N3" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null"/>
				<SERIE field="N4" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null"/>
				<SERIE field="N5" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null"/>
				<SERIE field="N6" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null"/>
				<SERIE field="N7" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null"/>
				<SERIE field="N8" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null"/>
				<SERIE field="N9" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null"/>
				<SERIE field="N10" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null"/>
				<SERIE field="N11" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null"/>
				<SERIE field="N12" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null"/>
				<SERIE field="N13" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null"/>
				<SERIE field="N14" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null"/>
				<SERIE field="N15" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null"/>
				<SERIE field="N16" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null"/>
				<SERIE field="N17" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null"/>
				<SERIE field="N18" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null"/>
				<SERIE field="N19" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null"/>
				<SERIE field="N20" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null"/>
			</CHART>
			<CHART title="Comparatif (10 premiers)" type="pieChart" maxItems="10" maxItemsSortOn="N" maxItemsSortSeq="D" sortField="TXT" sortSeq="A">
				<CATEGORY field="TXT" type="Char"/>
				<SERIE field="N" displayName="SELECT.DATA_LABEL" displayNameCalc="true"/>
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="40" 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" 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="N" width="80" visible="true" type="Number" outputFormat="= SELECT.DATA2" headerText="Total" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="N_P" type="Number" headerText="% / Total" width="40" outputFormat="0%" textAlign="right" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
					<CALC formula="ROW.N / TOTALROW.N * 100"/>
				</COLUMN>
				<COLUMN description=" " dataField="N1" width="70" visibleCondition="VIEW.COLH1 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH1" columnData="= VIEW.COLI1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N2" width="70" visibleCondition="VIEW.COLH2 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH2" columnData="= VIEW.COLI2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N3" width="70" visibleCondition="VIEW.COLH3 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH3" columnData="= VIEW.COLI3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N4" width="70" visibleCondition="VIEW.COLH4 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH4" columnData="= VIEW.COLI4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N5" width="70" visibleCondition="VIEW.COLH5 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH5" columnData="= VIEW.COLI5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N6" width="70" visibleCondition="VIEW.COLH6 != null" type="Number" selectable="true" outputFormat="= SELECT.DATA2" fixed="false" headerText="VIEW.COLH6" columnData="= VIEW.COLI6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N7" width="70" visibleCondition="VIEW.COLH7 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH7" columnData="= VIEW.COLI7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N8" width="70" visibleCondition="VIEW.COLH8 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH8" columnData="= VIEW.COLI8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N9" width="70" visibleCondition="VIEW.COLH9 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH9" columnData="= VIEW.COLI9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N10" width="70" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH10" columnData="= VIEW.COLI10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N11" width="70" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH11" columnData="= VIEW.COLI11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N12" width="70" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH12" columnData="= VIEW.COLI12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N13" width="70" visibleCondition="VIEW.COLH13 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH13" columnData="= VIEW.COLI13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N14" width="70" visibleCondition="VIEW.COLH14 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH14" columnData="= VIEW.COLI14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N15" width="70" visibleCondition="VIEW.COLH15 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH15" columnData="= VIEW.COLI15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N16" width="70" visibleCondition="VIEW.COLH16 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH16" columnData="= VIEW.COLI16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N17" width="70" visibleCondition="VIEW.COLH17 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH17" columnData="= VIEW.COLI17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N18" width="70" visibleCondition="VIEW.COLH18 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH18" columnData="= VIEW.COLI18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N19" width="70" visibleCondition="VIEW.COLH19 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH19" columnData="= VIEW.COLI19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN description=" " dataField="N20" width="70" visibleCondition="VIEW.COLH20 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH20" columnData="= VIEW.COLI20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
