<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="RH000015" 
	label="RH. Evolution temporelle 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="rh000015"  helpFile=""
>	
	
	<VIEWPROPERTIES componentName="PROPERTIES_PAIE"/>
	<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
		<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 'NBETPCCDI':
						return "base.cti_division(SUM(CASE WHEN type_contrat_section_code[9] = 'CDI' THEN v_rh_view_1.etp_contrat ELSE 0 END), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))";
						break;					
                    case 'NBETPCCDD':
						return "base.cti_division(SUM(CASE WHEN type_contrat_section_code[9] = 'CDD' THEN v_rh_view_1.etp_contrat ELSE 0 END), 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 'NBETPCDI':
						return "base.cti_division(SUM(CASE WHEN type_contrat_section_code[9] = 'CDI' THEN v_rh_view_1.etp_paye ELSE 0 END), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))";
						break;
					case 'NBETPCDD':
						return "base.cti_division(SUM(CASE WHEN type_contrat_section_code[9] = 'CDD' THEN v_rh_view_1.etp_paye ELSE 0 END), 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 'NBETPTCDI':
						return "base.cti_division(SUM(CASE WHEN type_contrat_section_code[9] = 'CDI' THEN v_rh_view_1.etp_travaille ELSE 0 END), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date))";
						break;
					case 'NBETPTCDD':
						return "base.cti_division(SUM(CASE WHEN type_contrat_section_code[9] = 'CDD' THEN v_rh_view_1.etp_travaille ELSE 0 END), 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),
								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),
									SUM(v_rh_view_1.etp_paye)
								)
							) * 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 'AGEMOYDJ':
						return "base.cti_avg_distinct_on(
									DISTINCT 
										(CASE WHEN 1=1
											AND v_rh_view_1.date_fin_activite BETWEEN '[PERIODE]'::date AND '[TOPERIODE]'::date 
										THEN ARRAY[salarie_id::numeric, age_id::numeric]
										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 '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 '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 'NSALPJ':
						return "count(DISTINCT CASE
                                    WHEN 1=1
                                        AND v_rh_view_1.present_debut_mois = 1
                                        AND to_char(v_rh_view_1.date_debut_activite, 'YYYYMM') = to_char('[PERIODE]'::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 'NBETPC':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_contrat ELSE NULL END)";
						break;					
                    case 'NBETPCCDI':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE AND type_contrat_section_code[9] = 'CDI' THEN v_rh_view_1.etp_contrat ELSE NULL END)";
						break;					
                    case 'NBETPCCDD':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE AND type_contrat_section_code[9] = 'CDD' THEN v_rh_view_1.etp_contrat ELSE NULL END)";
						break;					
                    case 'NBETP':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE NULL END)";
						break;
					case 'NBETPCDI':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE AND type_contrat_section_code[9] = 'CDI' THEN v_rh_view_1.etp_paye ELSE NULL END)";
						break;
					case 'NBETPCDD':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE AND type_contrat_section_code[9] = 'CDD' THEN v_rh_view_1.etp_paye ELSE NULL END)";
						break;
					case 'NBETPT':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_travaille ELSE NULL END)";
						break;
					case 'NBETPTCDI':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE AND type_contrat_section_code[9] = 'CDI' THEN v_rh_view_1.etp_travaille ELSE NULL END)";
						break;
					case 'NBETPTCDD':
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE AND type_contrat_section_code[9] = 'CDD' THEN v_rh_view_1.etp_travaille ELSE NULL END)";
						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),
								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),
									SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE NULL END)
								)
							) * 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 0 END), SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.etp_paye ELSE 0 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 'AGEMOYDJ':
						return "base.cti_avg_distinct_on(
									DISTINCT 
										(CASE WHEN COLUMNCHECKSEQUENCE
										THEN CASE WHEN 1=1
											AND v_rh_view_1.date_fin_activite BETWEEN '[PERIODE]'::date AND '[TOPERIODE]'::date  THEN ARRAY[salarie_id::numeric, age_id::numeric]
										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)
							";                    
                    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 '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 '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 'NSALPJ':
                        return "count(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE THEN
                                      CASE WHEN 1=1
                                          AND v_rh_view_1.present_debut_mois = 1
                                          AND to_char(v_rh_view_1.date_debut_activite, 'YYYYMM') = to_char('[PERIODE]'::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>
		<PROPERTY name="NB_MOIS">
			<value><![CDATA[[EVAL 
				$nbMois = 0;
				
				$y1 = substr('[PERIODE]', 0, 4);
				$y2 = substr('[TOPERIODE]', 0, 4);
				$m1 = substr('[PERIODE]', 5, 2);
				$m2 = substr('[TOPERIODE]', 5, 2);

				$nbMois = 0;
				$nbMois += ($y2 - $y1) * 12;
				$nbMois += $m2 - $m1 + 1;

				return $nbMois;
			 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>
			<FIELD name="TOPERIODE" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN">
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="PERIODICITE" label="Périodicité" width="100" UI="combo" default="MONTH">
				<OPTION label="Mensuelle" data="MONTH" />
				<OPTION label="Trimestrielle" data="QUARTER" />
				<OPTION label="Annuelle" data="YEAR" />
			</FIELD>
		</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="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]}
						COLUMNBY[PERIODICITE]{v_rh_view_1.date_paie,, '[PERIODE]' ,, '[TOPERIODE]' ,, 12,, [VIEW.COLUMN_OPTION]}
						SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						OPTIONS{NOTZERO=1}
						ORDERBY{indicateurs[1]}
						INDICATORS{[VIEW.TDATA],[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]
					
					AFTER{
						UPDATE w_table 
						SET indicateurs[2] = base.cti_division(indicateurs[1],[VIEW.NB_MOIS])
					}
						
				]]></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="M"/>
					<FIELD name="N0"/>
					<FIELD name="N1"/>
					<FIELD name="N2"/>
					<FIELD name="N3"/>
					<FIELD name="N4"/>
					<FIELD name="N5"/>
					<FIELD name="N6"/>
					<FIELD name="N7"/>
					<FIELD name="N8"/>
					<FIELD name="N9"/>
					<FIELD name="N10"/>
					<FIELD name="N11"/>
					<FIELD name="N12"/>
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
			<SQL>
				<select><![CDATA[
						SELECT 'X_PERIODE_D', greatest(('[PERIODE]'::date - '1 year'::interval)::date, (SELECT (min(mois)::text||'01')::date FROM rh.p_chiffrier_production))::text
					UNION ALL
						SELECT 'X_TOPERIODE_D', greatest(('[TOPERIODE]'::date - '1 year'::interval)::date, (SELECT (min(mois)::text||'01')::date FROM rh.p_chiffrier_production))::text
					UNION ALL
						SELECT 'X_PERIODE', greatest(('[PERIODE]'::date - '3 years'::interval)::date, (SELECT (min(mois)::text||'01')::date FROM rh.p_chiffrier_production))::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" 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="TYPE_COMPARAISON" value="'2'" />              
					<ARG name="GROUPBY" value="return 'MCAL';"/>
					<ARG name="GROUPBY_TAB" value="return 'TAB';" />
                    <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="&#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="TYPE_COMPARAISON" value="'2'" />                   
					<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'" />                    
                </VIEWITEM>	
			</VIEWLINK>
			<VIEWLINK label="Comparatif" shortLabel="Comparatif" view="RH000017.XML" enabled="true" rowContext="false" buttonType="COMPARATIF">
				<ARG name="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
				<ARG name="PRESENTATION" value="return '1';" />
				<ARG name="LGROUPBY" value="SELECT.GROUPBY;" />
				<ARG name="LGROUPBY_2" value="SELECT.GROUPBY_2" />
				<ARG name="LGROUPBY_3" value="SELECT.GROUPBY_3" />
				<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'" />
			</VIEWLINK>			
            <VIEWLINK label="Comparatif mensuel" shortLabel="Comp. Mensuel" view="RH000112.XML" enabled="true" rowContext="false" buttonType="COMPARATIF">
				<ARG name="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
				<ARG name="DATA1" value="'NBSAL'" />
				<ARG name="DATA2" value="'MTMASSE'" />
				<ARG name="DATA2" value="'NBETP'" />
			</VIEWLINK>
            <VIEWLINK label="Effets" shortLabel="Effets" view="RH000111.XML" enabled="true" rowContext="false" buttonType="COMPARATIF">
				<ARG name="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
				<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="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
                    <ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
					<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="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
                    <ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
					<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="DATA" value="'MTMASSE'" />
                <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">
                    <ARGS name="SPEC" >
                        <value><![CDATA[
                            LINKVARIABLES['ALIAS_PERIODE'] = '-1';
                            LINKVARIABLES['PERIODE'] = SELECT.PERIODE;
                            LINKVARIABLES['TOPERIODE'] = SELECT.TOPERIODE;
                            LINKVARIABLES['GROUPBY'] = SELECT.GROUPBY;
                            LINKVARIABLES['GROUPBY_2'] = SELECT.GROUPBY_2;
                            LINKVARIABLES['GROUPBY_3'] = SELECT.GROUPBY_3;
                            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" componentName="RH_VIEWLINK">
                    <ARGS name="SPEC" >
                        <value><![CDATA[
                            LINKVARIABLES['ALIAS_PERIODE'] = '-1';
                            LINKVARIABLES['PERIODE'] = SELECT.PERIODE;
                            LINKVARIABLES['TOPERIODE'] = SELECT.TOPERIODE;
                            LINKVARIABLES['GROUPBY'] = SELECT.GROUPBY;
                            LINKVARIABLES['GROUPBY_2'] = SELECT.GROUPBY_2;
                            LINKVARIABLES['GROUPBY_3'] = SELECT.GROUPBY_3;
                            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="GROUPBY" value="return '-1';"/>
				<ARG name="GROUPBY_2" value="return 'SAL';"/>
				<ARG name="GROUPBY_TAB" value="return 'AUTO';"/>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Evolution mensuelle" label="Evolution mensuelle" multiTab="true">
			<CHART title="" type="group" subType="h" percentHeight="100" fromTotal="false">			
                <CHART title="Décomposition (10 premiers)" type="pieChart" maxItems="10" maxItemsSortOn="N" maxItemsSortSeq="D" sortField="N" sortSeq="D" condition="ROW.LVL == '1'">
                    <CATEGORY field="CODTXT" type="Char" />
                    <SERIE field="N" displayName="SELECT.DATA_LABEL" displayNameCalc="true" />
                </CHART>
                <CHART title="Evolution temporelle (5 premiers)" type="lineChart" maxItems="5" maxItemsSortOn="N" maxItemsSortSeq="D" serieIsCategory="true" sortField="N" sortSeq="D" condition="ROW.LVL == '1'">
                    <CATEGORY field="COD" 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" />
                </CHART>
			</CHART>			
			<DATAGRID title="" total="true" showOthers="true" headerHeight="36" variableRowHeight="true" sortable="= SELECT.GROUPBY_3 == '-1' &amp;&amp; (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="90" 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="50" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW">
				</COLUMN>
				<COLUMN dataField="CODTXT" type="Char" visible="false" totalFunction="text" otherFunction="text" calc="true">
					<CALC formula="ROW.TXT" condition="ROW.COD == ROW.TXT"/>
					<CALC formula="ROW.COD + ' - ' + ROW.TXT" condition="ROW.COD != ROW.TXT"/>
				</COLUMN>
				<COLUMN dataField="N" width="80" visibleCondition="SELECT.PERIODICITE != 'YEAR'" type="Number" outputFormat="= SELECT.DATA2" headerText="SELECT.DATA_LABEL + ' Total'" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="N_P" type="Number" headerText="% / Total" width="70" visibleCondition="SELECT.PERIODICITE != 'YEAR'" outputFormat="#,00%" textAlign="right" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
					<CALC formula="ROW.N / TOTALROW.N * 100"/>
				</COLUMN>
				<COLUMN dataField="M" width="100" visibleCondition="SELECT.PERIODICITE != 'YEAR'" type="Number" outputFormat="= SELECT.DATA2" headerText="Moyenne" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="N0" width="100" visibleCondition="VIEW.COLH0 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" headerText="&lt;&lt;" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N1" width="100" visibleCondition="VIEW.COLH1 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N2" width="100" visibleCondition="VIEW.COLH2 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N3" width="100" visibleCondition="VIEW.COLH3 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N4" width="100" visibleCondition="VIEW.COLH4 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N5" width="100" visibleCondition="VIEW.COLH5 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N6" width="100" visibleCondition="VIEW.COLH6 != null" type="Number" selectable="true" outputFormat="= SELECT.DATA2" fixed="false" headerText="VIEW.COLH6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N7" width="100" visibleCondition="VIEW.COLH7 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N8" width="100" visibleCondition="VIEW.COLH8 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N9" width="100" visibleCondition="VIEW.COLH9 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N10" width="100" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N11" width="100" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N12" width="100" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
