<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="COMPTA000046" 
	label="Comptabilité analytique par critère" 
	title="= 'Comptabilité analytique ' + '. Analyse par ' + SELECT.GROUPBY_LABEL  + ' (' + SELECT.MOIS_LABEL + ' - ' + SELECT.TOMOIS_LABEL + ')'" 
	database="iCTI" 
	swf="*CTI_view1" 
	globals="COMPTA_globals.XML"
	dboptimizer="COMPTA_dboptimizer.XML"
	componentsFile="COMPTA_components.XML"
	softCode="iCTI_compta"
	softOption="iCTI_compta_analytique_shs"
	>
	
	<VIEWPROPERTIES componentName="MULTICRITERES_ANALYTIQUE_PROPERTIES" />
	
	<VIEWPROPERTIES>
		
		<PROPERTY name="ARBRE2_PADDING" value="[EVAL 
			$padding = 0;
			if ('[ARBRE1]' != '-1') {
				$padding = $padding + 1;
			}
			return $padding;
		EVAL]" />
		<PROPERTY name="ARBRE3_PADDING" value="[EVAL 
			$padding = 0;
			if ('[ARBRE1]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE2]' != '-1') {
				$padding = $padding + 1;
			}
			return $padding;
		EVAL]" />
		<PROPERTY name="ARBRE4_PADDING" value="[EVAL 
			$padding = 0;
			if ('[ARBRE1]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE2]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE3]' != '-1') {
				$padding = $padding + 1;
			}
			return $padding;
		EVAL]" />
		<PROPERTY name="ARBRE5_PADDING" value="[EVAL 
			$padding = 0;
			if ('[ARBRE1]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE2]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE3]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE4]' != '-1') {
				$padding = $padding + 1;
			}
			return $padding;
		EVAL]" />
		<PROPERTY name="GROUPBY_PADDING" value="[EVAL 
			$padding = 0;
			if ('[ARBRE1]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE2]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE3]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE4]' != '-1') {
				$padding = $padding + 1;
			}
			if ('[ARBRE5]' != '-1') {
				$padding = $padding + 1;
			}
			return $padding;
		EVAL]" />
		
		<PROPERTY name="DATA_SELECT" value="[EVAL 
												$select = '';
												if (substr('[PREVISION]',0,1) == '0') {
													$select = $select . &quot;AND code_prevision_realisation = 'R' &quot;;
												}

												if ('[ETAPE]' != '-1') {
													if ('[ETAPE]' == 'P') {
														$select = $select . &quot;AND est_derniere_etape = '1' &quot;;
													}
													else {
														$select = $select . 'AND etape_id = [ETAPE] ';
													}
												}

												
												return $select;
											EVAL]" />
		
					
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
	</VIEWPROPERTIES>
	
	<SELECTIONS label="Paramètres de l'analyse" displayText="">
		
		<GROUP label="Période">
			<FIELD name="MOIS" label="" UI="combo" width="250" default="*FIRST" globalListProvider="MOIS">
			</FIELD>
			<FIELD name="TOMOIS" label="" UI="combo" width="250" default="*FIRST" globalListProvider="MOIS">
			</FIELD>
		</GROUP>
		<GROUP label="Etape">
			<FIELD name="ETAPE" label="" UI="combo" width="250" default="-1"  globalListProvider="ETAPES" >
			</FIELD>
			<FIELD name="PREVISION" label="" UI="combo" width="250" default="-1"  >
				<OPTION data="-1" label="Afficher les prévisions" />
				<OPTION data="0" label="Masquer les prévisions" />
			</FIELD>
		</GROUP>
		

		
		<GROUP label="Arborescence">
			<FIELD name="ARBRE1" label="" UI="combo" width="250" default="-1"  tree="true" >
				<OPTION data="-1" label="Pas de 1er niveau" />
				<OPTION data="MOI" label="Mois comptable" />
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION" />
				<OPTION data="ANA" label="Section analytique" globalListProvider="ANA_GROUPBY_OPTION" />
				<OPTION data="AOR" label="Section analytique origine" globalListProvider="AOR_GROUPBY_OPTION" />
			</FIELD>
			<FIELD name="GROUPBY_TAB" width="100" label="Présentation" UI="combo" default="AUTO" visible="= SELECT.ARBRE1 != '-1' ">
				<OPTION label="Automatique" data="AUTO" />
				<OPTION label="Arbre" data="TREE" />
				<OPTION label="Onglet" data="TAB" />
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="ARBRE2" label="" UI="combo" width="250" default="-1" tree="true" >
				<OPTION data="-1" label="Pas de 2nd niveau" />
				<OPTION data="MOI" label="Mois comptable" />
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION" />
				<OPTION data="ANA" label="Section analytique" globalListProvider="ANA_GROUPBY_OPTION" />
				<OPTION data="AOR" label="Section analytique origine" globalListProvider="AOR_GROUPBY_OPTION" />
			</FIELD>
			<FIELD name="ARBRE3" label="" UI="combo" width="250" default="-1" tree="true" >
				<OPTION data="-1" label="Pas de 3ème niveau" />
				<OPTION data="MOI" label="Mois comptable" />
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION" />
				<OPTION data="ANA" label="Section analytique" globalListProvider="ANA_GROUPBY_OPTION" />
				<OPTION data="AOR" label="Section analytique origine" globalListProvider="AOR_GROUPBY_OPTION" />
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="ARBRE4" label="" UI="combo" width="250" default="-1" tree="true"  >
				<OPTION data="-1" label="Pas de 4ème niveau" />
				<OPTION data="MOI" label="Mois comptable" />
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION" />
				<OPTION data="ANA" label="Section analytique" globalListProvider="ANA_GROUPBY_OPTION" />
				<OPTION data="AOR" label="Section analytique origine" globalListProvider="AOR_GROUPBY_OPTION" />
			</FIELD>
			<FIELD name="ARBRE5" label="" UI="combo" width="250" default="-1" tree="true"  >
				<OPTION data="-1" label="Pas de 5ème niveau" />
				<OPTION data="MOI" label="Mois comptable" />
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION" />
				<OPTION data="ANA" label="Section analytique" globalListProvider="ANA_GROUPBY_OPTION" />
				<OPTION data="AOR" label="Section analytique origine" globalListProvider="AOR_GROUPBY_OPTION" />
			</FIELD>
		</GROUP>
		<GROUP label="">
			<FIELD name="GROUPBY" label="Regroupement" UI="combo" width="250" default="ANA" tree="true"  >
				<OPTION data="MOI" label="Mois comptable" />
				<OPTION data="CPT" label="Compte général" globalListProvider="CPT_GROUPBY_OPTION" />
				<OPTION data="ANA" label="Section analytique" globalListProvider="ANA_GROUPBY_OPTION" />
				<OPTION data="AOR" label="Section analytique origine" globalListProvider="AOR_GROUPBY_OPTION" />
			</FIELD>
		</GROUP>

	</SELECTIONS>
	
	<SELECTIONS componentName="ANALYTIQUE_SHS_SELECTIONS" />
	
	
	<QUERIES> 
		<QUERY> 
			<SQL 	
					optimizer=""
					cacheEnabled="true"
					select="

					[EVAL 
					if ('[ARBRE1]' != '-1') {
						$groupby = '';
						$qtab = false;
						if ('[GROUPBY_TAB]' == 'TAB') {
							$qtab = true;
						}
						if ('[GROUPBY_TAB]' == 'AUTO' &amp;&amp; '[ARBRE2]' != '-1') {
							$qtab = true;
						}

						if ($qtab == false) {
							return &quot;
							(SELECT 
								[VIEW.TAB1_RESUME_FIELDS],
								[VIEW.ARBRE1_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
								[VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
								[VIEW.ARBRE1_FIELDS], [VIEW.ARBRE1TEXT_FIELDS],
								1, 0,
								sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
								
							
							FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
							WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
									[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
							GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
							)
							UNION ALL &quot;;
						}
						else {
							return &quot;
							(SELECT 
								[VIEW.TAB1_RESUME_FIELDS],
								[VIEW.ARBRE1_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
								[VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
								[VIEW.ARBRE1_FIELDS], [VIEW.ARBRE1TEXT_FIELDS],
								1, 0,
								sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
								
								
								sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
								
							FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
							WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
									[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
							GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
							)
							UNION ALL
							(SELECT 
								[VIEW.TAB1_FIELDS],
								[VIEW.ARBRE1_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
								[VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
								-9999999, 'Total', 'Total',
								9, 0,
								sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
								
							FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
							WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
									[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
							GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
							)
							UNION ALL&quot; ;
						}
					}
					EVAL]
					
					
					
					[EVAL 
					if ([ARBRE2] != '-1') {
						return '
						(SELECT 
							[VIEW.TAB1_FIELDS],
							[VIEW.ARBRE1_FIELDS], [VIEW.ARBRE2_FIELDS], [VIEW.GROUP0BY_FIELDS], 
							[VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
							[VIEW.ARBRE2_FIELDS], [VIEW.ARBRE2TEXT_FIELDS],
							2, [VIEW.ARBRE2_PADDING],
							sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
							
						FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
						WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
								[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
						GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
						)
						UNION ALL';
					}
					EVAL]
					
					[EVAL 
					if ([ARBRE3] != '-1') {
						return '
						(SELECT 
							[VIEW.TAB1_FIELDS],
							[VIEW.ARBRE1_FIELDS], [VIEW.ARBRE2_FIELDS], [VIEW.ARBRE3_FIELDS], 
							[VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
							[VIEW.ARBRE3_FIELDS], [VIEW.ARBRE3TEXT_FIELDS],
							3, [VIEW.ARBRE3_PADDING],
							sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
							
						FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
						WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
								[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
						GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
						)
						UNION ALL';
					}
					EVAL]
					
					[EVAL 
					if ([ARBRE4] != '-1') {
						return '
						(SELECT 
							[VIEW.TAB1_FIELDS],
							[VIEW.ARBRE1_FIELDS], [VIEW.ARBRE2_FIELDS], [VIEW.ARBRE3_FIELDS], 
							[VIEW.ARBRE4_FIELDS], [VIEW.GROUP0BY_FIELDS], [VIEW.GROUP0BY_FIELDS], 
							[VIEW.ARBRE4_FIELDS], [VIEW.ARBRE4TEXT_FIELDS],
							4, [VIEW.ARBRE4_PADDING],
							sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
								sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
								sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
							
						FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
						WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
								[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
						GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
						)
						UNION ALL';
					}
					EVAL]
					
					[EVAL 
					if ([ARBRE5] != '-1') {
						return '
						(SELECT 
							[VIEW.TAB1_FIELDS],
							[VIEW.ARBRE1_FIELDS], [VIEW.ARBRE2_FIELDS], [VIEW.ARBRE3_FIELDS], 
							[VIEW.ARBRE4_FIELDS], [VIEW.ARBRE5_FIELDS], [VIEW.GROUP0BY_FIELDS], 
							[VIEW.ARBRE5_FIELDS], [VIEW.ARBRE5TEXT_FIELDS],
							5, [VIEW.ARBRE5_PADDING],
							sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
							sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
							sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
							
						FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
						WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
								[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
						GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
						)
						UNION ALL';
					}
					EVAL]
					
					(SELECT 
						[VIEW.TAB1_FIELDS],
						[VIEW.ARBRE1_FIELDS], [VIEW.ARBRE2_FIELDS], [VIEW.ARBRE3_FIELDS], 
						[VIEW.ARBRE4_FIELDS], [VIEW.ARBRE5_FIELDS], [VIEW.GROUPBY_FIELDS], 
						[VIEW.GROUPBY_FIELDS], [VIEW.TEXT_FIELDS],
						6, [VIEW.GROUPBY_PADDING],
						sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
						
					FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
					WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
						[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]
					GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
					)
					
					UNION ALL
					
					(SELECT 
						[VIEW.TAB1_RESUME_FIELDS],
						0, '',  0, '',  0, '',  0, '',  0, '',  0, '',  
						-9999999, 'Total', 'Total',
						9, 0,
						
						sum(v_repartitions_analytiques_shs_1.montant_prevision_avant_repartition), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_avant_repartition), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_1), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_1), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_2), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_2), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_3), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_3), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_4), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_4), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_5), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_5), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_6), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_6), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_7), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_7), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_8), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_8), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_9), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_9), 
						sum(v_repartitions_analytiques_shs_1.montant_prevision_apres_repartition), 
						sum(v_repartitions_analytiques_shs_1.montant_realisation_apres_repartition)
						
					FROM compta.v_repartitions_analytiques_shs_1 v_repartitions_analytiques_shs_1
					WHERE v_repartitions_analytiques_shs_1.mois_comptable BETWEEN [MOIS] AND [TOMOIS]
							
							[VIEW.ANALYTIQUE_SHS_SELECT] [VIEW.DATA_SELECT]


					)


					ORDER BY 2, 5, 7, 9, 11, 13, 14 " >
				<FIELDS>
					<FIELD name="TABD" />
					<FIELD name="TABDL" />
					<FIELD name="TABDLL" />
					<FIELD name="OID1" />
					<FIELD name="COD1" />
					<FIELD name="OID2" />
					<FIELD name="COD2" />
					<FIELD name="OID3" />
					<FIELD name="COD3" />
					<FIELD name="OID4" />
					<FIELD name="COD4" />
					<FIELD name="OID5" />
					<FIELD name="COD5" />
					<FIELD name="OID6" />
					<FIELD name="COD6" />
					<FIELD name="OID" />
					<FIELD name="COD" />
					<FIELD name="TXT" />
					<FIELD name="LVL" />
					<FIELD name="PAD" />
					<FIELD name="PRA" />
					<FIELD name="REA" />
					<FIELD name="PR1" />
					<FIELD name="RE1" />
					<FIELD name="PR2" />
					<FIELD name="RE2" />
					<FIELD name="PR3" />
					<FIELD name="RE3" />
					<FIELD name="PR4" />
					<FIELD name="RE4" />
					<FIELD name="PR5" />
					<FIELD name="RE5" />
					<FIELD name="PR6" />
					<FIELD name="RE6" />
					<FIELD name="PR7" />
					<FIELD name="RE7" />
					<FIELD name="PR8" />
					<FIELD name="RE8" />
					<FIELD name="PR9" />
					<FIELD name="RE9" />
					<FIELD name="PRP" />
					<FIELD name="REP" />
				</FIELDS>
			</SQL>
		</QUERY>	
				
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false"> 
			<SQL   
				select="SELECT 'ETA' ||  oid, code || ' ' || texte
							FROM compta.t_etapes_analytiques
							ORDER BY oid
							" >
				<FIELDS>
					<FIELD name="name" />
					<FIELD name="value" />
				</FIELDS>
			</SQL>
			
			
		</QUERY>
		
			
	</QUERIES> 
	

	<PRESENTATION>
	
		<VIEWLINKS>
			
			
		
		</VIEWLINKS>
			
		<ONGLET excelLabel="Analyse écritures" label="Analyse écritures" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
		
			<CHARTx title="Evolution mensuelle" type="lineChart" sortField="TXT" sortSeq="A"
				condition="Number(ROW.COD) &gt;= 100"
				maxItems="5"  maxItemsSortOn="SOLX" maxItemsSortSeq="D"
				serieIsCategory="true">
				<CATEGORY field="TXT" 
					type="Char"
					/>
				<SERIE field="SOLM01" displayName="VIEW.M1" displayNameCalc="true" />
				<SERIE field="SOLM02" displayName="VIEW.M2" displayNameCalc="true" />
				<SERIE field="SOLM04" displayName="VIEW.M3" displayNameCalc="true" />
				<SERIE field="SOLM04" displayName="VIEW.M4" displayNameCalc="true" />
				<SERIE field="SOLM05" displayName="VIEW.M5" displayNameCalc="true" />
				<SERIE field="SOLM06" displayName="VIEW.M6" displayNameCalc="true" />
				<SERIE field="SOLM07" displayName="VIEW.M7" displayNameCalc="true" />
				<SERIE field="SOLM08" displayName="VIEW.M8" displayNameCalc="true" />
				<SERIE field="SOLM09" displayName="VIEW.M9" displayNameCalc="true" />
				<SERIE field="SOLM10" displayName="VIEW.M10" displayNameCalc="true" />
				<SERIE field="SOLM11" displayName="VIEW.M11" displayNameCalc="true" />
				<SERIE field="SOLM12" displayName="VIEW.M12" displayNameCalc="true" />
			</CHARTx>
					
			<DATAGRID title="" total="true" headerHeight="72" variableRowHeight="true" sortable="= SELECT.ARBRE1 == '-1' &amp;&amp; SELECT.ARBRE2 == '-1' &amp;&amp; SELECT.ARBRE3 == '-1' &amp;&amp; SELECT.ARBRE4 == '-1' &amp;&amp; SELECT.ARBRE5 == '-1'"
				totalRowInRows="= ROW.OID == '-9999999'">
				<ROWSTYLE name="fontSize" value="10" />
				<ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; VIEW.QTAB != '1'"/>
				<ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; VIEW.QTAB != '1'"/>
				<ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; VIEW.QTAB != '1'"/>
				<ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; VIEW.QTAB != '1'"/>
				<ROWSTYLE name="rowHeight" value="36" condition="ROW.LVL == '1' &amp;&amp; VIEW.QTAB != '1'"/>
				<ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; VIEW.QTAB != '1'"/>
				
				<ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '2' &amp;&amp; VIEW.QTAB == '1'"/>
				<ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '2' &amp;&amp; VIEW.QTAB == '1'"/>
				<ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '2' &amp;&amp; VIEW.QTAB == '1'"/>
				<ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '2' &amp;&amp; VIEW.QTAB == '1'"/>
				<ROWSTYLE name="rowHeight" value="36" condition="ROW.LVL == '2' &amp;&amp; VIEW.QTAB == '1'"/>
				<ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '2' &amp;&amp; VIEW.QTAB == '1'"/>
				
				<ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '2'"/>
				<ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '3'"/>
				<ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '4'"/>
				<ROWSTYLE name="rowHeight" value="24" condition="ROW.LVL == '2' &amp;&amp; VIEW.QTAB != '1'"/>
				<ROWSTYLE name="rowHeight" value="24" condition="ROW.LVL == '3'"/>
				<ROWSTYLE name="fontSize" value="11" condition="ROW.LVL == '1' &amp;&amp; VIEW.QTAB != '1'"/>
				<ROWSTYLE name="fontSize" value="11" condition="ROW.LVL == '2'"/>

				<COLUMN dataField="LVL"
					type="Number"
					headerText="lvl"
					width="40"
					visible="false" />
				<COLUMN dataField="PAD"
					type="Number"
					headerText="pad"
					width="40"
					visible="false" />
				<COLUMN dataField="OID1"
					type="Char"
					visible="false" />
				<COLUMN dataField="OID2"
					type="Char"
					visible="false" />
				<COLUMN dataField="OID3"
					type="Char"
					visible="false" />
				<COLUMN dataField="OID4"
					type="Char"
					visible="false" />
				<COLUMN dataField="OID5"
					type="Char"
					visible="false" />
				<COLUMN dataField="OID6"
					type="Char"
					visible="false" />
				<COLUMN dataField="COD1"
					type="Char"
					visible="false" />
				<COLUMN dataField="COD2"
					type="Char"
					visible="false" />
				<COLUMN dataField="COD3"
					type="Char"
					visible="false" />
				<COLUMN dataField="COD4"
					type="Char"
					visible="false" />
				<COLUMN dataField="COD5"
					type="Char"
					visible="false" />
				<COLUMN dataField="COD6"
					type="Char"
					visible="false" />
				
				<COLUMN dataField="OID"
					type="Char"
					visible="false" />
				<COLUMN dataField="COD" 
					type="Char"
					outputFormat="#"
					width="120"
					visible="true"
					headerText="Code" 
					totalFunction="text" 
					totalComplement="" >
					<CELLSTYLE name="paddingLeft" value="10" condition="ROW.PAD == '1'"/>
					<CELLSTYLE name="paddingLeft" value="20" condition="ROW.PAD == '2'"/>
					<CELLSTYLE name="paddingLeft" value="30" condition="ROW.PAD == '3'"/>
					<CELLSTYLE name="paddingLeft" value="40" condition="ROW.PAD == '4'"/>
					<CELLSTYLE name="paddingLeft" value="50" condition="ROW.PAD == '5'"/>
				</COLUMN>
				<COLUMN dataField="TXT" 
					type="Char"
					outputFormat="#"
					minWidth="60"
					visible="true"
					headerText="SELECT.GROUPBY_LABEL" 
					headerTextCalc="true" 
					totalFunction="text" 
					totalComplement="TOTAL" >
					<CELLSTYLE name="paddingLeft" value="10" condition="ROW.PAD == '1'"/>
					<CELLSTYLE name="paddingLeft" value="20" condition="ROW.PAD == '2'"/>
					<CELLSTYLE name="paddingLeft" value="30" condition="ROW.PAD == '3'"/>
					<CELLSTYLE name="paddingLeft" value="40" condition="ROW.PAD == '4'"/>
					<CELLSTYLE name="paddingLeft" value="50" condition="ROW.PAD == '5'"/>
				</COLUMN>
				<COLUMN dataField="PRA"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '0')  &amp;&amp; SELECT.PREVISION != '0'"
					width="90"
					fixed="false"
					headerText="Avant répartition. Prévision"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="REA"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '0')"
					width="90"
					fixed="false"
					headerText="Avant répartition. Réalisation"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR1"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '1')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA1 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA1 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE1"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '1') &amp;&amp; VIEW.ETA1 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA1 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR2"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '2')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA2 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA2 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE2"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '2') &amp;&amp; VIEW.ETA2 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA2 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR3"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '3')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA3 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA3 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE3"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '3') &amp;&amp; VIEW.ETA3 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA3 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR4"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '4')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA4 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA4 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE4"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '4') &amp;&amp; VIEW.ETA4 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA4 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR5"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '5')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA5 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA5 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE5"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '5') &amp;&amp; VIEW.ETA5 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA5 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR6"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '6')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA6 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA6 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE6"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '6') &amp;&amp; VIEW.ETA6 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA6 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR7"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '7')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA7 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA7 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE7"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '7') &amp;&amp; VIEW.ETA7 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA7 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR8"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '8')  &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA8 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA8 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE8"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '8') &amp;&amp; VIEW.ETA8 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA8 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
					 
				<COLUMN dataField="PR9"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '9') &amp;&amp; SELECT.PREVISION != '0' &amp;&amp; VIEW.ETA9 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA9 + ' Prévision'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="RE9"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == '9') &amp;&amp; VIEW.ETA9 != null"
					width="90"
					fixed="false"
					headerText="VIEW.ETA9 + ' Réalisation'"
					headerTextCalc="true"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				
				
				<COLUMN dataField="PRP"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == 'P')  &amp;&amp; SELECT.PREVISION != '0'"
					width="90"
					fixed="false"
					headerText="Après Répartition. Prévision"
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				<COLUMN dataField="REP"
					type="Number"
					outputFormat="#E"
					visibleCondition="(SELECT.ETAPE == '-1' || SELECT.ETAPE == 'P')"
					width="90"
					fixed="false"
					headerText="Après Répartition. Réalisation "
					align="right"
					
					totalFunction="sum" 
					totalComplement="" 
					 />
				
				
				
			</DATAGRID>
		
		</ONGLET>
		
		
				
	</PRESENTATION>
	
</VUE>

			
