<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="RH000101" label="RH Analyse croisée" title="= 'Analyse croisée [DICT.RH.ARRET_TRAVAIL#4] par ' +  SELECT.GROUPBY_LABEL + '/'+SELECT.COLUMNBY_LABEL+' en ' + SELECT.DATA_LABEL + ' (' + 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:arrets_de_travail" helpDokuWIkiFile="rh000101"  helpFile=""
>
	<VIEWPROPERTIES componentName="PROPERTIES_ARRET"/>
	<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
	<VIEWPROPERTIES>
		<PROPERTY name="DATAFUNC">
			<value><![CDATA[[EVAL 
				// <?php
				
				function RH000101_calcSQL($data) {
					$ctiDivision = "base.cti_division(%s, %s)";
					$columnCheckSequence = "(CASE WHEN COLUMNCHECKSEQUENCE %s THEN %s ELSE null END)";
					$countDistinctCaseWhen = "count(DISTINCT CASE WHEN 1=1 %s THEN %s ELSE null END)";
					$sumCaseWhen = "sum(CASE WHEN 1=1 %s THEN %s ELSE 0 END)";
					$sumDistinctCaseWhen = "sum(CASE WHEN 1=1 %s THEN %s ELSE 0 END)";
					$sumDistinctOn = "base.cti_sum_distinct_on(DISTINCT ARRAY[%s::numeric, %s::numeric])";
					$sumDistinctOnCaseWhen = "base.cti_sum_distinct_on(DISTINCT ARRAY[%s::numeric, (CASE WHEN 1=1 %s THEN %s ELSE 0 END)::numeric])";
					
					switch ($data) {
						case 'NSAL':
							$tmp1 = 'count(DISTINCT CASE WHEN nb_arret = 1 THEN v_rh_view_1.salarie_id ELSE null END)';
							$tmp2 = sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND nb_arret = 1", 'salarie_id');
							break;
						case 'NCNT':
							$tmp1 = 'count(DISTINCT CASE WHEN nb_arret = 1 THEN v_rh_view_1.contrat_id ELSE null END)';
							$tmp2 = sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND nb_arret = 1", 'contrat_id');
							break;
						case 'NARR':
							$tmp1 = 'count(DISTINCT CASE WHEN nb_arret = 1 THEN v_rh_view_1.arret_travail_id ELSE null END)';
							$tmp2 = sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND nb_arret = 1", 'arret_travail_id');
							break;
						case 'NARRMOY':
							$tmp1 = 'base.cti_division(count(DISTINCT CASE WHEN nb_arret = 1 THEN v_rh_view_1.arret_travail_id ELSE null END), count(DISTINCT CASE WHEN nb_arret = 1 THEN v_rh_view_1.salarie_id ELSE null END))';
							$tmp2 = sprintf($ctiDivision, sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND nb_arret = 1", 'arret_travail_id'), sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND nb_arret = 1", 'salarie_id'));
							break;
						case 'NJOU':
                            $tmp1 = sprintf($sumCaseWhen, "AND nb_arret = 1", 'nb_jours_arret');
                            $tmp2 = sprintf($sumCaseWhen, "AND COLUMNCHECKSEQUENCE AND nb_arret = 1", 'nb_jours_arret');
							break;
						case 'NACT':
							$tmp1 = sprintf($countDistinctCaseWhen, "AND v_rh_view_1.motif_arret_section_code[9] = 'ACT' AND nb_arret = 1", 'arret_travail_id');
							$tmp2 = sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND v_rh_view_1.motif_arret_section_code[9] = 'ACT' AND nb_arret = 1", 'arret_travail_id');
							break;
						case 'JACT':
							$tmp1 = sprintf($sumDistinctOnCaseWhen, '(v_rh_view_1.arret_travail_id||v_rh_view_1.mois_activite_id)', "AND v_rh_view_1.motif_arret_section_code[9] = 'ACT' AND nb_arret = 1", 'nb_jours_arret');
							$tmp2 = sprintf($sumDistinctOnCaseWhen, '(v_rh_view_1.arret_travail_id||v_rh_view_1.mois_activite_id)', "AND COLUMNCHECKSEQUENCE AND v_rh_view_1.motif_arret_section_code[9] = 'ACT' AND nb_arret = 1", 'nb_jours_arret');
							break;
						case 'NMAL':
							$tmp1 = sprintf($countDistinctCaseWhen, "AND v_rh_view_1.motif_arret_section_code[9] = 'MAL' AND nb_arret = 1", 'arret_travail_id');
							$tmp2 = sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND v_rh_view_1.motif_arret_section_code[9] = 'MAL' AND nb_arret = 1", 'arret_travail_id');
							break;
						case 'JMAL':
							$tmp1 = sprintf($sumDistinctOnCaseWhen, '(v_rh_view_1.arret_travail_id||v_rh_view_1.mois_activite_id)', "AND v_rh_view_1.motif_arret_section_code[9] = 'MAL' AND nb_arret = 1", 'nb_jours_arret');
							$tmp2 = sprintf($sumDistinctOnCaseWhen, '(v_rh_view_1.arret_travail_id||v_rh_view_1.mois_activite_id)', "AND COLUMNCHECKSEQUENCE AND v_rh_view_1.motif_arret_section_code[9] = 'MAL' AND nb_arret = 1", 'nb_jours_arret');
							break;
						case 'NMAT':
							$tmp1 = sprintf($countDistinctCaseWhen, "AND v_rh_view_1.motif_arret_section_code[9] = 'MAT' AND nb_arret = 1", 'arret_travail_id');
							$tmp2 = sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND v_rh_view_1.motif_arret_section_code[9] = 'MAT' AND nb_arret = 1", 'arret_travail_id');
							break;
						case 'JMAT':
							$tmp1 = sprintf($sumDistinctOnCaseWhen, '(v_rh_view_1.arret_travail_id||v_rh_view_1.mois_activite_id)', "AND v_rh_view_1.motif_arret_section_code[9] = 'MAT' AND nb_arret = 1", 'nb_jours_arret');
							$tmp2 = sprintf($sumDistinctOnCaseWhen, '(v_rh_view_1.arret_travail_id||v_rh_view_1.mois_activite_id)', "AND COLUMNCHECKSEQUENCE AND v_rh_view_1.motif_arret_section_code[9] = 'MAT' AND nb_arret = 1", 'nb_jours_arret');
							break;
						case 'DMOYARR':
							$tmp1 = 'base.cti_division(sum(v_rh_view_1.nb_jours_arret), count(DISTINCT CASE WHEN nb_arret = 1 THEN v_rh_view_1.arret_travail_id ELSE null END))';
							$tmp2 = sprintf($ctiDivision, 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.nb_jours_arret ELSE 0 END)', sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE AND nb_arret = 1", 'arret_travail_id'));
							break;
						case 'NDEB':
							$tmp1 = sprintf($sumDistinctOnCaseWhen, 'v_rh_view_1.arret_travail_id', '', 'v_rh_view_1.nb_debut_arret');
							$tmp2 = sprintf($sumDistinctOnCaseWhen, 'v_rh_view_1.arret_travail_id', 'AND COLUMNCHECKSEQUENCE', 'v_rh_view_1.nb_debut_arret');
							break;
						case 'NFIN':
							$tmp1 = sprintf($sumDistinctOnCaseWhen, 'v_rh_view_1.arret_travail_id', '', 'v_rh_view_1.nb_fin_arret');
							$tmp2 = sprintf($sumDistinctOnCaseWhen, 'v_rh_view_1.arret_travail_id', 'AND COLUMNCHECKSEQUENCE', 'v_rh_view_1.nb_fin_arret');
							break;
						case 'NREP':
							$tmp1 = sprintf($sumDistinctOnCaseWhen, 'v_rh_view_1.arret_travail_id', '', 'v_rh_view_1.nb_reprise_apres_arret');
							$tmp2 = sprintf($sumDistinctOnCaseWhen, 'v_rh_view_1.arret_travail_id', 'AND COLUMNCHECKSEQUENCE', 'v_rh_view_1.nb_reprise_apres_arret');
							break;
						default :
							$tmp1 = 'null';
							$tmp2 = 'null';
					}
					return array($tmp1, $tmp2);
				}
				
				// ?>
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATASQL">
			<value><![CDATA[[EVAL 
				// <?php
				
				$indicators = "INDICATORS{%s,}";
				$indicatorsColumns = "INDICATORS_COLUMNS{%s,}";
					
				$tmp = RH000101_calcSQL('[DATA]');
				
				return sprintf($indicators, $tmp[0]) . PHP_EOL . sprintf($indicatorsColumns, $tmp[1]);
				
				// ?>
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATACOLUMN">
			<value><![CDATA[[EVAL 
				// <?php
				
				$tmp = RH000101_calcSQL('[DATA]');
				return $tmp[0];
				
				// ?>
			EVAL]]]></value>
		</PROPERTY>
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse" displayText="">
		<GROUP label="Période">
			<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
			<FIELD name="PERIODE" label="" UI="combo" tree="true" width="200" default="2010-01-01" globalListProvider="PERIODE_DEBUT"/>
			<FIELD name="TOPERIODE" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN"/>
		</GROUP>
		<GROUP>
			<FIELD name="DATA" label="Donnée" UI="combo" default="NSAL">
				<OPTION label="Nb [DICT.RH.ARRET_TRAVAIL#4]" 					data="NARR"		data2="#"	data3="#"/>
				<OPTION label="Nb [DICT.RH.ARRET_TRAVAIL#4] moyen" 				data="NARRMOY" 	data2="#,0"	data3="#,0"/>
				<OPTION label="Nombre de jours d'[DICT.RH.ARRET_TRAVAIL_COURT#2] de travail"		 		data="NJOU"		data2="#,0"	data3="#,0"/>
				<OPTION label="Durée moyenne [DICT.RH.ARRET_TRAVAIL#4]"			data="DMOYARR" 	data2="#,0"	data3="#,0"/>
				<OPTION label="Nb [DICT.RH.SALARIE#4] avec [DICT.RH.ARRET_TRAVAIL_COURT#2] de travail" 	data="NSAL"		data2="#"	data3="#"/>
				<OPTION label="Nombre de nouveaux arrêts de travail" 			data="NDEB"		data2="#"	data3="#"/>
				<OPTION label="Nombre reprise après [DICT.RH.ARRET_TRAVAIL_COURT#2] de travail"			data="NREP"		data2="#"	data3="#"/>
				<OPTION label="Nb [DICT.RH.CONTRAT#4] avec [DICT.RH.ARRET_TRAVAIL_COURT#2] de travail" 	data="NCNT"		data2="#"	data3="#"/>
				<!--
				<OPTION label="Nb accidents du travail" 						data="NACT" 	data2="#,0"	data3="#,0"/>
				<OPTION label="Jours accident du travail" 						data="JACT"		data2="#,0"	data3="#,0"/>
				<OPTION label="Nb maladies" 									data="NMAL"		data2="#,0"	data3="#,0"/>
				<OPTION label="Jours maladies" 									data="JMAL"		data2="#,0"	data3="#,0"/>
				<OPTION label="Nb maternités" 									data="NMAT" 	data2="#,0"	data3="#,0"/>
				<OPTION label="Jours maternités"		 						data="JMAT" 	data2="#,0"	data3="#,0"/>
				-->
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="COLUMNBY" label="Colonnes" width="200" UI="combo" default="SAL" tree="true">
				<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
				<OPTION label="[DICT.RH.ARRET_TRAVAIL_COURT#1]" data="MOA" treeLevel="1" globalListProvider="ARRET_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_GROUPBY"/>
			</FIELD>
			<FIELD name="COLUMNBYCOUNT" label="Nombre" UI="combo" default="10" tree="false">
				<OPTION label="5"  data="5" />
				<OPTION label="6"  data="6" />
				<OPTION label="7"  data="7" />
				<OPTION label="8"  data="8" />
				<OPTION label="9"  data="9" />
				<OPTION label="10" data="10"/>
				<OPTION label="11" data="11"/>
				<OPTION label="12" data="12"/>
				<OPTION label="13" data="13"/>
				<OPTION label="14" data="14"/>
				<OPTION label="15" data="15"/>
				<OPTION label="16" data="16"/>
				<OPTION label="17" data="17"/>
				<OPTION label="18" data="18"/>
				<OPTION label="19" data="19"/>
				<OPTION label="20" data="20"/>
			</FIELD>
		</GROUP>
		<GROUP label="Regroupement">
			<FIELD name="GROUPBY" label="" UI="combo" width="200" default="MOA" tree="true" >
				<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
				<OPTION label="[DICT.RH.ARRET_TRAVAIL_COURT#1]" data="MOA" treeLevel="1" globalListProvider="ARRET_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_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="200" 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="[DICT.RH.ARRET_TRAVAIL_COURT#1]" data="MOA" treeLevel="1" globalListProvider="ARRET_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_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="200" 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="[DICT.RH.ARRET_TRAVAIL_COURT#1]" data="MOA" treeLevel="1" globalListProvider="ARRET_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_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_ARRETS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SALARIES_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_CONTRATS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_REFERENTIEL_SAE_SELECTIONS"/>
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_AT_X" optimizer2="V_ALL_X">
				<select><![CDATA[		

					CTISELECT_TREE
						GROUPBY1{[VIEW.GROUPBY_OID_FIELD],, [VIEW.GROUPBY_COD_FIELD],, [VIEW.GROUPBY_TXT_FIELD]}
						GROUPBY1MODE{[GROUPBY_TAB]}
						GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
						GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD],, [VIEW.GROUPBY_3_COD_FIELD],, [VIEW.GROUPBY_3_TXT_FIELD]}
						COLUMNBYOID{[VIEW.COLUMNBY_OID_FIELD],, [VIEW.COLUMNBY_COD_FIELD] ,, [VIEW.COLUMNBY_TXT_FIELD],, [VIEW.DATACOLUMN] ,, [COLUMNBYCOUNT]}
						SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						[VIEW.DATASQL]
					FROM #V_AT_X##V_ALL_X#
					WHERE 1=1
						AND v_rh_view_1.date_fin_activite BETWEEN '[PERIODE]' AND '[TOPERIODE]'
						[VIEW.SALARIES_SELECT]
						[VIEW.CONTRATS_SELECT]
						[VIEW.REFERENTIEL_SAE_SELECT]
						[VIEW.ARRETS_SELECT]
						
				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="N"/>
					<FIELD name="N1"/>
					<FIELD name="N2"/>
					<FIELD name="N3"/>
					<FIELD name="N4"/>
					<FIELD name="N5"/>
					<FIELD name="N6"/>
					<FIELD name="N7"/>
					<FIELD name="N8"/>
					<FIELD name="N9"/>
					<FIELD name="N10"/>
					<FIELD name="N11"/>
					<FIELD name="N12"/>
					<FIELD name="N13"/>
					<FIELD name="N14"/>
					<FIELD name="N15"/>
					<FIELD name="N16"/>
					<FIELD name="N17"/>
					<FIELD name="N18"/>
					<FIELD name="N19"/>
					<FIELD name="N20"/>
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Justificatif" shortLabel="Justificatif" view="RH000010.XML" componentName="RH_VIEWLINK" >
				<ARGS name="SPEC" >
					<value><![CDATA[
						LINKVARIABLES['GROUPBY_2'] = 'ARR'
						return 'OK';
					]]></value>
				</ARGS>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET label="Onglet" multiTab="true">
			<CHART title="Evolution" type="lineChart" serieIsCategory="true" fromTotal="false" maxItems="5"
					visibleCondition="SELECT.GROUPBY == 'ANNE' &amp;&amp; (SELECT.COLUMNBY == 'TRIM' || SELECT.COLUMNBY == 'MOIS' || SELECT.COLUMNBY == 'SEMA')"
					condition="Number(ROW.LVL) == 1">
				<CATEGORY field="TXT" type="Char"/>
				<SERIE field="N1" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null"/>
				<SERIE field="N2" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null"/>
				<SERIE field="N3" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null"/>
				<SERIE field="N4" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null"/>
				<SERIE field="N5" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null"/>
				<SERIE field="N6" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null"/>
				<SERIE field="N7" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null"/>
				<SERIE field="N8" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null"/>
				<SERIE field="N9" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null"/>
				<SERIE field="N10" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null"/>
				<SERIE field="N11" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null"/>
				<SERIE field="N12" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null"/>
				<SERIE field="N13" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null"/>
				<SERIE field="N14" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null"/>
				<SERIE field="N15" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null"/>
				<SERIE field="N16" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null"/>
				<SERIE field="N17" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null"/>
				<SERIE field="N18" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null"/>
				<SERIE field="N19" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null"/>
				<SERIE field="N20" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null"/>
			</CHART>
			<CHART title="Comparatif (10 premiers)" type="pieChart" maxItems="10" maxItemsSortOn="N" maxItemsSortSeq="D" sortField="N" sortSeq="A" 
					visibleCondition="(SELECT.GROUPBY != 'ANNE') || (SELECT.GROUPBY == 'ANNE' &amp;&amp; SELECT.COLUMNBY == 'TRIM' &amp;&amp; SELECT.COLUMNBY == 'MOIS' &amp;&amp; SELECT.COLUMNBY == 'SEMA')" condition="ROW.LVL == '1'">
				<CATEGORY field="CODTXT" type="Char" />
				<SERIE field="N" displayName="SELECT.DATA_LABEL" displayNameCalc="true" />
			</CHART>
			<CHART title="Répartition (Total)" type="columnChart" serieIsCategory="true" fromTotal="true"
					visibleCondition="(SELECT.GROUPBY != 'ANNE') || (SELECT.GROUPBY == 'ANNE' &amp;&amp; SELECT.COLUMNBY == 'TRIM' &amp;&amp; SELECT.COLUMNBY == 'MOIS' &amp;&amp; SELECT.COLUMNBY == 'SEMA')">
				<CATEGORY field="TXT" type="Char" />
				<SERIE field="N1" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null" />
				<SERIE field="N2" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null" />
				<SERIE field="N3" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null" />
				<SERIE field="N4" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null" />
				<SERIE field="N5" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null" />
				<SERIE field="N6" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null" />
				<SERIE field="N7" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null" />
				<SERIE field="N8" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null" />
				<SERIE field="N9" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null" />
				<SERIE field="N10" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null" />
				<SERIE field="N11" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null" />
				<SERIE field="N12" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null" />
				<SERIE field="N13" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null" />
				<SERIE field="N14" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null" />
				<SERIE field="N15" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null" />
				<SERIE field="N16" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null" />
				<SERIE field="N17" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null" />
				<SERIE field="N18" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null" />
				<SERIE field="N19" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null" />
				<SERIE field="N20" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null" />
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="72" variableRowHeight="true" sortable="= SELECT.GROUPBY_3 == '-1' &amp;&amp; (SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB')" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
				<INSERT name="DATAGRID_MULTITAB_STYLES" />
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
				<COLUMN dataField="COD" width="70" type="Char" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES" />
				</COLUMN>
				<COLUMN dataField="CODTXT" type="Char" visible="false" totalFunction="text" otherFunction="text" calc="true">
					<CALC formula="ROW.COD + ' - ' + ROW.TXT" />
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="200" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW" />
				<COLUMN dataField="N" width="80" type="Number" outputFormat="= SELECT.DATA2" headerText="Total" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="N_P" type="Number" headerText="% / Total" width="70" outputFormat="0%" textAlign="right" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
					<CALC formula="ROW.N / TOTALROW.N * 100" />
				</COLUMN>
				<COLUMN dataField="N1"  width="70" visibleCondition="VIEW.COLH1 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH1" columnData="= VIEW.COLI1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N2"  width="70" visibleCondition="VIEW.COLH2 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH2" columnData="= VIEW.COLI2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N3"  width="70" visibleCondition="VIEW.COLH3 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH3" columnData="= VIEW.COLI3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N4"  width="70" visibleCondition="VIEW.COLH4 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH4" columnData="= VIEW.COLI4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N5"  width="70" visibleCondition="VIEW.COLH5 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH5" columnData="= VIEW.COLI5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N6"  width="70" visibleCondition="VIEW.COLH6 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH6" columnData="= VIEW.COLI6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N7"  width="70" visibleCondition="VIEW.COLH7 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH7" columnData="= VIEW.COLI7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N8"  width="70" visibleCondition="VIEW.COLH8 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH8" columnData="= VIEW.COLI8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N9"  width="70" visibleCondition="VIEW.COLH9 != null"  type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH9" columnData="= VIEW.COLI9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N10" width="70" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH10" columnData="= VIEW.COLI10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N11" width="70" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH11" columnData="= VIEW.COLI11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N12" width="70" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH12" columnData="= VIEW.COLI12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N13" width="70" visibleCondition="VIEW.COLH13 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH13" columnData="= VIEW.COLI13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N14" width="70" visibleCondition="VIEW.COLH14 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH14" columnData="= VIEW.COLI14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N15" width="70" visibleCondition="VIEW.COLH15 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH15" columnData="= VIEW.COLI15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N16" width="70" visibleCondition="VIEW.COLH16 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH16" columnData="= VIEW.COLI16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N17" width="70" visibleCondition="VIEW.COLH17 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH17" columnData="= VIEW.COLI17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N18" width="70" visibleCondition="VIEW.COLH18 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH18" columnData="= VIEW.COLI18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N19" width="70" visibleCondition="VIEW.COLH19 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH19" columnData="= VIEW.COLI19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="N20" width="70" visibleCondition="VIEW.COLH20 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH20" columnData="= VIEW.COLI20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
