<?xml version="1.0" encoding="ISO-8859-15"?>
<VUE name="ACTI000071" label="Activité. Evolution quotidienne des présents" title="= 'Evolution quotidienne des ' + SELECT.DATA_LABEL + ' ' + SELECT.REAPRE2 + ' à ' + SELECT.TOHEURE_LABEL + ' 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_ACTI000123.HTML"
    helpDokuWIkiDir="activite:occupation_sejours:presents" 
    helpDokuWIkiFile="acti000066" 
>       
	<VIEWPROPERTIES componentName="PROPERTIES_OCCUPATION"/>
	<VIEWPROPERTIES>
		<PROPERTY dataLink="VIEWPROPERTIES" nameField="name" valueField="value"/>
		
		
		<PROPERTY name="DATA_SELECT">
			<value><![CDATA[
						[EVAL 
							switch ('[DATA]') {
							case 'PRECP':
								return "AND est_chambre_particuliere = '1'";
								break;
							default:
								return "";
							}
						EVAL]
					]]></value>
		</PROPERTY>
		<PROPERTY name="REAPRE_SELECT">
			<value><![CDATA[
						[EVAL 
							if ('[REAPRE]' == '1') {return "";}
							if ('[REAPRE]' == '2') {return " AND est_mouvement_previsionnel = '1'";}
							return " AND est_mouvement_previsionnel <> '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="TOHEURE" label="à" UI="combo" tree="false" width="80" default="12">
				<OPTION label="toute heure" data="-1" />
				<OPTION label="0h" data="0" />
				<OPTION label="1h" data="1"/>
				<OPTION label="2h" data="2"/>
				<OPTION label="3h" data="3"/>
				<OPTION label="4h" data="4"/>
				<OPTION label="5h" data="5"/>
				<OPTION label="6h" data="6"/>
				<OPTION label="7h" data="7"/>
				<OPTION label="8h" data="8"/>
				<OPTION label="9h" data="9"/>
				<OPTION label="10h" data="10"/>
				<OPTION label="11h" data="11"/>
				<OPTION label="12h" data="12"/>
				<OPTION label="13h" data="13"/>
				<OPTION label="14h" data="14"/>
				<OPTION label="15h" data="15"/>
				<OPTION label="16h" data="16"/>
				<OPTION label="17h" data="17"/>
				<OPTION label="18h" data="18"/>
				<OPTION label="19h" data="19"/>
				<OPTION label="20h" data="20"/>
				<OPTION label="21h" data="21"/>
				<OPTION label="22h" data="22"/>
				<OPTION label="23h" data="23"/>
				<OPTION label="24h" data="24"/>
			</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="TOHEURE_2_OPTION" label="Option graphique" UI="combo" tree="true" width="150" default="-1">
				<OPTION label="Afficher moyenne" data="-1"/>
				<OPTION label="Afficher 2nde heure" data="H2"/>
			</FIELD>
			<FIELD name="FILLER" label="" width="15" UI="text" default="" visible="false"/>
			<FIELD name="TOHEURE_2" label="" UI="combo" tree="false" width="80" default="12" visible="= SELECT.TOHEURE_2_OPTION == 'H2'">
				<OPTION label="1h" data="1"/>
				<OPTION label="2h" data="2"/>
				<OPTION label="3h" data="3"/>
				<OPTION label="4h" data="4"/>
				<OPTION label="5h" data="5"/>
				<OPTION label="6h" data="6"/>
				<OPTION label="7h" data="7"/>
				<OPTION label="8h" data="8"/>
				<OPTION label="9h" data="9"/>
				<OPTION label="10h" data="10"/>
				<OPTION label="11h" data="11"/>
				<OPTION label="12h" data="12"/>
				<OPTION label="13h" data="13"/>
				<OPTION label="14h" data="14"/>
				<OPTION label="15h" data="15"/>
				<OPTION label="16h" data="16"/>
				<OPTION label="17h" data="17"/>
				<OPTION label="18h" data="18"/>
				<OPTION label="19h" data="19"/>
				<OPTION label="20h" data="20"/>
				<OPTION label="21h" data="21"/>
				<OPTION label="22h" data="22"/>
				<OPTION label="23h" data="23"/>
				<OPTION label="24h" data="24"/>
			</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" 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" label="Niveaux suivants" UI="combo" width="200" default="-1" tree="true">
				<OPTION label="" data="-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="" data="-1"/>
				<OPTION label="OCCUPATION_GROUPBY" data="" globalListProvider="OCCUPATION_GROUPBY"/>
			</FIELD>
		</GROUP>
		<GROUP>
			<FIELD name="DATA" label="Données" UI="combo" width="200" default="PRE">
				<OPTION label="Présents" data="PRE"/>
				<OPTION label="Présents en chambre particulière" data="PRECP"/>
			</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 componentName="FILTRES_MOUVEMENTS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_SEJOURS_SELECTIONS"/>
	<SELECTIONS componentName="FILTRES_PASSAGES_SELECTIONS" />
	<QUERIES>
		<QUERY label="">
			<SQL>
				<select><![CDATA[		
					
					CTIPREPAR_TREE
						WORKTABLE{acti000071_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),,
						COUNT (DISTINCT CASE WHEN v_places_1.nb_lits_ouverts > 0 THEN date ELSE null END),,
						COUNT (DISTINCT CASE WHEN date_part('dow',date) <> 0 AND v_places_1.nb_lits_ouverts > 0 THEN date ELSE null END),,
						SUM(v_places_1.nb_lits_ouverts)
					}
					INDICATORS_COLUMNS{
						SUM(CASE WHEN COLUMNCHECKSEQUENCE THEN v_places_1.nb_lits_theoriques ELSE 0 END),
						}
					FROM activite.v_places_1
					WHERE 
						date BETWEEN '[VIEW.PERIODE]' AND '[VIEW.TOPERIODE]'   
						[VIEW.ETAGE_PLACES_SELECT]

				]]></select>
			</SQL>
			<SQL optimizer="V_SEJOURS_X" optimizer2="V_MOUVEMENTS_SEJOUR_X">
				<select><![CDATA[	
						CTISELECT_TREE
						WORKTABLE{acti000071}
						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]}
						COLUMNBYDAY{date,, '[VIEW.PERIODE]' ,, '[VIEW.TOPERIODE]' ,, [VIEW.NBJOURS]}
						INDICATORS{
							0,,
							SUM(CASE WHEN [TOHEURE] = -1 OR (heure_debut <= [TOHEURE]0000 AND heure_fin >= [TOHEURE]0000) THEN 1 ELSE 0 END),,
							SUM(CASE WHEN date_part('dow',date) <> 0 AND ([TOHEURE] = -1 OR (heure_debut <= [TOHEURE]0000 AND heure_fin >= [TOHEURE]0000)) THEN 1 ELSE 0 END),,
							SUM(CASE WHEN [TOHEURE] = -1 OR (heure_debut <= [TOHEURE]0000 AND heure_fin >= [TOHEURE]0000) THEN 1 ELSE 0 END)
						}
						INDICATORS_COLUMNS{
							SUM(CASE WHEN COLUMNCHECKSEQUENCE AND ([TOHEURE] = -1  OR (heure_debut <= [TOHEURE]0000 AND heure_fin >= [TOHEURE]0000)) THEN 1 ELSE 0 END),,
							SUM(CASE WHEN COLUMNCHECKSEQUENCE AND heure_debut <= [TOHEURE_2]0000 AND heure_fin >= [TOHEURE_2]0000 THEN 1 ELSE 0 END),
						}
						FROM #V_SEJOURS_X#
						JOIN #V_MOUVEMENTS_SEJOUR_X# ON v_mouvements_sejour_2.no_sejour = v_sejours_1.no_sejour 
						WHERE 
							date BETWEEN '[VIEW.PERIODE]' AND '[VIEW.TOPERIODE]'   
							AND v_sejours_1.date_sortie >= date
							AND service_facturation_est_absence IS DISTINCT FROM '1'
							AND (est_jour_hospitalisation = '1' OR nb_ambulatoires > 0 OR nb_externes > 0 OR nb_seances > 0)
							[VIEW.SEJOURS_SELECT] [VIEW.PASSAGES_SELECT]
							[VIEW.MOUVEMENTS_SELECT] [VIEW.REAPRE_SELECT]
							[VIEW.DATA_SELECT]  
							AND v_sejours_1.type_sejour <> '9'
						AFTER{
					
						UPDATE acti000071 SET 
							indicateurs[1] = acti000071_places.indicateurs[1],
							indicateurs[2] = base.cti_division(acti000071.indicateurs[2], acti000071_places.indicateurs[2]),
							indicateurs[3] = base.cti_division(acti000071.indicateurs[3], acti000071_places.indicateurs[3])
							
						FROM acti000071_places
						WHERE 
							(acti000071_places.oidt = acti000071.oidt OR acti000071_places.oidt = -111) AND
							(acti000071_places.oid1 = acti000071.oid1 OR acti000071_places.oid1 = -111) AND
							(acti000071_places.oid2 = acti000071.oid2 OR acti000071_places.oid2 = -111) AND
							(acti000071_places.oid3 = acti000071.oid3 OR acti000071_places.oid3 = -111)
						}

     
					]]></select>
				<FIELDS>
					<INSERT name="CTISELECT_TREE_FIELDS"/>
					<FIELD name="LIT"/>
					<FIELD name="M"/>
					<FIELD name="MSD"/>
					<FIELD name="TP"/>
					<FIELD name="N0"/>
					<FIELD name="SN0"/>
					<FIELD name="N1"/>
					<FIELD name="SN1"/>
					<FIELD name="N2"/>
					<FIELD name="SN2"/>
					<FIELD name="N3"/>
					<FIELD name="SN3"/>
					<FIELD name="N4"/>
					<FIELD name="SN4"/>
					<FIELD name="N5"/>
					<FIELD name="SN5"/>
					<FIELD name="N6"/>
					<FIELD name="SN6"/>
					<FIELD name="N7"/>
					<FIELD name="SN7"/>
					<FIELD name="N8"/>
					<FIELD name="SN8"/>
					<FIELD name="N9"/>
					<FIELD name="SN9"/>
					<FIELD name="N10"/>
					<FIELD name="SN10"/>
					<FIELD name="N11"/>
					<FIELD name="SN11"/>
					<FIELD name="N12"/>
					<FIELD name="SN12"/>
					<FIELD name="N13"/>
					<FIELD name="SN13"/>
					<FIELD name="N14"/>
					<FIELD name="SN14"/>
					<FIELD name="N15"/>
					<FIELD name="SN15"/>
					<FIELD name="N16"/>
					<FIELD name="SN16"/>
					<FIELD name="N17"/>
					<FIELD name="SN17"/>
					<FIELD name="N18"/>
					<FIELD name="SN18"/>
					<FIELD name="N19"/>
					<FIELD name="SN19"/>
					<FIELD name="N20"/>
					<FIELD name="SN20"/>
					<FIELD name="N21"/>
					<FIELD name="SN21"/>
					<FIELD name="N22"/>
					<FIELD name="SN22"/>
					<FIELD name="N23"/>
					<FIELD name="SN23"/>
					<FIELD name="N24"/>
					<FIELD name="SN24"/>
					<FIELD name="N25"/>
					<FIELD name="SN25"/>
					<FIELD name="N26"/>
					<FIELD name="SN26"/>
					<FIELD name="N27"/>
					<FIELD name="SN27"/>
					<FIELD name="N28"/>
					<FIELD name="SN28"/>
					<FIELD name="N29"/>
					<FIELD name="SN29"/>
					<FIELD name="N30"/>
					<FIELD name="SN30"/>
					<FIELD name="N31"/>
					<FIELD name="SN31"/>					
					
				</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="SELECT 'PERIODE', date FROM base.p_calendrier 
					WHERE date &lt;= '[VIEW.TOPERIODE]' AND ([NBJOURS] &lt;&gt; -1 AND '[VIEW.TOPERIODE]' - date + 1 = [NBJOURS] 
						OR [NBJOURS] = -1 AND date_part('day', date) = 1 AND date_trunc('month', date) = date_trunc('month', '[VIEW.TOPERIODE]'::date))
					ORDER BY date DESC ">
				<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 présents" shortLabel="Liste présents" view="ACTI000065.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="SELECT.DATA"/>
				
			</VIEWLINK>
		</VIEWLINKS>
		<ONGLET excelLabel="Occupation" label="Occupation" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
			<CHART title="Evolution quotidienne" type="lineChart" serieIsCategory="true" fromTotal="true" 
				visibleCondition="SELECT.TOHEURE_2_OPTION != 'H2'">
				<CATEGORY field="TXT" type="Char" displayName="= 'Présents à ' + SELECT.TOHEURE_LABEL" 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="Evolution quotidienne" type="lineChart" serieIsCategory="true" fromTotal="true" visibleCondition="SELECT.TOHEURE_2_OPTION == 'H2'">
				<CATEGORY field="TXT" type="Char" displayName="= 'Présents à ' + SELECT.TOHEURE_LABEL" displayName2="= 'Présents à ' + SELECT.TOHEURE_2_LABEL" displayName3="Places"/>
				<SERIE field="N1" field2="SN1" field3="LIT" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null"/>
				<SERIE field="N2" field2="SN2" field3="LIT" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null"/>
				<SERIE field="N3" field2="SN3" field3="LIT" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null"/>
				<SERIE field="N4" field2="SN4" field3="LIT" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null"/>
				<SERIE field="N5" field2="SN5" field3="LIT" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null"/>
				<SERIE field="N6" field2="SN6" field3="LIT" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null"/>
				<SERIE field="N7" field2="SN7" field3="LIT" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null"/>
				<SERIE field="N8" field2="SN8" field3="LIT" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null"/>
				<SERIE field="N9" field2="SN9" field3="LIT" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null"/>
				<SERIE field="N10" field2="SN10" field3="LIT" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null"/>
				<SERIE field="N11" field2="SN11" field3="LIT" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null"/>
				<SERIE field="N12" field2="SN12" field3="LIT" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null"/>
				<SERIE field="N13" field2="SN13" field3="LIT" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null"/>
				<SERIE field="N14" field2="SN14" field3="LIT" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null"/>
				<SERIE field="N15" field2="SN15" field3="LIT" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null"/>
				<SERIE field="N16" field2="SN16" field3="LIT" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null"/>
				<SERIE field="N17" field2="SN17" field3="LIT" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null"/>
				<SERIE field="N18" field2="SN18" field3="LIT" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null"/>
				<SERIE field="N19" field2="SN19" field3="LIT" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null"/>
				<SERIE field="N20" field2="SN20" field3="LIT" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null"/>
				<SERIE field="N21" field2="SN21" field3="LIT" displayName="VIEW.COLH21" displayNameCalc="true" visibleCondition="VIEW.COLH21 != null"/>
				<SERIE field="N22" field2="SN22" field3="LIT" displayName="VIEW.COLH22" displayNameCalc="true" visibleCondition="VIEW.COLH22 != null"/>
				<SERIE field="N23" field2="SN23" field3="LIT" displayName="VIEW.COLH23" displayNameCalc="true" visibleCondition="VIEW.COLH23 != null"/>
				<SERIE field="N24" field2="SN24" field3="LIT" displayName="VIEW.COLH24" displayNameCalc="true" visibleCondition="VIEW.COLH24 != null"/>
				<SERIE field="N25" field2="SN25" field3="LIT" displayName="VIEW.COLH25" displayNameCalc="true" visibleCondition="VIEW.COLH25 != null"/>
				<SERIE field="N26" field2="SN26" field3="LIT" displayName="VIEW.COLH26" displayNameCalc="true" visibleCondition="VIEW.COLH26 != null"/>
				<SERIE field="N27" field2="SN27" field3="LIT" displayName="VIEW.COLH27" displayNameCalc="true" visibleCondition="VIEW.COLH27 != null"/>
				<SERIE field="N28" field2="SN28" field3="LIT" displayName="VIEW.COLH28" displayNameCalc="true" visibleCondition="VIEW.COLH28 != null"/>
				<SERIE field="N29" field2="SN29" field3="LIT" displayName="VIEW.COLH29" displayNameCalc="true" visibleCondition="VIEW.COLH29 != null"/>
				<SERIE field="N30" field2="SN30" field3="LIT" displayName="VIEW.COLH30" displayNameCalc="true" visibleCondition="VIEW.COLH30 != null"/>
				<SERIE field="N31" field2="SN31" field3="LIT" displayName="VIEW.COLH31" displayNameCalc="true" visibleCondition="VIEW.COLH31 != null"/>
			</CHART>
			<DATAGRID title="" total="true" showOthers="true" key="COD" keySeq="A" headerHeight="54" variableRowHeight="true" 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="sum" otherFunction="sum" otherComplement="">
					<CELLSTYLE name="color" value="0xFFFFFF" condition="ROW.LIT == 0"/>
				</COLUMN>
				<COLUMN dataField="N" type="Number" width="50" headerText="Total" visible="false" totalFunction="sum"/>
				<COLUMN dataField="TP" type="Number" width="50" headerText="Total présents" outputFormat="#" visible="true" otherFunction="sum" totalFunction="sum" totalComplement="*ROW"/>
				<COLUMN dataField="M" type="Number" width="50" selectable="true" headerText="Moy." outputFormat="#,00" visible="true" otherFunction="sum" totalFunction="sum" totalComplement="*ROW"/>
				<COLUMN dataField="MSD" type="Number" width="50" selectable="true" headerText="Moy. (sauf Dim)" outputFormat="#,00" visible="true" otherFunction="sum" totalFunction="sum" totalComplement="*ROW"/>
				<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>
