<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="RH000119" 
	label="RH. Analyse de la paie" 
	title="= 'Analyse de la paie 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="rh000119"  helpFile=""
>
	<VIEWPROPERTIES componentName="PROPERTIES_PAIE"/>
	<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
		<PROPERTY name="ORDERBY">
			<value><![CDATA[[EVAL 
					
					$groupBys = array(
						'[GROUPBY]', 
						'[GROUPBY_2]', 
						'[GROUPBY_3]'
					);
					$exceptions = array('AMCAL', 'ATRIMCAL', 'ACAL', 'MCAL', 'TRIMCAL', 'AMACT', 'ATRIMACT', 'AACT', 'MACT', 'TRIMACT');
					
					$result = array_intersect($groupBys, $exceptions);
					
					if (count($result) > 0) {
						return "DEFAULT";
					} else {
						return "indicateurs[19]";
					}
					
			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 label="Regroupement">
			<FIELD name="GROUPBY" 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"/>
				<OPTION label="Référentiel SAE" data="REFERENTIEL_SAE" treeLevel="1" globalListProvider="REFERENTIEL_SAE_GROUPBY"/>
			</FIELD>
			<FIELD name="GROUPBY_TAB" width="100" 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
                        WORKTABLE{RH000119}
						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]}
						OPTIONS{NOTZERO=1}
						ORDERBY{[VIEW.ORDERBY],, DESC}
						INDICATORS{
							count(DISTINCT v_rh_view_1.salarie_id),
                            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),
							count(DISTINCT v_rh_view_1.contrat_id),
							count(DISTINCT v_rh_view_1.rubrique_id),
							SUM(v_rh_view_1.heures_contrat),
							SUM(v_rh_view_1.heures_payees),
							SUM(v_rh_view_1.heures_travaillees),
							base.cti_division(SUM(v_rh_view_1.etp_contrat), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date)),
							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)),
							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)),
							base.cti_division(SUM(v_rh_view_1.etp_paye), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date)),
							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)),
							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)),
							base.cti_division(sum(v_rh_view_1.etp_travaille), base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date)),
							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)),
							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)),
							SUM(v_rh_view_1.montant_brut),
                            SUM(v_rh_view_1.montant_avantage_nature),
                            SUM(v_rh_view_1.montant_frais_imposables),
                            SUM(v_rh_view_1.taux_cotisation_salarie),
                            SUM(v_rh_view_1.montant_cotisation_salarie),
                            SUM(v_rh_view_1.montant_od_net_salarie),
                            SUM(v_rh_view_1.taux_cotisation_patronale),
                            SUM(v_rh_view_1.montant_cotisation_patronale),
                            SUM(v_rh_view_1.montant_net_imposable_salarie),
                            SUM(v_rh_view_1.montant_net_a_payer_salarie),
                            SUM(v_rh_view_1.montant_masse_salariale),
                            base.cti_division(
								SUM(v_rh_view_1.montant_brut),
								COUNT(DISTINCT v_rh_view_1.salarie_id::text || '-' || v_rh_view_1.mois_paie_id::text)
							),
                            base.cti_division(
								SUM(v_rh_view_1.montant_masse_salariale),
								COUNT(DISTINCT v_rh_view_1.salarie_id::text || '-' || v_rh_view_1.mois_paie_id::text)
							),
                            SUM(v_rh_view_1.montant_cotisation_salarie),
                            SUM(v_rh_view_1.montant_od_net_salarie),
                            SUM(v_rh_view_1.montant_od_net_patronale),
                            CASE WHEN round(SUM(v_rh_view_1.etp_paye),0) != 0 
								THEN SUM(v_rh_view_1.montant_net_a_payer_salarie) / SUM(v_rh_view_1.etp_paye)
								ELSE 0
							END,
                            base.cti_months_between('[PERIODE]'::date, '[TOPERIODE]'::date),
                            sum(v_rh_view_1.base),
                            sum(v_rh_view_1.nombre),	
                            base.cti_division(base.cti_sum_distinct_on(DISTINCT ARRAY[v_rh_view_1.rubrique_id::text, v_rh_view_1.ratio::text]), count(DISTINCT v_rh_view_1.rubrique_id)) * 100,	
                            count(DISTINCT CASE WHEN v_rh_view_1.sexe_code = 'M' THEN v_rh_view_1.salarie_id ELSE null END),	
                            count(DISTINCT CASE WHEN v_rh_view_1.sexe_code IS DISTINCT FROM 'M' THEN v_rh_view_1.salarie_id ELSE null END),
                            base.cti_avg_distinct_on(DISTINCT ARRAY[salarie_id::numeric, age_id::numeric]), 
                            count(DISTINCT CASE WHEN type_contrat_section_code[9] = 'CDI' THEN contrat_id ELSE null END),
                            count(DISTINCT CASE WHEN type_contrat_section_code[9] = 'CDD' THEN contrat_id ELSE null END),
                            count(DISTINCT CASE WHEN type_temps_travail_section_code[9] = 'TC' THEN contrat_id ELSE null END),
                            count(DISTINCT CASE WHEN type_temps_travail_section_code[9] = 'TP' THEN contrat_id ELSE null END),   
                            count(DISTINCT CASE
							  WHEN 1=1
								AND present_debut_mois = 1
								AND to_char(date_debut_activite, 'YYYYMM') = to_char('[PERIODE]'::date, 'YYYYMM')
							  THEN salarie_id 
							  ELSE null 
							END),
							SUM(v_rh_view_1.nombre_provisions),
							SUM(v_rh_view_1.montant_provisions),
							SUM(v_rh_view_1.montant_masse_salariale_provisionnee)
						}
					FROM #V_HP_X##V_ALL_X#
					WHERE 1=1
						AND v_rh_view_1.date_paie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
						[VIEW.PAIE_SELECT]
						[VIEW.SALARIES_SELECT]
						[VIEW.CONTRATS_SELECT]
						[VIEW.REFERENTIEL_SAE_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="NSAL" />
                    <FIELD name="EFFPHY" />
					<FIELD name="NCNT" />
					<FIELD name="NRUB" />
					<FIELD name="NHEC" />
					<FIELD name="NHEU" />
					<FIELD name="NHTR" />
					<FIELD name="NETPC" />
					<FIELD name="NETPCCDI" />
					<FIELD name="NETPCCDD" />
					<FIELD name="NETP" />
					<FIELD name="NETPCDI" />
					<FIELD name="NETPCDD" />
					<FIELD name="NETPT" />
					<FIELD name="NETPTCDI" />
					<FIELD name="NETPTCDD" />
					<FIELD name="MBRU" />
					<FIELD name="MANA" />
					<FIELD name="MFIM" />
					<FIELD name="TCOS" />
					<FIELD name="MCOS" />
					<FIELD name="MODS" />
					<FIELD name="TCOP" />
					<FIELD name="MCOP" />
					<FIELD name="MNEI" />
					<FIELD name="MNEP" />
					<FIELD name="MBRP" />
					<FIELD name="MYBRU" />
					<FIELD name="MYBRP" />
					<FIELD name="MNCOS" />
					<FIELD name="MNODS" />
					<FIELD name="MNODP" />
					<FIELD name="SNM" />
					<FIELD name="NBMOIS" />
					<FIELD name="BASE" />
					<FIELD name="NOMBRE" />
					<FIELD name="RATIO" />
					<FIELD name="NSALM"/>
					<FIELD name="NSALF"/>
					<FIELD name="AGEM"/>
					<FIELD name="NCDI"/>
					<FIELD name="NCDD"/>
					<FIELD name="NTC"/>
					<FIELD name="NTP"/>
                    <FIELD name="SALDEB"/>
					<FIELD name="NBPROVISIONS"/>
                    <FIELD name="MTPROVISIONS"/>
                    <FIELD name="MTMASSEPROV"/>		
				</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="LGROUPBY" value="SELECT.GROUPBY;"/>
					<ARG name="LGROUPBY_2" value="if(SELECT.GROUPBY_2 != '-1'){return SELECT.GROUPBY_2;}else {return '-1';}"/>
					<ARG name="LGROUPBY_3" value="if(SELECT.GROUPBY_3 != '-1'){return SELECT.GROUPBY_3;}else {return '-1';}"/>
					<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="if(SELECT.GROUPBY_2 != '-1'){return SELECT.GROUPBY_2;}else {return '-1';}"/>
					<ARG name="LGROUPBY_3" value="if(SELECT.GROUPBY_3 != '-1'){return SELECT.GROUPBY_3;}else {return '-1';}"/>
                    <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="LGROUPBY" value="SELECT.GROUPBY;"/>
				<ARG name="LGROUPBY_2" value="if(SELECT.GROUPBY_2 != '-1'){return SELECT.GROUPBY_2;}else {return '-1';}"/>
				<ARG name="LGROUPBY_3" value="if(SELECT.GROUPBY_3 != '-1'){return SELECT.GROUPBY_3;}else {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'" />
			</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="DATA3" 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="ALIAS_PERIODE" value="return '-1';" />                
				<ARG name="GROUPBY" value="return '-1';" />                
                <ARGS name="SPEC" >
					<value><![CDATA[
						LINKVARIABLES['GROUPBY_2'] = 'SAL';
						return 'OK';
					]]></value>
				</ARGS>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET label="Synthèse" multiTab="true" >
			<CHART title="" type="group" subType="h" percentHeight="100" fromTotal="false">
				<CHART title="Brut"
					type="pieChart"
					subType=""
					maxItems="10"
					maxItemsSortOn="MBRU"
					maxItemsSortSeq="D"
					sortField="MBRU"
					sortSeq="D"
					condition="ROW.LVL == '1'">
					<CATEGORY field="CODTXT" type="Char"/>
					<SERIE field="MBRU" displayName=""/>
				</CHART>			
				<CHART title="Population"
					type="columnChart"
					subType="stacked"
					maxItems="10"
					maxItemsSortOn="NSAL"
					maxItemsSortSeq="D"
					sortField="NSAL"
					sortSeq="D"
					condition="ROW.LVL == '1'">
					<CATEGORY field="COD" type="Char"/>
					<SERIE field="NSALM" displayName="Hommes"/>
					<SERIE field="NSALF" displayName="Femmes"/>
				</CHART>
			</CHART>
			<DATAGRID 	title="" 
						total="true" 
						headerHeight="54" 
						selectRowInRows="= ROW.OID == '-9999997'" 
						otherRowInRows="= ROW.OID == '-9999998'" 
						totalRowInRows="= ROW.OID == '-9999999'"
						variableRowHeight="true" 
						sortable="= SELECT.GROUPBY_3 == '-1' &amp;&amp; (SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB')"> 
				<INSERT name="DATAGRID_MULTITAB_STYLES"/>
                <HEADERROWSTYLE name="textAlign" value="center"/>
				<COLUMN dataField="NBMOIS"
					type="Number"
					visible="false" />
				<COLUMN dataField="OID"
					type="Number"
					visible="false" />
				<COLUMN dataField="COD" 
					type="Char" 
					width="110"
					outputFormat="#"
					headerText="Code" 
					textAlign="left" 
					totalComplement="*ROW">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
                    <HEADERCELLSTYLE name="textAlign" value="left"/>
				</COLUMN>
				<COLUMN dataField="TXT" 
					type="Char" 
					minWidth="110"
					headerText="Texte" 
					textAlign="left" 
					totalComplement="*ROW">
                    <HEADERCELLSTYLE name="textAlign" value="left"/>
				</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="NSAL"
					type="Number"
					width="60"
					outputFormat="#"
					headerText="Nb [DICT.RH.SALARIE#3]"
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NRUB" 
					type="Number"
					width="60"
					outputFormat="#"
					headerText="Nb rubriques"
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NHEU"
					type="Number"
					width="70"
                    fixed ="false"
					outputFormat="#"
					headerText="Heures payées"
					description="Heures issues de la rubrique de paie paramétrée comme &#171;&lt;i&gt;Heures payées&lt;/i&gt;&#187; dans la table des rubriques."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NSALM"
                    type="Number"
                    width="55"
                    outputFormat="#"
                    headerText="[DICT.RH.SALARIE#3] Hommes"
                    textAlign="right"
                    totalComplement="*ROW"/>
				<COLUMN dataField="NSALF"
                    type="Number"
                    width="55"
                    outputFormat="#"
                    headerText="[DICT.RH.SALARIE#3] Femmes"
                    textAlign="right"
                    totalComplement="*ROW"/>
 				<COLUMN dataField="AGEM"
                    type="Number"
                    width="45"
                    outputFormat="#,0"
                    headerText="Age moyen"
                    textAlign="right"
                    totalComplement="*ROW" />
				<COLUMN dataField="NCDI" 
                    type="Number" 
                    width="45" 
                    outputFormat="#" 
                    headerText="Nb CDI" 
                    description="Nombre de [DICT.RH.CONTRAT#4] à durée indéterminée" 
                    textAlign="right" 
                    totalComplement="*ROW"/>
				<COLUMN dataField="NCDD"
                    type="Number"
                    width="45"
                    outputFormat="#"
                    headerText="Nb CDD"
                    description="Nombre de [DICT.RH.CONTRAT#4] à durée déterminée"
                    textAlign="right"
                    totalComplement="*ROW"/>
				<COLUMN dataField="MBRP" 
					type="Number" 
					width="100"
					outputFormat="#E"
					headerText="Masse salariale" 
					description="&lt;i&gt;Brut&lt;/i&gt; + &lt;i&gt;Cotisations patronales&lt;/i&gt; + &lt;i&gt;OD/Net patronales&lt;/i&gt; + &lt;i&gt;Avantages en nature&lt;/i&gt; + &lt;i&gt;Frais imposables&lt;/i&gt;"
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="MBRPMOY" 
					type="Number" 
					width="60"
					outputFormat="#E"
					headerText="Masse salariale Moyenne"
					description="&lt;i&gt;Masse salariale&lt;/i&gt; &#247; &lt;i&gt;ETP payé&lt;/i&gt; &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.NETP == 0 ?'':ROW.MBRP / ROW.NETP / ROW.NBMOIS" />
				</COLUMN>
				<COLUMN dataField="PBRP" 
					type="Number" 
					width="70"
					outputFormat="#,0%"
					headerText="% / Total" 
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="TOTALROW.MBRP == 0?'':ROW.MBRP / TOTALROW.MBRP * 100" />
				</COLUMN>	
				<COLUMN dataField="MBRU" 
					type="Number" 
					width="100"
					outputFormat="#E"
					headerText="Brut" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="MBRUMOY" 
					type="Number" 
					width="60"
					outputFormat="#E"
					headerText="Brut Moyen"
					description="Brut &#247; ETP payé &#247; Nombre de mois"
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.NETP == 0 ?'':ROW.MBRU / ROW.NETP / ROW.NBMOIS" />
				</COLUMN>
				<COLUMN dataField="MNEP" 
					type="Number" 
					width="100"
					outputFormat="#E"
					headerText="Net à payer [DICT.RH.SALARIE]" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="SNM" 
					type="Number" 
					width="60"
					outputFormat="#E"
					headerText="Salaire Net Moyen" 
					description="Net à payer [DICT.RH.SALARIE] &#247; ETP payé"
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="SNMMS" 
					type="Number" 
					width="60"
					outputFormat="#,0%"
					headerText="% / Masse salariale" 
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.SNM / ROW.MBRPMOY * 100" />
				</COLUMN>
				<COLUMN dataField="THMC" 
					type="Number" 
					width="60"
					outputFormat="#,0E"
					headerText="Mnt H. Moy. Chargé"
					description="Masse salariale &#247; Heures payées"
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.NHEU == 0?'':ROW.MBRP / ROW.NHEU" />
				</COLUMN>
				<COLUMN dataField="NTC"
                        type="Number"
                        width="60"
                        outputFormat="#"
                        headerText="Nb temps complet"
                        description="Nombre de [DICT.RH.CONTRAT#4] à temps complet"
                        textAlign="right" 
                        totalComplement="*ROW"/>
				<COLUMN dataField="NTP" 
                        type="Number"
                        width="60"
                        outputFormat="#" 
                        headerText="Nb temps partiel" 
                        description="Nombre de [DICT.RH.CONTRAT#4] à temps partiel" 
                        textAlign="right" 
                        totalComplement="*ROW"/>
				<COLUMN dataField="SALDEB" 
                        type="Number" 
                        width="60" 
                        outputFormat="#" 
                        headerText="[DICT.RH.SALARIE#3]&#xD;Début Période" 
                        textAlign="right" 
                        description="[DICT.RH.SALARIE#3] présents au 1er jour de la période." 
                        totalComplement="*ROW"/>
            </DATAGRID>
		</ONGLET>        
		<ONGLET label="Bulletin" multiTab="true" >
			<CHART title="" type="group" subType="h" percentHeight="100" fromTotal="false">
				<CHART title="Masse salariale"
					type="pieChart"
					subType=""
					maxItems="10"
					maxItemsSortOn="MBRP"
					maxItemsSortSeq="D"
					sortField="MBRP"
					sortSeq="D"
					condition="ROW.LVL == '1'">
					<CATEGORY field="CODTXT" type="Char"/>
					<SERIE field="MBRP" displayName=""/>
				</CHART>			
				<CHART title="Décomposition Masse salariale"
					type="columnChart"
					subType="stacked"
					maxItems="10"
					maxItemsSortOn="MBRU"
					maxItemsSortSeq="D"
					sortField="MBRU"
					sortSeq="D"
					condition="ROW.LVL == '1'">
					<CATEGORY field="COD" type="Char"/>
					<SERIE field="MBRU" displayName="Brut"/>
					<SERIE field="MCOP" displayName="Cot. pat."/>
				</CHART>
			</CHART>
			<!--
			<CHART title="Répartition Brut" type="pieChart" serieIsCategory="true" fromTotal="true" showDataTips="true" >
				<CATEGORY field="COD" type="Char" />
				<SERIE field="MNEP" displayName="Net à payer" />
				<SERIE field="MNCOSABS" displayName="Cot. Sal."/>
				<SERIE field="MNODS" displayName="OD/net sal."/>
			</CHART>
			-->
			<DATAGRID 	title="" 
						total="true" 
						headerHeight="54" 
						selectRowInRows="= ROW.OID == '-9999997'" 
						otherRowInRows="= ROW.OID == '-9999998'" 
						totalRowInRows="= ROW.OID == '-9999999'"
						variableRowHeight="true" 
						sortable="= SELECT.GROUPBY_3 == '-1' &amp;&amp; (SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB')"> 
				<INSERT name="DATAGRID_MULTITAB_STYLES"/>
                <HEADERROWSTYLE name="textAlign" value="center"/>
				<COLUMN dataField="NBMOIS"
					type="Number"
					visible="false" />
				<COLUMN dataField="OID"
					type="Number"
					visible="false" />
				<COLUMN dataField="COD" 
					type="Char" 
					width="110"
					outputFormat="#"
					headerText="Code" 
					textAlign="left" 
					totalComplement="*ROW">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
                    <HEADERCELLSTYLE name="textAlign" value="left"/>
				</COLUMN>
				<COLUMN dataField="TXT" 
					type="Char" 
					minWidth="150"
					headerText="Texte" 
					textAlign="left" 
					totalComplement="*ROW">
                    <HEADERCELLSTYLE name="textAlign" value="left"/>
				</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="RATIO" 
					type="Number" 
					visibleCondition="(SELECT.GROUPBY == 'CNT' &amp;&amp; SELECT.GROUPBY_2 == 'SAC') || (String(SELECT.GROUPBY).substr(0, 2) == 'AN') || (String(SELECT.GROUPBY_2).substr(0, 2) == 'AN') || (String(SELECT.GROUPBY_3).substr(0, 2) == 'AN')"
					width="80"
					outputFormat="#,00"
					headerText="% Ventilation" 
					textAlign="right"
					totalComplement="*ROW" />
                <COLUMN dataField="NSAL" 
					type="Number" 
					width="60"
					outputFormat="#"
					headerText="Nb [DICT.RH.SALARIE#3]" 
                    description="Nombre de [DICT.RH.SALARIE#4] ayant eu au moins une ligne de paie (même s'il s'agit d'une régul. de cotisation patronale)."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NRUB" 
					type="Number" 
					width="60"
					outputFormat="#"
					headerText="Nb rubriques" 
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NOMBRE" 
					type="Number"
					width="100"
					headerText="Nombre"
					outputFormat="#"
					description="Peux représenter des heures, des jours, un montant, ou une quantité.&#xD;&#xD;Cf. paramétrage des rubriques."
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="NBPROVISIONS" 
					type="Number"
					width="100"
					headerText="Nombre provisions"
					outputFormat="#"
					description="Nombre provisions"
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="BASE" 
					type="Number"
					width="100"
					headerText="Base"
					outputFormat="#"
					description="Peux représenter des heures, des jours, un montant, ou une quantité.&#xD;&#xD;Cf. paramétrage des rubriques."
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
                <COLUMN dataField="NHEC" 
					type="Number" 
					width="70"
					outputFormat="#"
					headerText="Heures contrat" 
					description="Heures issues de la rubrique de paie paramétrée comme &#171;&lt;i&gt;Heures contrat&lt;/i&gt;&#187; dans la table des rubriques."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NHEU" 
					type="Number" 
					width="70"
					outputFormat="#"
					headerText="Heures payées" 
					description="Heures issues de la rubrique de paie paramétrée comme &#171;&lt;i&gt;Heures payées&lt;/i&gt;&#187; dans la table des rubriques."
					textAlign="right"
					totalComplement="*ROW" />				
				<COLUMN dataField="NHTR" 
					type="Number" 
					width="70"
					outputFormat="#"
					headerText="Heures travaillées"
					description="Heures paramétrées comme &#171;&lt;i&gt;travaillées&lt;/i&gt;&#187; OU heures payées - heures paramétrées comme &#171;&lt;i&gt;Heures non travaillées&lt;/i&gt;&#187;."
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
                <COLUMN dataField="EFFPHY" 
					type="Number" 
					width="60"
					outputFormat="#"
					headerText="Effectif"
                    description="Nombre de [DICT.RH.SALARIE#4] ayant eu un bulletin avec des heures contrat et/ou payées (positives)."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NETPC" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP contrat"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures contrat&lt;/i&gt;.&#xD;&#xD;Heures contrat &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NETPCCDI" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP contrat CDI"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures contrat&lt;/i&gt;.&#xD;&#xD;Heures contrat &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NETPCCDD" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP contrat CDD"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures contrat&lt;/i&gt;.&#xD;&#xD;Heures contrat &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />	
                <COLUMN dataField="NETP" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP payé"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures payées&lt;/i&gt;.&#xD;&#xD;Heures payées &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NETPCDI" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP payé CDI"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures payées&lt;/i&gt;.&#xD;&#xD;Heures payées &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NETPCDD" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP payé CDD"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures payées&lt;/i&gt;.&#xD;&#xD;Heures payées &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				 <COLUMN dataField="NETPT" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP travaillé"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures travaillées&lt;/i&gt;.&#xD;&#xD;Heures travaillées &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NETPTCDI" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP travaillé CDI"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures travaillées&lt;/i&gt;.&#xD;&#xD;Heures travaillées &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="NETPTCDD" 
					type="Number" 
					width="70"
					outputFormat="#,00"
					headerText="ETP travaillé CDD"
					description="Equivalent temps plein basé sur les &lt;i&gt;Heures travaillées&lt;/i&gt;.&#xD;&#xD;Heures travaillées &#247; Base de calcul de l'ETP (par défaut 151,67 h.) &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="MBRP" 
					type="Number" 
					width="100"
					outputFormat="#E"
					headerText="Masse salariale" 
					description="&lt;i&gt;Brut&lt;/i&gt; + &lt;i&gt;Cotisations patronales&lt;/i&gt; + &lt;i&gt;OD/Net patronales&lt;/i&gt; + &lt;i&gt;Avantages en nature&lt;/i&gt; + &lt;i&gt;Frais imposables&lt;/i&gt;"
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="MBRPMOY" 
					type="Number" 
					width="60"
					outputFormat="#E"
					headerText="Masse salariale Moyenne"
					description="&lt;i&gt;Masse salariale&lt;/i&gt; &#247; &lt;i&gt;ETP payé&lt;/i&gt; &#247; Nb mois de la période."
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.NETP == 0 ?'':ROW.MBRP / ROW.NETP / ROW.NBMOIS" />
				</COLUMN>
				<COLUMN dataField="MTMASSEPROV" 
					type="Number"
					width="100"
					headerText="Montant masse salariale provisionnee"
					outputFormat="#"
					description="Montant masse salariale provisionnee"
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="PBRP" 
					type="Number" 
					width="70"
					outputFormat="#,0%"
					headerText="% / Total" 
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="TOTALROW.MBRP == 0?'':ROW.MBRP / TOTALROW.MBRP * 100" />
				</COLUMN>	
				<COLUMN dataField="MBRU" 
					type="Number" 
					width="100"
					outputFormat="#E"
					headerText="Brut" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="MBRUMOY" 
					type="Number" 
					width="60"
					outputFormat="#E"
					headerText="Brut Moyen"
					description="Brut &#247; ETP payé &#247; Nombre de mois"
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.NETP == 0 ?'':ROW.MBRU / ROW.NETP / ROW.NBMOIS" />
				</COLUMN>
				<COLUMN dataField="MANA" 
					type="Number" 
					width="70"
					outputFormat="#E"
					headerText="Avantages en nature" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />	
				<COLUMN dataField="MFIM" 
					type="Number" 
					width="90"
					outputFormat="#E"
					headerText="Frais imposables" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="MNCOS" 
					type="Number" 
					width="90"
					outputFormat="#E"
					headerText="Cotisations Salariales" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="MCOP" 
					type="Number" 
					width="90"
					outputFormat="#E"
					headerText="Cotisations Patronales" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="MNODS" 
					type="Number" 
					width="90"
					outputFormat="#E"
					headerText="OD/net Salariales" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="MNODP" 
					type="Number" 
					width="90"
					outputFormat="#E"
					headerText="OD/net Patronales" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
				<COLUMN dataField="MNEI" 
					type="Number" 
					width="100"
					outputFormat="#E"
					headerText="Net imposable [DICT.RH.SALARIE]" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />	
				<COLUMN dataField="MNEP" 
					type="Number" 
					width="100"
					outputFormat="#E"
					headerText="Net à payer [DICT.RH.SALARIE]" 
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />	
				<COLUMN dataField="SNM" 
					type="Number" 
					width="60"
					outputFormat="#E"
					headerText="Salaire Net Moyen" 
					description="Net à payer [DICT.RH.SALARIE] &#247; ETP payé"
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="SNMMS" 
					type="Number" 
					width="60"
					outputFormat="#,0%"
					headerText="% / Masse salariale" 
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.SNM / ROW.MBRPMOY * 100" />
				</COLUMN>
				<COLUMN dataField="THMC" 
					type="Number" 
					width="60"
					outputFormat="#,0E"
					headerText="Mnt H. Moy. Chargé"
					description="Masse salariale &#247; Heures payées"
					textAlign="right"
					totalComplement="" 
					calc="true">
					<CALC formula="ROW.NHEU == 0?'':ROW.MBRP / ROW.NHEU" />
				</COLUMN>
				<COLUMN dataField="MTPROVISIONS" 
					type="Number"
					width="100"
					headerText="Montant provisions"
					outputFormat="#"
					description="Montant provisions"
					textAlign="right"
					fixed="false"
					totalComplement="*ROW" />
            </DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>