<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="PMSI000238" label="PMSI. Tableau des Ré-Entrées" title="= 'Ré-Entrées par ' +  SELECT.GROUPBY_LABEL + ' éclatées par ' + SELECT.COLUMNBY_LABEL + ' (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ') - ' + SELECT.VERSION_GROUPAGE_LABEL" database="iCTI" swf="*CTI_view1" softCode="iCTI_pmsi" globals="PMSI_globals.XML" componentsFile="PMSI_components.XML" helpDokuWIkiDir="pmsi:file_active" helpDokuWIkiFile="pmsi000114"  helpFile="iCTI_PMSI_PMSI000115.HTML">
	<VIEWPROPERTIES componentName="PROPERTIES_RSS" />
	<VIEWPROPERTIES componentName="PROPERTIES_SELECT_TABTREE" />
	<VIEWPROPERTIES>
		<PROPERTY name="COL_HEADER">
			<value><![CDATA[[EVAL 
				
				if ('[COLUMNBY]' == '1') {return 'CMD';}
				if ('[COLUMNBY]' == '2') {return 'OAP';}
				if ('[COLUMNBY]' == '9') {return 'OAP';}
				if ('[COLUMNBY]' == '3') {return 'GA';}
				if ('[COLUMNBY]' == '4') {return 'GHM';}
				if ('[COLUMNBY]' == '6') {return 'Med';}
				if ('[COLUMNBY]' == '7') {return 'Spé';}
				if ('[COLUMNBY]' == '10') {return 'DIAG';}
				if ('[COLUMNBY]' == 'UP') {return 'UM';}
				if ('[COLUMNBY]' == '8') {return 'Aso';}
				if ('[COLUMNBY]' == 'FIN') {return 'FIN';}
				if ('[COLUMNBY]' == 'GHS') {return 'GHS';}
				if ('[COLUMNBY]' == 'GHM5') {return 'GHM5';}
				if ('[COLUMNBY]' == 'GHMSEV') {return 'Sév';}
				if ('[COLUMNBY]' == 'TYPFAC') {return 'Fac';}
				if ('[COLUMNBY]' == 'ACTEP') {return 'Acte';}
				return 'test';
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value" />
	</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="2014-01-01" printable="false" globalListProvider="DATE_DEBUT" />
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31" printable="false" globalListProvider="DATE_FIN" />
		</GROUP>
		<GROUP>
			<FIELD name="COLUMNBY" label="Colonnes" UI="combo" width="220" default="CAS" tree="true">
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
			<FIELD name="COLUMNBYCOUNT" label="Nombre" UI="combo" default="10" tree="false">
				<OPTION label="5" data="5" />
				<OPTION label="6" data="6" />
				<OPTION label="7" data="7" />
				<OPTION label="8" data="8" />
				<OPTION label="9" data="9" />
				<OPTION label="10" data="10" />
				<OPTION label="11" data="11" />
				<OPTION label="12" data="12" />
				<OPTION label="13" data="13" />
				<OPTION label="14" data="14" />
				<OPTION label="15" data="15" />
				<OPTION label="16" data="16" />
				<OPTION label="17" data="17" />
				<OPTION label="18" data="18" />
				<OPTION label="19" data="19" />
				<OPTION label="20" data="20" />
			</FIELD>
		</GROUP>
		<GROUP label="Regroupements">
			<FIELD name="GROUPBY" width="220" label="" UI="combo" default="4" tree="true">
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</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" width="220" label="" UI="combo" default="-1" tree="true">
				<OPTION label="Pas de second niveau" data="-1" treeLevel="1" />
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
		</GROUP>		
        <GROUP label="">
			<FIELD name="GROUPBY_3" width="220" label="" UI="combo" default="-1" tree="true">
				<OPTION label="Pas de troisième niveau" data="-1" treeLevel="1" />
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_RSS_SOUSSELECTIONS" />
	<SELECTIONS componentName="FILTRES_RSS_SELECTIONS" />
	<SELECTIONS componentName="FILTRES_REENTREE_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_RSS_X">
				<select><![CDATA[ 
			
				DROP TABLE IF EXISTS w_reentrees;
				CREATE TEMP TABLE w_reentrees AS
				SELECT 
					v_rss_1.patient_id, 
					v_rss_1.no_rss AS no_rss, 
					v_rss_1.rss_id AS rss_id, 
					v_rss_1.date_sortie AS date_sortie, 
					0::bigint AS apres_rss_id, 
					0::bigint AS apres_no_rss, 
					'20991231'::date AS apres_date_entree, 
					'20991231'::date AS apres_date_sortie,
					0::numeric AS delai,
					''::text AS group_oid
				FROM #V_RSS_X#
				WHERE patient_id > 0 AND 
					v_rss_1.date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'  
					[VIEW.FILTRE_RSS_SELECT] 
					
				]]></select>
			</SQL>
			<SQL optimizer="V_RSS_X">
				<select><![CDATA[ 
			
				DROP TABLE IF EXISTS w_apres;
				CREATE TEMP TABLE w_apres  AS
				SELECT 
					v_rss_1.patient_id, 
					v_rss_1.rss_id AS apres_rss_id, 
					v_rss_1.no_rss AS apres_no_rss, 
					v_rss_1.date_entree AS apres_date_entree,
					v_rss_1.date_sortie AS apres_date_sortie,
					[VIEW.SELECT_COLUMNBY_OID_FIELD]::text as group_oid
				FROM #V_RSS_X#
				WHERE patient_id > 0 AND date_entree >= '[PERIODE]'
					[VIEW.FILTRE_REENTREE_SELECT]
				ORDER BY patient_id, apres_date_entree ; 
					
				]]></select>
			</SQL>
			<SQL optimizer="V_RSS_X">
				<select><![CDATA[ 
					
					UPDATE w_reentrees
					SET apres_rss_id = subview.apres_rss_id,
						apres_no_rss = subview.apres_no_rss,
						apres_date_entree = subview.apres_date_entree,
						apres_date_sortie = subview.apres_date_sortie,
						delai = subview.apres_date_entree - w_reentrees.date_sortie,
						group_oid = subview.group_oid
					FROM
					(
						SELECT rss_id,	
							(MIN(ARRAY[w_apres.apres_date_entree::text,w_apres.apres_no_rss::text]))[2]::bigint AS apres_no_rss,
							(MIN(ARRAY[w_apres.apres_date_entree::text,w_apres.group_oid::text]))[2]::bigint AS group_oid,
							(MIN(ARRAY[w_apres.apres_date_entree::text,w_apres.apres_rss_id::text]))[2]::bigint AS apres_rss_id,
							MIN(w_apres.apres_date_entree) AS apres_date_entree,
							(MIN(ARRAY[w_apres.apres_date_entree,w_apres.apres_date_sortie]))[2] AS apres_date_sortie
						FROM w_reentrees
						JOIN w_apres ON
							w_reentrees.patient_id = w_apres.patient_id
							AND w_apres.apres_rss_id <> w_reentrees.rss_id
							AND w_apres.apres_date_entree >= w_reentrees.date_sortie
							GROUP BY 1
						) subview
						WHERE w_reentrees.rss_id = subview.rss_id
					;

				UPDATE w_reentrees
				SET apres_rss_id = 0
				WHERE NOT (1=1 [VIEW.DELAI_REENTREE_SELECT])
				;
				
				ANALYSE w_reentrees
				;
					
				]]></select>
			</SQL>
			<SQL optimizer="V_RSS_X" cacheEnabled="true">
				<select><![CDATA[ 
					CTISELECT_TREE
						GROUPBY1{[VIEW.SELECT_TABTREE_OID_FIELD],, [VIEW.SELECT_TABTREE_COD_FIELD],, [VIEW.SELECT_TABTREE_TXT_FIELD]}
						GROUPBY1MODE{[GROUPBY_TAB]}
						GROUPBY2{[VIEW.SELECT_TABTREE_2_OID_FIELD],, [VIEW.SELECT_TABTREE_2_COD_FIELD],, [VIEW.SELECT_TABTREE_2_TXT_FIELD]}
						GROUPBY3{[VIEW.SELECT_TABTREE_3_OID_FIELD],, [VIEW.SELECT_TABTREE_3_COD_FIELD],, [VIEW.SELECT_TABTREE_3_TXT_FIELD]}
						SIGNIFDATA{[VIEW.SELECT_TABTREE_ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						INDICATORS{
				
                            sum(v_rss_1.nb_rsa),   
                            count(DISTINCT v_rss_1.patient_id),
                            sum(CASE WHEN apres_rss_id <> 0 THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID1]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID2]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID3]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID4]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID5]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID6]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID7]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID8]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID9]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID10]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID11]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID12]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID13]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID14]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID15]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID16]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID17]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID18]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID19]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 AND group_oid = '[VIEW.COLOID20]' THEN 1 ELSE 0 END),
                            sum(CASE WHEN apres_rss_id <> 0 
                                    AND group_oid <> '[VIEW.COLOID1]' 
                                    AND group_oid <> '[VIEW.COLOID2]' 
                                    AND group_oid <> '[VIEW.COLOID3]' 
                                    AND group_oid <> '[VIEW.COLOID4]' 
                                    AND group_oid <> '[VIEW.COLOID5]' 
                                    AND group_oid <> '[VIEW.COLOID6]' 
                                    AND group_oid <> '[VIEW.COLOID7]' 
                                    AND group_oid <> '[VIEW.COLOID8]' 
                                    AND group_oid <> '[VIEW.COLOID9]' 
                                    AND group_oid <> '[VIEW.COLOID10]' 
                                    AND group_oid <> '[VIEW.COLOID11]' 
                                    AND group_oid <> '[VIEW.COLOID12]' 
                                    AND group_oid <> '[VIEW.COLOID13]' 
                                    AND group_oid <> '[VIEW.COLOID14]' 
                                    AND group_oid <> '[VIEW.COLOID15]' 
                                    AND group_oid <> '[VIEW.COLOID16]' 
                                    AND group_oid <> '[VIEW.COLOID17]' 
                                    AND group_oid <> '[VIEW.COLOID18]' 
                                    AND group_oid <> '[VIEW.COLOID19]' 
                                    AND group_oid <> '[VIEW.COLOID20]' 
                                THEN 1 ELSE 0 END)
                        }
                        ORDERBY{indicateurs[2],, DESC}
				FROM #V_RSS_X#
				JOIN w_reentrees ON w_reentrees.rss_id = v_rss_1.rss_id
				WHERE 1=1
					
				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="SORT" />
					<FIELD name="NBS" />
					<FIELD name="NBP" />
					<FIELD name="NBRT" />
					<FIELD name="NBR1" />
					<FIELD name="NBR2" />
					<FIELD name="NBR3" />
					<FIELD name="NBR4" />
					<FIELD name="NBR5" />
					<FIELD name="NBR6" />
					<FIELD name="NBR7" />
					<FIELD name="NBR8" />
					<FIELD name="NBR9" />
					<FIELD name="NBR10" />
					<FIELD name="NBR11" />
					<FIELD name="NBR12" />
					<FIELD name="NBR13" />
					<FIELD name="NBR14" />
					<FIELD name="NBR15" />
					<FIELD name="NBR16" />
					<FIELD name="NBR17" />
					<FIELD name="NBR18" />
					<FIELD name="NBR19" />
					<FIELD name="NBR20" />
					<FIELD name="NBRA" />
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forRows="false" forSelections="false">
			<SQL optimizer="V_RSS_X">
				<select><![CDATA[ 
				
				DROP TABLE IF EXISTS temp_pmsi000115; 
				CREATE TEMPORARY TABLE temp_pmsi000115 (num bigint, oid character varying(255), code character varying(255), texte character varying(255)) ;
				DROP SEQUENCE IF EXISTS temp_sequence; CREATE TEMP SEQUENCE temp_sequence; 
				INSERT INTO temp_pmsi000115 (num, oid, code, texte) 
					SELECT 
						num, 
						oid, 
						code, 
						texte 
					FROM 
						(	SELECT 
								0 as num, 
								subview_r.oid, 
								subview_r.code, 
								substr(subview_r.texte, 1, 255) as texte 
							FROM 
								#V_RSS_X#
								LEFT JOIN 
									(	SELECT 
											DISTINCT ON (p_rss.patient_id, p_rss.no_rss) p_rss.oid AS rss_id, 
											[VIEW.SELECT_COLUMNBY_OID_FIELD]::text as oid, 
											[VIEW.SELECT_COLUMNBY_COD_FIELD] as code, 
											[VIEW.SELECT_COLUMNBY_TXT_FIELD] as texte, 
											p_rss.date_entree - p_rss.date_sortie AS delai 
										FROM #V_RSS_X#
										JOIN pmsi.p_rss ON p_rss.patient_id = v_rss_1.patient_id 
										WHERE 
											v_rss_1.date_sortie > p_rss.date_sortie 
											[VIEW.FILTRE_REENTREE_SELECT] 
										ORDER BY p_rss.patient_id, p_rss.no_rss, p_rss.date_sortie, v_rss_1.date_entree) subview_r 
									ON (v_rss_1.rss_id = subview_r.rss_id) 
							WHERE 
								v_rss_1.date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]' 
							GROUP BY subview_r.oid, subview_r.code, subview_r.texte 
							HAVING  sum(CASE WHEN delai IS NOT NULL THEN 1 ELSE 0 END) > 0 
							ORDER BY sum(CASE WHEN delai IS NOT NULL THEN 1 ELSE 0 END) DESC 
							LIMIT [COLUMNBYCOUNT]) subviewrt 
					ORDER BY code; 
					
					UPDATE temp_pmsi000115 SET num = nextval('temp_sequence'::regclass); 
					
					(SELECT 'COLOID'::text || num::text as key, oid::text as value FROM temp_pmsi000115) 
					UNION ALL 
					(SELECT 'COLCOD'::text || num::text as key, code::text as value FROM temp_pmsi000115) 
					UNION ALL 
					(SELECT 'COLTXT'::text || num::text as key, texte::text as value FROM temp_pmsi000115) 
					UNION ALL 
					(SELECT 'COLOID1' as key, '-1'::text as value WHERE 1 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID2' as key, '-1'::text as value WHERE 2 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID3' as key, '-1'::text as value WHERE 3 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID4' as key, '-1'::text as value WHERE 4 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID5' as key, '-1'::text as value WHERE 5 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID6' as key, '-1'::text as value WHERE 6 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID7' as key, '-1'::text as value WHERE 7 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID8' as key, '-1'::text as value WHERE 8 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID9' as key, '-1'::text as value WHERE 9 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID10' as key, '-1'::text as value WHERE 10 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID11' as key, '-1'::text as value WHERE 11 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID12' as key, '-1'::text as value WHERE 12 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID13' as key, '-1'::text as value WHERE 13 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID14' as key, '-1'::text as value WHERE 14 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID15' as key, '-1'::text as value WHERE 15 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID16' as key, '-1'::text as value WHERE 16 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID17' as key, '-1'::text as value WHERE 17 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID18' as key, '-1'::text as value WHERE 18 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID19' as key, '-1'::text as value WHERE 19 NOT IN (SELECT num FROM temp_pmsi000115) ) 
					UNION ALL 
					(SELECT 'COLOID20' as key, '-1'::text as value WHERE 20 NOT IN (SELECT num FROM temp_pmsi000115) ); 
					
				]]></select>
				<FIELDS>
					<FIELD name="name" />
					<FIELD name="value" />
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Liste des patients" shortLabel="Liste Patients" view="PMSI000117.XML" componentName="RSS_BASE_VIEWLINK" />
			<VIEWLINK label="Justificatif Ré-Entrées" shortLabel="Liste Ré-Entrées" view="PMSI000116.XML" componentName="RSS_BASE_VIEWLINK" />
			<VIEWLINK label="Liste des RSS" shortLabel="Liste RSS" view="PMSI000005.XML" componentName="RSS_BASE_VIEWLINK" />
		</VIEWLINKS>
		<ONGLET excelLabel="File active" label="File active" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<DATAGRID title="" total="true" showOthers="true" headerHeight="66" variableRowHeight="true" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'"
				sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_3 == '-1' || SELECT.GROUPBY_TAB == 'TAB'">
				<INSERT name="DATAGRID_MULTITAB_STYLES"/>
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid">
				</COLUMN>
				<COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="150" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" totalComplement="TOTAL" otherFunction="text" otherComplement="Autres">
				</COLUMN>
                <COLUMN dataField="NBP" width="60" type="Number" outputFormat="#" headerText="Patients" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBS" width="60" type="Number" outputFormat="#" headerText="Séjours" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBRT" width="60" type="Number" outputFormat="#" headerText="Ré-entrées total" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR1" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID1 != '-1'" headerText="'Vers\n' + VIEW.COLCOD1 + '\n' + VIEW.COLTXT1" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR2" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID2 != '-1'" headerText="'Vers\n' + VIEW.COLCOD2 + '\n' + VIEW.COLTXT2" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR3" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID3 != '-1'" headerText="'Vers\n' + VIEW.COLCOD3 + '\n' + VIEW.COLTXT3" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR4" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID4 != '-1'" headerText="'Vers\n' + VIEW.COLCOD4 + '\n' + VIEW.COLTXT4" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR5" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID5 != '-1'" headerText="'Vers\n' + VIEW.COLCOD5 + '\n' + VIEW.COLTXT5" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR6" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID6 != '-1'" headerText="'Vers\n' + VIEW.COLCOD6 + '\n' + VIEW.COLTXT6" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR7" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID7 != '-1'" headerText="'Vers\n' + VIEW.COLCOD7 + '\n' + VIEW.COLTXT7" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR8" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID8 != '-1'" headerText="'Vers\n' + VIEW.COLCOD8 + '\n' + VIEW.COLTXT8" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR9" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID9 != '-1'" headerText="'Vers\n' + VIEW.COLCOD9 + '\n' + VIEW.COLTXT9" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR10" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID10 != '-1'" headerText="'Vers\n' + VIEW.COLCOD10 + '\n' + VIEW.COLTXT10" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR11" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID11 != '-1'" headerText="'Vers\n' + VIEW.COLCOD11 + '\n' + VIEW.COLTXT11" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR12" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID12 != '-1'" headerText="'Vers\n' + VIEW.COLCOD12 + '\n' + VIEW.COLTXT12" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR13" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID13 != '-1'" headerText="'Vers\n' + VIEW.COLCOD13 + '\n' + VIEW.COLTXT13" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR14" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID14 != '-1'" headerText="'Vers\n' + VIEW.COLCOD14 + '\n' + VIEW.COLTXT14" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR15" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID15 != '-1'" headerText="'Vers\n' + VIEW.COLCOD15 + '\n' + VIEW.COLTXT15" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR16" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID16 != '-1'" headerText="'Vers\n' + VIEW.COLCOD16 + '\n' + VIEW.COLTXT16" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR17" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID17 != '-1'" headerText="'Vers\n' + VIEW.COLCOD17 + '\n' + VIEW.COLTXT17" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR18" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID18 != '-1'" headerText="'Vers\n' + VIEW.COLCOD18 + '\n' + VIEW.COLTXT18" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR19" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID19 != '-1'" headerText="'Vers\n' + VIEW.COLCOD19 + '\n' + VIEW.COLTXT19" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBR20" width="70" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID20 != '-1'" headerText="'Vers\n' + VIEW.COLCOD20 + '\n' + VIEW.COLTXT20" headerTextCalc="true" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="NBRA" width="60" type="Number" outputFormat="#" visibleCondition="VIEW.COLOID1 != '-1'" headerText="Vers Autres" textAlign="right" fixed="false" totalFunction="sum" otherFunction="sum" />
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
