<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="PMSI000232" label="PMSI. Analyse croisée DMS" title="= SELECT.DATA_LABEL + ' par ' + SELECT.GROUPBY_LABEL + ' (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'" database="iCTI" swf="*CTI_view1" softCode="iCTI_pmsi" globals="PMSI_globals.XML" componentsFile="PMSI_components.XML" helpDokuWIkiDir="pmsi:sejours_analyse_globale:dms" helpDokuWIkiFile="pmsi000013"  helpFile="iCTI_PMSI_PMSI000232.HTML">
	<VIEWPROPERTIES componentName="PROPERTIES_RSS" />
	<VIEWPROPERTIES componentName="PROPERTIES_SELECT_TABTREE" />
	<VIEWPROPERTIES>
		<PROPERTY name="DATA">
			<value><![CDATA[[EVAL 
				switch ('[DATA]') {
					case 'DMSETS':
						return "base.cti_division(CASE WHEN cmd_code <> '28' THEN duree_sejour ELSE 0 END, CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END)";
						break;
					case 'ECARTDMS':
						return "base.cti_division(CASE WHEN cmd_code <> '28' THEN duree_sejour ELSE 0 END, CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END) - base.cti_division(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END, CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END)";
						break;
					case 'NBJTHEO':
						return "nb_rsa * base.cti_division(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END, CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END)";
						break;
					case 'NBJOUR' : 
						return "CASE WHEN cmd_code <> '28' THEN duree_sejour ELSE 0 END";
						break;
					case 'NBSEJ' : 
						return "nb_rsa";
						break;
					case 'PERF':
						return "base.cti_division(nb_rsa * base.cti_division(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END, CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END), CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END)";
						break;
					case 'PERFB':
						return "base.cti_division(CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END, nb_rsa * base.cti_division(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END, CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END))";
						break;
					case 'BENEF':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN 0 - ecart_[VIEW.DMS_FIELD] ELSE 0 END";
						break;
					case 'INDUS':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] > 0 THEN ecart_[VIEW.DMS_FIELD] ELSE 0 END";
						break;
					case 'RATIOBENEFINDUS':
						return "base.cti_division(CASE WHEN ecart_[VIEW.DMS_FIELD] > 0 THEN ecart_[VIEW.DMS_FIELD] ELSE 0 END, CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN 0 - ecart_[VIEW.DMS_FIELD] ELSE 0 END)";
						break;
					case 'SEJDMSINF':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN nb_rsa ELSE 0 END";
						break;
					case 'SEJDMS':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] = 0 THEN nb_rsa ELSE 0 END";
						break;
					case 'SEJDMS1':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] = 1 THEN nb_rsa ELSE 0 END";
						break;
					case 'SEJDMS2':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] = 2 THEN nb_rsa ELSE 0 END";
						break;
					case 'SEJDMS3':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] = 3 THEN nb_rsa ELSE 0 END";
						break;
					case 'SEJDMS3X':
						return "CASE WHEN ecart_[VIEW.DMS_FIELD] > 3 THEN nb_rsa ELSE 0 END";
						break;
					default:
						return "base.cti_division(CASE WHEN cmd_code <> '28' THEN duree_sejour ELSE 0 END, CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END)";
				}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATAM">
			<value><![CDATA[[EVAL 
			
				switch ('[DATA]') {
					case 'DMSETS' : 
						return "base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END), SUM(CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END))";
						break;
					case 'ECARTDMS' : 
						return "base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END), SUM(CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END)) - base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END), SUM(CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END))";
						break;
					case 'NBJTHEO' : 
						return "SUM(nb_rsa) * base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END), SUM(CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END))";
						break;
					case 'NBJOUR' : 
						return "SUM(CASE WHEN cmd_code <> '28' THEN duree_sejour ELSE 0 END)";
						break;
					case 'NBSEJ' : 
						return "SUM(nb_rsa)";
						break;
					case 'PERF' : 
						return "base.cti_division(SUM(nb_rsa) * base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END), SUM(CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END)), SUM(CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END))";
						break;
					case 'PERFB' : 
						return "base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END), SUM(nb_rsa) * base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END), SUM(CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END)))";
						break;
					case 'BENEF' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN 0 - ecart_[VIEW.DMS_FIELD] ELSE 0 END)";
						break;
					case 'INDUS' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] > 0 THEN ecart_[VIEW.DMS_FIELD] ELSE 0 END)";
						break;
					case 'RATIOBENEFINDUS' : 
						return "base.cti_division(SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] > 0 THEN ecart_[VIEW.DMS_FIELD] ELSE 0 END), SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN 0 - ecart_[VIEW.DMS_FIELD] ELSE 0 END))";
						break;
					case 'SEJDMSINF' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN nb_rsa ELSE 0 END)";
						break;
					case 'SEJDMS' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] = 0 THEN nb_rsa ELSE 0 END)";
						break;
					case 'SEJDMS1' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] = 1 THEN nb_rsa ELSE 0 END)";
						break;
					case 'SEJDMS2' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] = 2 THEN nb_rsa ELSE 0 END)";
						break;
					case 'SEJDMS3' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] = 3 THEN nb_rsa ELSE 0 END)";
						break;
					case 'SEJDMS3X' : 
						return "SUM(CASE WHEN ecart_[VIEW.DMS_FIELD] > 3 THEN nb_rsa ELSE 0 END)";
						break;
					default :
						return "base.cti_division(SUM(CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END), SUM(CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END))";
				}
				
			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATAI">
			<value><![CDATA[[EVAL 
			
				switch ('[DATA]') {
					case 'DMSETS' : 
						return "base.cti_division(	
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END ELSE NULL END),
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END ELSE NULL END))";
						break;
					case 'ECARTDMS' : 
						return "base.cti_division(	
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END ELSE NULL END),
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END ELSE NULL END)) -
								base.cti_division(	
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END ELSE NULL END),
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END ELSE NULL END))";
						break;
					case 'NBJTHEO' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_rsa ELSE NULL END) * base.cti_division(	SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END ELSE NULL END),
																													SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END ELSE NULL END))";
						break;
					case 'NBJOUR' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN duree_sejour ELSE 0 END ELSE NULL END)";
						break;
					case 'NBSEJ' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_rsa ELSE NULL END)";
						break;
					case 'PERF' : 
						return "base.cti_division(	
									SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_rsa ELSE NULL END) * base.cti_division(	SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END ELSE NULL END),
																														SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END ELSE NULL END)),
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END ELSE NULL END))";
						break;
					case 'PERFB' : 
						return "base.cti_division(	
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END ELSE NULL END),
									SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_rsa ELSE NULL END) * base.cti_division(	SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN [VIEW.DMS_FIELD] else 0 END ELSE NULL END),
																														SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END ELSE NULL END)))";
						break;
					case 'BENEF' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN 0 - ecart_[VIEW.DMS_FIELD] ELSE 0 END ELSE NULL END)";
						break;
					case 'INDUS' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] > 0 THEN ecart_[VIEW.DMS_FIELD] ELSE 0 END ELSE NULL END)";
						break;
					case 'RATIOBENEFINDUS' : 
						return "base.cti_division(	
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] > 0 THEN ecart_[VIEW.DMS_FIELD] ELSE 0 END ELSE NULL END),
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN 0 - ecart_[VIEW.DMS_FIELD] ELSE 0 END ELSE NULL END))";
						break;
					case 'SEJDMSINF' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] < 0 THEN nb_rsa ELSE 0 END ELSE NULL END)";
						break;
					case 'SEJDMS' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] = 0 THEN nb_rsa ELSE 0 END ELSE NULL END)";
						break;
					case 'SEJDMS1' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] = 1 THEN nb_rsa ELSE 0 END ELSE NULL END)";
						break;
					case 'SEJDMS2' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] = 2 THEN nb_rsa ELSE 0 END ELSE NULL END)";
						break;
					case 'SEJDMS3' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] = 3 THEN nb_rsa ELSE 0 END ELSE NULL END)";
						break;
					case 'SEJDMS3X' : 
						return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN ecart_[VIEW.DMS_FIELD] > 3 THEN nb_rsa ELSE 0 END ELSE NULL END)";
						break;
					default :
						return "base.cti_division(	
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN duree_sejour else 0 END ELSE NULL END),
									sum(CASE WHEN COLUMNCHECKSEQUENCE THEN CASE WHEN cmd_code <> '28' THEN nb_rsa ELSE 0 END ELSE NULL END))";
				}

			EVAL]]]></value>
		</PROPERTY>
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse">
		<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" globalListProvider="DATE_DEBUT" />
			<FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2014-12-31" globalListProvider="DATE_FIN" />
		</GROUP>
		<GROUP>
			<FIELD name="DATA" label="Données" UI="combo" tree="true" default="DMSETS" default2="DMS Ets" default3="DMS établissement" default4="#,0" printable="false">
				<OPTION label="Options" data="" globalListProvider="DATA_DMS" />
			</FIELD>
		</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>
			<FIELD name="GROUPBY" width="220" label="Regroupement" UI="combo" default="RIPA" tree="true">
				<OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS" />
			</FIELD>
			<FIELD name="GROUPBY_TAB" 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>
			<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>
			<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>
		<GROUP label="">
			<FIELD name="SHOWDMSREF" label="" width="1" UI="text" default="1" printable="false" visible="false" />
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_RSS_SOUSSELECTIONS" />
	<SELECTIONS componentName="FILTRES_RSS_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
			<SQL optimizer="V_RSS_X">
				<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]}
						COLUMNBYOID{[VIEW.SELECT_COLUMNBY_OID_FIELD],, [VIEW.SELECT_COLUMNBY_COD_FIELD] ,, [VIEW.SELECT_COLUMNBY_TXT_FIELD],, [VIEW.DATA] ,, [COLUMNBYCOUNT]}
						INDICATORS{sum(nb_rsa), [VIEW.DATAM], }	
						INDICATORS_COLUMNS{ [VIEW.DATAI] , }
						ORDERBY{nb_rsa,, DESC}
					FROM 
						#V_RSS_X#
					WHERE
						mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
						[VIEW.FILTRE_RSS_SELECT]

				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS" />
					<FIELD name="SORT" />
					<FIELD name="NRSA" />
					<FIELD name="N" />
					<FIELD name="N1" />
					<FIELD name="N2" />
					<FIELD name="N3" />
					<FIELD name="N4" />
					<FIELD name="N5" />
					<FIELD name="N6" />
					<FIELD name="N7" />
					<FIELD name="N8" />
					<FIELD name="N9" />
					<FIELD name="N10" />
					<FIELD name="N11" />
					<FIELD name="N12" />
					<FIELD name="N13" />
					<FIELD name="N14" />
					<FIELD name="N15" />
					<FIELD name="N16" />
					<FIELD name="N17" />
					<FIELD name="N18" />
					<FIELD name="N19" />
					<FIELD name="N20" />
				</FIELDS>
			</SQL>
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Liste des RSS" shortLabel="Liste RSS" view="PMSI000005.XML" componentName="RSS_BASE_VIEWLINK">
				<ARG name="T_DUREE_SEJOUR" value="if (SELECT.DATA == '2') {return 'DU0'}
													if (SELECT.DATA == '3') {return 'DU1'}
													if (SELECT.DATA == '1X') {return '1X'}
													if (SELECT.DATA == '4') {return 'DU2'}
													if (SELECT.DATA == '5') {return 'X'}
													if (SELECT.DATA == '6') {return 'S'}"/>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Analyse croisée" label="Analyse croisée" multiTab="true">
		
			<CHART title="Evolution" type="lineChart" serieIsCategory="true" fromTotal="false" maxItems="5" maxItemsSortOn="NRSA" sortField="NRSA" sortSeq="D" 
					visibleCondition="SELECT.GROUPBY == 'ASOR' &amp;&amp; (SELECT.COLUMNBY == 'MSOR' || SELECT.COLUMNBY == 'TRIMSOR')"
					condition="Number(ROW.LVL) == 1">
				<CATEGORY field="TXT" type="Char"/>
				<SERIE field="N1" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null"/>
				<SERIE field="N2" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null"/>
				<SERIE field="N3" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null"/>
				<SERIE field="N4" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null"/>
				<SERIE field="N5" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null"/>
				<SERIE field="N6" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null"/>
				<SERIE field="N7" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null"/>
				<SERIE field="N8" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null"/>
				<SERIE field="N9" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null"/>
				<SERIE field="N10" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null"/>
				<SERIE field="N11" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null"/>
				<SERIE field="N12" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null"/>
				<SERIE field="N13" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null"/>
				<SERIE field="N14" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null"/>
				<SERIE field="N15" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null"/>
				<SERIE field="N16" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null"/>
				<SERIE field="N17" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null"/>
				<SERIE field="N18" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null"/>
				<SERIE field="N19" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null"/>
				<SERIE field="N20" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null"/>
			</CHART>
			
			<CHART title="Comparatif (10 premiers)" type="pieChart" maxItems="10" maxItemsSortOn="NRSA" maxItemsSortSeq="D" sortField="NRSA" sortSeq="D" 
					visibleCondition="(SELECT.GROUPBY != 'ASOR') || (SELECT.GROUPBY == 'ASOR' &amp;&amp; SELECT.COLUMNBY != 'MSOR' &amp;&amp; SELECT.COLUMNBY != 'TRIMSOR')" condition="ROW.LVL == '1'">
				<CATEGORY field="CODTXT" type="Char" />
				<SERIE field="N" displayName="SELECT.DATA_LABEL" displayNameCalc="true" />
			</CHART>
			<CHART title="Répartition (Total)" type="columnChart" serieIsCategory="true" fromTotal="true"
					visibleCondition="(SELECT.GROUPBY != 'ASOR') || (SELECT.GROUPBY == 'ASOR' &amp;&amp; SELECT.COLUMNBY != 'MSOR' &amp;&amp; SELECT.COLUMNBY != 'TRIMSOR')">
				<CATEGORY field="TXT" type="Char" />
				<SERIE field="N1" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null" />
				<SERIE field="N2" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null" />
				<SERIE field="N3" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null" />
				<SERIE field="N4" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null" />
				<SERIE field="N5" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null" />
				<SERIE field="N6" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null" />
				<SERIE field="N7" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null" />
				<SERIE field="N8" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null" />
				<SERIE field="N9" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null" />
				<SERIE field="N10" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null" />
				<SERIE field="N11" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null" />
				<SERIE field="N12" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null" />
				<SERIE field="N13" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null" />
				<SERIE field="N14" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null" />
				<SERIE field="N15" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null" />
				<SERIE field="N16" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null" />
				<SERIE field="N17" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null" />
				<SERIE field="N18" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null" />
				<SERIE field="N19" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null" />
				<SERIE field="N20" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null" />
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="72" variableRowHeight="true" sortable="= SELECT.GROUPBY_3 == '-1' || SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
				<INSERT name="DATAGRID_MULTITAB_STYLES" />
				<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
				<COLUMN dataField="COD" width="70" type="Char" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
					<INSERT name="COLUMN_COD_MULTITAB_STYLES" />
				</COLUMN>
				<COLUMN dataField="CODTXT" type="Char" visible="false" totalFunction="text" otherFunction="text" calc="true">
					<CALC formula="ROW.COD + ' - ' + ROW.TXT" />
				</COLUMN>
				<COLUMN dataField="TXT" type="Char" minWidth="200" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW" />
				<COLUMN dataField="NRSA" width="80" type="Number" outputFormat="#" headerText="Séjours" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="N" width="80" type="Number" outputFormat="= SELECT.DATA2" headerText="SELECT.DATA3" headerTextCalc="true" description="=SELECT.DATA5" textAlign="right" totalFunction="sum" otherFunction="sum" />
				<COLUMN dataField="N_P" type="Number" headerText="% / Total" width="40" outputFormat="0%" textAlign="right" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
					<CALC formula="ROW.N / TOTALROW.N * 100" />
				</COLUMN>
				<COLUMN dataField="N1" width="70" visibleCondition="VIEW.COLH1 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH1" columnData="= VIEW.COLI1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N2" width="70" visibleCondition="VIEW.COLH2 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH2" columnData="= VIEW.COLI2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N3" width="70" visibleCondition="VIEW.COLH3 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH3" columnData="= VIEW.COLI3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N4" width="70" visibleCondition="VIEW.COLH4 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH4" columnData="= VIEW.COLI4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N5" width="70" visibleCondition="VIEW.COLH5 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH5" columnData="= VIEW.COLI5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N6" width="70" visibleCondition="VIEW.COLH6 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH6" columnData="= VIEW.COLI6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N7" width="70" visibleCondition="VIEW.COLH7 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH7" columnData="= VIEW.COLI7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N8" width="70" visibleCondition="VIEW.COLH8 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH8" columnData="= VIEW.COLI8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N9" width="70" visibleCondition="VIEW.COLH9 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH9" columnData="= VIEW.COLI9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N10" width="70" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH10" columnData="= VIEW.COLI10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N11" width="70" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH11" columnData="= VIEW.COLI11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N12" width="70" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH12" columnData="= VIEW.COLI12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N13" width="70" visibleCondition="VIEW.COLH13 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH13" columnData="= VIEW.COLI13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N14" width="70" visibleCondition="VIEW.COLH14 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH14" columnData="= VIEW.COLI14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N15" width="70" visibleCondition="VIEW.COLH15 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH15" columnData="= VIEW.COLI15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N16" width="70" visibleCondition="VIEW.COLH16 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH16" columnData="= VIEW.COLI16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N17" width="70" visibleCondition="VIEW.COLH17 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH17" columnData="= VIEW.COLI17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N18" width="70" visibleCondition="VIEW.COLH18 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH18" columnData="= VIEW.COLI18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N19" width="70" visibleCondition="VIEW.COLH19 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH19" columnData="= VIEW.COLI19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
				<COLUMN dataField="N20" width="70" visibleCondition="VIEW.COLH20 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="false" headerText="VIEW.COLH20" columnData="= VIEW.COLI20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" description="  " />
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
