<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="ACTI000053" label="Activité. Occupation quotidienne" title="= SELECT.DATA_LABEL + ' ' + SELECT.REAPRE2 + ' par ' +  SELECT.GROUPBY_LABEL + ' (' + SELECT.TOPERIODE_LABEL + ')'" database="iCTI" swf="*CTI_view1" softCode="iCTI_activite" globals="ACTI_globals.XML" componentsFile="ACTI_components.XML" helpFile="iCTI_ACTI_ACTI000053.HTML">
	<VIEWPROPERTIES componentName="PROPERTIES_OCCUPATION"/>
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value"/>
		<PROPERTY name="REAPRE_SELECT">
			<value><![CDATA[
						[EVAL 
							if ('[REAPRE]' == '1' && '[ENV.OPTADM_PREVUS]' == '1') {return "";}
							if ('[REAPRE]' == '2' && '[ENV.OPTADM_PREVUS]' == '1') {return " AND est_mouvement_previsionnel = '1'";}
							return " AND est_mouvement_previsionnel <> '1'";
						EVAL]
					]]></value>
		</PROPERTY>
		
		<PROPERTY name="PLACES_DATASELECT">
			<value><![CDATA[
						[EVAL 
							if ('[DATA]' == 'NJN') {return " AND type_sejour_code = '1'";}
							if ('[DATA]' == 'NAM') {return " AND type_sejour_code = '2'";}
							return "";
						EVAL]
					]]></value>
		</PROPERTY>
		
		<PROPERTY name="C_FACTEUR_MOYENNE">
			<value><![CDATA[[EVAL 
								switch ('[DATA]') {
								case 'NJNM':
									return "COUNT(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE AND v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN date ELSE NULL END)";
									break;
								case 'NEXM':
									return "COUNT(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE AND v_places_1.est_ouvert = '1' AND heberge_externes = '1' THEN date ELSE NULL END)";
									break;
								case 'NAMM':
									return "COUNT(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE AND v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN date ELSE NULL END)";
									break;
								case 'NSEM':
									return "COUNT(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE AND v_places_1.est_ouvert = '1' AND heberge_seances = '1' THEN date ELSE NULL END)";
									break;
								case 'TAU':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE AND v_places_1.est_ouvert = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE 0 END) / 100";
									break;
								default:
									return "COUNT(DISTINCT CASE WHEN COLUMNCHECKSEQUENCE AND v_places_1.est_ouvert = '1' THEN date ELSE NULL END)";
								}

			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="T_FACTEUR_MOYENNE">
			<value><![CDATA[[EVAL 
								switch ('[DATA]') {
								case 'NJNM':
									return "COUNT(DISTINCT CASE WHEN v_places_1.est_ouvert = '1' AND heberge_hospitalises = '1' THEN date ELSE NULL END)";
									break;
								case 'NEXM':
									return "COUNT(DISTINCT CASE WHEN v_places_1.est_ouvert = '1' AND heberge_externes = '1' THEN date ELSE NULL END)";
									break;
								case 'NAMM':
									return "COUNT(DISTINCT CASE WHEN v_places_1.est_ouvert = '1' AND heberge_ambulatoires = '1' THEN date ELSE NULL END)";
									break;
								case 'NSEM':
									return "COUNT(DISTINCT CASE WHEN v_places_1.est_ouvert = '1' AND heberge_seances = '1' THEN date ELSE NULL END)";
									break;
								case 'TAU':
									return "SUM(CASE WHEN v_places_1.est_ouvert = '1' THEN v_places_1.[VIEW.PLACES_FIELD] ELSE 0 END) / 100";
									break;
								default:
									return "COUNT(DISTINCT CASE WHEN v_places_1.est_ouvert = '1' THEN date ELSE NULL END)";
								}

			EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="DATA_SELECT">
			<value><![CDATA[[EVAL 
								switch ('[DATA]') {
								case 'NED':
									return 'AND nb_entrees_directes > 0';
									break;
								case 'NEM':
									return 'AND (nb_entrees_directes > 0 OR nb_entrees_mutation_[VIEW.MUTATION_FIELD] > 0)';
									break;
								case 'NSD':
									return 'AND nb_sorties_directes > 0';
									break;
								case 'NSM':
									return 'AND (nb_sorties_directes > 0 OR nb_sorties_mutation_[VIEW.MUTATION_FIELD] > 0)';
									break;
								case 'NJN':
									return 'AND [VIEW.JOURNEES_FIELD] > 0';
									break;
								case 'NJNA':
									return 'AND ([VIEW.JOURNEES_FIELD] > 0 OR nb_ambulatoires > 0)';
									break;
								case 'NEX':
									return 'AND nb_externes > 0';
									break;
								case 'NAM':
									return 'AND nb_ambulatoires > 0';
									break;
								case 'NEDA':
									return 'AND (nb_entrees_directes > 0 OR nb_ambulatoires > 0)';
									break;
								case 'NSDA':
									return 'AND (nb_sorties_directes > 0 OR nb_ambulatoires > 0)';
									break;
								case 'NEDXA':
									return 'AND (nb_entrees_directes > 0 OR nb_externes > 0 OR nb_ambulatoires > 0)';
									break;
								case 'NSDXA':
									return 'AND (nb_sorties_directes > 0 OR nb_externes > 0 OR nb_ambulatoires > 0)';
									break;
								case 'NJNXA':
									return 'AND ([VIEW.JOURNEES_FIELD] > 0 OR nb_externes > 0 OR nb_ambulatoires > 0)';
									break;
								case 'NSDXBB':
									return 'AND (nb_sorties_directes > 0 OR nb_ambulatoires > 0 OR nb_bebes > 0)';
									break;
								case 'NEDXAS':
									return 'AND (nb_entrees_directes > 0 OR nb_externes > 0 OR nb_ambulatoires > 0 OR nb_seances > 0)';
									break;
								case 'NSDXAS':
									return 'AND (nb_sorties_directes > 0 OR nb_externes > 0 OR nb_ambulatoires > 0 OR nb_seances > 0)';
									break;
								case 'NSDXASSH':
									return "AND (nb_sorties_directes > 0 OR nb_externes > 0 OR nb_ambulatoires > 0 OR CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END > 0)";
									break;
								case 'NJNXAS':
									return 'AND ([VIEW.JOURNEES_FIELD] > 0 OR nb_externes > 0 OR nb_ambulatoires > 0 OR nb_seances > 0)';
									break;
								case 'NSE':
									return "AND nb_seances > 0";
									break;
								case 'NBB':
									return "AND nb_bebes > 0";
									break;
								case 'NCP':
									return "AND [VIEW.CP_FIELD] > 0";
									break;
								case 'NJO':
									return "";
									break;
								case 'NJNM':
									return 'AND [VIEW.JOURNEES_FIELD] > 0';
									break;
								case 'NEXM':
									return 'AND nb_externes > 0';
									break;
								case 'NAMM':
									return 'AND nb_ambulatoires > 0';
									break;
								case 'NJNXAM':
									return 'AND ([VIEW.JOURNEES_FIELD] > 0 OR nb_externes > 0 OR nb_ambulatoires > 0)';
									break;
								case 'NSEM':
									return "AND nb_seances > 0";
									break;
								case 'TAU':
									return 'AND ([VIEW.JOURNEES_FIELD] > 0 OR nb_ambulatoires > 0 OR nb_seances_dans_taux > 0)';
									break;
								default:
									return '';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="CDATA">
			<value><![CDATA[[EVAL 
								switch ('[DATA]') {
								case 'NED':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_entrees_directes ELSE null END)';
									break;
								case 'NEM':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_entrees_directes + nb_entrees_mutation_[VIEW.MUTATION_FIELD] ELSE null END)';
									break;
								case 'NSD':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_sorties_directes ELSE null END)';
									break;
								case 'NSM':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_sorties_directes + nb_sorties_mutation_[VIEW.MUTATION_FIELD] ELSE null END)';
									break;
								case 'NJN':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.JOURNEES_FIELD] ELSE null END)';
									break;
								case 'NJNA':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.JOURNEES_FIELD] + nb_ambulatoires ELSE null END)';
									break;
								case 'NEX':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_externes ELSE null END)';
									break;
								case 'NAM':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_ambulatoires ELSE null END)';
									break;
								case 'NEDA':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_entrees_directes + nb_ambulatoires ELSE null END)';
									break;
								case 'NSDA':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_sorties_directes + nb_ambulatoires ELSE null END)';
									break;
								case 'NEDXA':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_entrees_directes + nb_externes + nb_ambulatoires ELSE null END)';
									break;
								case 'NSDXA':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_sorties_directes + nb_externes + nb_ambulatoires ELSE null END)';
									break;
								case 'NSDXBB':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_sorties_directes + nb_bebes + nb_ambulatoires ELSE null END)';
									break;
								case 'NJNXA':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.JOURNEES_FIELD] + nb_externes + nb_ambulatoires ELSE null END)';
									break;
								case 'NEDXAS':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_entrees_directes + nb_externes + nb_ambulatoires + nb_seances_dans_taux ELSE null END)';
									break;
								case 'NSDXAS':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_sorties_directes + nb_externes + nb_ambulatoires + nb_seances_dans_taux ELSE null END)';
									break;
								case 'NSDXASSH':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_sorties_directes + nb_externes + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END ELSE null END)";
									break;	
								case 'NJNXAS':
									return 'SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.JOURNEES_FIELD] + nb_externes + nb_ambulatoires + nb_seances_dans_taux ELSE null END)';
									break;
								case 'NSE':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_seances ELSE null END)";
									break;
								case 'NBB':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_bebes ELSE null END)";
									break;
								case 'NCP':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.CP_FIELD] ELSE null END)";
									break;
								case 'NJO':
									return "COUNT(*)";
									break;
								case 'NJNM':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.JOURNEES_FIELD] ELSE null END)";
									break;
								case 'NEXM':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_externes ELSE null END)";
									break;
								case 'NAMM':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_ambulatoires ELSE null END)";
									break;
								case 'NSEM':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN nb_seances ELSE null END)";
									break;
								case 'NJNXAM':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.JOURNEES_FIELD] + nb_externes + nb_ambulatoires ELSE null END)";
									break;
								case 'TAU':
									return "SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN [VIEW.JOURNEES_FIELD] + nb_ambulatoires + nb_seances_dans_taux ELSE null END)";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="TDATA">
			<value><![CDATA[[EVAL 
								switch ('[DATA]') {
								case 'NED':
									return 'SUM(nb_entrees_directes)';
									break;
								case 'NEM':
									return 'SUM(nb_entrees_directes + nb_entrees_mutation_[VIEW.MUTATION_FIELD])';
									break;
								case 'NSD':
									return 'SUM(nb_sorties_directes)';
									break;
								case 'NSM':
									return 'SUM(nb_sorties_directes + nb_sorties_mutation_[VIEW.MUTATION_FIELD])';
									break;
								case 'NJN':
									return 'SUM([VIEW.JOURNEES_FIELD])';
									break;
								case 'NJNA':
									return 'SUM([VIEW.JOURNEES_FIELD] + nb_ambulatoires)';
									break;
								case 'NEX':
									return 'SUM(nb_externes)';
									break;
								case 'NAM':
									return 'SUM(nb_ambulatoires)';
									break;
								case 'NEDA':
									return 'SUM(nb_entrees_directes + nb_ambulatoires)';
									break;
								case 'NSDA':
									return 'SUM(nb_sorties_directes + nb_ambulatoires)';
									break;
								case 'NEDXA':
									return 'SUM(nb_entrees_directes + nb_externes + nb_ambulatoires)';
									break;
								case 'NSDXA':
									return 'SUM(nb_sorties_directes + nb_externes + nb_ambulatoires)';
									break;
								case 'NJNXA':
									return 'SUM([VIEW.JOURNEES_FIELD] + nb_externes + nb_ambulatoires)';
									break;
								case 'NSDXBB':
									return 'SUM(nb_sorties_directes + nb_bebes + nb_ambulatoires)';
									break;
								case 'NEDXAS':
									return 'SUM(nb_entrees_directes + nb_externes + nb_ambulatoires + nb_seances_dans_taux)';
									break;
								case 'NSDXAS':
									return 'SUM(nb_sorties_directes + nb_externes + nb_ambulatoires + nb_seances_dans_taux)';
									break;
								case 'NSDXASSH':
									return "SUM(nb_sorties_directes + nb_externes + nb_ambulatoires + CASE WHEN type_sejour = '5' THEN nb_seances ELSE 0 END)";
									break;	
								case 'NJNXAS':
									return 'SUM([VIEW.JOURNEES_FIELD] + nb_externes + nb_ambulatoires + nb_seances_dans_taux)';
									break;
								case 'NSE':
									return "SUM(nb_seances)";
									break;
								case 'NBB':
									return "SUM(nb_bebes)";
									break;
								case 'NCP':
									return "SUM([VIEW.CP_FIELD])";
									break;
								case 'NJO':
									return "COUNT(*)";
									break;
								case 'NJNM':
									return "SUM([VIEW.JOURNEES_FIELD])";
									break;
								case 'NEXM':
									return "SUM(nb_externes)";
									break;
								case 'NAMM':
									return "SUM(nb_ambulatoires)";
									break;
								case 'NSEM':
									return "SUM(nb_ambulatoires)";
									break;
								case 'NJNXAM':
									return "SUM([VIEW.JOURNEES_FIELD] + nb_externes + nb_ambulatoires)";
									break;
								case 'TAU':
									return "SUM([VIEW.JOURNEES_FIELD] + nb_ambulatoires + nb_seances_dans_taux)";
									break;
								default:
									return '0';
								}
					EVAL]]]></value>
		</PROPERTY>
		<PROPERTY name="PERIODE">
			<value><![CDATA[[EVAL 
					
					if ("[NBJOURS]" + 0 > 0) {
						return "'[VIEW.TOPERIODE]'::date - [NBJOURS] + 1";
					}
					else {
						return "'[VIEW.TOPERIODE]'::date - date_part('day', '[VIEW.TOPERIODE]'::date)::int + 1";
					}
		EVAL]]]></value>
		</PROPERTY>
	</VIEWPROPERTIES>
	<SELECTIONS label="Paramètres de l'analyse">
		<GROUP>
			<FIELD name="TOPERIODE" label="Jusqu'au" UI="combo" tree="true" width="150" default="2009-01-31" globalListProvider="DATE_FIN">
			</FIELD>
			<FIELD name="NBJOURS" label="Durée" UI="combo" width="200" default="14">
				<OPTION data="-1" label="A partir du début du mois"/>
				<OPTION data="1" label="Un jour"/>
				<OPTION data="2" label="2 derniers jours"/>
				<OPTION data="3" label="3 derniers jours"/>
				<OPTION data="4" label="4 derniers jours"/>
				<OPTION data="5" label="5 derniers jours"/>
				<OPTION data="6" label="6 derniers jours"/>
				<OPTION data="7" label="7 derniers jours"/>
				<OPTION data="8" label="8 derniers jours"/>
				<OPTION data="9" label="9 derniers jours"/>
				<OPTION data="10" label="10 derniers jours"/>
				<OPTION data="11" label="11 derniers jours"/>
				<OPTION data="12" label="12 derniers jours"/>
				<OPTION data="13" label="13 derniers jours"/>
				<OPTION data="14" label="14 derniers jours"/>
				<OPTION data="15" label="15 derniers jours"/>
				<OPTION data="16" label="16 derniers jours"/>
				<OPTION data="17" label="17 derniers jours"/>
				<OPTION data="18" label="18 derniers jours"/>
				<OPTION data="19" label="19 derniers jours"/>
				<OPTION data="20" label="20 derniers jours"/>
				<OPTION data="21" label="21 derniers jours"/>
				<OPTION data="22" label="22 derniers jours"/>
				<OPTION data="23" label="23 derniers jours"/>
				<OPTION data="24" label="24 derniers jours"/>
				<OPTION data="25" label="25 derniers jours"/>
				<OPTION data="26" label="26 derniers jours"/>
				<OPTION data="27" label="27 derniers jours"/>
				<OPTION data="28" label="28 derniers jours"/>
				<OPTION data="29" label="29 derniers jours"/>
				<OPTION data="30" label="30 derniers jours"/>
				<OPTION data="31" label="31 derniers jours"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="GROUPBY" label="Regroupement" UI="combo" width="200" default="SER" tree="true">
				<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
			</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" label="" UI="combo" width="200" default="-1" tree="true">
				<OPTION label="Pas de second niveau" data="-1" treeLevel="1"/>
				<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
			</FIELD>
			<FIELD name="GROUPBY_3" label="" UI="combo" width="200" default="-1" tree="true">
				<OPTION label="Pas de troisième niveau" data="-1" treeLevel="1"/>
				<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="DATA" label="Données" UI="combo" width="400" default="NED" default2="0">
				<OPTION label="Nombre entrées directes" data="NED" data2="#"/>
				<OPTION label="Nombre entrées et mutations" data="NEM" data2="#"/>
				<OPTION label="Nombre sorties directes" data="NSD" data2="#"/>
				<OPTION label="Nombre sorties et mutations" data="NSM" data2="#"/>
				<OPTIONx label="Durée ouverture" data="NJO" data2="#"/>
				<OPTION label="Nombre journées" data="NJN" data2="#"/>
				<OPTION label="Nombre journées + Ambulatoires" data="NJNA" data2="#"/>
				<OPTION label="Chambres particulières" data="NCP" data2="#"/>
				<OPTION label="Nombre externes" data="NEX" data2="#"/>
				<OPTION label="Nombre ambulatoires" data="NAM" data3="NB"/>
				<OPTION label="Nombre Entrées + Ambulatoires" data="NEDA" data2="#"/>
				<OPTION label="Nombre Sorties + Ambulatoires" data="NSDA" data2="#"/>
				<OPTION label="Nombre Entrées + Externes + Ambulatoires" data="NEDXA" data2="#"/>
				<OPTION label="Nombre Sorties + Externes + Ambulatoires" data="NSDXA" data2="#"/>
				<OPTION label="Nombre Journées + Externes + Ambulatoires" data="NJNXA" data2="#"/>
				<OPTION label="Nombre Sorties + Ambulatoires + Bébés" data="NSDXBB" data2="#"/>
				<OPTION label="Nombre Entrées + Externes + Ambulatoires + Séances" data="NEDXAS" data2="#"/>
				<OPTION label="Nombre Sorties + Externes + Ambulatoires + Séances" data="NSDXAS" data2="#"/>
				<OPTION label="Nombre Sorties + Externes + Ambulatoires + Séances (hors hospit)" data="NSDXASSH" data2="#"/>
				<OPTION label="Nombre Journées + Externes + Ambulatoires + Séances" data="NJNXAS" data2="#"/>
				<OPTION label="Nombre séances" data="NSE" data2="#"/>
				<OPTION label="Nombre bébés" data="NBB" data2="#"/>
				<OPTIONx label="Nombre moyen journées" data="NJNM" data2="#,0"/>
				<OPTIONx label="Nombre moyen externes" data="NEXM" data2="#,0"/>
				<OPTIONx label="Nombre moyen ambulatoires" data="NAMM" data2="#,0"/>
				<OPTIONx label="Nombre moyen Journées + Externes + Ambulatoires" data="NJNXAM" data2="#,0"/>
				<OPTION label="Taux occupation" data="TAU" data2="#,0%"/>
			</FIELD>
			<FIELD name="REAPRE" label="" UI="combo" default="0" visible="= [ENV.OPTADM_PREVUS] == '1'" showIfNotDefault="true">
				<OPTION data="0" label="Prévus exclus" data2=""/>
				<OPTION data="1" label="Prévus inclus" data2="(Réalisation et Prévisions)"/>
				<OPTION data="2" label="Uniquement prévus" data2="(Prévisions)"/>
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS label="Modes de calcul" displayText="= var display:String = '';
						display = display + 'Modes de calcul : #B#' + SELECT.QPLACES_LABEL + '. ' + VIEW.OPTADM_DAYOUT + '. ' + SELECT.QJMUT_LABEL  + '#/B#';
						return display;
						">
		<GROUP label="Modes">
			<FIELD name="QPLACES" label="" width="200" UI="combo" default="OUV">
				<OPTION data="OUV" label="Lits et box ouverts"/>
				<OPTION data="THEO" label="Lits et box théoriques"/>
			</FIELD>
			<FIELD name="QJMUT" label="" UI="combo" default="f">
				<OPTION data="d" label="Si mutation, journée affectée à la premiere localisation"/>
				<OPTION data="f" label="Si mutation, journée affectée à la dernière localisation"/>
				<OPTION data="12" label="Si mutation, journée affectée à la localisation occupée à 12h"/>
				<OPTION data="prorata" label="Si mutation, journée affectée au prorata du temps passé"/>
			</FIELD>
		</GROUP>
	</SELECTIONS>
	<SELECTIONS componentName="FILTRES_OCCUPATION_SOUSSELECTIONS"/>
	<SELECTIONS componentName="FILTRES_MOUVEMENTS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SEJOURS_SELECTIONS"/>
	<QUERIES>
		<QUERY label="">
			<SQL>
				<select><![CDATA[		
					
					CTIPREPAR_TREE
						WORKTABLE{acti000053_places}
						GROUPBY1{[VIEW.GROUPBY_PLACES_OID_FIELD],, [VIEW.GROUPBY_PLACES_COD_FIELD],, [VIEW.GROUPBY_PLACES_TXT_FIELD]}
						GROUPBY1MODE{[GROUPBY_TAB]}
						GROUPBY2{[VIEW.GROUPBY_2_PLACES_OID_FIELD],, [VIEW.GROUPBY_2_PLACES_COD_FIELD],, [VIEW.GROUPBY_2_PLACES_TXT_FIELD]}
						GROUPBY3{[VIEW.GROUPBY_3_PLACES_OID_FIELD],, [VIEW.GROUPBY_3_PLACES_COD_FIELD],, [VIEW.GROUPBY_3_PLACES_TXT_FIELD]}
						COLUMNBYDAY{date,, [VIEW.PERIODE] ,, '[VIEW.TOPERIODE]' ,, [VIEW.NBJOURS]}
					INDICATORS{
						SUM(CASE WHEN date = '[VIEW.TOPERIODE]' THEN v_places_1.nb_lits_theoriques ELSE 0 END),
						0,
						[VIEW.T_FACTEUR_MOYENNE],
					}
					INDICATORS_COLUMNS{
						[VIEW.C_FACTEUR_MOYENNE],
						}
					FROM activite.v_places_1
					WHERE 
						date BETWEEN [VIEW.PERIODE] AND '[VIEW.TOPERIODE]'
						[VIEW.ETAGE_PLACES_SELECT]
						[VIEW.PLACES_DATASELECT]


				]]></select>
			</SQL>
			
			<SQL optimizer="V_SEJOURS_X" optimizer2="V_MOUVEMENTS_SEJOUR_X">
				<select><![CDATA[		
					
						
					CTISELECT_TREE
						WORKTABLE{acti000053}
						GROUPBY1{[VIEW.GROUPBY_OID_FIELD],, [VIEW.GROUPBY_COD_FIELD],, [VIEW.GROUPBY_TXT_FIELD]}
						GROUPBY1MODE{[GROUPBY_TAB]}
						GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
						GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD],, [VIEW.GROUPBY_3_COD_FIELD],, [VIEW.GROUPBY_3_TXT_FIELD]}
						SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
						COLUMNBYDAY{date,, [VIEW.PERIODE] ,, '[VIEW.TOPERIODE]' ,, [VIEW.NBJOURS]}
						INDICATORS{
							0,
							0,
							[VIEW.TDATA],}	
						INDICATORS_COLUMNS{[VIEW.CDATA], }
					FROM #V_SEJOURS_X#
					JOIN #V_MOUVEMENTS_SEJOUR_X# ON v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour 
					, w_periode
					WHERE 
						date BETWEEN [VIEW.PERIODE] AND '[VIEW.TOPERIODE]'
						[VIEW.SEJOURS_SELECT]
						[VIEW.MOUVEMENTS_SELECT] [VIEW.REAPRE_SELECT]
						[VIEW.DATA_SELECT]
						AND v_sejours_1.type_sejour <> '9'
					AFTER{
					
						UPDATE acti000053 SET 
							indicateurs[1] = acti000053_places.indicateurs[1]
							[EVAL 
							if ('[DATA]' == 'TAU' || '[DATA]' == 'NJNM' || '[DATA]' == 'NEXM' || '[DATA]' == 'NAMM' || '[DATA]' == 'NJNXAM'  ) {
								return ",
									indicateurs[2] = base.cti_division(acti000053.indicateurs[3], acti000053_places.indicateurs[3]),
									indicateurs[3] = base.cti_division(acti000053.indicateurs[3] , acti000053_places.indicateurs[3])";
							}
							EVAL]
							[EVAL 
							if ('[DATA]' == 'NJO'  ) {
								return ",
									indicateurs[2] = base.cti_division(acti000053.indicateurs[3], acti000053_places.indicateurs[3]),
									indicateurs[3] = acti000053_places.indicateurs[3]";
							}
							EVAL]
							[EVAL 
							if ('[DATA]' == 'NED' || '[DATA]' == 'NEM' || '[DATA]' == 'NSD' || '[DATA]' == 'NSM' || '[DATA]' == 'NJN' || '[DATA]' == 'NJNA' ||
								'[DATA]' == 'NCP' || '[DATA]' == 'NEX' || '[DATA]' == 'NAM' || '[DATA]' == 'NEDA' || '[DATA]' == 'NSDA' || '[DATA]' == 'NEDXA' || '[DATA]' == 'NSDXA' || '[DATA]' == 'NSDXBB' || '[DATA]' == 'NJDXA' ||
								'[DATA]' == 'NEDXAS' || '[DATA]' == 'NSDXAS' || '[DATA]' == 'NJNXAS' || '[DATA]' == 'NSE' || '[DATA]' == 'NBB' 
								) {
								return ",
									indicateurs[2] = base.cti_division(acti000053.indicateurs[3], acti000053_places.indicateurs[3])";
							}
							EVAL]

							
							
							[EVAL 
							if ('[DATA]' == 'TAU' ) {
								return "
								,
								indicateurs[4] = base.cti_division(acti000053.indicateurs[4] , acti000053_places.indicateurs[4]) ,
								indicateurs[5] = base.cti_division(acti000053.indicateurs[5] , acti000053_places.indicateurs[5]) ,
								indicateurs[6] = base.cti_division(acti000053.indicateurs[6] , acti000053_places.indicateurs[6]) ,
								indicateurs[7] = base.cti_division(acti000053.indicateurs[7] , acti000053_places.indicateurs[7]) ,
								indicateurs[8] = base.cti_division(acti000053.indicateurs[8] , acti000053_places.indicateurs[8]) ,
								indicateurs[9] = base.cti_division(acti000053.indicateurs[9] , acti000053_places.indicateurs[9]) ,
								indicateurs[10] = base.cti_division(acti000053.indicateurs[10] , acti000053_places.indicateurs[10]) ,
								indicateurs[11] = base.cti_division(acti000053.indicateurs[11] , acti000053_places.indicateurs[11]) ,
								indicateurs[12] = base.cti_division(acti000053.indicateurs[12] , acti000053_places.indicateurs[12]) ,
								indicateurs[13] = base.cti_division(acti000053.indicateurs[13] , acti000053_places.indicateurs[13]) ,
								indicateurs[14] = base.cti_division(acti000053.indicateurs[14] , acti000053_places.indicateurs[14]) ,
								indicateurs[15] = base.cti_division(acti000053.indicateurs[15] , acti000053_places.indicateurs[15]) ,
								indicateurs[16] = base.cti_division(acti000053.indicateurs[16] , acti000053_places.indicateurs[16]) ,
								indicateurs[17] = base.cti_division(acti000053.indicateurs[17] , acti000053_places.indicateurs[17]) ,
								indicateurs[18] = base.cti_division(acti000053.indicateurs[18] , acti000053_places.indicateurs[18]) ,
								indicateurs[19] = base.cti_division(acti000053.indicateurs[19] , acti000053_places.indicateurs[19]) ,
								indicateurs[20] = base.cti_division(acti000053.indicateurs[20] , acti000053_places.indicateurs[20]) ,
								indicateurs[21] = base.cti_division(acti000053.indicateurs[21] , acti000053_places.indicateurs[21]) ,
								indicateurs[22] = base.cti_division(acti000053.indicateurs[22] , acti000053_places.indicateurs[22]) ,
								indicateurs[23] = base.cti_division(acti000053.indicateurs[23] , acti000053_places.indicateurs[23]) ,
								indicateurs[24] = base.cti_division(acti000053.indicateurs[24] , acti000053_places.indicateurs[24]) ,
								indicateurs[25] = base.cti_division(acti000053.indicateurs[25] , acti000053_places.indicateurs[25]) ,
								indicateurs[26] = base.cti_division(acti000053.indicateurs[26] , acti000053_places.indicateurs[26]) ,
								indicateurs[27] = base.cti_division(acti000053.indicateurs[27] , acti000053_places.indicateurs[27]) ,
								indicateurs[28] = base.cti_division(acti000053.indicateurs[28] , acti000053_places.indicateurs[28]) ,
								indicateurs[29] = base.cti_division(acti000053.indicateurs[29] , acti000053_places.indicateurs[29]) ,
								indicateurs[30] = base.cti_division(acti000053.indicateurs[30] , acti000053_places.indicateurs[30]) ,
								indicateurs[31] = base.cti_division(acti000053.indicateurs[31] , acti000053_places.indicateurs[31]) ,
								indicateurs[32] = base.cti_division(acti000053.indicateurs[32] , acti000053_places.indicateurs[32]) ,
								indicateurs[33] = base.cti_division(acti000053.indicateurs[33] , acti000053_places.indicateurs[33]) ,
								indicateurs[34] = base.cti_division(acti000053.indicateurs[34] , acti000053_places.indicateurs[34]) ,
								indicateurs[35] = base.cti_division(acti000053.indicateurs[35] , acti000053_places.indicateurs[35]) ,
								indicateurs[36] = base.cti_division(acti000053.indicateurs[36] , acti000053_places.indicateurs[36]) ,
								indicateurs[37] = base.cti_division(acti000053.indicateurs[37] , acti000053_places.indicateurs[37]) ,
								indicateurs[38] = base.cti_division(acti000053.indicateurs[38] , acti000053_places.indicateurs[38]) ,
								indicateurs[39] = base.cti_division(acti000053.indicateurs[39] , acti000053_places.indicateurs[39]) ,
								indicateurs[40] = base.cti_division(acti000053.indicateurs[40] , acti000053_places.indicateurs[40]) 
								";
								}
							EVAL]
						FROM acti000053_places
						WHERE 
							(acti000053_places.oidt = acti000053.oidt OR acti000053_places.oidt = -111) AND
							(acti000053_places.oid1 = acti000053.oid1 OR acti000053_places.oid1 = -111) AND
							(acti000053_places.oid2 = acti000053.oid2 OR acti000053_places.oid2 = -111) AND
							(acti000053_places.oid3 = acti000053.oid3 OR acti000053_places.oid3 = -111)
						
						
					
				}	

				]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="LIT"/>
					<FIELD name="M"/>
					<FIELD name="N"/>
					<FIELD name="N0"/>
					<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"/>
					<FIELD name="N21"/>
					<FIELD name="N22"/>
					<FIELD name="N23"/>
					<FIELD name="N24"/>
					<FIELD name="N25"/>
					<FIELD name="N26"/>
					<FIELD name="N27"/>
					<FIELD name="N28"/>
					<FIELD name="N29"/>
					<FIELD name="N30"/>
					<FIELD name="N31"/>
				</FIELDS>
			</SQL>
		</QUERY>
		<QUERY type="propertiesLink" name="VIEWPROPERTIES" forSelections="false">
			<SQL select="SELECT 'TOPERIODE', date FROM activite.p_mouvements_sejour WHERE date &lt;= '[TOPERIODE]'  [VIEW.REAPRE_SELECT]
					ORDER BY date DESC 
					LIMIT 1">
				<FIELDS>
					<FIELD name="name"/>
					<FIELD name="value"/>
				</FIELDS>
			</SQL>
			<SQL>
				<select><![CDATA[		
					DROP TABLE IF EXISTS w_periode;
					CREATE TEMP TABLE w_periode AS
					SELECT 
						count(DISTINCT date) AS duree_periode
					FROM activite.p_mouvements_sejour	
					WHERE date BETWEEN [VIEW.PERIODE] AND '[VIEW.TOPERIODE]';
					
					SELECT 'NBJOURS', duree_periode FROM w_periode;
				]]></select>
				<FIELDS>
					<FIELD name="name"/>
					<FIELD name="value"/>
				</FIELDS>
			</SQL>
			
		</QUERY>
	</QUERIES>
	<PRESENTATION>
		<VIEWLINKS>
			<VIEWLINK label="Liste des séjours" shortLabel="Liste séjours" view="ACTI000052.XML" componentName="OCC_BASE_VIEWLINK" component3Name="STANDARD_BASE_VIEWLINK">
				<ARG name="PERIODE" value="	if (COLUMN.NAME == 'N1') {return VIEW.COLD1}
											if (COLUMN.NAME == 'N2') {return VIEW.COLD2}
											if (COLUMN.NAME == 'N3') {return VIEW.COLD3}
											if (COLUMN.NAME == 'N4') {return VIEW.COLD4}
											if (COLUMN.NAME == 'N5') {return VIEW.COLD5}
											if (COLUMN.NAME == 'N6') {return VIEW.COLD6}
											if (COLUMN.NAME == 'N7') {return VIEW.COLD7}
											if (COLUMN.NAME == 'N8') {return VIEW.COLD8}
											if (COLUMN.NAME == 'N9') {return VIEW.COLD9}
											if (COLUMN.NAME == 'N10') {return VIEW.COLD10}
											if (COLUMN.NAME == 'N11') {return VIEW.COLD11}
											if (COLUMN.NAME == 'N12') {return VIEW.COLD12}
											if (COLUMN.NAME == 'N13') {return VIEW.COLD13}
											if (COLUMN.NAME == 'N14') {return VIEW.COLD14}
											if (COLUMN.NAME == 'N15') {return VIEW.COLD15}
											if (COLUMN.NAME == 'N16') {return VIEW.COLD16}
											if (COLUMN.NAME == 'N17') {return VIEW.COLD17}
											if (COLUMN.NAME == 'N18') {return VIEW.COLD18}
											if (COLUMN.NAME == 'N19') {return VIEW.COLD19}
											if (COLUMN.NAME == 'N20') {return VIEW.COLD20}
											if (COLUMN.NAME == 'N21') {return VIEW.COLD21}
											if (COLUMN.NAME == 'N22') {return VIEW.COLD22}
											if (COLUMN.NAME == 'N23') {return VIEW.COLD23}
											if (COLUMN.NAME == 'N24') {return VIEW.COLD24}
											if (COLUMN.NAME == 'N25') {return VIEW.COLD25}
											if (COLUMN.NAME == 'N26') {return VIEW.COLD26}
											if (COLUMN.NAME == 'N27') {return VIEW.COLD27}
											if (COLUMN.NAME == 'N28') {return VIEW.COLD28}
											if (COLUMN.NAME == 'N29') {return VIEW.COLD29}
											if (COLUMN.NAME == 'N30') {return VIEW.COLD30}
											if (COLUMN.NAME == 'N31') {return VIEW.COLD31}
											return VIEW.COLD1"/>
				<ARG name="TOPERIODE" value="	if (COLUMN.NAME == 'N1') {return VIEW.COLF1}
											if (COLUMN.NAME == 'N2') {return VIEW.COLF2}
											if (COLUMN.NAME == 'N3') {return VIEW.COLF3}
											if (COLUMN.NAME == 'N4') {return VIEW.COLF4}
											if (COLUMN.NAME == 'N5') {return VIEW.COLF5}
											if (COLUMN.NAME == 'N6') {return VIEW.COLF6}
											if (COLUMN.NAME == 'N7') {return VIEW.COLF7}
											if (COLUMN.NAME == 'N8') {return VIEW.COLF8}
											if (COLUMN.NAME == 'N9') {return VIEW.COLF9}
											if (COLUMN.NAME == 'N10') {return VIEW.COLF10}
											if (COLUMN.NAME == 'N11') {return VIEW.COLF11}
											if (COLUMN.NAME == 'N12') {return VIEW.COLF12}
											if (COLUMN.NAME == 'N13') {return VIEW.COLF13}
											if (COLUMN.NAME == 'N14') {return VIEW.COLF14}
											if (COLUMN.NAME == 'N15') {return VIEW.COLF15}
											if (COLUMN.NAME == 'N16') {return VIEW.COLF16}
											if (COLUMN.NAME == 'N17') {return VIEW.COLF17}
											if (COLUMN.NAME == 'N18') {return VIEW.COLF18}
											if (COLUMN.NAME == 'N19') {return VIEW.COLF19}
											if (COLUMN.NAME == 'N20') {return VIEW.COLF20}
											if (COLUMN.NAME == 'N21') {return VIEW.COLF21}
											if (COLUMN.NAME == 'N22') {return VIEW.COLF22}
											if (COLUMN.NAME == 'N23') {return VIEW.COLF23}
											if (COLUMN.NAME == 'N24') {return VIEW.COLF24}
											if (COLUMN.NAME == 'N25') {return VIEW.COLF25}
											if (COLUMN.NAME == 'N26') {return VIEW.COLF26}
											if (COLUMN.NAME == 'N27') {return VIEW.COLF27}
											if (COLUMN.NAME == 'N28') {return VIEW.COLF28}
											if (COLUMN.NAME == 'N29') {return VIEW.COLF29}
											if (COLUMN.NAME == 'N30') {return VIEW.COLF30}
											if (COLUMN.NAME == 'N31') {return VIEW.COLF31}
											return VIEW.TOPERIODE"/>
				<ARG name="DATA" value="if (SELECT.DATA == 'NED') {return 'ENT'}
										if (SELECT.DATA == 'NEM') {return 'ENT'}
										if (SELECT.DATA == 'NSD') {return 'SOR'}
										if (SELECT.DATA == 'NSM') {return 'SOR'}
										if (SELECT.DATA == 'NJN') {return 'JRN'}
										if (SELECT.DATA == 'NJNA') {return 'JRNAMB'}
										if (SELECT.DATA == 'NJNM') {return 'JRN'}
										if (SELECT.DATA == 'NCP') {return 'CP'}
										if (SELECT.DATA == 'NEX') {return 'EXT'}
										if (SELECT.DATA == 'NEXM') {return 'EXT'}
										if (SELECT.DATA == 'NAM') {return 'AMB'}
										if (SELECT.DATA == 'NAMM') {return 'AMB'}
										if (SELECT.DATA == 'NSE') {return 'SEA'}
										
										
										return '-1'"/>
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Occupation" label="Occupation" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<INPUTSELECTION condition="ROW.N != 0"/>
			<CHART title="Evolution quotidienne (total)" type="lineChart" serieIsCategory="true" fromTotal="true"
				visibleCondition="SELECT.DATA != 'NJN' &amp;&amp; SELECT.DATA != 'NJNA' &amp;&amp; SELECT.DATA != 'NAM'">
				<CATEGORY field="TXT" type="Char" displayName="Total" displayName2="Moyenne"/>
				<SERIE field="N1" field2="M" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null"/>
				<SERIE field="N2" field2="M" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null"/>
				<SERIE field="N3" field2="M" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null"/>
				<SERIE field="N4" field2="M" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null"/>
				<SERIE field="N5" field2="M" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null"/>
				<SERIE field="N6" field2="M" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null"/>
				<SERIE field="N7" field2="M" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null"/>
				<SERIE field="N8" field2="M" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null"/>
				<SERIE field="N9" field2="M" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null"/>
				<SERIE field="N10" field2="M" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null"/>
				<SERIE field="N11" field2="M" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null"/>
				<SERIE field="N12" field2="M" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null"/>
				<SERIE field="N13" field2="M" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null"/>
				<SERIE field="N14" field2="M" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null"/>
				<SERIE field="N15" field2="M" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null"/>
				<SERIE field="N16" field2="M" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null"/>
				<SERIE field="N17" field2="M" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null"/>
				<SERIE field="N18" field2="M" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null"/>
				<SERIE field="N19" field2="M" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null"/>
				<SERIE field="N20" field2="M" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null"/>
				<SERIE field="N21" field2="M" displayName="VIEW.COLH21" displayNameCalc="true" visibleCondition="VIEW.COLH21 != null"/>
				<SERIE field="N22" field2="M" displayName="VIEW.COLH22" displayNameCalc="true" visibleCondition="VIEW.COLH22 != null"/>
				<SERIE field="N23" field2="M" displayName="VIEW.COLH23" displayNameCalc="true" visibleCondition="VIEW.COLH23 != null"/>
				<SERIE field="N24" field2="M" displayName="VIEW.COLH24" displayNameCalc="true" visibleCondition="VIEW.COLH24 != null"/>
				<SERIE field="N25" field2="M" displayName="VIEW.COLH25" displayNameCalc="true" visibleCondition="VIEW.COLH25 != null"/>
				<SERIE field="N26" field2="M" displayName="VIEW.COLH26" displayNameCalc="true" visibleCondition="VIEW.COLH26 != null"/>
				<SERIE field="N27" field2="M" displayName="VIEW.COLH27" displayNameCalc="true" visibleCondition="VIEW.COLH27 != null"/>
				<SERIE field="N28" field2="M" displayName="VIEW.COLH28" displayNameCalc="true" visibleCondition="VIEW.COLH28 != null"/>
				<SERIE field="N29" field2="M" displayName="VIEW.COLH29" displayNameCalc="true" visibleCondition="VIEW.COLH29 != null"/>
				<SERIE field="N30" field2="M" displayName="VIEW.COLH30" displayNameCalc="true" visibleCondition="VIEW.COLH30 != null"/>
				<SERIE field="N31" field2="M" displayName="VIEW.COLH31" displayNameCalc="true" visibleCondition="VIEW.COLH31 != null"/>
			</CHART>
			<CHART title="Evolution quotidienne (total)" type="lineChart" serieIsCategory="true" fromTotal="true"
				visibleCondition="SELECT.DATA == 'NJN' || SELECT.DATA == 'NJNA' || SELECT.DATA == 'NAM'">
				<CATEGORY field="TXT" type="Char" displayName="Total" displayName2="Moyenne" displayName3="Places"/>
				<SERIE field="N1" field2="M" field3="LIT" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null"/>
				<SERIE field="N2" field2="M" field3="LIT" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null"/>
				<SERIE field="N3" field2="M" field3="LIT" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null"/>
				<SERIE field="N4" field2="M" field3="LIT" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null"/>
				<SERIE field="N5" field2="M" field3="LIT" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null"/>
				<SERIE field="N6" field2="M" field3="LIT" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null"/>
				<SERIE field="N7" field2="M" field3="LIT" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null"/>
				<SERIE field="N8" field2="M" field3="LIT" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null"/>
				<SERIE field="N9" field2="M" field3="LIT" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null"/>
				<SERIE field="N10" field2="M" field3="LIT" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null"/>
				<SERIE field="N11" field2="M" field3="LIT" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null"/>
				<SERIE field="N12" field2="M" field3="LIT" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null"/>
				<SERIE field="N13" field2="M" field3="LIT" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null"/>
				<SERIE field="N14" field2="M" field3="LIT" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null"/>
				<SERIE field="N15" field2="M" field3="LIT" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null"/>
				<SERIE field="N16" field2="M" field3="LIT" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null"/>
				<SERIE field="N17" field2="M" field3="LIT" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null"/>
				<SERIE field="N18" field2="M" field3="LIT" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null"/>
				<SERIE field="N19" field2="M" field3="LIT" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null"/>
				<SERIE field="N20" field2="M" field3="LIT" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null"/>
				<SERIE field="N21" field2="M" field3="LIT" displayName="VIEW.COLH21" displayNameCalc="true" visibleCondition="VIEW.COLH21 != null"/>
				<SERIE field="N22" field2="M" field3="LIT" displayName="VIEW.COLH22" displayNameCalc="true" visibleCondition="VIEW.COLH22 != null"/>
				<SERIE field="N23" field2="M" field3="LIT" displayName="VIEW.COLH23" displayNameCalc="true" visibleCondition="VIEW.COLH23 != null"/>
				<SERIE field="N24" field2="M" field3="LIT" displayName="VIEW.COLH24" displayNameCalc="true" visibleCondition="VIEW.COLH24 != null"/>
				<SERIE field="N25" field2="M" field3="LIT" displayName="VIEW.COLH25" displayNameCalc="true" visibleCondition="VIEW.COLH25 != null"/>
				<SERIE field="N26" field2="M" field3="LIT" displayName="VIEW.COLH26" displayNameCalc="true" visibleCondition="VIEW.COLH26 != null"/>
				<SERIE field="N27" field2="M" field3="LIT" displayName="VIEW.COLH27" displayNameCalc="true" visibleCondition="VIEW.COLH27 != null"/>
				<SERIE field="N28" field2="M" field3="LIT" displayName="VIEW.COLH28" displayNameCalc="true" visibleCondition="VIEW.COLH28 != null"/>
				<SERIE field="N29" field2="M" field3="LIT" displayName="VIEW.COLH29" displayNameCalc="true" visibleCondition="VIEW.COLH29 != null"/>
				<SERIE field="N30" field2="M" field3="LIT" displayName="VIEW.COLH30" displayNameCalc="true" visibleCondition="VIEW.COLH30 != null"/>
				<SERIE field="N31" field2="M" field3="LIT" displayName="VIEW.COLH31" displayNameCalc="true" visibleCondition="VIEW.COLH31 != null"/>
			</CHART>
			
			<CHART title="Comparatif (10 premiers) " type="pieChart" maxItems="10" maxItemsSortOn="N" maxItemsSortSeq="D" sortField="TXT" sortSeq="A" visibleCondition="SELECT.DATA != 'TAU'" condition="Number(ROW.LVL) == 1">
				<CATEGORY field="TXT" type="Char"/>
				<SERIE field="N" displayName="SELECT.DATA_LABEL" displayNameCalc="true"/>
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" headerHeight="54" 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>
				<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="100" maxWidth="300" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" totalComplement="TOTAL" otherFunction="text" otherComplement="Autres">
				</COLUMN>
				<COLUMN dataField="LIT" type="Number" width="50" outputFormat="0" visible="true" headerText="Places" textAlign="right" totalFunction="text" otherFunction="text" otherComplement="">
				</COLUMN>
				<COLUMN dataField="N" width="80" visible="true" type="Number" outputFormat="= SELECT.DATA2" headerText="Total" textAlign="right" totalFunction="sum" otherFunction="sum">
				</COLUMN>
				<COLUMN dataField="M" type="Number" width="50" selectable="true" headerText="Moy." outputFormat="#,00" visible="true" otherFunction="sum" totalFunction="sum" totalComplement="*ROW"/>
				<COLUMN dataField="N_P" type="Number" headerText="% / Total" width="40" outputFormat="0%" textAlign="right" visibleCondition="SELECT.DATA != 'TAU' " totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
					<CALC formula="ROW.N / TOTALROW.N * 100 "/>
				</COLUMN>
				<COLUMN dataField="N1" width="35" visibleCondition="VIEW.COLH1 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH1" columnData="= VIEW.COLI1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N2" width="35" visibleCondition="VIEW.COLH2 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH2" columnData="= VIEW.COLI2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N3" width="35" visibleCondition="VIEW.COLH3 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH3" columnData="= VIEW.COLI3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N4" width="35" visibleCondition="VIEW.COLH4 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH4" columnData="= VIEW.COLI4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N5" width="35" visibleCondition="VIEW.COLH5 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH5" columnData="= VIEW.COLI5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N6" width="35" visibleCondition="VIEW.COLH6 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH6" columnData="= VIEW.COLI6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N7" width="35" visibleCondition="VIEW.COLH7 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH7" columnData="= VIEW.COLI7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N8" width="35" visibleCondition="VIEW.COLH8 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH8" columnData="= VIEW.COLI8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N9" width="35" visibleCondition="VIEW.COLH9 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH9" columnData="= VIEW.COLI9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N10" width="35" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH10" columnData="= VIEW.COLI10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N11" width="35" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH11" columnData="= VIEW.COLI11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N12" width="35" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH12" columnData="= VIEW.COLI12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N13" width="35" visibleCondition="VIEW.COLH13 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH13" columnData="= VIEW.COLI13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N14" width="35" visibleCondition="VIEW.COLH14 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH14" columnData="= VIEW.COLI14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N15" width="35" visibleCondition="VIEW.COLH15 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH15" columnData="= VIEW.COLI15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N16" width="35" visibleCondition="VIEW.COLH16 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH16" columnData="= VIEW.COLI16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N17" width="35" visibleCondition="VIEW.COLH17 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH17" columnData="= VIEW.COLI17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N18" width="35" visibleCondition="VIEW.COLH18 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH18" columnData="= VIEW.COLI18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N19" width="35" visibleCondition="VIEW.COLH19 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH19" columnData="= VIEW.COLI19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N20" width="35" visibleCondition="VIEW.COLH20 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH20" columnData="= VIEW.COLI20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N21" width="35" visibleCondition="VIEW.COLH21 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH21" columnData="= VIEW.COLI11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N22" width="35" visibleCondition="VIEW.COLH22 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH22" columnData="= VIEW.COLI12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N23" width="35" visibleCondition="VIEW.COLH23 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH23" columnData="= VIEW.COLI13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N24" width="35" visibleCondition="VIEW.COLH24 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH24" columnData="= VIEW.COLI14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N25" width="35" visibleCondition="VIEW.COLH25 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH25" columnData="= VIEW.COLI15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N26" width="35" visibleCondition="VIEW.COLH26 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH26" columnData="= VIEW.COLI16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N27" width="35" visibleCondition="VIEW.COLH27 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH27" columnData="= VIEW.COLI17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N28" width="35" visibleCondition="VIEW.COLH28 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH28" columnData="= VIEW.COLI18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N29" width="35" visibleCondition="VIEW.COLH29 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH29" columnData="= VIEW.COLI19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N30" width="35" visibleCondition="VIEW.COLH30 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH30" columnData="= VIEW.COLI20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
				<COLUMN dataField="N31" width="35" visibleCondition="VIEW.COLH31 != null" type="Number" outputFormat="#" fixed="false" selectable="true" headerText="VIEW.COLH31" columnData="= VIEW.COLI20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum">
				</COLUMN>
			</DATAGRID>
		</ONGLET>
	</PRESENTATION>
</VUE>
