<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="RH000016" 
	label="RH. Analyse croisée de la paie" 
	title="= SELECT.DATA_LABEL + ' par ' +  SELECT.GROUPBY_LABEL + ' de ' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL " 
	database="iCTI" 
	swf="*CTI_view1" 
	globals="RH_globals.XML" 
	componentsFile="RH_components.XML" 
	softCode="iCTI_rh"
	dboptimizer="RH_dboptimizer.XML"
	helpDokuWIkiDir="rh:vues:historique_de_paie" helpDokuWIkiFile="rh000016"  helpFile=""
>	
	
	<VIEWPROPERTIES componentName="PROPERTIES_PAIE"/>
	<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
	<VIEWPROPERTIES>
		<PROPERTY name="TDATA">
			<value><![CDATA[[EVAL 
			// <?
								switch ('[DATA]') {
								case 'NBSAL':
									return "count(DISTINCT v_rh_view_1.salarie_id)";
									break;
								case 'NBRUB':
									return "count(DISTINCT v_rh_view_1.rubrique_id)";
									break;
								case 'NBHP':
									return "SUM(v_rh_view_1.heures_payees)";
									break;								
                                case 'NBHC':
									return "SUM(v_rh_view_1.heures_contrat)";
									break;
                                case 'EFFPHY':
									return "count(DISTINCT case when v_rh_view_1.heures_contrat > 0 or v_rh_view_1.heures_payees > 0 then v_rh_view_1.salarie_id else null end)";
									break;
								case 'NBETPC':
									return "base.cti_division(SUM(v_rh_view_1.etp_contrat), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))";
									break;								
                                case 'NBETP':
									return "base.cti_division(SUM(v_rh_view_1.etp_paye), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))";
									break;
								case 'NBETPT':
									return "base.cti_division(SUM(v_rh_view_1.etp_travaille), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))";
									break;
								case 'NBHT':
									return "SUM(v_rh_view_1.heures_travaillees)";
									break;
								case 'MTMASSE':
									return 'SUM(v_rh_view_1.montant_masse_salariale)';
									break;
								case 'MTHORMOYCHAR':
									return 'base.cti_division(SUM(v_rh_view_1.montant_masse_salariale), SUM(v_rh_view_1.heures_payees))';
									break;
								case 'MTMASSEMOY':
									return "base.cti_division(SUM(v_rh_view_1.montant_masse_salariale), base.cti_division(SUM(v_rh_view_1.etp_paye), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date)))";
									break;
                                case 'MTMASSEMAN':
                                    return "base.cti_division(SUM(v_rh_view_1.montant_masse_salariale), SUM(v_rh_view_1.etp_paye))";
									break;
								case 'MTMASSEPCT':
									return "base.cti_division(base.cti_division(SUM(v_rh_view_1.montant_net_a_payer_salarie), SUM(v_rh_view_1.etp_paye)), base.cti_division(SUM(v_rh_view_1.montant_masse_salariale), base.cti_division(SUM(v_rh_view_1.etp_paye), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date)))) * 100";
									break;
								case 'MTNETAPAYERMOY' :
									return "base.cti_division(SUM(v_rh_view_1.montant_net_a_payer_salarie), SUM(v_rh_view_1.etp_paye))";
									break;
								case 'MTBRUT':
									return 'SUM(v_rh_view_1.montant_brut)';
									break;
								case 'MTBRUTMOY':
									return "base.cti_division(SUM(v_rh_view_1.montant_brut), SUM(v_rh_view_1.etp_paye))";
									break;
								case 'MTBRUTAVANTAGE':
									return 'SUM(v_rh_view_1.montant_brut + v_rh_view_1.montant_avantage_nature)';
									break;
								case 'MTAVANTAGE':
									return 'SUM(v_rh_view_1.montant_avantage_nature)';
									break;
								case 'MTFRAISIMPOS':
									return 'SUM(v_rh_view_1.montant_frais_imposables)';
									break;
								case 'MTODNETSALARIE':
									return 'SUM(v_rh_view_1.montant_od_net_salarie)';
									break;
								case 'MTODNETPATRONALE':
									return 'SUM(v_rh_view_1.montant_od_net_patronale)';
									break;
								case 'MTCOTSALARIE':
									return 'SUM(v_rh_view_1.montant_cotisation_salarie)';
									break;
								case 'MTCOTPATRONALE':
									return 'SUM(v_rh_view_1.montant_cotisation_patronale)';
									break;
								case 'MTNETIMPOSABLE':
									return 'SUM(v_rh_view_1.montant_net_imposable_salarie)';
									break;
								case 'MTNETAPAYER':
									return 'SUM(v_rh_view_1.montant_net_a_payer_salarie)';
									break;
								case 'BASE':
									return 'SUM(v_rh_view_1.base)';
									break;
								case 'NOMBRE':
									return 'SUM(v_rh_view_1.nombre)';
									break;								
                                case 'NCDI':
									return "count(DISTINCT CASE WHEN type_contrat_section_code[9] = 'CDI' THEN contrat_id ELSE null END)";
									break;                                
                                case 'NCDD':
									return "count(DISTINCT CASE WHEN type_contrat_section_code[9] = 'CDD' THEN contrat_id ELSE null END)";
									break;                                
                                case 'NSALH':
									return "count(DISTINCT CASE WHEN v_rh_view_1.sexe_code = 'M' THEN v_rh_view_1.salarie_id ELSE null END)";
									break;                                
                                case 'NSALF':
									return "count(DISTINCT CASE WHEN v_rh_view_1.sexe_code IS DISTINCT FROM 'M' THEN v_rh_view_1.salarie_id ELSE null END)";
									break;                                
                                case 'AGEMOYDJ':
									return "base.cti_avg_distinct_on(DISTINCT ARRAY[salarie_id::numeric, age_id::numeric])";
									break;                                
                                case 'NSALDJ':
									return "count(DISTINCT CASE
                                                WHEN 1=1
                                                    AND v_rh_view_1.present_fin_mois = 1
                                                    AND to_char(v_rh_view_1.date_fin_activite, 'YYYYMM') = to_char('[TOPERIODE]'::date, 'YYYYMM')
                                                THEN v_rh_view_1.salarie_id 
                                                ELSE null 
                                                END)";
									break;
								case 'NBPROVISIONS':
									return 'SUM(v_rh_view_1.nombre_provisions)';
								case 'MTPROVISIONS':
									return 'SUM(v_rh_view_1.montant_provisions)';
									break;					
								case 'MTMASSEPROV':
									return 'SUM(v_rh_view_1.montant_masse_salariale_provisionnee)';
									break;
								default:
									return 'SUM(v_rh_view_1.montant_masse_salariale)';
								}
				// ?>
					EVAL]]]></value>

		</PROPERTY>
		<PROPERTY name="CDATA">
			<value><![CDATA[[EVAL 
			// <?
								switch ('[DATA]') {
								case 'NBSAL':
									return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.salarie_id ELSE NULL END)";
									break;
								case 'NBRUB':
									return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.rubrique_id ELSE NULL END)";
									break;
								case 'NBHP':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.heures_payees ELSE NULL END)";
									break;
                                case 'EFFPHY':
									return "count(DISTINCT case when COLUMNCHECKSEQUENCE and (v_rh_view_1.heures_contrat > 0 or v_rh_view_1.heures_payees > 0) then v_rh_view_1.salarie_id else null end)";
									break;
                                case 'NBHC':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.heures_contrat ELSE NULL END)";
									break;
								case 'NBETP':
									return "
										base.cti_division(
											SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE 0 END),
											base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))
									";								
                                case 'NBETPC':
									return "
										base.cti_division(
											SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_contrat ELSE 0 END),
											base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))
									";
									break;
								case 'NBETPT':
									return "
										base.cti_division(
											SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_travaille ELSE 0 END),
											base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))
									";
									break;
								case 'NBHT':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.heures_travaillees ELSE NULL END)";
									break;
								case 'MTMASSE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_masse_salariale ELSE NULL END)';
									break;
								case 'MTHORMOYCHAR':
									return 'base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_masse_salariale ELSE NULL END), SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.heures_payees ELSE NULL END))';
									break;
								case 'MTMASSEMOY':
									return "base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_masse_salariale ELSE NULL END), base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE NULL END), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date)))";
									break;
                                case 'MTMASSEMAN':
                                    return "base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_masse_salariale ELSE NULL END), SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE NULL END))";
									break;
								case 'MTMASSEPCT':
									return "base.cti_division(base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_net_a_payer_salarie ELSE NULL END), SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE NULL END)), base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_masse_salariale ELSE NULL END), base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE NULL END), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date)))) * 100";
									break;
								case 'MTNETAPAYERMOY' :
									return "base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_net_a_payer_salarie ELSE NULL END), SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE NULL END))";
									break;
								case 'MTBRUT':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_brut ELSE NULL END)';
									break;
								case 'MTBRUTMOY':
									return "base.cti_division(SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_brut ELSE NULL END), SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN etp_paye ELSE NULL END))";
									break;
								case 'MTBRUTAVANTAGE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_brut + v_rh_view_1.montant_avantage_nature ELSE NULL END)';
									break;
								case 'MTAVANTAGE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_avantage_nature ELSE NULL END)';
									break;
								case 'MTFRAISIMPOS':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_frais_imposables ELSE NULL END)';
									break;
								case 'MTODNETSALARIE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_od_net_salarie ELSE NULL END)';
									break;
								case 'MTODNETPATRONALE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_od_net_patronale ELSE NULL END)';
									break;
								case 'MTCOTSALARIE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_cotisation_salarie ELSE NULL END)';
									break;
								case 'MTCOTPATRONALE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_cotisation_patronale ELSE NULL END)';
									break;
								case 'MTNETIMPOSABLE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_net_imposable_salarie ELSE NULL END)';
									break;
								case 'MTNETAPAYER':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_net_a_payer_salarie ELSE NULL END)';
									break;
								case 'BASE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.base ELSE NULL END)';
									break;
								case 'NOMBRE':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.nombre ELSE NULL END)';
									break;
                                case 'NCDI':
									return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN type_contrat_section_code[9] = 'CDI' THEN contrat_id ELSE null END ELSE null END)";
									break;                                
                                case 'NCDD':
									return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN type_contrat_section_code[9] = 'CDD' THEN contrat_id ELSE null END ELSE null END)";
									break;
                                case 'NSALH':
									return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN  CASE WHEN v_rh_view_1.sexe_code = 'M' THEN v_rh_view_1.salarie_id ELSE null END ELSE null END)";
									break;                                
                                case 'NSALF':
									return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN v_rh_view_1.sexe_code IS DISTINCT FROM 'M' THEN v_rh_view_1.salarie_id ELSE null END ELSE null END)";
									break;
                                case 'AGEMOYDJ':
									return "base.cti_avg_distinct_on(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN ARRAY[salarie_id::numeric, age_id::numeric] else null end)";
									break;
                                case 'NSALDJ':
									return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN
                                                CASE WHEN 1=1
                                                    AND v_rh_view_1.present_fin_mois = 1
                                                    AND to_char(v_rh_view_1.date_fin_activite, 'YYYYMM') = to_char('[TOPERIODE]'::date, 'YYYYMM')
                                                THEN v_rh_view_1.salarie_id 
                                                ELSE null 
                                                END
                                                ELSE null 
                                                END)";
									break;
								case 'NBPROVISIONS':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.nombre_provisions ELSE NULL END)';
									break;
								case 'MTPROVISIONS':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_provisions ELSE NULL END)';
									break;
								case 'MTMASSEPROV':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_masse_salariale_provisionnee ELSE NULL END)';
									break;
								default:
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.montant_masse_salariale ELSE NULL END)';
								}
					// ?>
					EVAL]]]></value>
		</PROPERTY>
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse" displayText="">
		<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="" UI="combo" tree="true" width="200" default="2010-01-01" globalListProvider="PERIODE_DEBUT" />
			<FIELD name="TOPERIODE" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN" />
		</GROUP>
		<GROUP>
			<FIELD name="DATA" tree="true" label="Données" UI="combo" default="MTMASSE" width="400" printable="false">			
				<OPTION label="DATA_HISTO_PAIE" data="" globalListProvider="DATA_HISTO_PAIE"/>
			</FIELD>
		</GROUP>
		<GROUP label="Colonnes">
			<FIELD name="COLUMNBY" label="" UI="combo" width="250" default="RUP" tree="true">
				<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
				<OPTION label="Paie" data="RUP" treeLevel="1" globalListProvider="PAIE_GROUPBY"/>
				<OPTION label="[DICT.RH.SALARIE#1]" data="SAL" treeLevel="1" globalListProvider="SALARIE_GROUPBY"/>
				<OPTION label="[DICT.RH.CONTRAT#1]" data="CNT" treeLevel="1" globalListProvider="CONTRAT_GROUPBY"/>
				<OPTION label="Temporel" data="MOIACT" treeLevel="1" globalListProvider="TEMPOREL_PAIE_GROUPBY"/>
			</FIELD>
			<FIELD name="COLUMNBYCOUNT" label="Nombre" UI="combo" default="10" tree="false">
				<OPTION label="2" data="2"/>
				<OPTION label="3" data="3"/>
				<OPTION label="4" data="4"/>
				<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 label="Regroupement">
			<FIELD name="GROUPBY" label="" width="250" UI="combo" default="RUP" tree="true" >
				<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
				<OPTION label="Paie" data="RUP" treeLevel="1" globalListProvider="PAIE_GROUPBY"/>
				<OPTION label="[DICT.RH.SALARIE#1]" data="SAL" treeLevel="1" globalListProvider="SALARIE_GROUPBY"/>
				<OPTION label="[DICT.RH.CONTRAT#1]" data="CNT" treeLevel="1" globalListProvider="CONTRAT_GROUPBY"/>
				<OPTION label="Temporel" data="MOIACT" treeLevel="1" globalListProvider="TEMPOREL_PAIE_GROUPBY"/>
				<OPTION label="Référentiel SAE" data="REFERENTIEL_SAE" treeLevel="1" globalListProvider="REFERENTIEL_SAE_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 label="">
			<FIELD name="GROUPBY_2" label="" width="250" UI="combo" default="-1" tree="true" >
				<OPTION label="Pas de second niveau" data="-1"/>
				<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
				<OPTION label="Paie" data="RUP" treeLevel="1" globalListProvider="PAIE_GROUPBY"/>
				<OPTION label="[DICT.RH.SALARIE#1]" data="SAL" treeLevel="1" globalListProvider="SALARIE_GROUPBY"/>
				<OPTION label="[DICT.RH.CONTRAT#1]" data="CNT" treeLevel="1" globalListProvider="CONTRAT_GROUPBY"/>
				<OPTION label="Temporel" data="MOIACT" treeLevel="1" globalListProvider="TEMPOREL_PAIE_GROUPBY"/>
				<OPTION label="Référentiel SAE" data="REFERENTIEL_SAE" treeLevel="1" globalListProvider="REFERENTIEL_SAE_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="GROUPBY_3" label="" width="250" UI="combo" default="-1" tree="true" >
				<OPTION label="Pas de troisième niveau" data="-1"/>
				<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
				<OPTION label="Paie" data="RUP" treeLevel="1" globalListProvider="PAIE_GROUPBY"/>
				<OPTION label="[DICT.RH.SALARIE#1]" data="SAL" treeLevel="1" globalListProvider="SALARIE_GROUPBY"/>
				<OPTION label="[DICT.RH.CONTRAT#1]" data="CNT" treeLevel="1" globalListProvider="CONTRAT_GROUPBY"/>
				<OPTION label="Temporel" data="MOIACT" treeLevel="1" globalListProvider="TEMPOREL_PAIE_GROUPBY"/>
				<OPTION label="Référentiel SAE" data="REFERENTIEL_SAE" treeLevel="1" globalListProvider="REFERENTIEL_SAE_GROUPBY"/>
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_SALCNT_SOUSSELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PAIE_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SALARIES_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_CONTRATS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_REFERENTIEL_SAE_SELECTIONS"/>
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_HP_X" optimizer2="V_ALL_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]}
						COLUMNBYOID{[VIEW.COLUMNBY_OID_FIELD],, [VIEW.COLUMNBY_COD_FIELD] ,, [VIEW.COLUMNBY_TXT_FIELD],, [VIEW.TDATA] ,, [COLUMNBYCOUNT]}
						SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						OPTIONS{NOTZERO=1}
						ORDERBY{indicateurs[1]}
						INDICATORS{[VIEW.TDATA],}	
						INDICATORS_COLUMNS{[VIEW.CDATA], }
					FROM #V_HP_X##V_ALL_X#
					WHERE v_rh_view_1.date_paie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
						[VIEW.SALARIES_SELECT]
						[VIEW.CONTRATS_SELECT]
						[VIEW.REFERENTIEL_SAE_SELECT]
						
						[VIEW.PAIE_SELECT]

				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="SORT" /><!-- colonne exploitée pour le mécanisme de tri uniquement ORDERBY{indicateur[7]} -->
					<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>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
            <VIEWLINK label="(&#8721;) Dernier Mois/Année " shortLabel="Mois/Année" view="RH000017.XML" rowContext="false" buttonType="VIEWLINKPOPUP_RH">
				<VIEWITEM  label="Dernière année"  shortLabel="derniere  année"  view="RH000017.XML" enabled="true" rowContext="false" buttonType="COMPARATIF" >
					<ARG name="ALIAS_PERIODE" value="return '-1';" />
					<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>
					<ARG name="TOPERIODE" value=" return SELECT.TOPERIODE;"/>
					<ARG name="GROUPBY" value="return 'MCAL';"/>
                    <ARG name="DATA1" value="'NBSAL'" />
                    <ARG name="DATA2" value="'MTMASSE'" />
                    <ARG name="DATA3" value="'MTMASSEMOY'" />
                    <ARG name="DATA4" value="'NBETP'" />
                    <ARG name="DATA5" value="'MTBRUT'" />
                    <ARG name="DATA6" value="'0'" />
                    <ARG name="DATA7" value="'0'" />
                    <ARG name="DATA8" value="'0'" />
                    <ARG name="DATA9" value="'0'" />
                    <ARG name="DATA10" value="'0'" />
                    <ARG name="DATA011" value="'0'" />
                    <ARG name="DATA012" value="'0'" />
                    <ARG name="DATA013" value="'0'" />
                    <ARG name="DATA014" value="'0'" />
                    <ARG name="DATA015" value="'0'" />
					<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="RH000115.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="TOPERIODE" value=" return SELECT.TOPERIODE;"/>
					<ARG name="GROUPBY" value="return 'MCAL';"/>
					<ARG name="LGROUPBY" value="SELECT.GROUPBY;"/>
					<ARG name="LGROUPBY_2" value="SELECT.GROUPBY_2;"/>
                    <ARG name="DATA1" value="'MTMASSE'" />
                    <ARG name="DATA2" value="'MTBRUT'" />                   
					<ARG name="TYPE_COMPARAISON" value="'2'" />                   
                </VIEWITEM>	
			</VIEWLINK>
			<VIEWLINK label="Comparatif" shortLabel="Comparatif" view="RH000017.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="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
                <ARG name="GROUPBY" value="return SELECT.GROUPBY_2;" />
                <ARG name="GROUPBY_2" value="return SELECT.GROUPBY_3;" />
                <ARG name="GROUPBY_3" value="return '-1';" />
				<ARG name="PRESENTATION" value="return '1';" />
				<ARG name="DATA1" value="'NBSAL'" />
				<ARG name="DATA2" value="'MTMASSE'" />
				<ARG name="DATA3" value="'MTMASSEMOY'" />
				<ARG name="DATA4" value="'NBETP'" />
				<ARG name="DATA5" value="'MTBRUT'" />
				<ARG name="DATA6" value="'0'" />
				<ARG name="DATA7" value="'0'" />
				<ARG name="DATA8" value="'0'" />
				<ARG name="DATA9" value="'0'" />
				<ARG name="DATA10" value="'0'" />
				<ARG name="DATA011" value="'0'" />
				<ARG name="DATA012" value="'0'" />
				<ARG name="DATA013" value="'0'" />
				<ARG name="DATA014" value="'0'" />
				<ARG name="DATA015" value="'0'" />
                <ARG name="TYPE_COMPARAISON" value="'2'" />
			</VIEWLINK>			
            <VIEWLINK label="Comparatif mensuel" shortLabel="Comp. Mensuel" view="RH000112.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="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
                <ARG name="GROUPBY" value="return SELECT.GROUPBY_2;"/>
                <ARG name="GROUPBY_2" value="return SELECT.GROUPBY_3;"/>
                <ARG name="GROUPBY_3" value="return '-1';"/>
				<ARG name="DATA1" value="'NBSAL'"/>
				<ARG name="DATA2" value="'MTMASSE'"/>
				<ARG name="DATA3" value="'NBETP'"/>
                <ARG name="TYPE_COMPARAISON" value="'2'"/>
			</VIEWLINK>
            <VIEWLINK label="Effets" shortLabel="Effets" view="RH000111.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="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
                <ARG name="GROUPBY" value="return SELECT.GROUPBY_2;" />
                <ARG name="GROUPBY_2" value="return SELECT.GROUPBY_3;" />
                <ARG name="GROUPBY_3" value="return '-1';" />
				<ARG name="DATA01" value="'NBETP'" />
				<ARG name="DATA02" value="'MSAL'" />
				<ARG name="DATA02" value="'MSAL'" />
			</VIEWLINK>
			<VIEWLINK label="Evolution comparative" shortLabel="Evol. comparative" view="RH000114.XML" rowContext="false" buttonType="VIEWLINK_EVO_COMP_RH" >			
				<VIEWITEM label="Standard" shortLabel="Evolution comparative" view="RH000114.XML" rowContext="false" enabled="true" buttonType="VIEWLINK_EVO_COMP_RH">
					<ARG name="ALIAS_PERIODE" value="return '-1';" />					
                    <ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>                    
                    <ARG name="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
                    <ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
					<ARG name="GROUPBY" value="return SELECT.GROUPBY_2;" />
					<ARG name="GROUPBY_2" value="return 'MCAL';" />
                    <ARG name="DATA1" value="'NBSAL'" />
                    <ARG name="DATA2" value="'MTMASSE'" />
                    <ARG name="DATA3" value="'MTMASSEMOY'" />
                    <ARG name="DATA4" value="'NBETP'" />
                    <ARG name="DATA5" value="'MTBRUT'" />
                    <ARG name="DATA6" value="'0'" />
                    <ARG name="DATA7" value="'0'" />
                    <ARG name="DATA8" value="'0'" />
                    <ARG name="DATA9" value="'0'" />
                    <ARG name="DATA10" value="'0'" />
                    <ARG name="DATA011" value="'0'" />
                    <ARG name="DATA012" value="'0'" />
                    <ARG name="DATA013" value="'0'" />
                    <ARG name="DATA014" value="'0'" />
                    <ARG name="DATA015" value="'0'" />				
                </VIEWITEM>	
				<VIEWITEM label="Détaillée" shortLabel="Evol. comparative" view="RH000114.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_D" value="return VIEW.X_PERIODE_D;"/>
                    <ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;"/>
					<ARG name="GROUPBY" value="return SELECT.GROUPBY_2;"/>
					<ARG name="GROUPBY_2" value="return 'MCAL';"/>
                    <ARG name="DATA1" value="'NBSAL'"/>
                    <ARG name="DATA2" value="'MTMASSE'"/>
                    <ARG name="DATA3" value="'MTMASSEMOY'"/>
                    <ARG name="DATA4" value="'NBETP'"/>
                    <ARG name="DATA5" value="'MTBRUT'"/>
                    <ARG name="DATA6" value="'MTBRUTMOY'"/>
                    <ARG name="DATA7" value="'MTBRUTAVANTAGE'"/>
                    <ARG name="DATA8" value="'MTCOTSALARIE'"/>
                    <ARG name="DATA9" value="'MTCOTPATRONALE'"/>
                    <ARG name="DATA10" value="'0'"/>
                    <ARG name="DATA011" value="'0'"/>
                    <ARG name="DATA012" value="'0'"/>
                    <ARG name="DATA013" value="'0'"/>
                    <ARG name="DATA014" value="'0'"/>
                    <ARG name="DATA015" value="'0'"/>				
                </VIEWITEM>	
			</VIEWLINK>	
			<VIEWLINK label="Evolution" shortLabel="Evolution" view="RH000015.XML" enabled="true" rowContext="false" componentName="PERIODICITE_VIEWLINK" buttonType="EVOLUTION">
				<ARG name="ALIAS_PERIODE" value="return '-1';" />				
                <ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>				
                <ARG name="DATA" value="'MTMASSE'" />
                <ARG name="GROUPBY" value="return SELECT.GROUPBY_2;" />
                <ARG name="GROUPBY_2" value="return SELECT.GROUPBY_3;" />
                <ARG name="GROUPBY_3" value="return '-1';" />
                <ARG name="PERIODICITE" value="'MONTH'" />   
			</VIEWLINK>
			<VIEWLINK label="Analyse croisée" shortLabel="Analyse croisée" view="RH000016.XML" enabled="true" rowContext="false" buttonType="ANALYSE_CROISEE">
				<ARG name="ALIAS_PERIODE" value="return '-1'" />				
				<ARG name="PERIODE" value="return VIEW.X_PERIODE.substr(0,4)+'-01-01';"/>
				<ARG name="DATA" value="'MTMASSE'" />
				<ARG name="COLUMNBY" value="'MCAL'" />
				<ARG name="GROUPBY" value="'ACAL'" />
				<ARG name="GROUPBY_2" value="return SELECT.GROUPBY;" />
				<ARG name="GROUPBY_3" value="return SELECT.GROUPBY_2;" />
				<ARG name="GROUPBY_TAB" value="'TAB'" />
				<ARG name="COLUMNBYCOUNT" value="'12'" />
			</VIEWLINK>
			<VIEWLINK label="Analyse"  shortLabel="Analyse" view="RH000119.XML" rowContext="false" buttonType="ANALYSE_VIEWLINK_RH">
				<VIEWITEM label="Analyse" shortLabel="Analyse"  view="RH000119.XML" rowContext="false" enabled="true" buttonType="ANALYSE_VIEWLINK_RH" componentName="RH_VIEWLINK">
				<ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>                    
                    <ARGS name="SPEC" >
                        <value><![CDATA[
                            LINKVARIABLES['ALIAS_PERIODE'] = '-1';
                            LINKVARIABLES['GROUPBY'] = SELECT.GROUPBY_2;
                            LINKVARIABLES['GROUPBY_2'] = SELECT.GROUPBY_3;
                            LINKVARIABLES['GROUPBY_3'] = '-1';
                            LINKVARIABLES['GROUPBY_TAB'] = 'TAB';
                            return 'OK';
                        ]]></value>
                    </ARGS>                    
                </VIEWITEM>					
				<VIEWITEM label="Analyse paramètrable" shortLabel="Analyse"  view="RH000113.XML" rowContext="false" enabled="true" buttonType="ANALYSE_VIEWLINK_RH">
                    <ARG name="PERIODE" value="return SELECT.TOPERIODE.substr(0,4)+'-01-01';"/>                    
                    <ARGS name="SPEC" >
                        <value><![CDATA[
                            LINKVARIABLES['ALIAS_PERIODE'] = '-1';
                            LINKVARIABLES['GROUPBY'] = SELECT.GROUPBY_2;
                            LINKVARIABLES['GROUPBY_2'] = SELECT.GROUPBY_3;
                            LINKVARIABLES['GROUPBY_3'] = '-1';
                            LINKVARIABLES['GROUPBY_TAB'] = 'TAB';
                            LINKVARIABLES['DATA1'] = 'NBSAL';
                            LINKVARIABLES['DATA2'] = 'MTMASSE';
                            LINKVARIABLES['DATA3'] = 'MTMASSEMOY';
                            LINKVARIABLES['DATA4'] = 'NBETP';
                            LINKVARIABLES['DATA5'] = 'MTBRUT';
                            LINKVARIABLES['DATA6'] = '0';
                            LINKVARIABLES['DATA7'] = '0';
                            LINKVARIABLES['DATA8'] = '0';
                            LINKVARIABLES['DATA9'] = '0';
                            LINKVARIABLES['DATA10'] = '0';
                            LINKVARIABLES['DATA011'] = '0';
                            LINKVARIABLES['DATA012'] = '0';
                            LINKVARIABLES['DATA013'] = '0';
                            LINKVARIABLES['DATA014'] = '0';
                            LINKVARIABLES['DATA015'] = '0';
                            return 'OK';
                        ]]></value>
                    </ARGS> 				
                </VIEWITEM>	
			</VIEWLINK>
			<VIEWLINK label="Justificatif de paie" shortLabel="Justificatif de paie" view="RH000011.XML" componentName="RH_VIEWLINK" >
				<ARG name="T_DUREE_SEJOUR" value="if (SELECT.DATA == '2') {return 'DU0'}
													if (SELECT.DATA == '3') {return 'DU1'}
													if (SELECT.DATA == '1X') {return '1X'}
													if (SELECT.DATA == '4') {return 'DU2'}
													if (SELECT.DATA == '5') {return 'X'}
													if (SELECT.DATA == '6') {return 'S'}"/>
				<ARGS name="SPEC" >
					<value><![CDATA[
						LINKVARIABLES['GROUPBY_2'] = 'SAL'
						return 'OK';
					]]></value>
				</ARGS>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Analyse croisée" label="Analyse croisée" multiTab="true">
			<CHART title="Evolution" type="lineChart" serieIsCategory="true" fromTotal="false" maxItems="5" maxItemsSortOn="N" sortField="N" sortSeq="D" visibleCondition="(SELECT.GROUPBY == 'ACAL' || SELECT.GROUPBY == 'AACT') &amp;&amp; (SELECT.COLUMNBY == 'MCAL' || SELECT.COLUMNBY == 'TRIMCAL' || SELECT.COLUMNBY == 'MACT' || SELECT.COLUMNBY == 'TRIMACT')" 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="N" sortSeq="A" visibleCondition="(SELECT.GROUPBY != 'ACAL' &amp;&amp; SELECT.GROUPBY != 'AACT') || (SELECT.GROUPBY == 'ACAL' &amp;&amp; SELECT.COLUMNBY != 'MCAL' &amp;&amp; SELECT.COLUMNBY != 'TRIMCAL' &amp;&amp; SELECT.GROUPBY == 'AACT' &amp;&amp; SELECT.COLUMNBY != 'MACT' &amp;&amp; SELECT.COLUMNBY != 'TRIMACT')" condition="ROW.LVL == '1'">
				<CATEGORY field="CODTXT" type="Char"/>
				<SERIE field="N" displayName="SELECT.DATA_LABEL" displayNameCalc="true"/>
			</CHART>
			<CHART title="Répartition (Total)" type="columnChart" serieIsCategory="true" fromTotal="true" visibleCondition="(SELECT.GROUPBY != 'ACAL' &amp;&amp; SELECT.GROUPBY != 'AACT') || (SELECT.GROUPBY == 'ACAL' &amp;&amp; SELECT.COLUMNBY != 'MCAL' &amp;&amp; SELECT.COLUMNBY != 'TRIMCAL' &amp;&amp; SELECT.GROUPBY == 'AACT' &amp;&amp; SELECT.COLUMNBY != 'MACT' &amp;&amp; SELECT.COLUMNBY != 'TRIMACT')">
				<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>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="72" 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 dataField="COD" width="70" type="Char" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
				</COLUMN>
				<COLUMN dataField="CODTXT" type="Char" visible="false" totalFunction="text" otherFunction="text" calc="true">
					<CALC formula="ROW.COD + ' - ' + ROW.TXT"/>
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="200" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW"/>
				<COLUMN dataField="N" width="80" type="Number" outputFormat="=  SELECT.DATA2" headerText="SELECT.DATA_LABEL + ' Total'"  headerTextCalc="true"  textAlign="right" totalFunction="sum" otherFunction="sum"/>
				<COLUMN dataField="N_P" type="Number" headerText="% / Total" width="70" outputFormat="#,00%" textAlign="right" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
					<CALC formula="ROW.N / TOTALROW.N * 100"/>
				</COLUMN>
				<COLUMN dataField="N1" width="90" visibleCondition="VIEW.COLH1 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH1" columnData="= VIEW.COLI1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N2" width="90" visibleCondition="VIEW.COLH2 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH2" columnData="= VIEW.COLI2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N3" width="90" visibleCondition="VIEW.COLH3 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH3" columnData="= VIEW.COLI3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N4" width="90" visibleCondition="VIEW.COLH4 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH4" columnData="= VIEW.COLI4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N5" width="90" visibleCondition="VIEW.COLH5 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH5" columnData="= VIEW.COLI5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N6" width="90" visibleCondition="VIEW.COLH6 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH6" columnData="= VIEW.COLI6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N7" width="90" visibleCondition="VIEW.COLH7 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH7" columnData="= VIEW.COLI7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N8" width="90" visibleCondition="VIEW.COLH8 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH8" columnData="= VIEW.COLI8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N9" width="90" visibleCondition="VIEW.COLH9 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH9" columnData="= VIEW.COLI9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N10" width="90" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH10" columnData="= VIEW.COLI10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N11" width="90" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH11" columnData="= VIEW.COLI11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N12" width="90" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH12" columnData="= VIEW.COLI12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N13" width="90" visibleCondition="VIEW.COLH13 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH13" columnData="= VIEW.COLI13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N14" width="90" visibleCondition="VIEW.COLH14 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH14" columnData="= VIEW.COLI14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N15" width="90" visibleCondition="VIEW.COLH15 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH15" columnData="= VIEW.COLI15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N16" width="90" visibleCondition="VIEW.COLH16 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH16" columnData="= VIEW.COLI16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N17" width="90" visibleCondition="VIEW.COLH17 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH17" columnData="= VIEW.COLI17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N18" width="90" visibleCondition="VIEW.COLH18 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH18" columnData="= VIEW.COLI18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N19" width="90" visibleCondition="VIEW.COLH19 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH19" columnData="= VIEW.COLI19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
				<COLUMN dataField="N20" width="90" visibleCondition="VIEW.COLH20 != null" type="Number" outputFormat="=  SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH20" columnData="= VIEW.COLI20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/> -->
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
