<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="RH000137" 
	label="RH. Comparatif Indicateurs de planning" 
	title="= 'Comparatif par ' +  SELECT.GROUPBY_LABEL + ' (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ' vs ' + SELECT.PERIODE_D_LABEL + ' à ' + SELECT.TOPERIODE_D_LABEL + ')' " 
	database="iCTI" 
	swf="*CTI_view1" 
	globals="RH_globals.XML" 
	dboptimizer="RH_dboptimizer.XML"
	componentsFile="RH_components.XML" 
	softCode="iCTI_rh">	
	<VIEWPROPERTIES componentName="PROPERTIES_PAIE"/>
	<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
	<VIEWPROPERTIES>
		<PROPERTY name="DATAFUNC">
			<value><![CDATA[[EVAL 
				// <?php
				
				function RH000137_calcTablesSQL($data) {
					$countDistinctCaseWhen = "count(DISTINCT CASE WHEN v_rh_view_1.date_fin_activite BETWEEN @date_debut@ AND @date_fin@ %s THEN %s ELSE null END)";
					$sumCaseWhen = "sum(CASE WHEN v_rh_view_1.date_fin_activite BETWEEN @date_debut@ AND @date_fin@ %s THEN %s ELSE 0 END)";
					$periodeDebut = '\'[PERIODE]\'::date';
					$periodeFin = '\'[TOPERIODE]\'::date';
					$periodePrecDebut = '\'[PERIODE_D]\'::date';
					$periodePrecFin = '\'[TOPERIODE_D]\'::date';
					

					switch ($data) {
						case 'TEMPSDUINITIAL':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'planning_temps_du_initial');
							break;												
						case 'TEMPSDU':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'planning_temps_du');
							break;						
						case 'TEMPSVALIDE':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'planning_temps_du');
							break;						
						case 'HEURESCONTRAT':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'HEURESPAYEES':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'HEURESTRAVAILLEES':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'BRUT':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'MASSESALARIALE':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'COTISATIONSSALARIALES':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'COTISATIONSPATRONALES':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'NETIMPOSABLE':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'NETAPAYER':
							$tmp0 = '';
							$tmp1 = sprintf($sumCaseWhen, $tmp0, 'temps_du');
							break;						
						case 'NBSALARIES':
							$tmp0 = '';
							$tmp1 = sprintf($countDistinctCaseWhen, $tmp0, 'salarie_id');
							break;
						default :
							$tmp1 = 'null';
					}

					$toReplace = array(
						'@date_debut@',
						'@date_fin@',
						'@coeff@'
					);

					$curPeriod = array(
						$periodeDebut,
						$periodeFin,
						$coeff
					);

					$prevPeriod = array(
						$periodePrecDebut,
						$periodePrecFin,
						$coeff
					);
					
					return str_replace($toReplace, $curPeriod, $tmp1) . ',' . str_replace($toReplace, $prevPeriod, $tmp1);
				}
				
				// ?>
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATASQL">
			<value><![CDATA[[EVAL 
				// <?php
				
				<!-- $toto = RH000137_calcColumnsSQL('[HEURESCONTRAT]', '[HEURESPAYEES]', '[HEURESTRAVAILLEES]', '[BRUT]', '[MASSESALARIALE]', '[COTISATIONSSALARIALES]', '[COTISATIONSPATRONALES]', '[NETIMPOSABLE]', '[NETAPAYER]'); -->
				$tata = RH000137_calcTablesSQL('[HEURESCONTRAT]', '[HEURESPAYEES]', '[HEURESTRAVAILLEES]')
				
				var_dump($toto);
				var_dump($tata);
				
				// ?>
			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_JOUR" />
			<FIELD name="TOPERIODE" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN_JOUR" />
		</GROUP>
		<GROUP label="Période précédente">
			<FIELD name="PERIODE_D" label="" UI="combo" tree="true" width="200" default="2010-01-01" globalListProvider="PERIODE_DEBUT_JOUR" />
			<FIELD name="TOPERIODE_D" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN_JOUR" />
		</GROUP>
		<GROUP>
			<FIELD name="PRESENCE_SALARIES" label="Présence salariés" UI="combo" tree="true" width="200" default="">
                <OPTION label="Tous" data="" treeLevel="1"/>
                <OPTION label="Présents planning et paie" data="AND salarie_present_planning = 1 AND salarie_present_paie = 1" treeLevel="1"/>
                <OPTION label="Présents planning mais pas dans la paie" data="AND salarie_present_planning = 1 AND salarie_present_paie = 0" treeLevel="1"/>
				<OPTION label="Présents paie mais pas dans le planning" data="AND salarie_present_planning = 0 AND salarie_present_paie = 1" treeLevel="1"/>
			</FIELD>
		</GROUP>
		<GROUP label="Données planning">
			<FIELD name="TEMPSDUINITIAL" label="Temps du initial" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="TEMPSDU" label="Temps du" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="TEMPSVALIDE" label="Temps valide" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
		</GROUP>
		<GROUP label="Données paie">
			<FIELD name="HEURESCONTRAT" label="Heures contrats" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="HEURESPAYEES" label="Heures contrats" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="HEURESTRAVAILLEES" label="Heures travaillées" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="BRUT" label="Brut" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="MASSESALARIALE" label="Masse salariale" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
		</GROUP>
		<GROUP label = " ">
			<FIELD name="COTISATIONSSALARIALES" label="Cotisations salariales" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="COTISATIONSPATRONALES" label="Cotisations patronales" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="NETIMPOSABLE" label="Net imposable" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
			<FIELD name="NETAPAYER" label="Net à payer" UI="check" selectedValue="1" unselectedValue="0" default="1" showIfNotDefault="true"/>
		</GROUP>			
<!-- 		<GROUP label="Données">
			<FIELD name="DATA1" label="" UI="combo" default="TEMPSDUINITIAL">
				<OPTION label="Nb salariés" data="NBSAL" data2="#"/>
				<OPTION label="Temps du initial" data="TEMPSDUINITIAL" data2="#,0"/>
				<OPTION label="Temps du" data="TEMPSDU" data2="#,0"/>
				<OPTION label="Temps validé" data="TEMPSVALIDE"	data2="#,0h"/>
				<OPTION label="Heures contrats" data="HEURESCONTRAT" data2="#,0"/>
                <OPTION label="Heures payées" data="HEURESPAYEES" data2="#,0h"/>
				<OPTION label="Heures travaillées" data="HEURESTRAVAILLEES" data2="#,0h"/>
				<OPTION label="Brut" data="BRUT" data2="#,0h"/>
				<OPTION label="Masse salariale" data="MASSESALARIALE" data2="#,0h"/>
				<OPTION label="Cotisations salariales" data="Cotisations salariales" data2="#,0h"/>
				<OPTION label="Cotisations patronales" data="COTISATIONSPATRONALES" data2="#,0h"/>
				<OPTION label="Net imposable" data="NETIMPOSABLE" data2="#,0h"/>
				<OPTION label="Net à payer" data="NETAPAYER" data2="#,0h"/> 
			</FIELD>
			<FIELD name="DATA2" label="" UI="combo" default="-1">
				<OPTION label="Nb salariés" data="NBSAL" data2="#"/>
				<OPTION label="Temps du initial" data="TEMPSDUINITIAL" data2="#,0"/>
				<OPTION label="Temps du" data="TEMPSDU" data2="#,0"/>
				<OPTION label="Temps validé" data="TEMPSVALIDE"	data2="#,0h"/>
				<OPTION label="Heures contrats" data="HEURESCONTRAT" data2="#,0"/>
                <OPTION label="Heures payées" data="HEURESPAYEES" data2="#,0h"/>
				<OPTION label="Heures travaillées" data="HEURESTRAVAILLEES" data2="#,0h"/>
				<OPTION label="Brut" data="BRUT" data2="#,0h"/>
				<OPTION label="Masse salariale" data="MASSESALARIALE" data2="#,0h"/>
				<OPTION label="Cotisations salariales" data="COTISATIONSSALARIALES" data2="#,0h"/>
				<OPTION label="Cotisations patronales" data="COTISATIONSPATRONALES" data2="#,0h"/>
				<OPTION label="Net imposable" data="NETIMPOSABLE" data2="#,0h"/>
				<OPTION label="Net à payer" data="NETAPAYER" data2="#,0h"/> 
			</FIELD>
			<FIELD name="DATA3" label="" UI="combo" default="-1">
				<OPTION label="Nb salariés" data="NBSAL" data2="#"/>
				<OPTION label="Temps du initial" data="TEMPSDUINITIAL" data2="#,0"/>
				<OPTION label="Temps du" data="TEMPSDU" data2="#,0"/>
				<OPTION label="Temps validé" data="TEMPSVALIDE"	data2="#,0h"/>
				<OPTION label="Heures contrats" data="HEURESCONTRAT" data2="#,0"/>
                <OPTION label="Heures payées" data="HEURESPAYEES" data2="#,0h"/>
				<OPTION label="Heures travaillées" data="HEURESTRAVAILLEES" data2="#,0h"/>
				<OPTION label="Brut" data="BRUT" data2="#,0h"/>
				<OPTION label="Masse salariale" data="MASSESALARIALE" data2="#,0h"/>
				<OPTION label="Cotisations salariales" data="COTISATIONSSALARIALES" data2="#,0h"/>
				<OPTION label="Cotisations patronales" data="COTISATIONSPATRONALES" data2="#,0h"/>
				<OPTION label="Net imposable" data="NETIMPOSABLE" data2="#,0h"/>
				<OPTION label="Net à payer" data="NETAPAYER" data2="#,0h"/> 
			</FIELD>
		</GROUP> -->
		<GROUP label="Regroupement">
			<FIELD name="GROUPBY" label="" UI="combo" width="200" default="SAL" tree="true" >
				<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
				<OPTION label="Planning" data="PLA" treeLevel="1" globalListProvider="PLANNING_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_PLANNING_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="Planning" data="PLA" treeLevel="1" globalListProvider="PLANNING_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_PLANNING_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="Planning" data="PLA" treeLevel="1" globalListProvider="PLANNING_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_PLANNING_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_PLANNING_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SALARIES_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_CONTRATS_SELECTIONS"/>
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_PLA_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]}
						SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						OPTIONS{NOTZERO=1}
						INDICATORS{
							[VIEW.DATASQL]
						}
					FROM #V_PLA_X##V_ALL_X#
					WHERE 1=1
						AND (1!=1
							OR v_rh_view_1.date_fin_activite BETWEEN '[PERIODE]' AND '[TOPERIODE]'
							OR v_rh_view_1.date_fin_activite BETWEEN '[PERIODE_D]' AND '[TOPERIODE_D]')
						[VIEW.SALARIES_SELECT]
						[VIEW.CONTRATS_SELECT]
						[VIEW.PLANNING_SELECT]
					
					AFTER{
						UPDATE w_table SET 
							indicateurs[3] = indicateurs[1] - indicateurs[2],
							indicateurs[4] = CASE 
											WHEN indicateurs[1] > 0 AND indicateurs[2] > 0 THEN base.cti_division(indicateurs[1] - indicateurs[2], indicateurs[2]) * 100
											ELSE 0 END,
							indicateurs[7] = indicateurs[5] - indicateurs[6],
							indicateurs[8] = CASE 
											WHEN indicateurs[5] > 0 AND indicateurs[6] > 0 THEN base.cti_division(indicateurs[5] - indicateurs[6], indicateurs[6]) * 100
											ELSE 0 END,
							indicateurs[11] = indicateurs[9] - indicateurs[10],
							indicateurs[12] = CASE 
											WHEN indicateurs[9] > 0 AND indicateurs[10] > 0 THEN base.cti_division(indicateurs[9] - indicateurs[10], indicateurs[10]) * 100
											ELSE 0 END
					}
					
				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="F1"/>
					<FIELD name="D1"/>
					<FIELD name="E1"/>
					<FIELD name="P1"/>
					<FIELD name="F2"/>
					<FIELD name="D2"/>
					<FIELD name="E2"/>
					<FIELD name="P2"/>
					<FIELD name="F3"/>
					<FIELD name="D3"/>
					<FIELD name="E3"/>
					<FIELD name="P3"/>
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Justificatif des [DICT.RH.PLANNING_TRAVAIL#4]" shortLabel="Justificatif des [DICT.RH.PLANNING_TRAVAIL#4]" view="RH000010.XML" componentName="RH_VIEWLINK" >
				<ARGS name="SPEC" >
					<value><![CDATA[
						LINKVARIABLES['GROUPBY_2'] = 'SAL'
						return 'OK';
					]]></value>
				</ARGS>
				<ARG name="PERIODE" value="	if (COLUMN.NAME == 'F1') {return SELECT.PERIODE}
											if (COLUMN.NAME == 'D1') {return SELECT.PERIODE_D}
											if (COLUMN.NAME == 'F2') {return SELECT.PERIODE}
											if (COLUMN.NAME == 'D2') {return SELECT.PERIODE_D}
											if (COLUMN.NAME == 'F3') {return SELECT.PERIODE}
											if (COLUMN.NAME == 'D3') {return SELECT.PERIODE_D}
											if (COLUMN.NAME == 'E1') {return SELECT.TOPERIODE}
											if (COLUMN.NAME == 'E2') {return SELECT.TOPERIODE}
											if (COLUMN.NAME == 'E3') {return SELECT.TOPERIODE}
											if (COLUMN.NAME == 'P1') {return SELECT.TOPERIODE}
											if (COLUMN.NAME == 'P2') {return SELECT.TOPERIODE}
											if (COLUMN.NAME == 'P3') {return SELECT.TOPERIODE}
											"/>
				<ARG name="TOPERIODE" value="if (COLUMN.NAME == 'F1') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'D1') {return SELECT.TOPERIODE_D}
											 if (COLUMN.NAME == 'F2') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'D2') {return SELECT.TOPERIODE_D}
											 if (COLUMN.NAME == 'F3') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'D3') {return SELECT.TOPERIODE_D}
											 if (COLUMN.NAME == 'E1') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'E2') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'E3') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'P1') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'P2') {return SELECT.TOPERIODE}
											 if (COLUMN.NAME == 'P3') {return SELECT.TOPERIODE}
											 "/>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Répartition mensuelle" label="Répartition mensuelle" multiTab="true">
			<CHART title="Comparatif" type="columnChart" maxItems="20" maxItemsSortOn="F1" maxItemsSortSeq="D" sortField="COD" sortSeq="A" >
				<CATEGORY field="COD" type="Char"/>
				<SERIE field="D1" displayName="SELECT.DATA13 + ' ' + SELECT.PERIODE_D_LABEL + '-' + SELECT.TOPERIODE_D_LABEL" displayNameCalc="true"/>
				<SERIE field="F1" displayName="SELECT.DATA13 + ' ' + SELECT.PERIODE_LABEL + '-' + SELECT.TOPERIODE_LABEL" displayNameCalc="true"/>
			</CHART>
			<CHART title="Comparatif" type="columnChart" maxItems="20" maxItemsSortOn="F2" maxItemsSortSeq="D" sortField="COD" sortSeq="A" visibleCondition="SELECT.DATA2 != '-1'">
				<CATEGORY field="COD" type="Char"/>
				<SERIE field="D2" displayName="SELECT.DATA23 + ' ' + SELECT.PERIODE_D_LABEL + '-' + SELECT.TOPERIODE_D_LABEL" displayNameCalc="true"/>
				<SERIE field="F2" displayName="SELECT.DATA23 + ' ' + SELECT.PERIODE_LABEL + '-' + SELECT.TOPERIODE_LABEL" displayNameCalc="true"/>
			</CHART>
			<CHART title="Comparatif" type="columnChart" maxItems="20" maxItemsSortOn="F3" maxItemsSortSeq="D" sortField="COD" sortSeq="A" visibleCondition="SELECT.DATA3 != '-1'">
				<CATEGORY field="COD" type="Char"/>
				<SERIE field="D3" displayName="SELECT.DATA33 + ' ' + SELECT.PERIODE_D_LABEL + '-' + SELECT.TOPERIODE_D_LABEL" displayNameCalc="true"/>
				<SERIE field="F3" displayName="SELECT.DATA33 + ' ' + SELECT.PERIODE_LABEL + '-' + SELECT.TOPERIODE_LABEL" displayNameCalc="true"/>
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="70" 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="90" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL" >
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="50" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW" />
				<COLUMN dataField="D1" width="85" visible="true" type="Number" outputFormat="= SELECT.DATA12" fixed="false" selectable="true" headerText="SELECT.DATA13 + '\n' + SELECT.PERIODE_D_LABEL + '- ' + SELECT.TOPERIODE_D_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum"/>
				<COLUMN dataField="F1" width="85" visible="true" type="Number" outputFormat="= SELECT.DATA12" fixed="false" selectable="true" headerText="SELECT.DATA13 + '\n' + SELECT.PERIODE_LABEL + '- ' + SELECT.TOPERIODE_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum"/>
				<COLUMN dataField="E1" type="Number" headerText="Ecart" width="70" visible="true" outputFormat="= SELECT.DATA12" fixed="false" textAlign="right" totalFunction="sum" totalComplement="" otherFunction="sum"/>
				<COLUMN dataField="P1" type="Number" headerText="% évol." width="45" visible="true" outputFormat="= if (ROW.D1 != 0 &amp;&amp; ROW.F1 != 0) {return '0%'} else {return '#'}" fixed="false" textAlign="right" totalFunction="sum" totalComplement="" otherFunction="sum" />
				<COLUMN dataField="D2" width="85" visibleCondition="SELECT.DATA2 != '-1'" type="Number" outputFormat="= SELECT.DATA22" fixed="false" selectable="true" headerText="SELECT.DATA23 + '\n' + SELECT.PERIODE_D_LABEL + '- ' + SELECT.TOPERIODE_D_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum"/>
				<COLUMN dataField="F2" width="85" visibleCondition="SELECT.DATA2 != '-1'" type="Number" outputFormat="= SELECT.DATA22" fixed="false" selectable="true" headerText="SELECT.DATA23 + '\n' + SELECT.PERIODE_LABEL + '- ' + SELECT.TOPERIODE_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum"/>
				<COLUMN dataField="E2" type="Number" headerText="Ecart" width="70" visibleCondition="SELECT.DATA2 != '-1'" outputFormat="= SELECT.DATA22" fixed="false" textAlign="right" totalFunction="sum" totalComplement="" otherFunction="sum"/>
				<COLUMN dataField="P2" type="Number" headerText="% évol." width="45" visibleCondition="SELECT.DATA2 != '-1'" outputFormat="= if (ROW.D2 !=0  &amp;&amp;  ROW.F2 != 0) {return '0%'} else {return '#'}" fixed="false" textAlign="right" totalFunction="sum" totalComplement="" otherFunction="sum" />
				<COLUMN dataField="D3" width="85" visibleCondition="SELECT.DATA3 != '-1'" type="Number" outputFormat="= SELECT.DATA32" fixed="false" selectable="true" headerText="SELECT.DATA33 + '\n' + SELECT.PERIODE_D_LABEL + '- ' + SELECT.TOPERIODE_D_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum"/>
				<COLUMN dataField="F3" width="85" visibleCondition="SELECT.DATA3 != '-1'" type="Number" outputFormat="= SELECT.DATA32" fixed="false" selectable="true" headerText="SELECT.DATA33 + '\n' + SELECT.PERIODE_LABEL + '- ' + SELECT.TOPERIODE_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum"/>
				<COLUMN dataField="E3" type="Number" headerText="Ecart" width="70" visibleCondition="SELECT.DATA3 != '-1'" outputFormat="= SELECT.DATA32" fixed="false" textAlign="right" totalFunction="sum" totalComplement="" otherFunction="sum"/>
				<COLUMN dataField="P3" type="Number" headerText="% évol." width="45" visibleCondition="SELECT.DATA3 != '-1'" outputFormat="= if (ROW.D3 !=0  &amp;&amp;  ROW.F3 != 0) {return '0%'} else {return '#'}" fixed="false" textAlign="right" totalFunction="sum" totalComplement="" otherFunction="sum" />
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
