<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="ECO000019" 
	label="ECO. Comparatif stocks" 
	title="= 'Comparatif stocks par ' +  SELECT.GROUPBY_LABEL + ' (' + VIEW.PERIODE_D_LABEL + ' à ' + VIEW.TOPERIODE_D_LABEL + ' vs ' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')' " 
	database="iCTI" 
	swf="*CTI_view1" 
	globals="ECO_globals.XML" 
	componentsFile="ECO_components.XML"
	dboptimizer="ECO_dboptimizer.XML"
	softCode="iCTI_eco">	

	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
	</VIEWPROPERTIES>
	<VIEWPROPERTIES componentName="PROPERTIES_MOUVEMENTS"/>
	<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
	<VIEWPROPERTIES>
		<PROPERTY name="COMPAREPERIODETXT">
			<value><![CDATA[[EVAL 
					
                $TYPE_COMPARAISON_TXT = '[TYPE_COMPARAISON]';
                if($TYPE_COMPARAISON_TXT == '2'){
                    return 'N-1'; 
                } else {
                        return 'N-2';
                }
                
					
			EVAL]]]></value>
		</PROPERTY>
	</VIEWPROPERTIES>	
	<VIEWPROPERTIES>
		<PROPERTY name="DATA1">
			<value><![CDATA[[EVAL 
								switch ('[DATA1]') {
								case 'QSTF':
									return "CASE WHEN date_fin = '[TOPERIODE]' THEN stock_quantite_fin ELSE 0 END";
									break;
								case 'MSTF':
									return "CASE WHEN date_fin = '[TOPERIODE]' THEN stock_valeur_fin ELSE 0 END";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA1_D">
			<value><![CDATA[[EVAL 
								switch ('[DATA1]') {
								case 'QSTF':
									return "CASE WHEN date_fin = '[VIEW.TOPERIODE_D]' THEN stock_quantite_fin ELSE 0 END";
									break;
								case 'MSTF':
									return "CASE WHEN date_fin = '[VIEW.TOPERIODE_D]' THEN stock_valeur_fin ELSE 0 END";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="AGGR1">
			<value><![CDATA[[EVAL 
								switch ('[DATA1]') {
								default:
									return 'SUM(';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA2">
			<value><![CDATA[[EVAL 
								switch ('[DATA2]') {
								case 'QSTF':
									return "CASE WHEN date_fin = '[TOPERIODE]' THEN stock_quantite_fin ELSE 0 END";
									break;
								case 'MSTF':
									return "CASE WHEN date_fin = '[TOPERIODE]' THEN stock_valeur_fin ELSE 0 END";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA2_D">
			<value><![CDATA[[EVAL 
								switch ('[DATA2]') {
								case 'QSTF':
									return "CASE WHEN date_fin = '[VIEW.TOPERIODE_D]' THEN stock_quantite_fin ELSE 0 END";
									break;
								case 'MSTF':
									return "CASE WHEN date_fin = '[VIEW.TOPERIODE_D]' THEN stock_valeur_fin ELSE 0 END";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="AGGR2">
			<value><![CDATA[[EVAL 
								switch ('[DATA2]') {
								default:
									return 'SUM(';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA3">
			<value><![CDATA[[EVAL 
								switch ('[DATA3]') {
								case 'QSTF':
									return "CASE WHEN date_fin = '[TOPERIODE]' THEN stock_quantite_fin ELSE 0 END";
									break;
								case 'MSTF':
									return "CASE WHEN date_fin = '[TOPERIODE]' THEN stock_valeur_fin ELSE 0 END";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA3_D">
			<value><![CDATA[[EVAL 
								switch ('[DATA3]') {
								case 'QSTF':
									return "CASE WHEN date_fin = '[VIEW.TOPERIODE_D]' THEN stock_quantite_fin ELSE 0 END";
									break;
								case 'MSTF':
									return "CASE WHEN date_fin = '[VIEW.TOPERIODE_D]' THEN stock_valeur_fin ELSE 0 END";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="AGGR3">
			<value><![CDATA[[EVAL 
								switch ('[DATA3]') {
								default:
									return 'SUM(';
								}
					EVAL]]]></value>
		</PROPERTY>
		
	</VIEWPROPERTIES>

	
	<SELECTIONS label="Paramètres de l'analyse" displayText="">
		<GROUP label="Période">
			<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="180" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
			<FIELD name="PERIODE" label="" UI="combo" tree="true" width="200" default="2010-01-01" globalListProvider="PERIODE_DEBUT">
			</FIELD>
			<FIELD name="TOPERIODE" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN">
			</FIELD>
		</GROUP>
		<GROUP label="Période précédente">
			<FIELD name="TYPE_COMPARAISON" label="" UI="combo" default="2" width="130">
				<OPTION label="Période N-1" data="2" />
				<OPTION label="Période N-2" data="1" />
				<OPTION label="Saisie période" data="S" />
			</FIELD>
			<FIELD name="PERIODE_D" label="" UI="combo" tree="true" width="200" default="2010-01-01" globalListProvider="PERIODE_DEBUT" visible="= SELECT.TYPE_COMPARAISON == 'S'" />
			<FIELD name="TOPERIODE_D" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN" visible="= SELECT.TYPE_COMPARAISON == 'S'" />
		</GROUP>
		<GROUP label="Données">
			<FIELD name="DATA1" label="" UI="combo" default="QSTF">
				<OPTION label="Quantité Stock fin de période" data="QSTF" data2="#" data3="Nb Stock"/>
				<OPTION label="Valeur Stock fin de période" data="MSTF" data2="#E" data3="Mt Stock"/>
			</FIELD>
			<FIELD name="DATA2" label="" UI="combo" default="-1">
				<OPTION label="" data="-1" data2=""/>
				<OPTION label="Quantité Stock fin de période" data="QSTF" data2="#" data3="Nb Stock"/>
				<OPTION label="Valeur Stock fin de période" data="MSTF" data2="#E" data3="Mt Stock"/>
			</FIELD>
			<FIELD name="DATA3" label="" UI="combo" default="-1">
				<OPTION label="" data="-1" data2=""/>
				<OPTION label="Quantité Stock fin de période" data="QSTF" data2="#" data3="Nb Stock"/>
				<OPTION label="Valeur Stock fin de période" data="MSTF" data2="#E" data3="Mt Stock"/>
			</FIELD>
		</GROUP>
		
		<GROUP label="Regroupement">
			<FIELD name="GROUPBY" label="" UI="combo" width="200" default="CPA" tree="true">
                <OPTION label="Site" data="SIT" treeLevel="1"  globalListProvider="SITE_GROUPBY"/>
				<OPTION label="Article" data="ART" treeLevel="1"  globalListProvider="ARTICLE_GROUPBY"/>
				<OPTION label="Compte" data="CPA" treeLevel="1"  globalListProvider="COMPTE_ARTICLE_GROUPBY"/>
				<OPTION label="Lieu" data="LIE" treeLevel="1"  globalListProvider="LIEU_GROUPBY"/>
				<OPTION label="Année-Mois stock" globalListProvider="DATE_GROUPBY" treeLevel="1"  />				
				<OPTION label="Source de données" data="PVD" treeLevel="1"  globalListProvider="PROVIDER_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="Site" data="SIT" treeLevel="1"  globalListProvider="SITE_GROUPBY"/>
				<OPTION label="Article" data="ART" treeLevel="1"  globalListProvider="ARTICLE_GROUPBY"/>
				<OPTION label="Compte" data="CPA" treeLevel="1"  globalListProvider="COMPTE_ARTICLE_GROUPBY"/>
				<OPTION label="Lieu" data="LIE" treeLevel="1"  globalListProvider="LIEU_GROUPBY"/>
				<OPTION label="Année-Mois stock" globalListProvider="DATE_GROUPBY" treeLevel="1"  />				
				<OPTION label="Source de données" data="PVD" treeLevel="1"  globalListProvider="PROVIDER_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="Site" data="SIT" treeLevel="1"  globalListProvider="SITE_GROUPBY"/>
				<OPTION label="Article" data="ART" treeLevel="1"  globalListProvider="ARTICLE_GROUPBY"/>
				<OPTION label="Compte" data="CPA" treeLevel="1"  globalListProvider="COMPTE_ARTICLE_GROUPBY"/>
				<OPTION label="Lieu" data="LIE" treeLevel="1"  globalListProvider="LIEU_GROUPBY"/>
				<OPTION label="Année-Mois stock" globalListProvider="DATE_GROUPBY" treeLevel="1"  />				
				<OPTION label="Source de données" data="PVD" treeLevel="1"  globalListProvider="PROVIDER_GROUPBY"/>
			</FIELD>
		</GROUP>
	</SELECTIONS>
	
	<SELECTIONS componentName="FILTRES_STOCK_SIGNIFICATIF"/>
    <SELECTIONS componentName="FILTRES_STOCK_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_ARTICLE_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PROVIDER_SELECTIONS"/>
	
	<QUERIES>
		<QUERY label="">
            <SQL optimizer="V_STOCK_MENSUEL_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.ECO_SIGNIFICATIVE_DATA],, [ECO_SIGNIFICATIVE_MODE],, [ECO_SIGNIFICATIVE_NUMBER]}
						OPTIONS{NOTZERO=1}
						INDICATORS{
							[VIEW.AGGR1] CASE WHEN date_fin BETWEEN '[PERIODE]' AND '[TOPERIODE]' THEN [VIEW.DATA1] ELSE 0 END),
							[VIEW.AGGR1] CASE WHEN date_fin BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' THEN [VIEW.DATA1_D] ELSE 0 END),
							0,0,
							[VIEW.AGGR2] CASE WHEN date_fin BETWEEN '[PERIODE]' AND '[TOPERIODE]' THEN [VIEW.DATA2] ELSE 0 END),
							[VIEW.AGGR2] CASE WHEN date_fin BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' THEN [VIEW.DATA2_D] ELSE 0 END),
							0,0,
							[VIEW.AGGR3] CASE WHEN date_fin BETWEEN '[PERIODE]' AND '[TOPERIODE]' THEN [VIEW.DATA3] ELSE 0 END),
							[VIEW.AGGR3] CASE WHEN date_fin BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]' THEN [VIEW.DATA3_D] ELSE 0 END),
							0,0
						}
					FROM #V_STOCK_MENSUEL_X##V_ALL_X#
					WHERE 
						(date_fin BETWEEN '[PERIODE]' AND '[TOPERIODE]' OR
						date_fin BETWEEN '[VIEW.PERIODE_D]' AND '[VIEW.TOPERIODE_D]')
						[VIEW.ARTICLE_SELECT]
                        [VIEW.STOCK_SELECT]
						[VIEW.PROVIDER_SELECT]
					
					AFTER{
						UPDATE w_table SET 
							indicateurs[3] = indicateurs[1] - indicateurs[2],
							indicateurs[4] = base.cti_division(indicateurs[1] - indicateurs[2], @(indicateurs[2])) * 100,
							indicateurs[7] = indicateurs[5] - indicateurs[6],
							indicateurs[8] = base.cti_division(indicateurs[5] - indicateurs[6], @(indicateurs[6])) * 100,
							indicateurs[11] = indicateurs[9] - indicateurs[10],
							indicateurs[12] = base.cti_division(indicateurs[9] - indicateurs[10], @(indicateurs[10])) * 100
					}
					
					

				]]></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>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
			<SQL>
				<select><![CDATA[	
					SELECT 'PERIODE_D' , CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[PERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day')  WHEN '[TYPE_COMPARAISON]' = '1' THEN date('[PERIODE]'::date + interval '1 day' - interval '2 year' - interval '1 day') ELSE '[PERIODE_D]' END::text
					UNION
					SELECT 'TOPERIODE_D' , CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') WHEN '[TYPE_COMPARAISON]' = '1' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '2 year' - interval '1 day') ELSE '[TOPERIODE_D]' END::text
					UNION
					SELECT 'PERIODE_D_LABEL', CASE WHEN  CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[PERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') WHEN '[TYPE_COMPARAISON]' = '1' THEN date('[PERIODE]'::date + interval '1 day' - interval '2 year' - interval '1 day') ELSE '[PERIODE_D]' END = p_calendrier_mois.date_debut THEN p_calendrier_mois.texte ELSE p_calendrier.texte END
					FROM base.p_calendrier
						JOIN base.p_calendrier_mois ON p_calendrier.mois = p_calendrier_mois.mois
					WHERE date = CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[PERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') WHEN '[TYPE_COMPARAISON]' = '1' THEN date('[PERIODE]'::date + interval '1 day' - interval '2 year' - interval '1 day') ELSE '[PERIODE_D]' END
					UNION
					SELECT 'TOPERIODE_D_LABEL', CASE WHEN  CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') WHEN '[TYPE_COMPARAISON]' = '1' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '2 year' - interval '1 day') ELSE '[TOPERIODE_D]' END = p_calendrier_mois.date_fin THEN p_calendrier_mois.texte ELSE p_calendrier.texte_court END
					FROM base.p_calendrier
						JOIN base.p_calendrier_mois ON p_calendrier.mois = p_calendrier_mois.mois
					WHERE date = CASE WHEN '[TYPE_COMPARAISON]' = '2' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '1 year' - interval '1 day') WHEN '[TYPE_COMPARAISON]' = '1' THEN date('[TOPERIODE]'::date + interval '1 day' - interval '2 year' - interval '1 day') ELSE '[TOPERIODE_D]' END
					UNION
						SELECT 'X_PERIODE', greatest(('[PERIODE]'::date - '3 years'::interval)::date, (SELECT (min(mois)::text||'01')::date FROM eco.p_chiffrier_production))::text
				]]></select>
				<FIELDS>
					<FIELD name="name" />
					<FIELD name="value" />
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Analyse" shortLabel="Analyse" view="ECO000012.XML" enabled="true" rowContext="false" componentName="ECO_VIEWLINK" component2Name="DATE_COMP_VIEWLINK" buttonType="ANALYSE" >
				<ARG name="PERIODE_D" value="return VIEW.X_PERIODE_D;" />
				<ARG name="TOPERIODE_D" value="return VIEW.X_TOPERIODE_D;" />
			</VIEWLINK>
			<VIEWLINK label="Evolution" shortLabel="Evolution" view="ECO000013.XML" enabled="true" rowContext="false" componentName="ECO_VIEWLINK" component2Name="DATE_COMP_VIEWLINK" buttonType="EVOLUTION">
				<ARG name="PERIODICITE" value="'MONTH'" />
			</VIEWLINK>
			<VIEWLINK label="Détail article" shortLabel="Détail article" view="ECO000069.XML" componentName="ECO_VIEWLINK" component2Name="DATE_EVOL_VIEWLINK" >
				<ARGS name="SPEC" >
					<value><![CDATA[
						LINKVARIABLES['GROUPBY'] = 'AMCMD'
						LINKVARIABLES['GROUPBY_2'] = 'AMMVT'
						LINKVARIABLES['GROUPBY_3'] = 'AMSTO'
						LINKVARIABLES['TAB'] = 'AUTO'
						return 'OK';
			
					]]></value>
				</ARGS>
			</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 + ' ' + VIEW.PERIODE_D_LABEL + '-' + VIEW.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 + ' ' + VIEW.PERIODE_D_LABEL + '-' + VIEW.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 + ' ' + VIEW.PERIODE_D_LABEL + '-' + VIEW.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_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
				<INSERT name="DATAGRID_MULTITAB_STYLES"/>
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
				</COLUMN>
				<COLUMN dataField="COD" width="100" 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>
				<COLUMN dataField="D1" width="100" visible="true" type="Number" outputFormat="= SELECT.DATA12" fixed="false" selectable="true" headerText="SELECT.DATA13 + ' ' + VIEW.PERIODE_D_LABEL + '- ' + VIEW.TOPERIODE_D_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="F1" width="100" visible="true" type="Number" outputFormat="= SELECT.DATA12" fixed="false" selectable="true" headerText="SELECT.DATA13 + ' ' + SELECT.PERIODE_LABEL + '- ' + SELECT.TOPERIODE_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="E1" type="Number" headerText="Ecart" width="70" visible="true" outputFormat="= SELECT.DATA12" fixed="false" textAlign="right" totalFunction="sum" totalComplement="" otherFunction="sum">
				</COLUMN>
				<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>
				<COLUMN dataField="D2" width="100" visibleCondition="SELECT.DATA2 != '-1'" type="Number" outputFormat="= SELECT.DATA22" fixed="false" selectable="true" headerText="SELECT.DATA23 + ' ' + VIEW.PERIODE_D_LABEL + '- ' + VIEW.TOPERIODE_D_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="F2" width="100" visibleCondition="SELECT.DATA2 != '-1'" type="Number" outputFormat="= SELECT.DATA22" fixed="false" selectable="true" headerText="SELECT.DATA23 + ' ' + SELECT.PERIODE_LABEL + '- ' + SELECT.TOPERIODE_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<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>
				<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>
				<COLUMN dataField="D3" width="100" visibleCondition="SELECT.DATA3 != '-1'" type="Number" outputFormat="= SELECT.DATA32" fixed="false" selectable="true" headerText="SELECT.DATA33 + ' ' + VIEW.PERIODE_D_LABEL + '- ' + VIEW.TOPERIODE_D_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="F3" width="100" visibleCondition="SELECT.DATA3 != '-1'" type="Number" outputFormat="= SELECT.DATA32" fixed="false" selectable="true" headerText="SELECT.DATA33 + ' ' + SELECT.PERIODE_LABEL + '- ' + SELECT.TOPERIODE_LABEL" headerTextCalc="true" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<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>
				<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" >
				</COLUMN>
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
