<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="ECO000083" 
	label="ECO. Justificatif Consommations nomminatives" 
	title="= 'Justificatif des mouvements ' + SELECT.GROUPBY_LABEL + ' de ' + 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 componentName="PROPERTIES_MOUVEMENTS"/>
	<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
	<VIEWPROPERTIES componentName="PROPERTIES_DATA"/>
	
	<SELECTIONS label="Paramètres de l'analyse" displayText="">
		<GROUP label="Période">
			<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="Regroupement">
			<FIELD name="GROUPBY" label="" UI="combo" width="200" default="SEJ" tree="true" visible = "false">
				<OPTION label="Séjour" data="SEJ" />	
			</FIELD>
			<FIELD name="GROUPBY_TAB" width="100" label="Présentation" UI="combo" default="AUTO" visible="false">
				<OPTION label="Automatique" data="AUTO"/>
				<OPTION label="Arbre" data="TREE"/>
				<OPTION label="Onglet" data="TAB"/>
			</FIELD>
			<FIELD name="GROUPBY_2" label="" UI="combo" width="200" default="RSS" tree="true" visible = "false">
				<OPTION label="RSS" data="-1" />	
			</FIELD>
			<FIELD name="GROUPBY_3" label="" width="200" UI="combo" default="-1" tree="true" visible="false">
				<OPTION label="-1" data="-1" />
			</FIELD>
		</GROUP>

	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_ARTICLE_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_FOURNISSEUR_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_MOUVEMENT_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PROVIDER_SELECTIONS"/>
	<SELECTIONS label="Filtre Indicateur" collapsible="true" displayText="= var display:String = '';

					if (SELECT.DATA01  != '-1') {
						display = display + '  #B#Indicateur#/B# = ' + SELECT.DATA01_LABEL;
					}
					return display;">
		
			<GROUP label="">
			<FIELD name="DATA01" label="Indicateur" UI="combo" width="210" default="-1" tree="true">
				<OPTION label="" data="-1"/>
				<OPTION label="" data="" globalListProvider="DATA_AP_IND" condition="dataItem.data5 &gt; 10 and dataItem.data5 &lt; 20"/>
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<QUERIES>
		<QUERY labele="">
			<SQL optimizer="V_MOUVEMENTS_ARTICLES_X" optimizer2="V_ALL_X">
				<select><![CDATA[		

					DROP TABLE IF EXISTS ECO000083;
					CREATE TEMP TABLE ECO000083 AS 
					SELECT
						rss_id,
						rss_code,
						rss_texte,
						sejour_id,
						sejour_code,
						sejour_texte,
						'ucd' AS ucd_lpp,
						ucd_id AS id,
						ucd_code AS code,
						ucd_texte AS texte,
						CASE WHEN ucd_tarifs_id IS NOT NULL THEN 'SUS' ELSE 'INC' END AS type_code,
						SUM(sortie_quantite-entree_quantite) AS sortie_quantite,
						SUM(sortie_montant-entree_montant) AS sortie_montant,
						AVG(prix_unitaire) As prix_unitaire,
						MAX(ucd_code || ' ' || article_code || ' ' || article_texte)::text AS article_texte,
						array_to_string(array_agg(DISTINCT type_mouvement_code),',') AS type_mouvement_code,
						array_to_string(array_agg(DISTINCT lieu_code),',') AS lieu_code,
						array_to_string(array_agg(DISTINCT unite_fonctionnelle_code),',') AS UF_CODE,
						array_to_string(array_agg(DISTINCT gestionnaire_code),',') as gestionnaire_code,
						array_to_string(array_agg(DISTINCT CASE WHEN unite_stockage_article_id <> 0 AND unite_stockage_article_code <> 'UN' THEN unite_stockage_article_texte ELSE '' END),',') as unite_stockage_article_texte
					FROM #V_MOUVEMENTS_ARTICLES_X##V_ALL_X#
					WHERE (date BETWEEN '[PERIODE]' AND '[TOPERIODE]')
						AND ucd_id != 0
						AND type_mouvement_id IN (SELECT to_id from eco.t_classes JOIN eco.t_classes_sections ON t_classes.oid = classe_id
							JOIN eco.t_classes_sections_elements ON section_id = t_classes_sections.oid
							WHERE t_classes.code = 'CTI_TYPMVT' AND t_classes_sections.code = '01')
						AND (sejour_code is not null and rss_code != '0')
						[VIEW.ARTICLE_SELECT]
						[VIEW.FOURNISSEUR_SELECT]
						[VIEW.MOUVEMENT_SELECT]
						[VIEW.PROVIDER_SELECT]
					GROUP BY 1,2,3,4,5,6,7,8,9,10,11
					UNION ALL
							SELECT
						rss_id,
						rss_code,
						rss_texte,
						sejour_id,
						sejour_code,
						sejour_texte,
						'lpp',
						lpp_id,
						lpp_code,
						lpp_texte,
						CASE WHEN lpp_sus_id IS NOT NULL THEN 'SUS' ELSE 'INC' END AS type_code,
						SUM(sortie_quantite-entree_quantite) AS sortie_quantite,
						SUM(sortie_montant-entree_montant) AS sortie_montant,
						AVG(prix_unitaire) As prix_unitaire,
						MAX(lpp_code || ' ' || article_code || ' ' || article_texte)::text AS article_texte,
						array_to_string(array_agg(DISTINCT type_mouvement_code),',') AS type_mouvement_code,
						array_to_string(array_agg(DISTINCT lieu_code),',') AS lieu_code,
						array_to_string(array_agg(DISTINCT unite_fonctionnelle_code),',') AS UF_CODE,
						array_to_string(array_agg(DISTINCT gestionnaire_code),',') as gestionnaire_code,
						array_to_string(array_agg(DISTINCT CASE WHEN unite_stockage_article_id <> 0 AND unite_stockage_article_code <> 'UN' THEN unite_stockage_article_texte ELSE '' END),',') as unite_stockage_article_texte
					FROM #V_MOUVEMENTS_ARTICLES_X##V_ALL_X#
					WHERE (date BETWEEN '[PERIODE]' AND '[TOPERIODE]')
						AND lpp_id != 0
						AND type_mouvement_id IN (SELECT to_id from eco.t_classes JOIN eco.t_classes_sections ON t_classes.oid = classe_id
							JOIN eco.t_classes_sections_elements ON section_id = t_classes_sections.oid
							WHERE t_classes.code = 'CTI_TYPMVT' AND t_classes_sections.code = '01')
						AND (sejour_code is not null and rss_code != '0')
						[VIEW.ARTICLE_SELECT]
						[VIEW.FOURNISSEUR_SELECT]
						[VIEW.MOUVEMENT_SELECT]
						[VIEW.PROVIDER_SELECT]
					GROUP BY 1,2,3,4,5,6,7,8,9,10,11
					UNION ALL
					SELECT
						rss_id,
						rss_code,
						rss_texte,
						sejour_id,
						sejour_code,
						sejour_texte,
						'',
						0,
						'',
						'',
						'INC',
						SUM(sortie_quantite-entree_quantite) AS sortie_quantite,
						SUM(sortie_montant-entree_montant) AS sortie_montant,
						AVG(prix_unitaire) As prix_unitaire,
						MAX(article_code || ' ' || article_texte)::text AS article_texte,
						array_to_string(array_agg(DISTINCT type_mouvement_code),',') AS type_mouvement_code,
						array_to_string(array_agg(DISTINCT lieu_code),',') AS lieu_code,
						array_to_string(array_agg(DISTINCT unite_fonctionnelle_code),',') AS UF_CODE,
						array_to_string(array_agg(DISTINCT gestionnaire_code),',') as gestionnaire_code,
						array_to_string(array_agg(DISTINCT CASE WHEN unite_stockage_article_id <> 0 AND unite_stockage_article_code <> 'UN' THEN unite_stockage_article_texte ELSE '' END),',') as unite_stockage_article_texte
					FROM #V_MOUVEMENTS_ARTICLES_X##V_ALL_X#
					WHERE (date BETWEEN '[PERIODE]' AND '[TOPERIODE]')
						AND lpp_id = 0 AND ucd_id = 0
						AND type_mouvement_id IN (SELECT to_id from eco.t_classes JOIN eco.t_classes_sections ON t_classes.oid = classe_id
							JOIN eco.t_classes_sections_elements ON section_id = t_classes_sections.oid
							WHERE t_classes.code = 'CTI_TYPMVT' AND t_classes_sections.code = '01')
						AND (sejour_code is not null and rss_code != '0')
						[VIEW.ARTICLE_SELECT]
						[VIEW.FOURNISSEUR_SELECT]
						[VIEW.MOUVEMENT_SELECT]
						[VIEW.PROVIDER_SELECT]
					GROUP BY 1,2,3,4,5,6,7,8,9,10,11
					;


				]]></select>
			</SQL>
			<SQL optimizer="V_MOUVEMENTS_ARTICLES_X" optimizer2="V_ALL_X">
				<select><![CDATA[		
					SELECT
						[VIEW.GROUPBY_OID_FIELD],
						[VIEW.GROUPBY_COD_FIELD],
						[VIEW.GROUPBY_TXT_FIELD],
						[VIEW.GROUPBY_2_OID_FIELD],
						[VIEW.GROUPBY_2_COD_FIELD],
						[VIEW.GROUPBY_2_TXT_FIELD],
						[VIEW.GROUPBY_3_OID_FIELD],
						[VIEW.GROUPBY_3_COD_FIELD],
						[VIEW.GROUPBY_3_TXT_FIELD],
						SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0
								END) AS montant_ucd_inc
						,SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND ucd_from_eco = 1
									THEN sortie_montant
								ELSE 0
								END) AS montant_ucd_sus
						,SUM(CASE 
								WHEN ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0
								END) AS montant_lpp_inc
						,SUM(CASE 
								WHEN ucd_lpp = 'lpp' AND lpp_from_eco = 0
									THEN sortie_montant
								ELSE 0.0
								END) AS montant_lpp_sus
						,SUM(CASE 
								WHEN ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0.0
								END) AS montant_aut_inc
						,SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0.0
								END) AS montant_tot_inc
						,MAX(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN ca_ghs_theorique
								ELSE 0.0
								END)
						,base.cti_division(100 * sum(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0
								END), SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN ca_ghs_theorique
								ELSE 0
								END))
						,sum(CASE 
								WHEN ucd_lpp = 'ucd' AND ucd_from_eco = 1
									THEN montant_facture_ucd
								WHEN  ucd_lpp = 'lpp' AND lpp_from_eco = 1
									THEN montant_facture_lpp
								ELSE 0
								END)
						,sum( CASE 
								WHEN ucd_lpp = 'ucd' AND ucd_from_eco = 1
									THEN sortie_montant -montant_facture_ucd
								WHEN ucd_lpp = 'lpp' AND lpp_from_eco = 1
									THEN sortie_montant -montant_facture_lpp
								ELSE 0
								END)
						,MAX(type_mouvement_code)::TEXT
						,MAX(lieu_code)::TEXT
						,MAX(uf_code)::TEXT
						,MAX(gestionnaire_code)::TEXT
						,MAX(unite_stockage_article_texte)::TEXT
					 FROM ECO000083 v_eco_view_1
					LEFT JOIN (
						SELECT rss_id AS mco_ucd_rss_id
							,t_ucd.code AS mco_ucd_code
							,COALESCE(from_eco,0) AS ucd_from_eco
							,SUM(nombre) AS nombre
							,SUM(montant_facture) AS montant_facture_ucd
						FROM pmsi.p_rss_ucd
							JOIN pmsi.t_ucd ON ucd_id = t_ucd.oid
						GROUP BY 1
							,2
							,3
						) ucd_mco ON rss_id = mco_ucd_rss_id
						AND code = mco_ucd_code
						AND ucd_lpp = 'ucd'
					 LEFt JOIN (
						SELECT rss_id AS mco_lpp_rss_id
							,t_lpp.code AS mco_lpp_code
							,COALESCE(from_eco,0) AS lpp_from_eco
							,SUM(nombre) AS nombre
							,SUM(montant_facture) AS montant_facture_lpp
						FROM pmsi.p_rss_lpp
							JOIN pmsi.t_lpp ON lpp_id = t_lpp.oid
						GROUP BY 1
							,2
							,3
						) lpp_mco ON rss_id = mco_lpp_rss_id
						AND code = mco_lpp_code
						AND ucd_lpp = 'lpp'
					LEFT JOIN (
						SELECT v_rss_1.rss_id AS mco_rss_id_inc
							,ca_ghs_theorique
						FROM pmsi.v_rss_1
						) ghs_mco ON rss_id = mco_rss_id_inc
									GROUP BY 1,2,3,4,5,6,7,8,9
				UNION ALL
				SELECT
						-9999999,
						'',
						'TOTAL',
						-9999999,
						'',
						'',
						-9999999,
						'',
						'',
						SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0
								END) AS montant_ucd_inc
						,SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND ucd_from_eco = 1
									THEN sortie_montant
								ELSE 0
								END) AS montant_ucd_sus
						,SUM(CASE 
								WHEN ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0
								END) AS montant_lpp_inc
						,SUM(CASE 
								WHEN ucd_lpp = 'lpp' AND lpp_from_eco = 0
									THEN sortie_montant
								ELSE 0.0
								END) AS montant_lpp_sus
						,SUM(CASE 
								WHEN ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0.0
								END) AS montant_aut_inc
						,SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0.0
								END) AS montant_tot_inc
						,MAX(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN ca_ghs_theorique
								ELSE 0.0
								END)
						,base.cti_division(100 * sum(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN sortie_montant
								ELSE 0
								END), SUM(CASE 
								WHEN ucd_lpp = 'ucd' AND COALESCE(ucd_from_eco,1) = 1
									OR  ucd_lpp = 'lpp' AND COALESCE(lpp_from_eco,1) = 1
									OR  ucd_lpp = '' AND COALESCE(lpp_from_eco,1) = 1
									THEN ca_ghs_theorique
								ELSE 0
								END))
						,sum(CASE 
								WHEN ucd_lpp = 'ucd' AND ucd_from_eco = 1
									THEN montant_facture_ucd
								WHEN  ucd_lpp = 'lpp' AND lpp_from_eco = 1
									THEN montant_facture_lpp
								ELSE 0
								END)
						,sum( CASE 
								WHEN ucd_lpp = 'ucd' AND ucd_from_eco = 1
									THEN sortie_montant -montant_facture_ucd
								WHEN ucd_lpp = 'lpp' AND lpp_from_eco = 1
									THEN sortie_montant -montant_facture_lpp
								ELSE 0
								END)
						,MAX(type_mouvement_code)::TEXT
						,MAX(lieu_code)::TEXT
						,MAX(uf_code)::TEXT
						,MAX(gestionnaire_code)::TEXT
						,MAX(unite_stockage_article_texte)::TEXT
					 FROM ECO000083 v_eco_view_1
					LEFT JOIN (
						SELECT rss_id AS mco_ucd_rss_id
							,t_ucd.code AS mco_ucd_code
							,COALESCE(from_eco,0) AS ucd_from_eco
							,SUM(nombre) AS nombre
							,SUM(montant_facture) AS montant_facture_ucd
						FROM pmsi.p_rss_ucd
							JOIN pmsi.t_ucd ON ucd_id = t_ucd.oid
						GROUP BY 1
							,2
							,3
						) ucd_mco ON rss_id = mco_ucd_rss_id
						AND code = mco_ucd_code
						AND ucd_lpp = 'ucd'
					 LEFT JOIN (
						SELECT rss_id AS mco_lpp_rss_id
							,t_lpp.code AS mco_lpp_code
							,COALESCE(from_eco,0) AS lpp_from_eco
							,SUM(nombre) AS nombre
							,SUM(montant_facture) AS montant_facture_lpp
						FROM pmsi.p_rss_lpp
							JOIN pmsi.t_lpp ON lpp_id = t_lpp.oid
						GROUP BY 1
							,2
							,3
						) lpp_mco ON rss_id = mco_lpp_rss_id
						AND code = mco_lpp_code
						AND ucd_lpp = 'lpp'
					LEFT JOIN (
						SELECT v_rss_1.rss_id AS mco_rss_id_inc
							,ca_ghs_theorique
						FROM pmsi.v_rss_1
						) ghs_mco ON rss_id = mco_rss_id_inc
									GROUP BY 1,2,3,4,5,6,7,8,9
				;
				]]></select>
				<FIELDS>
					<!-- <INSERT name="CTISELECT_TREE_FIELDS"/> -->
					<FIELD name="OID" />
					<FIELD name="COD1" />
					<FIELD name="TXT1" />
					<FIELD name="OID2" />
					<FIELD name="COD2" />
					<FIELD name="TXT2" />
					<FIELD name="OID3" />
					<FIELD name="COD3" />
					<FIELD name="TXT3" />
					<FIELD name="MUCDI" />
					<FIELD name="MUCDS" />
					<FIELD name="MLPPI" />
					<FIELD name="MLPPS" />
					<FIELD name="MAUTI" />
					<FIELD name="MTOTI" />
					<FIELD name="MGHS" />
					<FIELD name="PGHS" />
					<FIELD name="MFAC" />
					<FIELD name="MECA" />

					<FIELD name="TMVT" />
					<FIELD name="LIEU" />
					<FIELD name="UF" />
					<FIELD name="GEST" />
					<FIELD name="UNIT" />
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Détail RSS PMSI" shortLabel="Dossier PMSI" view="PMSI000006.XML" rowcontexte="true">
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['OID'] = ROW.OID2
						return 'OK';
					]]></value>
				</ARGS>
			</VIEWLINK>
			<VIEWLINK label="Détail Séjour Activité" shortLabel="Dossier Activité" view="ACTI000020.XML" rowcontext="true">
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['SEJOUR'] = ROW.COD1
						return 'OK';
					]]></value>
				</ARGS>
			</VIEWLINK>
			<VIEWLINK label="Détail mouvements séjour" shortLabel="Mouvements séjour" view="ECO000010.XML">
				<ARGS name="SPEC">
					<value><![CDATA[
						LINKVARIABLES['RSS'] = ROW.COD2
						LINKVARIABLES['SEJ'] = ROW.COD1
						return 'OK';
					]]></value>
				</ARGS>
			</VIEWLINK>
		</VIEWLINKS>		
		<ONGLET label="Onglet" multiTab="true" >

			<DATAGRID 	title="" 
						total="true" 
						headerHeight="40" 
						totalRowInRows="= ROW.OID == '-9999999'"
						variableRowHeight="true" 
						> 
				
				
				<COLUMN dataField="OID1"
					type="Number"
					visible="false" />
				<COLUMN dataField="COD1" 
					type="Char" 
					width="100"
					outputFormat="#"
					headerText="N° Séjour" 
					textAlign="left" 
					totalComplement="*ROW">
				</COLUMN>
				<COLUMN dataField="OID2"
					type="Number"
					visible="false" />
				<COLUMN dataField="COD2" 
					type="Char" 
					width="100"
					outputFormat="#"
					headerText="N° RSS" 
					textAlign="left" 
					totalComplement="*ROW">
				</COLUMN>
				<COLUMN dataField="MUCDI" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="Mnt UCD Inclus" 
					textAlign="left" 
					totalComplement="*ROW"/>
				<COLUMN dataField="MUCDS" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="Mnt UCD liste en SUS" 
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="MLPPI" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="Mnt LPP Inclus" 
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="MLPPS" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="Mnt LPP liste en SUS" 
					textAlign="right"
				totalComplement="*ROW" />
				<COLUMN dataField="MAUTI" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="Mnt Autres inclus" 
					textAlign="right"
				totalComplement="*ROW" />
				<COLUMN dataField="MTOTI" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="Mnt Total inclus" 
					textAlign="right"
				totalComplement="*ROW" />
					<COLUMN dataField="MGHS" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="CA GHS théorique" 
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="PGHS" 
					type="Number" 
					width="100"
					outputFormat="#%"
					headerText="Part dans le GHS" 
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="MFAC" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					
					headerText="Montant Facturé en SUS" 
					textAlign="right"
					totalComplement="*ROW" />
				<COLUMN dataField="MECA" 
					type="Number" 
					width="100"
					outputFormat="#,00E"
					headerText="Montant Ecart" 
					textAlign="right"
					totalComplement="*ROW" />
			
			<!-- 	 <COLUMN dataField="TMVT" 
					type="Char" 
					width="40"
					headerText="Mvt" 
					textAlign="left" 
					totalComplement="*ROW"/>
				<COLUMN dataField="LIEU" 
					type="Char" 
					width="50"
					headerText="Lieu" 
					textAlign="left" 
					totalComplement="*ROW"/>
				<COLUMN dataField="UF" 
					type="Char" 
					width="50"
					headerText="U.F." 
					textAlign="left" 
					totalComplement="*ROW"/>
				<COLUMN dataField="GEST" 
					type="Char" 
					width="60"
					headerText="Gest" 
					textAlign="left" 
					totalComplement="*ROW"/>
				<COLUMN dataField="UNIT" 
					type="Char" 
					width="50"
					headerText="Unité" 
					textAlign="left" 
					totalComplement="*ROW"/> -->
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>

			
