<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="PMSI000223" label="PMSI. Analyse croisée C.A. ventilé par UM" 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:sejour_analyse_detaillee:rum:chiffre_daffaire_rum" helpDokuWIkiFile="pmsi000160"  helpFile="iCTI_PMSI_PMSI000223.HTML">
	<VIEWPROPERTIES componentName="PROPERTIES_PRESTATIONS_UM" />
	<VIEWPROPERTIES componentName="PROPERTIES_SELECT_TABTREE" />
	<VIEWPROPERTIES>
		<PROPERTY name="DATA">
			<value><![CDATA[[EVAL 
				return PMSI_PRESTATION_RUM_data("[DATA]");
			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="GROUPBY" width="220" label="Regroupement" UI="combo" default="RIPA" tree="true">
				<OPTION label="Options" data="" globalListProvider="PRESTATIONS_UM_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="PRESTATIONS_UM_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="PRESTATIONS_UM_GROUPBY_OPTIONS" />
			</FIELD>
		</GROUP>
		<GROUP label="Données">
			<FIELD name="DATA" label="" UI="combo" default="BR" default2="" tree="true">
				<OPTION label="Options" data="" globalListProvider="DATA_PRESTATIONS_RUM" />
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="COLUMNBY" label="Colonnes" UI="combo" width="220" default="CAS" tree="true">
				<OPTION label="Options" data="" globalListProvider="PRESTATIONS_UM_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>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_PRESTATION_RUM_SELECTIONS" />
	<SELECTIONS componentName="FILTRES_PRESTATION_RUM_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{
							[VIEW.DATA],
							*%TOTAL[1],
							}	
						INDICATORS_COLUMNS{[VIEW.DATA],}
						ORDERBY{indicateurs[1],, DESC}
					FROM #V_RSS_X#
						JOIN pmsi.v_rsf_detail_rum_1 v_rsf_detail_1 ON v_rss_1.rss_id = v_rsf_detail_1.rss_id 
					WHERE
						mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
						AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
						[VIEW.FILTRE_RSS_SELECT]
						[VIEW.PRESTATION_SELECT]

				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS" />
					<FIELD name="SORT" />
					<FIELD name="N" />
					<FIELD name="PT" />
					<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="Justificatif par RUM" shortLabel="Liste RUM" view="PMSI000175.XML" componentName="RSS_BASE_VIEWLINK" component2Name="PRESTATION_UM_VIEWLINK" component3Name="DATE_EVOL_2_VIEWLINK" />
			<VIEWLINK label="Liste des RSS" shortLabel="Liste RSS" view="PMSI000005.XML" componentName="RSS_BASE_VIEWLINK" component2Name="RSS_OTHERS_VIEWLINK" component3Name="DATE_EVOL_2_VIEWLINK" />
		</VIEWLINKS>
		<ONGLET excelLabel="Répartition" label="Répartition" multiTab="true">
			<CHART title="Répartition" type="lineChart" serieIsCategory="true" fromTotal="false" 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="N" maxItemsSortSeq="D" sortField="N" sortSeq="A" 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="N" width="90" type="Number" outputFormat="= SELECT.DATA2" headerText="SELECT.DATA3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum" />
				<COLUMN dataField="PT" type="Number" headerText="% / Total" width="40" outputFormat="0%" textAlign="right" visibleCondition="SELECT.DATA != 'DMS' " />
				<COLUMN dataField="N1"  width="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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="75" 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>
