<?xml version="1.0" encoding="ISO-8859-15"?>
<COMPONENTS>
	<COMPONENT name="PROPERTIES_GROUPBY" label="Propriétés diverses regroupements" >
		<VIEWPROPERTIES>
			<PROPERTY name="GROUPBY_OID_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_id("[GROUPBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_COD_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_code("[GROUPBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_TXT_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_texte("[GROUPBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_2_OID_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_id("[GROUPBY_2]", "");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_2_COD_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_code("[GROUPBY_2]", "");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_2_TXT_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_texte("[GROUPBY_2]", "");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_3_OID_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_id("[GROUPBY_3]", "");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_3_COD_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_code("[GROUPBY_3]", "");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_3_TXT_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_texte("[GROUPBY_3]", "");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="COLUMNBY_OID_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_id("[COLUMNBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="COLUMNBY_COD_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_code("[COLUMNBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="COLUMNBY_TXT_FIELD" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_texte("[COLUMNBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="NB_DATA">
				<value>
					<![CDATA[
						[EVAL 
							$array1 = array('[DATA1]', '[DATA2]', '[DATA3]','[DATA4]','[DATA5]','[DATA6]','[DATA7]','[DATA8]','[DATA9]','[DATA10]','[DATA011]','[DATA012]','[DATA013]','[DATA014]','[DATA015]');
	
							for($i=0;$i<=14;$i++){
								if($array1[$i] != '0'){
										$nb_data = $i + 1 ;
								}
							}
							return $nb_data;
						EVAL] 
						]]>
					</value>
			</PROPERTY>
		</VIEWPROPERTIES>
	</COMPONENT>
	<COMPONENT name="PROPERTIES_CONTRAT" label="Propriétés diverses [DICT.RH.CONTRAT#2]" >
		<VIEWPROPERTIES>
		</VIEWPROPERTIES>
	</COMPONENT>
	<COMPONENT name="PROPERTIES_PAIE" label="Propriétés diverses paie" >
		<VIEWPROPERTIES>
		</VIEWPROPERTIES>
	</COMPONENT>
	<COMPONENT name="PROPERTIES_ARRET" label="Propriétés diverses [DICT.RH.ARRET_TRAVAIL#2]" >
		<VIEWPROPERTIES>
		</VIEWPROPERTIES>
	</COMPONENT>
	<COMPONENT name="PROPERTIES_PLANNING" label="Propriétés diverses planning" >
		<VIEWPROPERTIES>
			<PROPERTY name="GROUPBY_OID_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY]",0,3) != "PAB") {
						return RHP_Component::standard_field_id("[GROUPBY]", "QUA");
						}
						else 
						{
						return "-111";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_COD_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY]",0,3) != "PAB") {
						return RHP_Component::standard_field_code("[GROUPBY]", "QUA");
						}
						else 
						{
						return "''";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_TXT_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY]",0,3) != "PAB") {
						return RHP_Component::standard_field_texte("[GROUPBY]", "QUA");
						}
						else 
						{
						return "''";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_2_OID_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY_2]",0,3) != "PAB") {
						return RHP_Component::standard_field_id("[GROUPBY_2]", "QUA");
						}
						else 
						{
						return "-111";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_2_COD_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY_2]",0,3) != "PAB") {
						return RHP_Component::standard_field_code("[GROUPBY_2]", "QUA");
						}
						else 
						{
						return "''";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_2_TXT_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY_2]",0,3) != "PAB") {
						return RHP_Component::standard_field_texte("[GROUPBY_2]", "QUA");
						}
						else 
						{
						return "''";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_3_OID_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY_3]",0,3) != "PAB") {
						return RHP_Component::standard_field_id("[GROUPBY_3]", "QUA");
						}
						else 
						{
						return "-111";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_3_COD_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY_3]",0,3) != "PAB") {
						return RHP_Component::standard_field_code("[GROUPBY_3]", "QUA");
						}
						else 
						{
						return "''";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="GROUPBY_3_TXT_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						if (substr("[GROUPBY_3]",0,3) != "PAB") {
						return RHP_Component::standard_field_texte("[GROUPBY_3]", "QUA");
						}
						else 
						{
						return "''";
						}
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="COLUMNBY_OID_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_id("[COLUMNBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="COLUMNBY_COD_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_code("[COLUMNBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
			<PROPERTY name="COLUMNBY_TXT_FIELD_DU" value="" >
					<value><![CDATA[[EVAL 
						return RHP_Component::standard_field_texte("[COLUMNBY]", "QUA");
					EVAL]]]></value>
			</PROPERTY>
		</VIEWPROPERTIES>
	</COMPONENT>
	<COMPONENT name="PROPERTIES_VISITE" label="Propriétés diverses visites médicales" >
		<VIEWPROPERTIES>
		</VIEWPROPERTIES>
	</COMPONENT>
	<COMPONENT name="PROPERTIES_FORMATION" label="Propriétés diverses formation" >
		<VIEWPROPERTIES>
		</VIEWPROPERTIES>
	</COMPONENT>
	<!-- <COMPONENT name="PROPERTIES_HANDICAP" label="Propriétés diverses travailleurs handicapés" >
		<VIEWPROPERTIES>
		</VIEWPROPERTIES>
	</COMPONENT> -->
	<COMPONENT name="PROPERTIES_ACCIDENT" label="Propriétés diverses accident du travail" >
		<VIEWPROPERTIES>
		</VIEWPROPERTIES>
	</COMPONENT>
    <COMPONENT name="RH_DATA_VIEWLINK"  >
		<ARGS name="DATA1">
			<value><![CDATA[

			var liste_indicateurs:String = SELECT.LS_DATA;
            var my_array1:Array = liste_indicateurs.split("=");
            var my_array:Array = my_array1[1].split(",");

			if(SELECT.LS_DATA != '-1'){
			
				LINKVARIABLES['DATA1'] = my_array[0];
				LINKVARIABLES['DATA2'] = my_array[1];
				LINKVARIABLES['DATA3'] = my_array[2];
				LINKVARIABLES['DATA4'] = my_array[3];
				LINKVARIABLES['DATA5'] = my_array[4];
				LINKVARIABLES['DATA6'] = my_array[5];
				LINKVARIABLES['DATA7'] = my_array[6];
				LINKVARIABLES['DATA8'] = my_array[7];
				LINKVARIABLES['DATA9'] = my_array[8];
				LINKVARIABLES['DATA10'] = my_array[9];
				LINKVARIABLES['DATA011'] = my_array[10];
				LINKVARIABLES['DATA012'] = my_array[11];
				LINKVARIABLES['DATA013'] = my_array[12];
				LINKVARIABLES['DATA014'] = my_array[13];
				LINKVARIABLES['DATA015'] = my_array[14];
			} else {						
					if(SELECT.DATA1 != '0'){ 
						LINKVARIABLES['DATA1'] = SELECT.DATA1;
					}					
                    if(SELECT.DATA2 != '0'){ 
						LINKVARIABLES['DATA2'] = SELECT.DATA2;
					}					
                    if(SELECT.DATA3 != '0'){ 
						LINKVARIABLES['DATA3'] = SELECT.DATA3;
					}					
                    if(SELECT.DATA4 != '0'){ 
						LINKVARIABLES['DATA4'] = SELECT.DATA4;
					}							
					if(SELECT.DATA5 != '0'){ 
						 LINKVARIABLES['DATA5'] = SELECT.DATA5;
					}						
					if(SELECT.DATA6 != '0'){ 
						LINKVARIABLES['DATA6'] = SELECT.DATA6;
					}						
					if(SELECT.DATA7 != '0'){ 
						LINKVARIABLES['DATA7'] = SELECT.DATA7;
					}						
					if(SELECT.DATA8 != '0'){ 

						LINKVARIABLES['DATA8'] = SELECT.DATA8;
					}						
					if(SELECT.DATA9 != '0'){ 
						LINKVARIABLES['DATA9'] = SELECT.DATA9;
					}						
					if(SELECT.DATA10 != '0'){ 
						LINKVARIABLES['DATA10'] = SELECT.DATA10;
					}						
					if(SELECT.DATA011 != '0'){ 
						LINKVARIABLES['DATA011'] = SELECT.DATA011;
					}						
					if(SELECT.DATA012 != '0'){ 
						LINKVARIABLES['DATA012'] = SELECT.DATA012;
					}						
					if(SELECT.DATA013 != '0'){ 
						LINKVARIABLES['DATA013'] = SELECT.DATA013;
					}						
					if(SELECT.DATA014 != '0'){ 
						LINKVARIABLES['DATA014'] = SELECT.DATA014;
					}						
					if(SELECT.DATA015 != '0'){ 
						LINKVARIABLES['DATA015'] = SELECT.DATA015;
					}						

			}
			]]></value>
		</ARGS>	
	</COMPONENT>
	<COMPONENT name="FILTRES_SALARIES_SELECTIONS" label="[DICT.RH.SALARIE#4]" >
		<VIEWPROPERTIES>
			<PROPERTY name="SALARIES_SELECT" value="" >
					<value><![CDATA[[EVAL 
						// <?PHP
						
						$select = "";
						$select .= RHP_Component::standard_field_select("v_ages_2.age", "t_ages", "[AGE]|[AGE_INT]|[AGE_INT2]");
						$select .= RHP_Component::standard_field_select("v_anciennetes_annee_2.anciennete_annee", "t_anciennetes_annee", "[ANCIENNETE]");
						
						$select .= RHP_Component::standard_field_select("v_rh_view_1.sexe", '', '[SEXE]');
						$select .= RHP_Component::standard_field_select("v_situations_famille_2.situation_famille", 't_situations_famille', '[SITUATION_FAMILLE]');
						$select .= RHP_Component::standard_field_select("v_nationalites_2.nationalite", 't_nationalites', '[NATIONALITE]');
						$select .= RHP_Component::standard_field_select("v_codes_postaux_2.code_postal", 't_codes_postaux', '[CODE_POSTAL]', 'departement');
						$select .= RHP_Component::standard_field_select("v_rh_view_1.salarie", 'p_salaries', '[SALARIE]');
						//$select .= RHP_Component::standard_field_select("v_rh_view_1.handicap", '', '[HANDICAP]');
						$select .= RHP_Component::specific_field_select('PRESENCECNT', '[PRESENCECNT]', '[PERIODE]', '[TOPERIODE]');
						if ("[NOM]" != "") {
							$select .= " AND salarie_texte ilike '%[NOM]%' ";
						}

						return $select;
						
						// ?>
					EVAL]]]></value>
			</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres [DICT.RH.SALARIE#4]" collapsible="true" displayText="= var display:String = '';
			if (SELECT.AGE != '-1') {
				display += '  #B#Age#/B# : ';
				if (SELECT.AGE != 'IN') {
					display += SELECT.AGE_LABEL;
				} else {
					if (SELECT.AGE_INT != '') {
						if (SELECT.AGE_INT2 != '') {
							display += '#GE# ' + SELECT.AGE_INT + ' et #LE# ' + SELECT.AGE_INT2 + ' an(s)';
						} else {
							display += '#GE# ' + SELECT.AGE_INT + ' an(s)';
						}
					} else {
						display += '#LE# ' + SELECT.AGE_INT2 + ' an(s)';
					}
				}
			}
			if (SELECT.ANCIENNETE != '-1') {
				display += '  #B#Ancienneté#/B# : ' + SELECT.ANCIENNETE_LABEL;
			}
			if (SELECT.SEXE != '-1') {
				display += '  #B#Sexe#/B# : ' + SELECT.SEXE_LABEL;
			}
			if (SELECT.SITUATION_FAMILLE != '-1') {
				display += '  #B#Situation de famille#/B# : ' + SELECT.SITUATION_FAMILLE_LABEL;
			}
			if (SELECT.NATIONALITE != '-1') {
				display += '  #B#Nationalite#/B# : ' + SELECT.NATIONALITE_LABEL;
			}
			if (SELECT.CODE_POSTAL != '-1') {
				display += '  #B#Code postal#/B# : ' + SELECT.CODE_POSTAL_LABEL;
			}
			if (SELECT.SALARIE != '-1') {
				display += '  #B#[DICT.RH.SALARIE]#/B# : ' + SELECT.SALARIE_LABEL;
			}
			if (SELECT.NOM != '') {
				display += '  #B#Nom#/B# : ' + SELECT.NOM;
			}
					
			if (SELECT.PRESENCECNT != '-1') {
				display += '  #B#Présence [DICT.RH.CONTRAT#3]#/B# : ' + SELECT.PRESENCECNT_LABEL;
			}
			return display;
			">
			<GROUP label="">
				<FIELD name="AGE" label="Age" UI="combo" width="300" tree="true" default="-1" globalListProvider="AGES" showIfNotDefault="true" />
				<FIELD name="AGE_INT" label="Age" UI="numberInterval" width="100" default=""  default2="" 
						hidable="= SELECT.AGE == '-1' " visible="= SELECT.AGE == 'IN'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="ANCIENNETE" label="Ancienneté" UI="combo" width="300" tree="true" default="-1" globalListProvider="ANCIENNETES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="CODE_POSTAL" label="Code postal" UI="combo" width="300" tree="true" default="-1" globalListProvider="CODES_POSTAUX" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="NATIONALITE" label="Nationalite" UI="combo" width="300" tree="true" default="-1" globalListProvider="NATIONALITES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP>
				<FIELD name="NOM" label="Nom" UI="text" default="" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="PRESENCECNT" label="Présence" UI="combo" width="300" tree="true" default="-1" globalListProvider="PRESENCECNT" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="SALARIE" label="[DICT.RH.SALARIE#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="SALARIES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SEXE" label="Sexe" UI="combo" width="300" tree="true" default="-1" globalListProvider="SEXES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SITUATION_FAMILLE" label="Situation de famille" UI="combo" width="300" tree="true" default="-1" globalListProvider="SITUATIONS_FAMILLE" showIfNotDefault="true" >
				</FIELD>
			</GROUP>			
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_CONTRATS_SELECTIONS" label="Filtre [DICT.RH.CONTRAT#4]" >
		<VIEWPROPERTIES>
			<PROPERTY name="CONTRATS_SELECT" value="" >
				<value><![CDATA[[EVAL 
					$select = '';
					$select .= RHP_Component::standard_field_select("v_pole_1.pole", "t_pole", "[POLE]");
                    $select .= RHP_Component::standard_field_select("v_population_1.population", "t_population", "[POPULATION]");
					$select .= RHP_Component::standard_field_select("etablissement", "t_etablissements", '[ETABLISSEMENT]', "v_etablissements_2.etablissement");
                    $select .= RHP_Component::standard_field_select("v_profils_1.service", "t_services", "[SERVICE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.qualification", "t_qualifications", "[QUALIFICATION]");
					$select .= RHP_Component::standard_field_select("v_profils_1.type_temps_travail", "t_types_temps_travail", "[TYPE_TEMPS_TRAVAIL]");
					$select .= RHP_Component::standard_field_select("v_profils_1.type_contrat", "t_types_contrat", "[TYPE_CONTRAT]");
					$select .= RHP_Component::standard_field_select("v_profils_1.specialite", "t_specialites", "[SPECIALITE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.categorie_socio_professionnelle", "t_categories_socio_professionnelle", "[CATEGORIE_SOCIO_PRO]");
					$select .= RHP_Component::standard_field_select("v_profils_1.code_emploi", "t_codes_emploi", "[CODE_EMPLOI]");
					$select .= RHP_Component::standard_field_select("v_profils_1.statut", "t_statuts", "[STATUT]");
					$select .= RHP_Component::standard_field_select("v_profils_1.motif_debut", "t_motifs_debut_contrat", "[MOTIF_DEBUT_CONTRAT]");
					$select .= RHP_Component::standard_field_select("v_profils_1.motif_fin", "t_motifs_fin_contrat", "[MOTIF_FIN_CONTRAT]");
					$select .= RHP_Component::standard_field_select("v_salaries_remplaces_2.salarie_remplace", "p_salaries", "[SALARIE_REMPLACE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.societe_interim", "t_societes_interim", "[SOCIETE_INTERIM]");
					$select .= RHP_Component::standard_field_select("v_profils_1.grille", "t_grilles", "[GRILLE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.grille_groupe", "t_grilles_groupes", "[GRILLE_GROUPE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.type_horaire", "t_types_horaire", "[TYPE_HORAIRE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.groupe_cotisant", "t_groupes_cotisant", "[GROUPE_COTISANT]");
					$select .= RHP_Component::standard_field_select("v_profils_1.unite_fonctionnelle", "t_unite_fonctionnelle", "[UNITE_FONCTIONNELLE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.lettre_budgetaire", "t_lettre_budgetaire", "[LETTRE_BUDGETAIRE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.commission_paritaire", "t_commission_paritaire", "[COMMISSION_PARITAIRE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.compte_salarie", "t_compte", "[COMPTE_SALARIE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.categorie_conge", "t_categorie_conge", "[CATEGORIE_CONGE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.cadre_emploi", "t_cadre_emploi", "[CADRE_EMPLOI]");
					$select .= RHP_Component::standard_field_select("v_profils_1.filiere", "t_filiere", "[FILIERE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.categorie_statutaire", "t_categorie_statutaire", "[CATEGORIE_STATUTAIRE]");
					
					return $select;
				EVAL]]]></value>
			</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres [DICT.RH.CONTRAT#4]" collapsible="true" displayText="= var display:String = '';
            if (SELECT.POLE != '-1') {
				display += '  #B#[DICT.RH.POLE#1]#/B# : ' + SELECT.POLE_LABEL;
			}
            if (SELECT.POPULATION != '-1') {
				display += '  #B#[DICT.RH.POPULATION#1]#/B# : ' + SELECT.POPULATION_LABEL;
			}
			if (SELECT.ETABLISSEMENT != '-1') {
				display += '  #B#Etablissement#/B# : ' + SELECT.ETABLISSEMENT_LABEL;
			}
			if (SELECT.SERVICE != '-1') {
				display += '  #B#[DICT.RH.SERVICE#1]#/B# : ' + SELECT.SERVICE_LABEL;
			}
			if (SELECT.QUALIFICATION != '-1') {
				display += '  #B#Qualification#/B# : ' + SELECT.QUALIFICATION_LABEL;
			}
			if (SELECT.TYPE_TEMPS_TRAVAIL != '-1') {
				display += '  #B#[DICT.RH.TYPE_TEMPS_TRAVAIL#1]#/B# : ' + SELECT.TYPE_TEMPS_TRAVAIL_LABEL;
			}
			if (SELECT.TYPE_CONTRAT != '-1') {
				display += '  #B#[DICT.RH.TYPE_CONTRAT#1]#/B# : ' + SELECT.TYPE_CONTRAT_LABEL;
			}
			if (SELECT.TYPE_HORAIRE != '-1') {
				display += '  #B#Type horaire#/B# : ' + SELECT.TYPE_HORAIRE_LABEL;
			}
			if (SELECT.SPECIALITE != '-1') {
				display += '  #B#Spécialité#/B# : ' + SELECT.SPECIALITE_LABEL;
			}
			if (SELECT.CATEGORIE_SOCIO_PRO != '-1') {
				display += '  #B#[DICT.RH.CATEGORIE_SOC_PRO#1]#/B# : ' + SELECT.CATEGORIE_SOCIO_PRO_LABEL;
			}
			if (SELECT.CODE_EMPLOI != '-1') {
				display += '  #B#[DICT.RH.CODE_EMPLOI#1]#/B# : ' + SELECT.CODE_EMPLOI_LABEL;
			}
			if (SELECT.GROUPE_COTISANT != '-1') {
				display += '  #B#Groupe cotisant#/B# : ' + SELECT.GROUPE_COTISANT_LABEL;
			}
			if (SELECT.GRILLE != '-1') {
				display += '  #B#[DICT.RH.GRILLE#1]#/B# : ' + SELECT.GRILLE_LABEL;
			}
			if (SELECT.GRILLE_GROUPE != '-1') {
				display += '  #B#[DICT.RH.GROUPE_GRILLE#1]#/B# : ' + SELECT.GRILLE_GROUPE_LABEL;
			}
			if (SELECT.MOTIF_DEBUT_CONTRAT != '-1') {
				display += '  #B#[DICT.RH.MOTIF_DEBUT#1]#/B# : ' + SELECT.MOTIF_DEBUT_CONTRAT_LABEL;
			}
			if (SELECT.MOTIF_FIN_CONTRAT != '-1') {
				display += '  #B#[DICT.RH.MOTIF_FIN#1]#/B# : ' + SELECT.MOTIF_FIN_CONTRAT_LABEL;
			}
			if (SELECT.SALARIE_REMPLACE != '-1') {
				display += '  #B#[DICT.RH.SALARIE] remplacé#/B# : ' + SELECT.SALARIE_REMPLACE_LABEL;
			}
			if (SELECT.SOCIETE_INTERIM != '-1') {
				display += '  #B#Société INTERIM#/B# : ' + SELECT.SOCIETE_INTERIM_LABEL;
			}
			if (SELECT.UNITE_FONCTIONNELLE != '-1') {
				display += '  #B#Unité fonctionnelle#/B# : ' + SELECT.UNITE_FONCTIONNELLE_LABEL;
			}
			if (SELECT.LETTRE_BUDGETAIRE != '-1') {
				display += '  #B#Lettre Budgétaire#/B# : ' + SELECT.LETTRE_BUDGETAIRE_LABEL;
			}
			if (SELECT.COMMISSION_PARITAIRE != '-1') {
				display += '  #B#Grp. Comm. Par.#/B# : ' + SELECT.COMMISSION_PARITAIRE_LABEL;
			}
			if (SELECT.COMPTE_SALARIE != '-1') {
				display += '  #B#Compte [DICT.RH.SALARIE#3]#/B# : ' + SELECT.COMPTE_SALARIE_LABEL;
			}
			if (SELECT.CATEGORIE_CONGE != '-1') {
				display += '  #B#Catégorie de congé#/B# : ' + SELECT.CATEGORIE_CONGE_LABEL;
			}
			if (SELECT.CADRE_EMPLOI != '-1') {
				display += '  #B#Cadre d\'emploi#/B# : ' + SELECT.CADRE_EMPLOI_LABEL;
			}
			if (SELECT.FILIERE != '-1') {
				display += '  #B#Filière#/B# : ' + SELECT.FILIERE_LABEL;
			}
			if (SELECT.CATEGORIE_STATUTAIRE != '-1') {
				display += '  #B#Catégorie Statutaire#/B# : ' + SELECT.CATEGORIE_STATUTAIRE_LABEL;
			}
			return display;
			">
			<GROUP label="" rhProvider="shspub">
				<FIELD name="CADRE_EMPLOI" label="Cadre d'emploi" UI="combo" width="300" tree="true" default="-1" globalListProvider="CADRES_EMPLOI" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="shspub">
				<FIELD name="CATEGORIE_CONGE" label="Catégorie de congé" UI="combo" width="300" tree="true" default="-1" globalListProvider="CATEGORIES_CONGE" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="CATEGORIE_SOCIO_PRO" label="[DICT.RH.CATEGORIE_SOC_PRO#S1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="CATEGORIES_SOCIO_PRO" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="shspub">
				<FIELD name="CATEGORIE_STATUTAIRE" label="Catégorie Statutaire" UI="combo" width="300" tree="true" default="-1" globalListProvider="CATEGORIES_STATUTAIRES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="BUD" label="Clé budgétaire" UI="combo" width="300" tree="true" default="-1" globalListProvider="BUD" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="CODE_EMPLOI" label="[DICT.RH.CODE_EMPLOI#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="CODES_EMPLOI" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="shspub">
				<FIELD name="COMPTE_SALARIE" label="Compte [DICT.RH.SALARIE#3]" UI="combo" width="300" tree="true" default="-1" globalListProvider="COMPTES_SALARIE" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="ETABLISSEMENT" label="Etablissement" UI="combo" width="300" tree="true" default="-1" globalListProvider="ETABLISSEMENTS" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="shspub">
				<FIELD name="FILIERE" label="Filière" UI="combo" width="300" tree="true" default="-1" globalListProvider="FILIERES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="GRILLE" label="[DICT.RH.GRILLE#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="GRILLES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="shspub">
				<FIELD name="COMMISSION_PARITAIRE" label="Grp. Comm. Par." UI="combo" width="300" tree="true" default="-1" globalListProvider="COMMISSIONS_PARITAIRES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="GROUPE_COTISANT" label="[DICT.RH.GROUPE_COTISANT#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="GROUPES_COTISANT" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="GRILLE_GROUPE" label="[DICT.RH.GROUPE_GRILLE#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="GRILLES_GROUPES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="shspub">
				<FIELD name="LETTRE_BUDGETAIRE" label="Lettre Budgétaire" UI="combo" width="300" tree="true" default="-1" globalListProvider="LETTRES_BUDGETAIRES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="MOTIF_DEBUT_CONTRAT" label="[DICT.RH.MOTIF_DEBUT#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="MOTIFS_DEBUT_CONTRAT" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="MOTIF_FIN_CONTRAT" label="[DICT.RH.MOTIF_FIN#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="MOTIFS_FIN_CONTRAT" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="POLE" label="Pole" UI="combo" width="300" tree="true" default="-1" globalListProvider="POLE" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="POPULATION" label="Population" UI="combo" width="300" tree="true" default="-1" globalListProvider="POPULATION" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="!shspub">
				<FIELD name="QUALIFICATION" label="Qualification" UI="combo" width="300" tree="true" default="-1" globalListProvider="QUALIFICATIONS" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="SALARIE_REMPLACE" label="[DICT.RH.SALARIE] remplacé" UI="combo" width="300" tree="true" default="-1" globalListProvider="SALARIES_REMPLACES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="SERVICE" label="[DICT.RH.SERVICE#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="SERVICES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="!shspub">
				<FIELD name="SOCIETE_INTERIM" label="Société INTERIM" UI="combo" width="300" tree="true" default="-1" globalListProvider="SOCIETES_INTERIM" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="!shspub">
				<FIELD name="SPECIALITE" label="Spécialité" UI="combo" width="300" tree="true" default="-1" globalListProvider="SPECIALITES" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="STATUT" label="[DICT.RH.STATUT#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="STATUTS" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="TYPE_CONTRAT" label="[DICT.RH.TYPE_CONTRAT#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="TYPES_CONTRAT" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="TYPE_TEMPS_TRAVAIL" label="[DICT.RH.TYPE_TEMPS_TRAVAIL#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="TYPES_TEMPS_TRAVAIL" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="TYPE_HORAIRE" label="Type horaire" UI="combo" width="300" tree="true" default="-1" globalListProvider="TYPES_HORAIRE" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="shspub">
				<FIELD name="UNITE_FONCTIONNELLE" label="Unité fonctionnelle" UI="combo" width="300" tree="true" default="-1" globalListProvider="UFS" showIfNotDefault="true" />
			</GROUP>
		</SELECTIONS>
		<QUERIES>
		</QUERIES>
	</COMPONENT>
	<COMPONENT name="FILTRES_PAIE_SELECTIONS" label="Filtre paie" >
		<VIEWPROPERTIES>
		<PROPERTY name="PAIE_SELECT" value="" >
				<value><![CDATA[[EVAL 
					$select = "";
					if ("[RH_SELECT_DATA_PROFILE]" != "-1") {
						$select .= "[RH_SELECT_DATA_PROFILE=[RH_SELECT_DATA_PROFILE]]";
					}
					$select .= RHP_Component::standard_field_select("v_rh_view_1.rubrique", 't_rubriques', '[RUBRIQUE]');
					$select .= RHP_Component::standard_field_select("v_compte_2.compte", 't_compte', '[COMPTE]');
					$select .= RHP_Component::standard_field_select("v_ventilation_capsante_1.ventilation_capsante_etablissement", "t_etablissements", "[ETABLISSEMENT_VENTILATION_CAPSANTE]", "v_ventilation_capsante_1.ventilation_capsante_etablissement");
					$select .= RHP_Component::standard_field_select("v_profils_1.section_analytique_paie", "t_sections_analytiques_paie", "[SECTION_ANALYTIQUE_PAIE]");
					$select .= RHP_Component::standard_field_select("v_profils_1.section_analytique", "t_sections_analytiques", "[SECTION_ANALYTIQUE_COMPTA]");
					$select .= RHP_Component::standard_field_select("v_organismes_cotisation_2.organisme_cotisation", 't_organismes_cotisation', '[ORGANISME_COTISATION]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_1", 't_section_analytique', '[PLAN_ANALYTIQUE_1]|[SECTION_ANALYTIQUE_NG_1_1]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_2", 't_section_analytique', '[PLAN_ANALYTIQUE_1]|[SECTION_ANALYTIQUE_NG_1_2]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_3", 't_section_analytique', '[PLAN_ANALYTIQUE_1]|[SECTION_ANALYTIQUE_NG_1_3]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_1", 't_section_analytique', '[PLAN_ANALYTIQUE_2]|[SECTION_ANALYTIQUE_NG_2_1]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_2", 't_section_analytique', '[PLAN_ANALYTIQUE_2]|[SECTION_ANALYTIQUE_NG_2_2]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_3", 't_section_analytique', '[PLAN_ANALYTIQUE_2]|[SECTION_ANALYTIQUE_NG_2_3]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_1", 't_section_analytique', '[PLAN_ANALYTIQUE_3]|[SECTION_ANALYTIQUE_NG_3_1]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_2", 't_section_analytique', '[PLAN_ANALYTIQUE_3]|[SECTION_ANALYTIQUE_NG_3_2]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_3", 't_section_analytique', '[PLAN_ANALYTIQUE_3]|[SECTION_ANALYTIQUE_NG_3_3]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_1", 't_section_analytique', '[PLAN_ANALYTIQUE_4]|[SECTION_ANALYTIQUE_NG_4_1]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_2", 't_section_analytique', '[PLAN_ANALYTIQUE_4]|[SECTION_ANALYTIQUE_NG_4_2]');
					$select .= RHP_Component::standard_field_select("ng_section_analytique_3", 't_section_analytique', '[PLAN_ANALYTIQUE_4]|[SECTION_ANALYTIQUE_NG_4_3]');
					return $select;
				EVAL]]]></value>
				</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres paie" collapsible="true" displayText="= var display:String = '';
			if (ENV.RH_USER_DATA_PROFILE != '*ALL') {
				display += '  #B#Profil#/B# : ' + ENV.RH_USER_DATA_PROFILE_LABEL;
			}
			else {
				if (SELECT.RH_SELECT_DATA_PROFILE != '-1') {
					display += '  #B#Profil#/B# : ' + SELECT.RH_SELECT_DATA_PROFILE_LABEL;
				}
			}
			if (SELECT.RUBRIQUE != '-1') {
				display += '  #B#Rubrique de paie#/B# : ' + SELECT.RUBRIQUE_LABEL;
			}
			if (SELECT.COMPTE != '-1') {
				display += '  #B#Compte#/B# : ' + SELECT.COMPTE_LABEL;
			}
			if (SELECT.ETABLISSEMENT_VENTILATION_CAPSANTE != '-1') {
				display += '  #B#Etablissement de ventilation#/B# : ' + SELECT.ETABLISSEMENT_VENTILATION_CAPSANTE_LABEL;
			}
			if (SELECT.ORGANISME_COTISATION != '-1') {
				display += '  #B#[DICT.RH.ORGANISME_COTISATION]#/B# : ' + SELECT.ORGANISME_COTISATION_LABEL;
			}
			if (SELECT.SECTION_ANALYTIQUE_PAIE != '-1') {
				display += '  #B#[DICT.RH.SECTION_ANA_PAIE#1]#/B# : ' + SELECT.SECTION_ANALYTIQUE_PAIE_LABEL;
			}
			if (SELECT.SECTION_ANALYTIQUE_COMPTA != '-1') {
				display += '  #B#[DICT.RH.SECTION_ANA_CPT#1]#/B# : ' + SELECT.SECTION_ANALYTIQUE_COMPTA_LABEL;
			}
			if (SELECT.PLAN_ANALYTIQUE_1 != '-1') {
				display += '  #B#' + SELECT.PLAN_ANALYTIQUE_1_LABEL + '#/B# : ';
				if (SELECT.SECTION_ANALYTIQUE_NG_1_1 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_1_1_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_1_2 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_1_2_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_1_3 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_1_3_LABEL;
				}
			}
			if (SELECT.PLAN_ANALYTIQUE_2 != '-1') {
				display += '  #B#' + SELECT.PLAN_ANALYTIQUE_2_LABEL + '#/B# : ';
				if (SELECT.SECTION_ANALYTIQUE_NG_2_1 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_2_1_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_2_2 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_2_2_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_2_3 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_2_3_LABEL;
				}
			}
			if (SELECT.PLAN_ANALYTIQUE_3 != '-1') {
				display += '  #B#' + SELECT.PLAN_ANALYTIQUE_3_LABEL + '#/B# : ';
				if (SELECT.SECTION_ANALYTIQUE_NG_3_1 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_3_1_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_3_2 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_3_2_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_3_3 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_3_3_LABEL;
				}
			}
			if (SELECT.PLAN_ANALYTIQUE_4 != '-1') {
				display += '  #B#' + SELECT.PLAN_ANALYTIQUE_4_LABEL + '#/B# : ';
				if (SELECT.SECTION_ANALYTIQUE_NG_4_1 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_4_1_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_4_2 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_4_2_LABEL;
				}
				if (SELECT.SECTION_ANALYTIQUE_NG_4_3 != '-1') {
					display += SELECT.SECTION_ANALYTIQUE_NG_4_3_LABEL;
				}
			}
			return display;
			">
			<GROUP label="">
				<FIELD name="COMPTE" label="Compte" UI="combo" width="300" tree="true" default="-1" globalListProvider="COMPTES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="" visible="= VIEW.VENTILATION_CAPSANTE == '1'">
				<FIELD name="ETABLISSEMENT_VENTILATION_CAPSANTE" label="Etablissement de ventilation" UI="combo" width="300" tree="true" default="-1" globalListProvider="ETABLISSEMENTS" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="ORGANISME_COTISATION" label="[DICT.RH.ORGANISME_COTISATION]" UI="combo" width="300" tree="true" default="-1" globalListProvider="ORGANISMES_COTISATION" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<!-- Première possibilité de filtrage. -->
			<GROUP label="">
				<FIELD name="PLAN_ANALYTIQUE_1" label="Plan analytique 1" UI="combo" width="300" default="-1" globalListProvider="PLANS_ANALYTIQUES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_1_1" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_1 == '1'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_1_2" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_1 == '2'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_1_3" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_1 == '3'">
				</FIELD>
			</GROUP>
			<!-- Deuxième possibilité de filtrage. -->
			<GROUP label="">
				<FIELD name="PLAN_ANALYTIQUE_2" label="Plan analytique 2" UI="combo" width="300" default="-1" globalListProvider="PLANS_ANALYTIQUES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_2_1" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_2 == '1'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_2_2" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_2 == '2'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_2_3" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_2 == '3'">
				</FIELD>
			</GROUP>
			<!-- Troisième possibilité de filtrage. -->
			<GROUP label="">
				<FIELD name="PLAN_ANALYTIQUE_3" label="Plan analytique 3" UI="combo" width="300" default="-1" globalListProvider="PLANS_ANALYTIQUES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_3_1" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_3 == '1'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_3_2" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_3 == '2'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_3_3" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_3 == '3'">
				</FIELD>
			</GROUP>
			<!-- Quatrième possibilité de filtrage. -->
			<GROUP label="">
				<FIELD name="PLAN_ANALYTIQUE_4" label="Plan analytique 4" UI="combo" width="300" default="-1" globalListProvider="PLANS_ANALYTIQUES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_4_1" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_4 == '1'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_4_2" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_4 == '2'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="SECTION_ANALYTIQUE_NG_4_3" label="" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_NG" showIfNotDefault="true" visible="= SELECT.PLAN_ANALYTIQUE_4 == '3'">
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="RH_SELECT_DATA_PROFILE" label="Profil des données" UI="combo" width="300" tree="true" default="-1" 
					globalListProvider="DATA_PROFILE" showIfNotDefault="true"
					visible="= ENV.RH_USER_DATA_PROFILE == '*ALL'" />
			</GROUP>
			<GROUP label="">
				<FIELD name="RUBRIQUE" label="Rubrique" UI="combo" width="300" tree="true" default="-1" globalListProvider="RUBRIQUES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="" rhProvider="!shspub">
				<FIELD name="SECTION_ANALYTIQUE_PAIE" label="[DICT.RH.SECTION_ANA_PAIE#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_PAIE" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="!shspub">
				<FIELD name="SECTION_ANALYTIQUE_COMPTA" label="[DICT.RH.SECTION_ANA_CPT#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="SECTIONS_ANALYTIQUES_COMPTA" showIfNotDefault="true" />
			</GROUP>
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_REFERENTIEL_SAE_SELECTIONS" label="Filtre SAE">
		<VIEWPROPERTIES>
			<PROPERTY name="REFERENTIEL_SAE_SELECT" value="" >
					<value><![CDATA[[EVAL 
						// <?PHP
						
						$select = "";
						
						$select .= RHP_Component::standard_field_select("v_profils_1.qualification", "t_qualifications", "[REFERENTIEL_SAE_CATEGORIES_PERSONNEL]");
						$select .= RHP_Component::standard_field_select("v_profils_1.qualification", "t_qualifications", "[REFERENTIEL_SAE_TYPES_PERSONNEL]");
						$select .= RHP_Component::standard_field_select("v_profils_1.qualification", "t_qualifications", "[REFERENTIEL_SAE_SPECIALITES_DETAILLEES_PERSONNEL]");
						$select .= RHP_Component::standard_field_select("v_profils_1.qualification", "t_qualifications", "[REFERENTIEL_SAE_SPECIALITES_PERSONNEL]");
						$select .= RHP_Component::standard_field_select("v_profils_1.service", "t_services", "[REFERENTIEL_SAE_GROUPES_DISCIPLINES]");

						return $select;
						
						// ?>
					EVAL]]]></value>
			</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres Référentiel SAE" collapsible="true" displayText="= var display:String = '';
			if (SELECT.REFERENTIEL_SAE_CATEGORIES_PERSONNEL != '-1') {
				display += ' #B#Réferentiel SAE#/B# : ' + SELECT.REFERENTIEL_SAE_CATEGORIES_PERSONNEL_LABEL;
			}
			if (SELECT.REFERENTIEL_SAE_TYPES_PERSONNEL != '-1') {
				display += '  #B#Réferentiel SAE#/B# : ' + SELECT.REFERENTIEL_SAE_TYPES_PERSONNEL_LABEL;
			}
			if (SELECT.REFERENTIEL_SAE_GROUPES_DISCIPLINES != '-1') {
				display += '  #B#Réferentiel SAE#/B# : ' + SELECT.REFERENTIEL_SAE_GROUPES_DISCIPLINES_LABEL;
			}
			if (SELECT.REFERENTIEL_SAE_SPECIALITES_DETAILLEES_PERSONNEL != '-1') {
				display += '  #B#Réferentiel SAE#/B# : ' + SELECT.REFERENTIEL_SAE_SPECIALITES_DETAILLEES_PERSONNEL_LABEL;
			}
			if (SELECT.REFERENTIEL_SAE_SPECIALITES_PERSONNEL != '-1') {
				display += '  #B#Réferentiel SAE#/B# : ' + SELECT.REFERENTIEL_SAE_SPECIALITES_PERSONNEL_LABEL;
			}
			return display;
			">
			<GROUP label="">
				<FIELD name="REFERENTIEL_SAE_CATEGORIES_PERSONNEL" label="Catégories du personnel" UI="combo" width="300" tree="true" default="-1" globalListProvider="REFERENTIEL_SAE_CATEGORIES_PERSONNEL" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="REFERENTIEL_SAE_TYPES_PERSONNEL" label="Types de personnel" UI="combo" width="300" tree="true" default="-1" globalListProvider="REFERENTIEL_SAE_TYPES_PERSONNEL" showIfNotDefault="true" >
				</FIELD>
			</GROUP>		
			<GROUP label="">
				<FIELD name="REFERENTIEL_SAE_GROUPES_DISCIPLINES" label="Groupes de disciplines" UI="combo" width="300" tree="true" default="-1" globalListProvider="REFERENTIEL_SAE_GROUPES_DISCIPLINES" showIfNotDefault="true" >
				</FIELD>
			</GROUP>		
			<GROUP label="">
				<FIELD name="REFERENTIEL_SAE_SPECIALITES_DETAILLEES_PERSONNEL" label="Spécialités détaillées du personnel" UI="combo" width="300" tree="true" default="-1" globalListProvider="REFERENTIEL_SAE_SPECIALITES_DETAILLEES_PERSONNEL" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="REFERENTIEL_SAE_SPECIALITES_PERSONNEL" label="Spécialités du personnel" UI="combo" width="300" tree="true" default="-1" globalListProvider="REFERENTIEL_SAE_SPECIALITES_PERSONNEL" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="TYPE_CONTRAT" label="[DICT.RH.TYPE_CONTRAT#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="TYPES_CONTRAT" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="TYPE_TEMPS_TRAVAIL" label="[DICT.RH.TYPE_TEMPS_TRAVAIL#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="TYPES_TEMPS_TRAVAIL" showIfNotDefault="true" />
			</GROUP>			
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_VISITES_SELECTIONS" label="Filtre visites" >
		<VIEWPROPERTIES>
			<PROPERTY name="VISITES_SELECT" value="" >
				<value><![CDATA[[EVAL 
					$select = "";
					$select = $select . RHP_Component::standard_field_select("motif_visite", 't_motifs_visite', '[MOTIF_VISITE]');
					return $select;
				EVAL]]]></value>
			</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres visites médicales" collapsible="true" displayText="= var display:String = '';
						if (SELECT.MOTIF_VISITE != '-1') {
							display = display + '  #B#Motif visite#/B# : ' + SELECT.MOTIF_VISITE_LABEL;
						}
						return display;
						">
			<GROUP label="">
				<FIELD name="MOTIF_VISITE" label="Motif" UI="combo" width="300" tree="true" default="-1" globalListProvider="MOTIFS_VISITE" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_FORMATIONS_SELECTIONS" label="Filtre formations" >
		<VIEWPROPERTIES>
			<PROPERTY name="FORMATIONS_SELECT" value="">
				<value><![CDATA[[EVAL 
						$select = "";
						$select = $select . RHP_Component::standard_field_select("liste_formation", 't_liste_formations', '[FORMATION]');
						return $select;
				EVAL]]]></value>
			</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres formations" collapsible="true" displayText="= var display:String = '';
						if (SELECT.FORMATION != '-1') {
							display = display + '  #B#Formation#/B# : ' + SELECT.FORMATION_LABEL;
						}
						return display;
						">
			<GROUP label="">
				<FIELD name="FORMATION" label="Formation" UI="combo" width="400" tree="true" default="-1" globalListProvider="FORMATIONS" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="UNDONE_FORMATIONS" label="Formations Planifiées" UI="check" selectedValue="Y" unselectedValue="N" default="N"  showIfNotDefault="true"/>
			</GROUP>
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_ACCIDENT_SELECTIONS" label="Filtre Accidents du Travail" >
		<VIEWPROPERTIES>
			<PROPERTY name="ACCIDENT_SELECT" value="" >
				<value><![CDATA[[EVAL 
					$select = "";
					$select = $select . RHP_Component::standard_field_select("accident_circonstance", 't_accident_circonstance', '[ACCIDENT_CIRCONSTANCE]');
					$select = $select . RHP_Component::standard_field_select("accident_lieu", 't_accident_lieu', '[ACCIDENT_LIEU]');
					$select = $select . RHP_Component::standard_field_select("accident_nature", 't_accident_nature', '[ACCIDENT_NATURE]');
					$select = $select . RHP_Component::standard_field_select("accident_siege", 't_accident_siege', '[ACCIDENT_SIEGE]');
					return $select;
				EVAL]]]></value>
			</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres Accidents du Travail" collapsible="true" displayText="= var display:String = '';
				if (SELECT.ACCIDENT_CIRCONSTANCE != '-1') {
					display += '  #B#[DICT.RH.CIRCONSTANCE] accident du travail#/B# : ' + SELECT.ACCIDENT_CIRCONSTANCE_LABEL;
				}
				if (SELECT.ACCIDENT_LIEU != '-1') {
					display += '  #B#[DICT.RH.LIEU] accident du travail#/B# : ' + SELECT.ACCIDENT_LIEU_LABEL;
				}
				if (SELECT.ACCIDENT_NATURE != '-1') {
					display += '  #B#Nature#/B# : ' + SELECT.ACCIDENT_NATURE_LABEL;
				}
				if (SELECT.ACCIDENT_SIEGE != '-1') {
					display += '  #B#Siège#/B# : ' + SELECT.ACCIDENT_SIEGE_LABEL;
				}
				return display;
				">
			<GROUP label="">
				<FIELD name="ACCIDENT_CIRCONSTANCE" label="[DICT.RH.CIRCONSTANCE]" UI="combo" width="300" tree="true" default="-1" globalListProvider="ACCIDENT_CIRCONSTANCE" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="">
				<FIELD name="ACCIDENT_LIEU" label="[DICT.RH.LIEU]" UI="combo" width="300" tree="true" default="-1" globalListProvider="ACCIDENT_LIEU" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="!shspub">
				<FIELD name="ACCIDENT_NATURE" label="Nature" UI="combo" width="300" tree="true" default="-1" globalListProvider="ACCIDENT_NATURE" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="" rhProvider="!shspub">
				<FIELD name="ACCIDENT_SIEGE" label="Siège" UI="combo" width="300" tree="true" default="-1" globalListProvider="ACCIDENT_SIEGE" showIfNotDefault="true" />
			</GROUP>
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_ARRETS_SELECTIONS" label="Filtre arrêts" >
		<VIEWPROPERTIES>
		<PROPERTY name="ARRETS_SELECT" value="" >
				<value><![CDATA[[EVAL 
					$select = "";
					$select = $select . RHP_Component::standard_field_select("v_motifs_arret_2.motif_arret", 't_motifs_arret', '[MOTIF_ARRET]');
					$select = $select . RHP_Component::standard_field_select("v_precisions_motif_arret_2.precision_motif_arret", 't_precisions_motif_arret', '[PRECISION_MOTIF_ARRET]');
					return $select;
				EVAL]]]></value>
				</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres arrêts de travail" collapsible="true" displayText="= var display:String = '';
						if (SELECT.MOTIF_ARRET != '-1') {
							display = display + '  #B#Motif arret#/B# : ' + SELECT.MOTIF_ARRET_LABEL;
						}
						if (SELECT.PRECISION_MOTIF_ARRET != '-1') {
							display = display + '  #B#Precision motif arret#/B# : ' + SELECT.PRECISION_MOTIF_ARRET_LABEL;
						}
						return display;
						">
			<GROUP label="">
				<FIELD name="MOTIF_ARRET" label="Motif" UI="combo" width="300" tree="true" default="-1" globalListProvider="MOTIFS_ARRET" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
			<GROUP label="">
				<FIELD name="PRECISION_MOTIF_ARRET" label="Précision" UI="combo" width="300" tree="true" default="-1" globalListProvider="PRECISIONS_MOTIF_ARRET" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_PLANNING_SELECTIONS" label="Filtre planning" >
		<VIEWPROPERTIES>
		<PROPERTY name="PLANNING_SELECT" value="" >
				<value><![CDATA[[EVAL 
					$select = "";
					$select .= RHP_Component::standard_field_select("planning_service_source", 't_planning_service', '[PLANNING_SERVICE_SOURCE]');
					//$select .= RHP_Component::standard_field_select("planning_service", 't_services', '[PLANNING_SERVICE_P]');
					$select .= RHP_Component::standard_field_select("planning_qualification_source", 't_planning_qualification', '[PLANNING_QUALIFICATION_SOURCE]');
					//$select .= RHP_Component::standard_field_select("planning_qualification", 't_qualifications', '[PLANNING_QUALIFICATION_P]');
                    $select .= RHP_Component::standard_field_select("planning_niveau", 't_planning_niveau', '[PLANNING_NIVEAU]');
                    $select .= RHP_Component::standard_field_select("planning_code_horaire", 't_planning_code_horaire', '[PLANNING_CODE_HORAIRE]');
                    $select .= RHP_Component::specific_day_field_select(array('[PRESENCE_JOUR_1]', '[PRESENCE_JOUR_2]', '[PRESENCE_JOUR_3]', '[PRESENCE_JOUR_4]', '[PRESENCE_JOUR_5]', '[PRESENCE_JOUR_6]', '[PRESENCE_JOUR_7]'));
					return $select;
				EVAL]]]></value>
				</PROPERTY>
		<PROPERTY name="PLANNING_ABSENCE_SELECT" value="" >
				<value><![CDATA[[EVAL 
					return RHP_Component::standard_field_select("planning_type_absence", 't_planning_type_absence', '[PLANNING_TYPE_ABSENCE]');
				EVAL]]]></value>
				</PROPERTY>
		</VIEWPROPERTIES>
		<SELECTIONS label="Filtres planning" collapsible="true" displayText="= var display:String = '';
						/* if (SELECT.PLANNING_SERVICE_P != '-1') {
							display += '  #B#Service Paie (planning)#/B# : ' + SELECT.PLANNING_SERVICE_P_LABEL;
						} */
						if (SELECT.PLANNING_SERVICE_SOURCE != '-1') {
							display += '  #B#Service (planning)#/B# : ' + SELECT.PLANNING_SERVICE_SOURCE_LABEL;
						}
						/* if (SELECT.PLANNING_QUALIFICATION_P != '-1') {
							display += '  #B#Qualification Paie (planning)#/B# : ' + SELECT.PLANNING_QUALIFICATION_P_LABEL;
						} */
						if (SELECT.PLANNING_QUALIFICATION_SOURCE != '-1') {
							display += '  #B#Qualification (planning)#/B# : ' + SELECT.PLANNING_QUALIFICATION_SOURCE_LABEL;
						}
                        if (SELECT.PLANNING_NIVEAU != '-1') {
                            display += '  #B#Niveau#/B# : ' + SELECT.PLANNING_NIVEAU_LABEL;
                        }
                        if (SELECT.PLANNING_CODE_HORAIRE != '-1') {
                            display += '  #B#Code Horaire#/B# : ' + SELECT.PLANNING_CODE_HORAIRE_LABEL;
                        }
						if (SELECT.PLANNING_TYPE_ABSENCE != '-1') {
							display += '  #B#Type absence (planning)#/B# : ' + SELECT.PLANNING_TYPE_ABSENCE_LABEL;
						}

                        var sub_display:String = '';
                        if(SELECT.PRESENCE_JOUR_1 == 1){
                            sub_display += ' lun';
                        }
                        if(SELECT.PRESENCE_JOUR_2 == 1){
                            sub_display += ' mar';
                        }
                        if(SELECT.PRESENCE_JOUR_3 == 1){
                            sub_display += ' mer';
                        }
                        if(SELECT.PRESENCE_JOUR_4 == 1){
                            sub_display += ' jeu';
                        }
                        if(SELECT.PRESENCE_JOUR_5 == 1){
                            sub_display += ' ven';
                        }
                        if(SELECT.PRESENCE_JOUR_6 == 1){
                            sub_display += ' sam';
                        }
                        if(SELECT.PRESENCE_JOUR_7 == 1){
                            sub_display += ' dim';
                        }
                        if(SELECT.PRESENCE_JOUR_1 + SELECT.PRESENCE_JOUR_2 + SELECT.PRESENCE_JOUR_3 + SELECT.PRESENCE_JOUR_4 + SELECT.PRESENCE_JOUR_5 + SELECT.PRESENCE_JOUR_6 + SELECT.PRESENCE_JOUR_7 != '1111111'){
                            display += '  #B#Jour(s)#/B# : ' + sub_display;
                        }
						return display;
						">
            <GROUP label="">
                <FIELD name="PLANNING_SERVICE_SOURCE" label="Service (planning)" UI="combo" width="300" tree="true" default="-1" globalListProvider="PLANNING_SERVICE_SOURCE" showIfNotDefault="true" >
                </FIELD>
            </GROUP>
			<!-- <GROUP label="">
				<FIELD name="PLANNING_SERVICE_P" label="[DICT.RH.SERVICE#1] Paie (planning)" UI="combo" width="300" tree="true" default="-1" globalListProvider="SERVICES" showIfNotDefault="true" />
			</GROUP> -->
            <GROUP label="">
                <FIELD name="PLANNING_QUALIFICATION_SOURCE" label="Qualification (planning)" UI="combo" width="300" tree="true" default="-1" globalListProvider="PLANNING_QUALIFICATION_SOURCE" showIfNotDefault="true" >
                </FIELD>
            </GROUP>
			<!-- <GROUP label="">
				<FIELD name="PLANNING_QUALIFICATION_P" label="Qualification Paie (planning)" UI="combo" width="300" tree="true" default="-1" globalListProvider="QUALIFICATIONS" showIfNotDefault="true" >
				</FIELD>
			</GROUP> -->
            <GROUP label="">
                <FIELD name="PLANNING_NIVEAU" label="[DICT.RH.NIVEAU#1]" UI="combo" width="300" tree="true" default="-1" globalListProvider="PLANNING_NIVEAU" showIfNotDefault="true" >
                </FIELD>
            </GROUP>
			<GROUP label="">
                <FIELD name="PLANNING_CODE_HORAIRE" label="Code Horaire" UI="combo" width="300" tree="true" default="-1" globalListProvider="PLANNING_CODE_HORAIRE" showIfNotDefault="true" >
                </FIELD>
            </GROUP>
			<GROUP label="">
				<FIELD name="PLANNING_TYPE_ABSENCE" label="Type d'absence" UI="combo" width="300" tree="true" default="-1" globalListProvider="PLANNING_TYPE_ABSENCE" showIfNotDefault="true" >
				</FIELD>
			</GROUP>
            <GROUP label="Jours">
                <FIELD name="PRESENCE_JOUR_1" label="L" UI="check" selectedValue="1" unselectedValue="0" default="1"  showIfNotDefault="true"/>
                <FIELD name="PRESENCE_JOUR_2" label="M" UI="check" selectedValue="1" unselectedValue="0" default="1"  showIfNotDefault="true"/>
                <FIELD name="PRESENCE_JOUR_3" label="M" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
                <FIELD name="PRESENCE_JOUR_4" label="J" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
                <FIELD name="PRESENCE_JOUR_5" label="V" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
                <FIELD name="PRESENCE_JOUR_6" label="S" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
                <FIELD name="PRESENCE_JOUR_7" label="D" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
            </GROUP>
		</SELECTIONS>
	</COMPONENT>
	<!-- Activité significative -->
	<COMPONENT name="FILTRES_SALCNT_SOUSSELECTIONS" label="Sous-sélections [DICT.RH.SALARIE#3]-[DICT.RH.CONTRAT#3]" >
		<VIEWPROPERTIES>
				<PROPERTY name="ACTIVITE_SIGNIFICATIVE_DATA" value="[EVAL 
					if ('[ACTIVITE_SIGNIFICATIVE_BASE]' == 'FREQ') {
						return 'DISTINCT v_rh_view_1.salarie_id';
					}
					if ('[ACTIVITE_SIGNIFICATIVE_BASE]' == 'REMU') {
						return 'v_rh_view_1.montant_masse_salariale';
					}
					return '';
				EVAL]" />
		</VIEWPROPERTIES>
		<SELECTIONS label="Données significatives" collapsible="true">
			<displayText><![CDATA[
			
					= var display:String = '';
					
					if (SELECT.ACTIVITE_SIGNIFICATIVE_BASE == 'FREQ') {
						if (SELECT.ACTIVITE_SIGNIFICATIVE_MODE == 'P') {
							display += 'Lignes représentant ' + SELECT.ACTIVITE_SIGNIFICATIVE_NUMBER + '% du classement par [DICT.RH.SALARIE#4]';
						}
						if (SELECT.ACTIVITE_SIGNIFICATIVE_MODE == 'N') {
							display += SELECT.ACTIVITE_SIGNIFICATIVE_NUMBER + ' premieres lignes du classement par [DICT.RH.SALARIE#4]';
						}
					}
					
					if (SELECT.ACTIVITE_SIGNIFICATIVE_BASE == 'REMU') {
						if (SELECT.ACTIVITE_SIGNIFICATIVE_MODE == 'P') {
							display += 'Lignes représentant ' + SELECT.ACTIVITE_SIGNIFICATIVE_NUMBER + '% du classement par rémunération';
						}
						if (SELECT.ACTIVITE_SIGNIFICATIVE_MODE == 'N') {
							display += SELECT.ACTIVITE_SIGNIFICATIVE_NUMBER + ' premieres lignes du classement par rémunération';
						}
					}
					
					if (display != '') {
						display = '#B#Données significatives#/B# = ' + display;
					}
					
					return display;
					
			]]>
			</displayText>
			<GROUP label="Basée sur">
				<FIELD name="ACTIVITE_SIGNIFICATIVE_BASE" label="" width="250" UI="combo" default="-1" tree="true" showIfNotDefault="true">
					<OPTION data="-1" label="Toutes l'activité" treeLevel="1" />
					<OPTION data="-1" label="Niveau de regroupement analyse" treeLevel="1" />
					<OPTION data="FREQ" label="Codes les plus fréquents" treeLevel="2" />
					<OPTION data="REMU" label="Codes les plus rémunérateurs" treeLevel="2" />
				</FIELD>
				<FIELD name="ACTIVITE_SIGNIFICATIVE_MODE" label="" UI="combo"  default="P" visible="= SELECT.ACTIVITE_SIGNIFICATIVE_BASE != '-1'" >
					<OPTION data="P" label="En pourcentage" />
					<OPTION data="N" label="En nombre de lignes" />
				</FIELD>
				<FIELD name="ACTIVITE_SIGNIFICATIVE_NUMBER" label="nombre ou %" UI="text" width="50" default="" visible="= SELECT.ACTIVITE_SIGNIFICATIVE_BASE != '-1'">
				</FIELD>
			</GROUP>
		</SELECTIONS>
	</COMPONENT>
	<COMPONENT name="FILTRES_EXPERT_SELECTIONS" label="Filtres Expert" >
	
		<VIEWPROPERTIES>
		
			<PROPERTY name="EXPERT_CONTROLE_SELECT">
				<value><![CDATA[[EVAL 
					
					$mode = substr('[EXPERT_CONTROLE]',0,2);
					$oid = substr('[EXPERT_CONTROLE]',2);
					if ($mode == 'LS') {
						$section_id = RH_get_section_id('[EXPERT_CONTROLE]');
						$oid = RH_get_classe_oid('[EXPERT_CONTROLE]');
					}
					$subselect = '';
					
					if ($mode == 'LI') {$subselect = " AND expert_controle_id IN (SELECT to_id FROM rh.t_listes_contenu WHERE liste_id = $oid)";}
					if ($mode == 'SL') {$subselect = " AND expert_controle_id NOT IN (SELECT to_id FROM rh.t_listes_contenu WHERE liste_id = $oid)";}
					if ($mode == 'LS') {$subselect = " AND expert_controle_id IN (SELECT oid FROM rh.t_expert_controle WHERE $section_id = $oid)";}
					if ($mode == 'C*') {$subselect = " AND expert_controle_id IN (SELECT oid FROM rh.t_expert_controle WHERE code ILIKE ANY (base.cti_select_codes('$oid')))";}
					if ($mode == 'DT') {$subselect = " AND expert_controle_id = $oid ";}
					
					$mode = substr('[EXPERT_CONTROLE_GRAVITE]',0,2);
					$oid = substr('[EXPERT_CONTROLE_GRAVITE]',2);
					if ($mode == 'DT') {$subselect = "$subselect AND expert_controle_gravite_id = $oid";}
					if ($mode == 'LI' && $oid == "59") {$subselect = "$subselect AND expert_controle_gravite_id IN (5,9)";}
					
					$mode = substr('[EXPERT_CONTROLE_GRAVITE_ALERTES]',0,2);
                    $oid = substr('[EXPERT_CONTROLE_GRAVITE_ALERTES]',2);
                    if ($mode == 'D2' && $oid == "99") {$subselect = "$subselect AND alert_exp = '1'";}


                    $mode = substr('[EXPERT_CONTROLE_OPT]',0,2);
					$oid = substr('[EXPERT_CONTROLE_OPT]',2);
					if ($mode == '-1') {$subselect = "$subselect AND etat = ''";}
					if ($mode == 'LI' && $oid == "IT") {$subselect = "$subselect AND etat IN ('I','T')";}
					if ($mode == 'LI' && $oid == "_IT") {$subselect = "$subselect AND etat IN ('','I','T')";}
					if ($mode == 'DT') {$subselect = "$subselect AND etat = '$oid'";}
					
					if ('[SIGNAL_PERIODE]' != '-1') {$subselect = "$subselect AND date_signalement >= '[SIGNAL_PERIODE]'";}
					if ('[SIGNAL_TOPERIODE]' != '-1') {$subselect = "$subselect AND date_signalement <= '[SIGNAL_TOPERIODE]'";}
					
					if ('[CORRECT_PERIODE]' != '-1') {$subselect = "$subselect AND date_correction >= '[CORRECT_PERIODE]'";}
					if ('[CORRECT_TOPERIODE]' != '-1') {$subselect = "$subselect AND date_correction <= '[CORRECT_TOPERIODE]'";}
					
					return "$subselect";
					
				EVAL]]]></value>
			</PROPERTY>
		
		</VIEWPROPERTIES>
		
		<SELECTIONS label="Filtres Expert" displayText="= var display:String = '';
					if (SELECT.EXPERT_CONTROLE != '-1') {display = display + 'Controle : #B#' + SELECT.EXPERT_CONTROLE_LABEL + ' #/B#'}
					display += ' #B#' + SELECT.EXPERT_CONTROLE_OPT_LABEL + ' #/B#';
					if (SELECT.EXPERT_CONTROLE_GRAVITE != '-1') {display += ' #B#(' + SELECT.EXPERT_CONTROLE_GRAVITE_LABEL + ') #/B#'}

                    if (SELECT.EXPERT_CONTROLE_GRAVITE_ALERTES == 'D299') {display += ' #B#(' + 'Alertes' + ') #/B#'}

					if (SELECT.SIGNAL_PERIODE != '-1' &amp;&amp; SELECT.SIGNAL_TOPERIODE == '-1') {
						display += ' Signalement après #B#' + SELECT.SIGNAL_PERIODE_LABEL + ' #/B#';
					}
					if (SELECT.SIGNAL_TOPERIODE != '-1' &amp;&amp; SELECT.SIGNAL_PERIODE == '-1') {
						display += ' Signalement avant #B#' + SELECT.SIGNAL_TOPERIODE_LABEL + ' #/B#';
					}
					if (SELECT.SIGNAL_PERIODE != '-1' &amp;&amp; SELECT.SIGNAL_TOPERIODE != '-1') {
						display += ' Signalement entre #B# ' + SELECT.SIGNAL_PERIODE_LABEL + ' et ' + SELECT.SIGNAL_TOPERIODE_LABEL + ' #/B#';
					}
					
					if (SELECT.CORRECT_PERIODE != '-1' &amp;&amp; SELECT.CORRECT_TOPERIODE == '-1') {
						display += ' Correction après #B#' + SELECT.CORRECT_PERIODE_LABEL + ' #/B#';
					}
					if (SELECT.CORRECT_TOPERIODE != '-1' &amp;&amp; SELECT.CORRECT_PERIODE == '-1') {
						display += ' Correction avant #B#' + SELECT.CORRECT_TOPERIODE_LABEL + ' #/B#';
					}
					if (SELECT.CORRECT_PERIODE != '-1' &amp;&amp; SELECT.CORRECT_TOPERIODE != '-1') {
						display += ' Correction entre #B# ' + SELECT.CORRECT_PERIODE_LABEL + ' et ' + SELECT.CORRECT_TOPERIODE_LABEL + ' #/B#';
					}
					
					if (display != '') {
						display = '#B#Filtre Expert = #/B#' + display;
					}
					return display;
					">
			<GROUP label="Date Signalement">
				<FIELD name="SIGNAL_PERIODE" label="" UI="combo" tree="true" width="200" default="-1" showIfNotDefault="true" globalListProvider="SIGNAL_DATE_DEBUT" />
				<FIELD name="SIGNAL_TOPERIODE" label="à" UI="combo" tree="true" width="200" default="-1" showIfNotDefault="true" globalListProvider="SIGNAL_DATE_FIN" />
			</GROUP>
			<GROUP label="Date Correction">
				<FIELD name="CORRECT_PERIODE" label="" UI="combo" tree="true" width="200" default="-1" showIfNotDefault="true" globalListProvider="SIGNAL_DATE_DEBUT" />
				<FIELD name="CORRECT_TOPERIODE" label="à" UI="combo" tree="true" width="200" default="-1" showIfNotDefault="true" globalListProvider="SIGNAL_DATE_FIN" />
			</GROUP>
			<GROUP label="Controle Expert">
				<FIELD name="EXPERT_CONTROLE" label="" UI="combo" tree="true" width="420" default="-1" globalListProvider="EXC" showIfNotDefault="true" />
			</GROUP>
			<GROUP label="Gravité">
				<FIELD name="EXPERT_CONTROLE_GRAVITE" label="" UI="combo" default="-1" tree="true">
					<OPTION label="Pas de sélection" data="-1" aliasData="1" treeLevel="1" />
					<OPTION label="Informations" data="DT0" treeLevel="1" />
					<OPTION label="Avertissements" data="DT5" treeLevel="1" />
					<OPTION label="Erreurs" data="DT9" treeLevel="1" />
					<OPTION label="Avertissements et Erreurs" data="LI59" treeLevel="1" />
				</FIELD>
			</GROUP>
            <GROUP label="Alertes expert">
                <FIELD name="EXPERT_CONTROLE_GRAVITE_ALERTES" label="Alertes" UI="check" selectedValue="D299" unselectedValue="" default="" showIfNotDefault="true" />
            </GROUP>

			<GROUP label="Option">
				<FIELD name="EXPERT_CONTROLE_OPT" label="" UI="combo" default="-1" tree="true">
					<OPTION label="Anomalies ou atypies non corrigées" data="-1" aliasData="1" treeLevel="1" />
					<OPTION label="Anomalies ou atypies corrigées et ignorées" data="LIIT" aliasData="1" treeLevel="1" />
					<OPTION label="Anomalies ou atypies corrigées" data="DTT" aliasData="1" treeLevel="1" />
					<OPTION label="Anomalies ou atypies ignorées" data="DTI" aliasData="1" treeLevel="1" />
					<OPTION label="Toutes les anomalies ou atypies" data="LI_IT" aliasData="1" treeLevel="1" />
				</FIELD>
			</GROUP>
		</SELECTIONS>
		
		<QUERIES />
		
	</COMPONENT>
	<COMPONENT name="RH_VIEWLINK">
		<ARG name="PERIODE">
			<value><![CDATA[

			var row_cod:String = '';
			var annee_periode:String = SELECT.PERIODE.substr(0,4);
			var mois_periode:String = SELECT.PERIODE.substr(5,2);
			var annee_toperiode:String = SELECT.TOPERIODE.substr(0,4);
			var mois_toperiode:String = SELECT.TOPERIODE.substr(5,2);
			var mois_debut:int = 0;
			var mois_debut_string:String = '';
			var annee:String = '';

			if(ROW.OID === '-9999999'){
				return SELECT.PERIODE;
			}

			if (SELECT.GROUPBY == 'MACT' || SELECT.GROUPBY_2 == 'MACT' || SELECT.GROUPBY == 'MCAL' || SELECT.GROUPBY_2 == 'MCAL') {
				if (SELECT.GROUPBY == 'MACT' || SELECT.GROUPBY == 'MCAL') {
					if (parseInt(ROW.COD1) <= parseInt(mois_toperiode)) {
						return annee_toperiode + ROW.COD1;
					}
					else {
						return (parseInt(annee_toperiode) - 1).toString() + ROW.COD1;
					}
				}
				else {
					mois_debut = 1 + 3 * (parseInt(ROW.COD1.substr(-1)) - 1);
					mois_debut_string = mois_debut < 10 ? '0' + mois_debut.toString() : mois_debut.toString();
					annee = ROW.COD1.substr(0,4);
					if (SELECT.GROUPBY == 'AMACT' || SELECT.GROUPBY == 'AMCAL') {
						if (ROW.COD == ROW.COD2) {
							return ROW.COD1 + ROW.COD2;
						}
						else {
							if (ROW.COD1 == annee_periode) {
								return SELECT.PERIODE;
							}
							else {
								return ROW.COD1 + '01';
							}
						}
					}
					else if (SELECT.GROUPBY == 'ATRIMACT' || SELECT.GROUPBY == 'ATRIMCAL') {
						if (ROW.COD == ROW.COD2) {
							return annee + ROW.COD2;
						}
						else {
							if (annee == annee_periode && mois_debut <= parseInt(mois_periode)) {
								return SELECT.PERIODE;
							}
							else {
								return annee + mois_debut_string;
							}
						}
					}
					else if (SELECT.GROUPBY == 'TRIMACT' || SELECT.GROUPBY == 'TRIMCAL') {
						if (ROW.COD ==  ROW.COD2) {
							if (parseInt(ROW.COD2) <= parseInt(mois_toperiode)) {
								return annee_toperiode + ROW.COD2
							}
							else {
								return (parseInt(annee_toperiode) - 1).toString() + ROW.COD2;
							}
						}
						else {
							if (mois_debut <= parseInt(mois_toperiode)) {
								return annee_toperiode + mois_debut_string;
							}
							else {
								return (parseInt(annee_toperiode) - 1).toString() + mois_debut_string;
							}
						}
					}
					else {
						if (ROW.COD == ROW.COD2) {
							if (parseInt(ROW.COD2) <= parseInt(mois_toperiode)) {
								return annee_toperiode + ROW.COD2;
							}
							else {
								return (parseInt(annee_toperiode) - 1).toString() + ROW.COD2;
							}
						}
						else {
							return SELECT.PERIODE;
						}
					}
				}
			}
			else if (SELECT.GROUPBY == 'ATRIMACT' || SELECT.GROUPBY_2 == 'ATRIMACT' || SELECT.GROUPBY == 'ATRIMCAL' || SELECT.GROUPBY_2 == 'ATRIMCAL') {
				row_cod = (SELECT.GROUPBY == 'ATRIMACT' || SELECT.GROUPBY == 'ATRIMCAL') ? ROW.COD1 : ROW.COD2;
				var mois_debut:int = 1 + 3 * (parseInt(row_cod.substr(-1)) - 1);
				var annee:String = row_cod.substr(0,4);
				if (annee == annee_periode && mois_debut <= parseInt(mois_periode, 10)) {
					return SELECT.PERIODE;
				}
				else {
					if (mois_debut < 10) {
						annee += '0';
					}
					return annee + mois_debut.toString();
				}
			}
			else if (SELECT.GROUPBY == 'TRIMACT' || SELECT.GROUPBY_2 == 'TRIMACT' || SELECT.GROUPBY == 'TRIMCAL' || SELECT.GROUPBY_2 == 'TRIMCAL') {
				mois_debut = 1 + 3 * (parseInt(ROW.COD2.substr(-1)) - 1);
				mois_debut_string = mois_debut < 10 ? '0' + mois_debut.toString() : mois_debut.toString();
				if (SELECT.GROUPBY == 'TRIMACT' || SELECT.GROUPBY == 'TRIMCAL') {
					mois_debut = 1 + 3 * (parseInt(ROW.COD1.substr(-1)) - 1);
					mois_debut_string = mois_debut < 10 ? '0' + mois_debut.toString() : mois_debut.toString();
					if (mois_debut <= parseInt(mois_toperiode)) {
						return annee_toperiode + mois_debut_string;
					}
					else {
						return (parseInt(annee_toperiode) -1).toString() + mois_debut_string;
					}
				}
				else if (SELECT.GROUPBY == 'AACT' || SELECT.GROUPBY == 'ACAL') {
					if (ROW.COD == ROW.COD2) {
						if (ROW.COD1 == annee_periode && mois_debut <= parseInt(mois_periode)) {
							return SELECT.PERIODE;
						}
						else {
							return ROW.COD1 + mois_debut_string;
						}
					}
					else {
						if (ROW.COD1 == annee_periode) {
							return SELECT.PERIODE;
						}
						else {
							return ROW.COD1 + '01';
						}
					}
				}
				else {
					if (ROW.COD == ROW.COD2) {
						if (mois_debut <= parseInt(mois_toperiode)) {
							return annee_toperiode + mois_debut_string;
						}
						else {
							return (parseInt(annee_toperiode) - 1).toString() + mois_debut_string;
						}
					}
					else {
						return SELECT.PERIODE;
					}
				}
			}
			else if (SELECT.GROUPBY == 'AMACT' || SELECT.GROUPBY_2 == 'AMACT' || SELECT.GROUPBY == 'AMCAL' || SELECT.GROUPBY_2 == 'AMCAL') {
				row_cod = (SELECT.GROUPBY == 'AMACT' || SELECT.GROUPBY == 'AMCAL' ) ? ROW.COD1 : ROW.COD2;
				if (row_cod.substr(0,4) == annee_periode && row_cod.substr(4,2) == mois_periode) {
					return SELECT.PERIODE;
				}
				else {
					return row_cod;
				}
			}
			else if (SELECT.GROUPBY == 'AACT'|| SELECT.GROUPBY_2 == 'AACT' || SELECT.GROUPBY == 'ACAL'|| SELECT.GROUPBY_2 == 'ACAL') {
				row_cod = (SELECT.GROUPBY == 'AACT' || SELECT.GROUPBY == 'ACAL') ? ROW.COD1 : ROW.COD2;
				if (row_cod == annee_periode) {
					return SELECT.PERIODE;
				}
				else {
					return row_cod + '01';
				}
			}
			else {
				if (COLUMN.NAME == 'N1') {return VIEW.COLD1}
				if (COLUMN.NAME == 'N2') {return VIEW.COLD2}
				if (COLUMN.NAME == 'N3') {return VIEW.COLD3}
				if (COLUMN.NAME == 'N4') {return VIEW.COLD4}
				if (COLUMN.NAME == 'N5') {return VIEW.COLD5}
				if (COLUMN.NAME == 'N6') {return VIEW.COLD6}
				if (COLUMN.NAME == 'N7') {return VIEW.COLD7}
				if (COLUMN.NAME == 'N8') {return VIEW.COLD8}
				if (COLUMN.NAME == 'N9') {return VIEW.COLD9}
				if (COLUMN.NAME == 'N10') {return VIEW.COLD10}
				if (COLUMN.NAME == 'N11') {return VIEW.COLD11}
				if (COLUMN.NAME == 'N12') {return VIEW.COLD12}
				if (COLUMN.NAME == 'N13') {return VIEW.COLD13}
				if (COLUMN.NAME == 'N14') {return VIEW.COLD14}
				if (COLUMN.NAME == 'N15') {return VIEW.COLD15}
				if (COLUMN.NAME == 'N16') {return VIEW.COLD16}
				if (COLUMN.NAME == 'N17') {return VIEW.COLD17}
				if (COLUMN.NAME == 'N18') {return VIEW.COLD18}
				if (COLUMN.NAME == 'N19') {return VIEW.COLD19}
				if (COLUMN.NAME == 'N20') {return VIEW.COLD20}
				if (COLUMN.NAME == 'N21') {return VIEW.COLD21}
				if (COLUMN.NAME == 'N22') {return VIEW.COLD22}
				if (COLUMN.NAME == 'N23') {return VIEW.COLD23}
				if (COLUMN.NAME == 'N24') {return VIEW.COLD24}
				if (COLUMN.NAME == 'N25') {return VIEW.COLD25}
				if (COLUMN.NAME == 'N26') {return VIEW.COLD26}
				if (COLUMN.NAME == 'N27') {return VIEW.COLD27}
				if (COLUMN.NAME == 'N28') {return VIEW.COLD28}
				if (COLUMN.NAME == 'N29') {return VIEW.COLD29}
				if (COLUMN.NAME == 'N30') {return VIEW.COLD30}
				if (COLUMN.NAME == 'N31') {return VIEW.COLD31}
				return SELECT.PERIODE;
			}
				
			]]></value>
		</ARG>
		<ARG name="TOPERIODE">
			<value><![CDATA[
			
			var row_cod:String = '';
			var annee_periode:String = SELECT.PERIODE.substr(0,4);
			var mois_periode:String = SELECT.PERIODE.substr(5,2);
			var annee_toperiode:String = SELECT.TOPERIODE.substr(0,4);
			var mois_toperiode:String = SELECT.TOPERIODE.substr(5,2);
			var mois_debut:int = 0;
			var mois_fin:int = 0;
			var mois_fin_string:String = '';
			var annee:String = '';

			if(ROW.OID === '-9999999'){
				return SELECT.TOPERIODE;
			}

			if (SELECT.GROUPBY == 'MACT' || SELECT.GROUPBY_2 == 'MACT' || SELECT.GROUPBY == 'MCAL' || SELECT.GROUPBY_2 == 'MCAL') {
				if (SELECT.GROUPBY == 'MACT' || SELECT.GROUPBY == 'MCAL') {
					if (parseInt(ROW.COD1) <= parseInt(mois_toperiode)) {
						return annee_toperiode + ROW.COD1;
					}
					else {
						return (parseInt(annee_toperiode) - 1).toString() + ROW.COD1;
					}
				}
				else {
					mois_debut = 1 + 3 * (parseInt(ROW.COD1.substr(-1)) - 1);
					mois_fin = 3 * parseInt(ROW.COD1.substr(-1));
					mois_fin_string = mois_fin < 10 ? '0' + mois_fin.toString() : mois_fin.toString();
					annee = ROW.COD1.substr(0,4);
					if (SELECT.GROUPBY == 'AMACT' || SELECT.GROUPBY == 'AMCAL') {
						if (ROW.COD == ROW.COD2) {
							return ROW.COD1 + ROW.COD2;
						}
						else {
							if (ROW.COD1 == annee_toperiode) {
								return SELECT.TOPERIODE;
							}
							else {
								return ROW.COD1 + '12';
							}
						}
					}
					else if (SELECT.GROUPBY == 'ATRIMACT' || SELECT.GROUPBY == 'ATRIMCAL') {
						if (ROW.COD == ROW.COD2) {
							return annee + ROW.COD2;
						}
						else {
							if (annee == annee_toperiode && mois_fin >= parseInt(mois_toperiode)) {
								return SELECT.TOPERIODE;
							}
							else {
								return annee + mois_fin_string;
							}
						}
					}
					else if (SELECT.GROUPBY == 'TRIMACT' || SELECT.GROUPBY == 'TRIMCAL') {
						if (ROW.COD ==  ROW.COD2) {
							if (parseInt(ROW.COD2) <= parseInt(mois_toperiode)) {
								return annee_toperiode + ROW.COD2
							}
							else {
								return (parseInt(annee_toperiode) - 1).toString() + ROW.COD2;
							}
						}
						else {
							if (mois_fin <= parseInt(mois_toperiode)) {
								return annee_toperiode + mois_fin_string;
							}
							else {
								
								if (mois_debut <= parseInt(mois_toperiode)) {
									return SELECT.TOPERIODE;
								}
								else {
									return (parseInt(annee_toperiode) - 1).toString() + mois_fin_string;
								}
							}
						}
					}
					else if (parseInt(row_cod) < parseInt(mois_toperiode)) {
						return annee_toperiode + row_cod;
					}
					else {
						if (ROW.COD == ROW.COD2) {
							if (parseInt(ROW.COD2) <= parseInt(mois_toperiode)) {
								return annee_toperiode + ROW.COD2;
							}
							else {
								return (parseInt(annee_toperiode) - 1).toString() + ROW.COD2;
							}
						}
						else {
							return SELECT.TOPERIODE;
						}
					}
				}
			}
			else if (SELECT.GROUPBY == 'ATRIMACT' || SELECT.GROUPBY_2 == 'ATRIMACT' || SELECT.GROUPBY == 'ATRIMCAL' || SELECT.GROUPBY_2 == 'ATRIMCAL') {
				if (SELECT.GROUPBY == 'ATRIMACT' || SELECT.GROUPBY == 'ATRIMCAL') {
				
					annee = ROW.COD1.substr(0,4);
					mois_fin = 3 * parseInt(ROW.COD1.substr(-1));
					mois_fin_string = mois_fin < 10 ? '0' + mois_fin.toString() : mois_fin.toString();
					
					if (annee == annee_periode && mois_fin >= parseInt(mois_toperiode)) {
						return SELECT.TOPERIODE;
					}
					else {
						return annee + mois_fin_string;
					}
				}
				else {
				
					annee = ROW.COD2.substr(0,4);
					mois_fin = 3 * parseInt(ROW.COD2.substr(-1));
					mois_fin_string = mois_fin < 10 ? '0' + mois_fin.toString() : mois_fin.toString();
					
					if (ROW.COD == ROW.COD2) {
						
						if (annee == annee_toperiode && mois_fin >= parseInt(mois_toperiode)) {
							return SELECT.TOPERIODE;
						}
						else {
							return annee + mois_fin_string;
						}
					}
					else {
						
						if ((SELECT.GROUPBY == 'AACT' || SELECT.GROUPBY == 'ACAL') && ROW.COD1 != annee_toperiode) {
							return ROW.COD1 + '12';
						}
						else {
							return SELECT.TOPERIODE;
						}
					}
				}
			}
			if (SELECT.GROUPBY == 'TRIMACT' || SELECT.GROUPBY_2 == 'TRIMACT' || SELECT.GROUPBY == 'TRIMCAL' || SELECT.GROUPBY_2 == 'TRIMCAL') {
				mois_debut = 1 + 3 * (parseInt(ROW.COD2.substr(-1)) - 1);
				mois_fin = 3 * parseInt(ROW.COD2.substr(-1));
				mois_fin_string = mois_fin < 10 ? '0' + mois_fin.toString() : mois_fin.toString();
				
				if (SELECT.GROUPBY == 'TRIMACT' || SELECT.GROUPBY == 'TRIMCAL') {
				
					mois_debut = 1 + 3 * (parseInt(ROW.COD1.substr(-1)) - 1);
					mois_fin = 3 * parseInt(ROW.COD1.substr(-1));
					mois_fin_string = mois_fin < 10 ? '0' + mois_fin.toString() : mois_fin.toString();
					
					if (mois_fin <= parseInt(mois_toperiode)) {
						return annee_toperiode + mois_fin_string;
					}
					else {
						
						if (mois_debut <= parseInt(mois_toperiode)) {
							return SELECT.TOPERIODE;
						}
						else {
							return (parseInt(annee_toperiode) -1).toString() + mois_fin_string;
						}
					}
				}
				else if (SELECT.GROUPBY == 'AACT' || SELECT.GROUPBY == 'ACAL') {

					if (ROW.COD == ROW.COD2) {
						
						if (ROW.COD1 == annee_toperiode && mois_fin >= parseInt(mois_toperiode)) {
							return SELECT.TOPERIODE;
						}
						else {
							return ROW.COD1 + mois_fin_string;
						}
					}
					else {
						
						if (ROW.COD1 == annee_toperiode) {
							return SELECT.TOPERIODE;
						}
						else {
							return ROW.COD1 + '12';
						}
					}
				}
				else {
					
					if (ROW.COD == ROW.COD2) {
						
						if (mois_fin <= parseInt(mois_toperiode)) {
							return annee_toperiode + mois_fin_string;
						}
						else {
							
							if (mois_debut <= mois_toperiode) {
								return SELECT.TOPERIODE;
							}
							else {
								return (parseInt(annee_toperiode) -1).toString() + mois_fin_string;
							}
						}
					}
					else {
						return SELECT.TOPERIODE;
					}
				}
			}
			else if (SELECT.GROUPBY == 'AACT'|| SELECT.GROUPBY_2 == 'AACT' || SELECT.GROUPBY == 'ACAL'|| SELECT.GROUPBY_2 == 'ACAL') {

				row_cod = (SELECT.GROUPBY == 'AACT'|| SELECT.GROUPBY == 'ACAL') ? ROW.COD1 : ROW.COD2;
				
				if (row_cod == annee_toperiode) {
					return SELECT.TOPERIODE;
				}
				else {
					return row_cod + '12';
				}
			}
			else {
					if (COLUMN.NAME == 'N1') {return VIEW.COLF1}
					if (COLUMN.NAME == 'N2') {return VIEW.COLF2}
					if (COLUMN.NAME == 'N3') {return VIEW.COLF3}
					if (COLUMN.NAME == 'N4') {return VIEW.COLF4}
					if (COLUMN.NAME == 'N5') {return VIEW.COLF5}
					if (COLUMN.NAME == 'N6') {return VIEW.COLF6}
					if (COLUMN.NAME == 'N7') {return VIEW.COLF7}
					if (COLUMN.NAME == 'N8') {return VIEW.COLF8}
					if (COLUMN.NAME == 'N9') {return VIEW.COLF9}
					if (COLUMN.NAME == 'N10') {return VIEW.COLF10}
					if (COLUMN.NAME == 'N11') {return VIEW.COLF11}
					if (COLUMN.NAME == 'N12') {return VIEW.COLF12}
					if (COLUMN.NAME == 'N13') {return VIEW.COLD13}
					if (COLUMN.NAME == 'N14') {return VIEW.COLD14}
					if (COLUMN.NAME == 'N15') {return VIEW.COLD15}
					if (COLUMN.NAME == 'N16') {return VIEW.COLD16}
					if (COLUMN.NAME == 'N17') {return VIEW.COLD17}
					if (COLUMN.NAME == 'N18') {return VIEW.COLD18}
					if (COLUMN.NAME == 'N19') {return VIEW.COLD19}
					if (COLUMN.NAME == 'N20') {return VIEW.COLD20}
					if (COLUMN.NAME == 'N21') {return VIEW.COLD21}
					if (COLUMN.NAME == 'N22') {return VIEW.COLD22}
					if (COLUMN.NAME == 'N23') {return VIEW.COLD23}
					if (COLUMN.NAME == 'N24') {return VIEW.COLD24}
					if (COLUMN.NAME == 'N25') {return VIEW.COLD25}
					if (COLUMN.NAME == 'N26') {return VIEW.COLD26}
					if (COLUMN.NAME == 'N27') {return VIEW.COLD27}
					if (COLUMN.NAME == 'N28') {return VIEW.COLD28}
					if (COLUMN.NAME == 'N29') {return VIEW.COLD29}
					if (COLUMN.NAME == 'N30') {return VIEW.COLD30}
					if (COLUMN.NAME == 'N31') {return VIEW.COLD31}
				return SELECT.TOPERIODE;
			}	
						
			]]></value>
		</ARG>	
        <ARG name="ALIAS_PERIODE" value="return '-1';"/>
		<ARGS name="ALL" >
			<value><![CDATA[
				var tmpGroupBy:String = "";
				var GROUPBY_OID:String = "";
				var tmpGroupBy2:String = "";
				var GROUPBY_2_OID:String = "";
                var tmpGroupBy3:String = "";
                var GROUPBY_3_OID:String = "";
				
                // Group by 1.
				if (SELECT.GROUPBY.substr(3, 3) != "CLS") {
					tmpGroupBy = SELECT.GROUPBY;
					GROUPBY_OID = 'DT' + ROW.OID1;
					if (tmpGroupBy == 'CPD') {
						GROUPBY_OID = 'D2' + ROW.OID1;
					}
					if (tmpGroupBy == 'ETS') {
						GROUPBY_OID = 'D2' + ROW.OID1;
					}
				} else {
					tmpGroupBy = SELECT.GROUPBY.substr(0, 3);
					GROUPBY_OID = 'LS' + SELECT.GROUPBY.substr(6, 2) + ROW.OID1;
				}

                // Group by 2.
				if (Number(ROW.OID2) > 0) {
					if (SELECT.GROUPBY_2.substr(3, 3) != "CLS") {
						tmpGroupBy2 = SELECT.GROUPBY_2;
						GROUPBY_2_OID = 'DT' + ROW.OID2;
						if (tmpGroupBy2 == 'CPD') {
							GROUPBY_2_OID = 'D2' + ROW.OID2;
						}
						if (tmpGroupBy2 == 'ETS') {
							GROUPBY_2_OID = 'D2' + ROW.OID2;
						}
					} else {
						tmpGroupBy2 = SELECT.GROUPBY_2.substr(0, 3);
						GROUPBY_2_OID = 'LS' + SELECT.GROUPBY_2.substr(6, 2) + ROW.OID2;
					}
				}

                // Group by 3.
                if (Number(ROW.OID3) > 0) {
                    if (SELECT.GROUPBY_3.substr(3, 3) != "CLS") {
                        tmpGroupBy3 = SELECT.GROUPBY_3;
                        GROUPBY_3_OID = 'DT' + ROW.OID3;
                        if (tmpGroupBy3 == 'CPD') {
                            GROUPBY_3_OID = 'D2' + ROW.OID3;
                        }
                        if (tmpGroupBy3 == 'ETS') {
                            GROUPBY_3_OID = 'D2' + ROW.OID3;
                        }
                    } else {
                        tmpGroupBy3 = SELECT.GROUPBY_3.substr(0, 3);
                        GROUPBY_3_OID = 'LS' + SELECT.GROUPBY_3.substr(6, 2) + ROW.OID3;
                    }
                }
				
				LINKVARIABLES['GROUPBY'] = '-1'
				LINKVARIABLES['GROUPBY_2'] = 'SAL'
				LINKVARIABLES['GROUPBY_TAB'] = 'AUTO'
				
                var groupByAssoc:Array = new Array();
                groupByAssoc['AN1'] = 'SECTION_ANALYTIQUE_NG_4_1'; // Specificite pour ces sections analytiques cf. groupByAssoc2 plus bas.
                groupByAssoc['AN2'] = 'SECTION_ANALYTIQUE_NG_4_2'; // idem.
                groupByAssoc['AN3'] = 'SECTION_ANALYTIQUE_NG_4_3'; // idem.
                groupByAssoc['AGE'] = 'AGE';
                groupByAssoc['ANC'] = 'ANCIENNETE';
                groupByAssoc['ATC'] = 'ACCIDENT_CIRCONSTANCE';
                groupByAssoc['ATL'] = 'ACCIDENT_LIEU';
                groupByAssoc['ATN'] = 'ACCIDENT_NATURE';
                groupByAssoc['ATS'] = 'ACCIDENT_SIEGE';
                groupByAssoc['CAC'] = 'CATEGORIE_CONGE';
                groupByAssoc['CAE'] = 'CADRE_EMPLOI';
                groupByAssoc['CAS'] = 'CATEGORIE_STATUTAIRE';
                groupByAssoc['CEM'] = 'CODE_EMPLOI';
                groupByAssoc['COI'] = 'COMPTE_SALARIE';
                groupByAssoc['CPD'] = 'CODE_POSTAL';
                groupByAssoc['CPO'] = 'CODE_POSTAL';
                groupByAssoc['CPT'] = 'COMPTE';
                groupByAssoc['CSC'] = 'CATEGORIE_SOCIO_PRO';
                groupByAssoc['ENT'] = 'ETABLISSEMENT';
                groupByAssoc['ETS'] = 'ETABLISSEMENT';
                groupByAssoc['FIL'] = 'FILIERE';
                groupByAssoc['FOR'] = 'FORMATION';
                groupByAssoc['GCP'] = 'COMMISSION_PARITAIRE';
                groupByAssoc['GCT'] = 'GROUPE_COTISANT';
                groupByAssoc['GRG'] = 'GRILLE_GROUPE';
                groupByAssoc['GRI'] = 'GRILLE';
                groupByAssoc['LEB'] = 'LETTRE_BUDGETAIRE';
                groupByAssoc['MOA'] = 'MOTIF_ARRET';
                groupByAssoc['MPA'] = 'PRECISION_MOTIF_ARRET';
                groupByAssoc['MTD'] = 'MOTIF_DEBUT_CONTRAT';
                groupByAssoc['MTF'] = 'MOTIF_FIN_CONTRAT';
                groupByAssoc['NAT'] = 'NATIONALITE';
                groupByAssoc['NIR'] = 'SALARIE'; // L'oid du NIR correspond à l'oid du salarié
                groupByAssoc['ORC'] = 'ORGANISME_COTISATION';
                groupByAssoc['PAB'] = 'PLANNING_TYPE_ABSENCE';
                groupByAssoc['PEP'] = 'PLANNING_ETABLISSEMENT';
                groupByAssoc['PNI'] = 'PLANNING_NIVEAU';
                groupByAssoc['PQP'] = 'PLANNING_QUALIFICATION';
                groupByAssoc['PQU'] = 'PLANNING_QUALIFICATION_SOURCE';
                groupByAssoc['PSE'] = 'PLANNING_SERVICE_SOURCE';
                groupByAssoc['PSP'] = 'PLANNING_SERVICE';
                groupByAssoc['QUA'] = 'QUALIFICATION';
                groupByAssoc['RUP'] = 'RUBRIQUE';
                groupByAssoc['SAC'] = 'SECTION_ANALYTIQUE_COMPTA';
                groupByAssoc['SAL'] = 'SALARIE';
                groupByAssoc['SAP'] = 'SECTION_ANALYTIQUE_PAIE';
                groupByAssoc['SER'] = 'SERVICE';
                groupByAssoc['POL'] = 'POLE';
                groupByAssoc['POP'] = 'POPULATION';
                groupByAssoc['SEX'] = 'SEXE';
                groupByAssoc['SFA'] = 'SITUATION_FAMILLE';
                groupByAssoc['SIN'] = 'SOCIETE_INTERIM';
                groupByAssoc['SPE'] = 'SPECIALITE';
                groupByAssoc['SRP'] = 'SALARIE_REMPLACE';
                groupByAssoc['STA'] = 'STATUT';
                groupByAssoc['TCN'] = 'TYPE_CONTRAT';
                groupByAssoc['THO'] = 'TYPE_HORAIRE';
                groupByAssoc['TTT'] = 'TYPE_TEMPS_TRAVAIL';
                groupByAssoc['UNF'] = 'UNITE_FONCTIONNELLE';

                if (groupByAssoc[tmpGroupBy] !== undefined) {
                    LINKVARIABLES[groupByAssoc[tmpGroupBy]] = GROUPBY_OID;
                }
                if (groupByAssoc[tmpGroupBy2] !== undefined) {
                    LINKVARIABLES[groupByAssoc[tmpGroupBy2]] = GROUPBY_2_OID;
                }
                if (groupByAssoc[tmpGroupBy3] !== undefined) {
                    LINKVARIABLES[groupByAssoc[tmpGroupBy3]] = GROUPBY_3_OID;
                }

                var groupByAssoc2:Array = new Array();
                groupByAssoc2['AN1'] = 'PLAN_ANALYTIQUE_4'; // Specificite pour ces sections analytiques.
                groupByAssoc2['AN2'] = 'PLAN_ANALYTIQUE_4'; // idem.
                groupByAssoc2['AN3'] = 'PLAN_ANALYTIQUE_4'; // idem.

                if (groupByAssoc2[tmpGroupBy] !== undefined) {
                    LINKVARIABLES[groupByAssoc2[tmpGroupBy]] = 1;
                }
                if (groupByAssoc2[tmpGroupBy2] !== undefined) {
                    LINKVARIABLES[groupByAssoc2[tmpGroupBy2]] = 2;
                }
                if (groupByAssoc2[tmpGroupBy3] !== undefined) {
                    LINKVARIABLES[groupByAssoc2[tmpGroupBy3]] = 3;
                }

				return 'OK';
			
			]]></value>
		</ARGS>
		<ARG name="EXPERT_CONTROLE">
			<value><![CDATA[
				
                if (SELECT.GROUPBY_2.substr(0,6) == 'EXCCLS' && ROW.OID2 != '0') {return 'LS' + SELECT.GROUPBY_2.substr(6) + ROW.OID2} 
				if (SELECT.GROUPBY_2 == 'EXC' && ROW.OID2 != '0') {return 'DT' + ROW.OID2} 
				if (SELECT.GROUPBY.substr(0,6) == 'EXCCLS') {return 'LS' + SELECT.GROUPBY.substr(6) + ROW.OID1} 
				if (SELECT.GROUPBY == 'EXC') {return 'DT' + ROW.OID1} 
				
			]]></value>
		</ARG>
	</COMPONENT>
</COMPONENTS>
