<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE 
    name="PMSI003692"
    label="PMSI. Simulation FG 2324" 
    title="= 'Simulation FG 2324 par ' +  SELECT.GROUPBY_LABEL + ' (' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL + ')'" 
    database="iCTI" 
    swf="*CTI_view1" 
    softCode="iCTI_pmsi" 
    typeEts="" 
    globals="PMSI_globals.XML" 
    componentsFile="PMSI_components.XML" 
>
    <VIEWPROPERTIES componentName="PROPERTIES_RSS"/>
    <VIEWPROPERTIES componentName="PROPERTIES_SELECT_TABTREE"/>
    <VIEWPROPERTIES>
    </VIEWPROPERTIES>
    <VIEWPROPERTIES>
        <PROPERTY name="SIMULATION_FILTERS_RAAC">
            <value><![CDATA[[EVAL 
                // <?php
                $select = '';
            
                if ('[FILTRES_RSS_RAAC]' != '-1') {
                        if ('[FILTRES_RSS_RAAC]' == '1') {
                            $select = " AND v_rss_1.ghm_id IN (SELECT oid FROM pmsi.t_ghm_c WHERE substr(code, 0, 6) IN ('04C04',
                                                                                                                                                '06C03',
                                                                                                                                                '06C04',
                                                                                                                                                '06C07',
                                                                                                                                                '06C16',
                                                                                                                                                '07C09',
                                                                                                                                                '08C24',
                                                                                                                                                '08C25',
                                                                                                                                                '08C27',
                                                                                                                                                '08C48',
                                                                                                                                                '08C52',
                                                                                                                                                '10C13',
                                                                                                                                                '11C02',
                                                                                                                                                '12C11',
                                                                                                                                                '13C03',
                                                                                                                                                '13C14',
                                                                                                                                                '13C15',
																																				'04C02',
																																				'08C22' )
                                                )";
                        }
                        if ('[FILTRES_RSS_RAAC]' == '2') {
                            $select = " AND v_rss_1.ghm_id IN (SELECT oid FROM pmsi.t_ghm_c WHERE substr(code, 0, 6) IN ('04C04',
                                                                                                                                                '06C03',
                                                                                                                                                '06C04',
                                                                                                                                                '06C07',
                                                                                                                                                '06C16',
                                                                                                                                                '07C09',
                                                                                                                                                '08C24',
                                                                                                                                                '08C25',
                                                                                                                                                '08C27',
                                                                                                                                                '08C48',
                                                                                                                                                '08C52',
                                                                                                                                                '10C13',
                                                                                                                                                '11C02',
                                                                                                                                                '12C11',
                                                                                                                                                '13C03',
                                                                                                                                                '13C14',
                                                                                                                                                '13C15',
																																				'04C02',
																																				'08C22' )
                                                )";
                            $select .= " AND v_rss_1.duree_sejour <= 2";
                            $select .= " AND v_rss_1.mode_sortie NOT IN ('6','7','9')";                            
                        }                       
                        if ('[FILTRES_RSS_RAAC]' == '3') {
                            $select = " AND p_simulation_fg2324.is_raac ilike 'is_raac%' ";
                        }                       
                }
                
                return $select;
                // ?>
            EVAL]]]></value>
        </PROPERTY>
    </VIEWPROPERTIES>      
    <SELECTIONS label="Paramètres de l'analyse" displayText="">
        <GROUP label="Période">
            <FIELD name="PERIODE" label="" UI="combo" tree="true" width="200" default="2023-03-01">
                <OPTION dataLink="DATE_DEBUT" treeLevelField="lvl" dataField="cod" aliasField="alias" data2Field="mois" labelField="txt" />
            </FIELD>
            <FIELD name="TOPERIODE" label="à" UI="combo" tree="true" width="200" default="2024-02-29" >
                <OPTION dataLink="DATE_FIN" treeLevelField="lvl" dataField="cod" aliasField="alias" data2Field="mois" labelField="txt" />
            </FIELD>
        </GROUP>
        <GROUP label="Regroupements">
            <FIELD name="GROUPBY" width="220" label="" UI="combo" default="4" tree="true">
                <OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS"/>
            </FIELD>
            <FIELD name="GROUPBY_TAB" width="100" label="Présentation" UI="combo" default="AUTO" visible="= SELECT.GROUPBY_2 != '-1' ">
                <OPTION label="Automatique" data="AUTO"/>
                <OPTION label="Arbre" data="TREE"/>
                <OPTION label="Onglet" data="TAB"/>
            </FIELD>
        </GROUP>
        <GROUP label="">
            <FIELD name="GROUPBY_2" width="220" label="" UI="combo" default="-1" tree="true">
                <OPTION label="Pas de second niveau" data="-1" treeLevel="1"/>
                <OPTION label="Options" data="" globalListProvider="RSS_GROUPBY_OPTIONS"/>
            </FIELD>
        </GROUP>
    </SELECTIONS>
    <SELECTIONS label="Paramètres de l'analyse" displayText="= var display:String = '';
                    if (SELECT.FILTRES_RSS_RAAC  != '-1') {
                        display = display + '  Raac : #B#' + SELECT.FILTRES_RSS_RAAC_LABEL + '#/B#';
                    }
                    return display;
                    "> 
        <GROUP label="Séjours RAAC">
            <FIELD name="FILTRES_RSS_RAAC" width="300" label="" UI="combo" default="-1" >
                <OPTION label="Pas de sélection" data="-1"/>
                <OPTION label="Eligibles RAAC par liste GHM" data="1"/>     
                <OPTION label="Eligibles RAAC (GHM et moins de 3 nuits et mode sortie different 6,7,9)" data="2"/>
                <OPTION label="RAAC" data="3"/>
            </FIELD>
        </GROUP>
    </SELECTIONS>    
    <SELECTIONS componentName="FILTRES_RSS_SOUSSELECTIONS"/>
    <SELECTIONS componentName="FILTRES_RSS_SELECTIONS"/>
    <QUERIES>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, v_rss_1.nb_rsa::text]),
                        
                        SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0),
                        SUM(montant_ghs_theorique_fg0),
                        SUM(montant_exb_fg0),
                        SUM(montant_exh_fg0),

                        SUM(montant_ghs_theorique_fg1 + montant_exb_fg1 + montant_exh_fg1),
                        SUM(montant_ghs_theorique_fg1),
                        SUM(montant_exb_fg1),
                        SUM(montant_exh_fg1),

                        SUM(montant_ghs_theorique_fg1 + montant_exb_fg1 + montant_exh_fg1) - SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0),
                        SUM(montant_ghs_theorique_fg1) - SUM(montant_ghs_theorique_fg0),
                        SUM(montant_exb_fg1) - SUM(montant_exb_fg0),
                        SUM(montant_exh_fg1) - SUM(montant_exh_fg0),
                        CASE WHEN SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0 ) > 0 THEN
                            (SUM(montant_ghs_theorique_fg1 + montant_exb_fg1 + montant_exh_fg1) - SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0))
                            /
                            SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0)
                            * 100
                        ELSE 0 END,
                        SUM(CASE WHEN t_ghm_fg0.code = ghm_fg1_code THEN 1 ELSE 0 END),
                        SUM(CASE WHEN t_ghm_fg0.code <> ghm_fg1_code THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) <> substr(ghm_fg1_code, 1 , 5) THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) = substr(ghm_fg1_code, 1 , 5) AND substr(t_ghm_fg0.code, 6 , 1) <> 'T' AND substr(ghm_fg1_code, 6 , 1) = 'T' THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) = substr(ghm_fg1_code, 1 , 5) AND substr(t_ghm_fg0.code, 6 , 1) <> 'T' AND substr(ghm_fg1_code, 6 , 1) <> 'T'  AND substr(ghm_fg1_code, 6 , 1) < substr(t_ghm_fg0.code, 6 , 1) THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) = substr(ghm_fg1_code, 1 , 5) AND substr(t_ghm_fg0.code, 6 , 1) <> 'T' AND substr(ghm_fg1_code, 6 , 1) <> 'T'  AND substr(ghm_fg1_code, 6 , 1) > substr(t_ghm_fg0.code, 6 , 1) THEN 1 ELSE 0 END)
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324,
                        pmsi.t_ghm t_ghm_fg0, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                    [VIEW.FILTRE_RSS_SELECT]
                    [VIEW.SELECT_TABTREE_WHERE]
                    [VIEW.SIMULATION_FILTERS_RAAC]                    
                    AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                    AND p_simulation_fg2324.ghm_fg0_id = t_ghm_fg0.oid
                    AND p_simulation_fg2324.est_envoye = '1'
                    AND p_simulation_fg2324.est_regroupe = '1'
                GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                                                            
                    <FIELD name="NBSEJ"/>
                    
                    <FIELD name="CAT12"/>
                    <FIELD name="CAG12"/>
                    <FIELD name="CAB12"/>
                    <FIELD name="CAH12"/>

                    <FIELD name="CAT13"/>
                    <FIELD name="CAG13"/>
                    <FIELD name="CAB13"/>
                    <FIELD name="CAH13"/>

                    <FIELD name="CATEC"/>
                    <FIELD name="CAGEC"/>
                    <FIELD name="CABEC"/>
                    <FIELD name="CAHEC"/>
                    <FIELD name="PCTEC"/>
                    <FIELD name="NBEQ"/>
                    <FIELD name="NBNE"/>
                    <FIELD name="NBNE5"/>
                    <FIELD name="NBTOT"/>
                    <FIELD name="NBDC"/>
                    <FIELD name="NBRC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_src_fg0),
                        SUM(montant_src_fg0),
                        SUM(nb_src_fg1),
                        SUM(montant_src_fg1),
                        SUM(nb_src_fg1) - SUM(nb_src_fg0),
                        SUM(montant_src_fg1) - SUM(montant_src_fg0),
                        CASE WHEN SUM(montant_src_fg0) > 0 THEN
                            (SUM(montant_src_fg1) - SUM(montant_src_fg0))
                            /
                            SUM(montant_src_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE 1=1
                        AND mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                        AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND (nb_src_fg0 > 0 OR nb_src_fg1 > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    DROP TABLE IF EXISTS w_ucd_197
                    ;
                    
                    CREATE TEMP TABLE w_ucd_197 AS
                        SELECT t_ucd.code as ucd_code 
                        FROM pmsi.t_listes
                            JOIN pmsi.t_listes_contenu ON t_listes_contenu.liste_id = t_listes.oid 
                            JOIN pmsi.t_listes_tables ON t_listes_tables.oid = t_listes.table_id
                            JOIN pmsi.t_ucd ON t_ucd.oid = t_listes_contenu.to_id
                        WHERE 1=1
                            AND t_listes.is_cti = '1' 
                            AND t_listes_tables.name = 't_ucd' 
                            AND t_listes.code = 'CTI_DR24_1U'
                    ;
                    
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_ucd_fg0::text]),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_emi_fg0::text]),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN ucd_code NOT IN (SELECT ucd_code FROM w_ucd_197) THEN montant_ucd_fg1 ELSE 0 END)::text]),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN ucd_code NOT IN (SELECT ucd_code FROM w_ucd_197) THEN montant_emi_fg1 ELSE 0 END)::text]),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN ucd_code NOT IN (SELECT ucd_code FROM w_ucd_197) THEN montant_ucd_fg1 ELSE 0 END)::text])
                            - base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_ucd_fg0::text]),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN ucd_code NOT IN (SELECT ucd_code FROM w_ucd_197) THEN montant_emi_fg1 ELSE 0 END)::text])
                            - base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_emi_fg0::text]),
                        CASE WHEN base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_ucd_fg0::text]) > 0 THEN
                            (base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN ucd_code NOT IN (SELECT ucd_code FROM w_ucd_197) THEN montant_ucd_fg1 ELSE 0 END)::text])
                                - base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_ucd_fg0::text])
                            )
                            /
                            base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_ucd_fg0::text])
                            * 100
                        ELSE 0 END,
                        CASE WHEN base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_emi_fg0::text]) > 0 THEN
                            (base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN ucd_code NOT IN (SELECT ucd_code FROM w_ucd_197) THEN montant_emi_fg1 ELSE 0 END)::text])
                                - base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_emi_fg0::text])
                            )
                            /
                            base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_emi_fg0::text])
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324,
                        pmsi.v_rss_ucd_1,
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE 1=1
                        AND v_rss_1.rss_id = v_rss_ucd_1.rss_id
                        AND mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                        AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND montant_ucd_fg0 > 0
                        AND v_rss_ucd_1.type_ucd_code = 'SUS'::text
                        --  A commenter dans le cas ou le PMSI n'est pas à jour pour ne pas tenir compte de cette vue.   AND v_rss_ucd_1.type_ucd_code = 'SUS'::text

                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                    ;
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="CAU12"/>
                    <FIELD name="CAE12"/>
                    <FIELD name="CAU13"/>
                    <FIELD name="CAE13"/>
                    <FIELD name="CAUEC"/>
                    <FIELD name="CAEEC"/>
                    <FIELD name="PCUEC"/>
                    <FIELD name="PCEEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    DROP TABLE IF EXISTS w_lpp_197
                    ;
                    CREATE TEMP TABLE w_lpp_197 AS
                        SELECT t_lpp.code as lpp_code 
                            FROM pmsi.t_listes
                                JOIN pmsi.t_listes_contenu ON t_listes_contenu.liste_id = t_listes.oid 
                                JOIN pmsi.t_listes_tables ON t_listes_tables.oid = t_listes.table_id
                                JOIN pmsi.t_lpp ON t_lpp.oid = t_listes_contenu.to_id
                            WHERE 1=1
                                AND t_listes.is_cti = '1' 
                                AND t_listes_tables.name = 't_lpp' 
                                AND t_listes.code = 'CTI_DR24_1L'
                    ;
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_lpp_fg0::text]),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN lpp_code NOT IN (SELECT lpp_code FROM w_lpp_197) THEN montant_lpp_fg1 ELSE 0 END)::text]),
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN lpp_code NOT IN (SELECT lpp_code FROM w_lpp_197) THEN montant_lpp_fg1 ELSE 0 END)::text]) 
                            - base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_lpp_fg0::text]),
                        CASE WHEN base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_lpp_fg0::text]) > 0 THEN
                            (
                            base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, (CASE WHEN lpp_code NOT IN (SELECT lpp_code FROM w_lpp_197) THEN montant_lpp_fg1 ELSE 0 END)::text]) 
                                - base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_lpp_fg0::text])
                            )
                            /
                            base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, montant_lpp_fg0::text])
                            * 100
                        ELSE 0 END
                    FROM 
                        (
						#V_RSS_X#
                        JOIN pmsi.p_simulation_fg2324 ON p_simulation_fg2324.rss_id = v_rss_1.rss_id
						JOIN pmsi.v_rss_lpp_1 ON v_rss_1.rss_id = v_rss_lpp_1.rss_id
						),
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE 1=1
                        AND v_rss_1.rss_id = v_rss_lpp_1.rss_id
                        AND mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                        AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND montant_lpp_fg0 > 0
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="CAL12"/>
                    <!--<FIELD name="CAE11"/>-->
                    <FIELD name="CAL13"/>
                    <!--<FIELD name="CAE12"/>-->
                    <FIELD name="CALEC"/>
                    <!--<FIELD name="CAEEC"/>-->
                    <FIELD name="PCLEC"/>
                    <!--<FIELD name="PCEEC"/>-->
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_stf_fg0),
                        SUM(montant_stf_fg0),
                        SUM(nb_stf_fg1),
                        SUM(montant_stf_fg1),
                        SUM(nb_stf_fg1) - SUM(nb_stf_fg0),
                        SUM(montant_stf_fg1) - SUM(montant_stf_fg0),
                        CASE WHEN SUM(montant_stf_fg0) > 0 THEN
                            (SUM(montant_stf_fg1) - SUM(montant_stf_fg0))
                            /
                            SUM(montant_stf_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE 1=1
                        AND mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                        AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND (nb_stf_fg0 > 0 OR nb_stf_fg1 > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_rea_fg0),
                        SUM(montant_rea_fg0),
                        SUM(nb_rea_fg1),
                        SUM(montant_rea_fg1),
                        SUM(nb_rea_fg1) - SUM(nb_rea_fg0),
                        SUM(montant_rea_fg1) - SUM(montant_rea_fg0),
                        CASE WHEN SUM(montant_rea_fg0) > 0 THEN
                            (SUM(montant_rea_fg1) - SUM(montant_rea_fg0))
                            /
                            SUM(montant_rea_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                    AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND (nb_rea_fg0 > 0 OR nb_rea_fg1 > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        COUNT(DISTINCT CASE WHEN montant_exb_fg0 <> 0 THEN v_rss_1.rss_id ELSE NULL END),
                        SUM(montant_exb_fg0),
                        COUNT(DISTINCT CASE WHEN montant_exb_fg1 <> 0 THEN v_rss_1.rss_id ELSE NULL END),
                        SUM(montant_exb_fg1),
                        COUNT(DISTINCT CASE WHEN montant_exb_fg1 <> 0 THEN v_rss_1.rss_id ELSE NULL END) - COUNT(DISTINCT CASE WHEN montant_exb_fg0 <> 0 THEN v_rss_1.rss_id ELSE NULL END),
                        SUM(montant_exb_fg1) - SUM(montant_exb_fg0),
                        CASE WHEN SUM(montant_exb_fg0) > 0 THEN
                            (SUM(montant_exb_fg1) - SUM(montant_exb_fg0))
                            /
                            SUM(montant_exb_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE 1=1
                        AND mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                        AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND (montant_exb_fg0 <> 0 OR montant_exb_fg1 <> 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_exh_fg0),
                        SUM(montant_exh_fg0),
                        SUM(nb_exh_fg1),
                        SUM(montant_exh_fg1),
                        SUM(nb_exh_fg1) - SUM(nb_exh_fg0),
                        SUM(montant_exh_fg1) - SUM(montant_exh_fg0),
                        CASE WHEN SUM(montant_exh_fg0) > 0 THEN
                            (SUM(montant_exh_fg1) - SUM(montant_exh_fg0))
                            /
                            SUM(montant_exh_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE 1=1
                        AND mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                        AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND (nb_exh_fg0 > 0 OR nb_exh_fg1 > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_ant_fg0),
                        SUM(montant_ant_fg0),
                        SUM(nb_ant_fg1),
                        SUM(montant_ant_fg1),
                        SUM(nb_ant_fg1) - SUM(nb_ant_fg0),
                        SUM(montant_ant_fg1) - SUM(montant_ant_fg0),
                        CASE WHEN SUM(montant_ant_fg0) > 0 THEN
                            (SUM(montant_ant_fg1) - SUM(montant_ant_fg0))
                            /
                            SUM(montant_ant_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                    AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND (nb_ant_fg0 > 0 OR nb_ant_fg1 > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]>
                </select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="RAP">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_rap_fg0),
                        SUM(montant_rap_fg0),
                        SUM(nb_rap_fg1),
                        SUM(montant_rap_fg1),
                        SUM(nb_rap_fg1) - SUM(nb_rap_fg0),
                        SUM(montant_rap_fg1) - SUM(montant_rap_fg0),
                        CASE WHEN SUM(montant_rap_fg0) > 0 THEN
                            (SUM(montant_rap_fg1) - SUM(montant_rap_fg0))
                            /
                            SUM(montant_rap_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                    AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND (nb_rap_fg0 > 0 OR nb_rap_fg1 > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="NN1">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_nn1_fg0 + nb_nn2_fg0 + nb_nn3_fg0),
                        SUM(montant_nn1_fg0 + montant_nn2_fg0 + montant_nn3_fg0),
                        SUM(nb_nn1_fg1 + nb_nn2_fg1 + nb_nn3_fg1),
                        SUM(montant_nn1_fg1 + montant_nn2_fg1 + montant_nn3_fg1),
                        SUM(nb_nn1_fg1 + nb_nn2_fg1 + nb_nn3_fg1) - SUM(nb_nn1_fg0 + nb_nn2_fg0 + nb_nn3_fg0),
                        SUM(montant_nn1_fg1 + montant_nn2_fg1 + montant_nn3_fg1) - SUM(montant_nn1_fg0 + montant_nn2_fg0 + montant_nn3_fg0),
                        CASE WHEN SUM(montant_nn1_fg0 + montant_nn2_fg0 + montant_nn3_fg0) > 0 THEN
                            (SUM(montant_nn1_fg1 + montant_nn2_fg1 + montant_nn3_fg1) - SUM(montant_nn1_fg0 + montant_nn2_fg0 + montant_nn3_fg0))
                            /
                            SUM(montant_nn1_fg0 + montant_nn2_fg0 + montant_nn3_fg0)
                            * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                    AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND ((nb_nn1_fg0 + nb_nn2_fg0 + nb_nn3_fg0) > 0 OR (nb_nn1_fg1 + nb_nn2_fg1 + nb_nn3_fg1) > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="Supplément SDC">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_sdc_fg0),
                        SUM(montant_sdc_fg0), 
                        SUM(nb_sdc_fg1),
                        SUM(montant_sdc_fg1),
                        SUM(nb_sdc_fg1) - 0,
                        SUM(montant_sdc_fg1 ) - SUM(montant_sdc_fg0 ),
                        CASE WHEN SUM(montant_sdc_fg0) > 0 THEN
                            base.cti_division( (SUM(montant_sdc_fg1) - SUM(montant_sdc_fg0)) , SUM(montant_sdc_fg0) ) * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                    AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND ((nb_sdc_fg0) > 0 OR (nb_sdc_fg1) > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="TDE">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_tde_fg0), 
                        SUM(montant_tde_fg0), 
                        SUM(nb_tde_fg1),
                        SUM(montant_tde_fg1),
                        SUM(nb_tde_fg1) - 0,
                        SUM(montant_tde_fg1 ) - SUM(montant_tde_fg0 ),
                        CASE WHEN SUM(montant_tde_fg0) > 0 THEN
                            base.cti_division( (SUM(montant_tde_fg1) - SUM(montant_tde_fg0)) , SUM(montant_tde_fg0) ) * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                    AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND ((nb_tde_fg0) > 0 OR (nb_tde_fg1) > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="TSE">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        COUNT(DISTINCT v_rss_1.rss_id),
                        SUM(nb_tse_fg0), 
                        SUM(montant_tse_fg0), 
                        SUM(nb_tse_fg1),
                        SUM(montant_tse_fg1),
                        SUM(nb_tse_fg1) - 0,
                        SUM(montant_tse_fg1 ) - SUM(montant_tse_fg0 ),
                        CASE WHEN SUM(montant_tse_fg0) > 0 THEN
                            base.cti_division( (SUM(montant_tse_fg1) - SUM(montant_tse_fg0)) , SUM(montant_tse_fg0) ) * 100
                        ELSE 0 END
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324, 
                        [VIEW.SELECT_TABTREE_VIEW]
                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) 
                    AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                        [VIEW.FILTRE_RSS_SELECT]
                        [VIEW.SELECT_TABTREE_WHERE]
                        [VIEW.SIMULATION_FILTERS_RAAC]                        
                        AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                        AND p_simulation_fg2324.est_envoye = '1'
                        AND p_simulation_fg2324.est_regroupe = '1'
                        AND ((nb_tse_fg0) > 0 OR (nb_tse_fg1) > 0)
                    GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                    ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                    <FIELD name="NBSEJ"/>
                    <FIELD name="NB12"/>
                    <FIELD name="CA12"/>
                    <FIELD name="NB13"/>
                    <FIELD name="CA13"/>
                    <FIELD name="NBEC"/>
                    <FIELD name="CAEC"/>
                    <FIELD name="PCEC"/>
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY label="RAAC">
            <SQL optimizer="V_RSS_X" cacheEnabled="false">
                <select><![CDATA[
                    SELECT 
                        [VIEW.SELECT_TABTREE_COLUMNS],
                        
                        base.cti_sum_distinct_on(DISTINCT ARRAY[v_rss_1.rss_id::text, v_rss_1.nb_rsa::text]),
                        
                        SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0),
                        SUM(montant_ghs_theorique_fg0),
                        SUM(montant_exb_fg0),
                        SUM(montant_exh_fg0),

                        SUM(montant_ghs_theorique_fg1 + montant_exb_fg1 + montant_exh_fg1),
                        SUM(montant_ghs_theorique_fg1),
                        SUM(montant_exb_fg1),
                        SUM(montant_exh_fg1),

                        SUM(montant_ghs_theorique_fg1 + montant_exb_fg1 + montant_exh_fg1) - SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0),
                        SUM(montant_ghs_theorique_fg1) - SUM(montant_ghs_theorique_fg0),
                        SUM(montant_exb_fg1) - SUM(montant_exb_fg0),
                        SUM(montant_exh_fg1) - SUM(montant_exh_fg0),
                        CASE WHEN SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0 ) > 0 THEN
                            (SUM(montant_ghs_theorique_fg1 + montant_exb_fg1 + montant_exh_fg1) - SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0))
                            /
                            SUM(montant_ghs_theorique_fg0 + montant_exb_fg0 + montant_exh_fg0)
                            * 100
                        ELSE 0 END,
                        SUM(CASE WHEN t_ghm_fg0.code = ghm_fg1_code THEN 1 ELSE 0 END),
                        SUM(CASE WHEN t_ghm_fg0.code <> ghm_fg1_code THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) <> substr(ghm_fg1_code, 1 , 5) THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) = substr(ghm_fg1_code, 1 , 5) AND substr(t_ghm_fg0.code, 6 , 1) <> 'T' AND substr(ghm_fg1_code, 6 , 1) = 'T' THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) = substr(ghm_fg1_code, 1 , 5) AND substr(t_ghm_fg0.code, 6 , 1) <> 'T' AND substr(ghm_fg1_code, 6 , 1) <> 'T'  AND substr(ghm_fg1_code, 6 , 1) < substr(t_ghm_fg0.code, 6 , 1) THEN 1 ELSE 0 END),
                        SUM(CASE WHEN substr(t_ghm_fg0.code, 1 , 5) = substr(ghm_fg1_code, 1 , 5) AND substr(t_ghm_fg0.code, 6 , 1) <> 'T' AND substr(ghm_fg1_code, 6 , 1) <> 'T'  AND substr(ghm_fg1_code, 6 , 1) > substr(t_ghm_fg0.code, 6 , 1) THEN 1 ELSE 0 END)
                    FROM 
                        #V_RSS_X#, 
                        pmsi.p_simulation_fg2324,
                        pmsi.t_ghm t_ghm_fg0, 
                        [VIEW.SELECT_TABTREE_VIEW]

                    WHERE mois_sortie IN ([VIEW.PERIODE_MOIS_LIST]) AND date_sortie BETWEEN '[PERIODE]' AND '[TOPERIODE]'
                    [VIEW.FILTRE_RSS_SELECT]
                    [VIEW.SELECT_TABTREE_WHERE]
                    [VIEW.SIMULATION_FILTERS_RAAC]                                            
                    AND p_simulation_fg2324.rss_id = v_rss_1.rss_id
                    AND p_simulation_fg2324.ghm_fg0_id = t_ghm_fg0.oid
                    AND p_simulation_fg2324.est_envoye = '2'
                    AND p_simulation_fg2324.est_regroupe = '2'
                    AND p_simulation_fg2324.is_raac = 'is_raac_severite_augmentee'                    
                GROUP BY 1,2,3,4,5,6,7,8,9,10,11
                ORDER BY 2,5,7
                ]]></select>
                <FIELDS>
                    <FIELD name="TABD"/>
                    <FIELD name="TABDL"/>
                    <FIELD name="TABDLL"/>
                    <FIELD name="OID1"/>
                    <FIELD name="COD1"/>
                    <FIELD name="OID2"/>
                    <FIELD name="COD2"/>
                    <FIELD name="OID"/>
                    <FIELD name="COD"/>
                    <FIELD name="TXT"/>
                    <FIELD name="LVL"/>
                                                            
                    <FIELD name="NBSEJ"/>
                    
                    <FIELD name="CAT12"/>
                    <FIELD name="CAG12"/>
                    <FIELD name="CAB12"/>
                    <FIELD name="CAH12"/>

                    <FIELD name="CAT13"/>
                    <FIELD name="CAG13"/>
                    <FIELD name="CAB13"/>
                    <FIELD name="CAH13"/>

                    <FIELD name="CATEC"/>
                    <FIELD name="CAGEC"/>
                    <FIELD name="CABEC"/>
                    <FIELD name="CAHEC"/>
                    <FIELD name="PCTEC"/>
                    <FIELD name="NBEQ"/>
                    <FIELD name="NBNE"/>
                    <FIELD name="NBNE5"/>
                    <FIELD name="NBTOT"/>
                    <FIELD name="NBDC"/>
                    <FIELD name="NBRC"/>
                </FIELDS>
            </SQL>
        </QUERY>        
        <QUERY type="comboLink" name="DATE_DEBUT" > 
            <SQL select="SELECT date, alias, texte, mois, level 
				FROM pmsi.v_calendrier_1 
				WHERE date_part('year',date) IN (SELECT annee_sortie FROM pmsi.p_simulation_fg2324 WHERE est_envoye &lt;&gt; '0' GROUP BY 1)" >
                <FIELDS>
                    <FIELD name="cod" />
                    <FIELD name="alias" />
                    <FIELD name="txt" />
                    <FIELD name="mois" />
                    <FIELD name="lvl" />
                </FIELDS>
            </SQL>
        </QUERY>
        <QUERY type="comboLink" name="DATE_FIN" > 
            <SQL select="SELECT date, alias, texte, mois, level 
				FROM pmsi.v_calendrier_2 
				WHERE date_part('year',date) IN (SELECT annee_sortie FROM pmsi.p_simulation_fg2324 WHERE est_envoye &lt;&gt; '0' GROUP BY 1)" >
                <FIELDS>
                    <FIELD name="cod" />
                    <FIELD name="alias" />
                    <FIELD name="txt" />
                    <FIELD name="mois" />
                    <FIELD name="lvl" />
                </FIELDS>
            </SQL>
        </QUERY>
    </QUERIES>
    <PRESENTATION>
        <VIEWLINKS>
            <VIEWLINK label="Justificatif GHS par RSS" shortLabel="Justificatif GHM" visible="= (TAB == 0) || (TAB == 3)" view="PMSI000505.XML" componentName="RSS_BASE_VIEWLINK">
                <ARG name="TYPREG" value="return '-1'"  />
                <ARG name="ECART" value="return ''"  />
            </VIEWLINK>
            <VIEWLINK label="Justificatif EXB-EXH par RSS" shortLabel="Justificatif EXB-EXH" visible="= (TAB == 1) || (TAB == 2)" view="PMSI000506.XML" componentName="RSS_BASE_VIEWLINK">
                <ARG name="TYPREG" value="return '-1'"  />
                <ARG name="ECART" value="return ''"  />
            </VIEWLINK>
            <VIEWLINK label="Justificatif Suppléments par RSS" shortLabel="Justificatif Suppléments" visible="= (TAB == 4) || (TAB == 5) || (TAB == 6) || (TAB == 7) || (TAB == 8) || (TAB == 9)|| (TAB == 12) || (TAB == 13) || (TAB == 14)" view="PMSI000507.XML" componentName="RSS_BASE_VIEWLINK">
                <ARG name="TYPREG" value="return '-1'"  />
                <ARG name="ECART" value="return ''"  />
            </VIEWLINK>
            <VIEWLINK label="Justificatif UCD-EMI par RSS" shortLabel="Justificatif UCD-EMI" visible="= TAB == 10" view="PMSI000509.XML" componentName="RSS_BASE_VIEWLINK">
                <ARG name="TYPREG" value="return '-1'"  />
                <ARG name="ECART" value="return ''"  />
            </VIEWLINK>
            <VIEWLINK label="Justificatif LPP par RSS" shortLabel="Justificatif LPP" visible="= TAB == 11" view="PMSI000600.XML" componentName="RSS_BASE_VIEWLINK">
                <ARG name="TYPREG" value="return '-1'"  />
                <ARG name="ECART" value="return ''"  />
            </VIEWLINK>          
        </VIEWLINKS>
        <ONGLET excelLabel="GHS" label="GHS-EXH" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true"
                sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text">
                </COLUMN>
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <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" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours regroupés" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAT12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 CA Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAG12" width="80" type="Number" outputFormat="#" headerText="FG 2023 CA GHS" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>                
                <COLUMN dataField="CAB12" width="80" type="Number" outputFormat="#" headerText="FG 2023 CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAH12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAT13" width="80" type="Number" outputFormat="#" headerText="FG 2024 CA Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAG13" width="80" type="Number" outputFormat="#" headerText="FG 2024 CA GHS" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAB13" width="80" type="Number" outputFormat="#" headerText="FG 2024 CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAH13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CATEC" width="80" type="Number" outputFormat="#" headerText="Ecart Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="PCTEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="EXB" label="EXB" multiTab="true" queryNumber="6" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="EXH" label="EXH" multiTab="true" queryNumber="7" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="Sévérités" label="Sévérités" queryNumber="0" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="72" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text">
                </COLUMN>
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <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" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours regroupés" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NBNE5" width="80" type="Number" fixed="false" outputFormat="#" headerText="Nb racine différente" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NBTOT" width="80" type="Number" fixed="false" outputFormat="#" headerText="Nb vers Très court Séjour" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NBDC" width="80" type="Number" fixed="false" outputFormat="#" headerText="Nb vers sévérité inférieure" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NBRC" width="80" type="Number" fixed="false" outputFormat="#" headerText="Nb vers sévérité supérieure" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="SRC" label="SRC" multiTab="true" queryNumber="1" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb SRC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA SRC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb SRC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>              
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA SRC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA SRC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA SRC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="STF" label="STF" multiTab="true" queryNumber="4" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb STF" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA STF" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb STF" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA STF" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA STF" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA STF" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="REA" label="REA" multiTab="true" queryNumber="5" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb REA" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA REA" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb REA" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA REA" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA REA" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA REA" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="NNX" label="NNX" multiTab="true" queryNumber="10" multiTabBrapkField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb NNX" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA NNX" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb NNX" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA NNX" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA NNX" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA NNX" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="ANT" label="ANT" multiTab="true" queryNumber="8" multiTabBantkField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb ANT" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA ANT" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb ANT" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA ANT" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA ANT" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA ANT" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="RAP" label="RAP" multiTab="true" queryNumber="9" multiTabBrapkField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb RAP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA RAP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb RAP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA RAP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA RAP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA RAP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="UCD-EMI" label="UCD-EMI" multiTab="true" queryNumber="2" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="CAU12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 CA UCD" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAU13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 CA UCD" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAUEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA UCD" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCUEC" width="60" type="Number" largeSeparator="true" outputFormat="#,0%"  headerText="% Ecart CA UCD" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="CAE12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 CA EMI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAE13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 CA EMI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA EMI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEEC" width="60" type="Number" outputFormat="#,0%"  headerText="% Ecart CA EMI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="LPP" label="LPP" multiTab="true" queryNumber="3" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="CAL12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 CA LPP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAL13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2324 CA LPP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CALEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA LPP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCLEC" width="60" type="Number" largeSeparator="true" outputFormat="#,0%"  headerText="% Ecart CA LPP" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <!--
                <COLUMN dataField="CAE12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 CA ETI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="CAE13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2324 CA ETI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="CAEEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA ETI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEEC" width="60" type="Number" outputFormat="#,0%"  headerText="% Ecart CA ETI" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                -->
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="SDC" label="SDC" multiTab="true" queryNumber="11" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb SDC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA SDC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb SDC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>              
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA SDC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA SDC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA SDC" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="TDE" label="TDE" multiTab="true" queryNumber="12" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb TDE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA TDE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb TDE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>              
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA TDE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA TDE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA TDE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="TSE" label="TSE" multiTab="true" queryNumber="13" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" />
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid" />
                <COLUMN dataField="COD" width="70" type="Char" visible="true" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours concernés" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="NB12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 Nb TSE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CA12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA TSE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="NB13" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2024 Nb TSE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>              
                </COLUMN>
                <COLUMN dataField="CA13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA TSE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAEC" width="80" type="Number" outputFormat="#" headerText="Ecart CA TSE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
                <COLUMN dataField="PCEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart CA TSE" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum" />
            </DATAGRID>
        </ONGLET>
        <ONGLET excelLabel="RAAC" label="Projection RAAC" multiTab="true" multiTabBreakField="TABD" multiTabBreakLabelField="TABDL" multiTabBreakLonglabelField="TABDLL" queryNumber="14">
            <DATAGRID title="" total="true" showOthers="true" headerHeight="54" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'" variableRowHeight="true"
                sortable="= SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB'">
                <ROWSTYLE name="fontSize" value="11"/>
                <FOOTERROWSTYLE name="fontSize" value="11"/>
                <ROWSTYLE name="rowHeight" value="20" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="backgroundColor" value="0xFFD393" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="fontWeight" value="bold" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderSides" value="top bottom" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderStyle" value="solid" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <ROWSTYLE name="borderThickness" value="2" condition="ROW.LVL == '1' &amp;&amp; SELECT.GROUPBY_2 != '-1' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                <COLUMN dataField="LVL" width="50" type="Char" visible="false" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text">
                </COLUMN>
                <COLUMN dataField="OID1" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD1" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="OID2" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <COLUMN dataField="COD2" width="60" type="Char" visible="false" headerText="Oid">
                </COLUMN>
                <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" totalComplement="TOTAL">
                    <CELLSTYLE name="fontSize" value="11"/>
                    <CELLSTYLE name="paddingLeft" value="15" condition="ROW.LVL == '2' &amp;&amp; SELECT.GROUPBY_TAB != 'TAB'"/>
                </COLUMN>
                <COLUMN dataField="TXT" type="Char" minWidth="200" headerText="Texte" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="Autres">
                    <CELLSTYLE name="fontSize" value="11"/>
                </COLUMN>
                <COLUMN dataField="NBSEJ" width="60" type="Number" outputFormat="#" headerText="Nb Séjours regroupés" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAT12" width="80" type="Number" fixed="false" outputFormat="#" headerText="FG 2023 CA Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAG12" width="80" type="Number" outputFormat="#" headerText="FG 2023 CA GHS" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>                
                <COLUMN dataField="CAB12" width="80" type="Number" outputFormat="#" headerText="FG 2023 CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAH12" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2023 CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="CAT13" width="80" type="Number" outputFormat="#" headerText="FG 2024 CA Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAG13" width="80" type="Number" outputFormat="#" headerText="FG 2024 CA GHS" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAB13" width="80" type="Number" outputFormat="#" headerText="FG 2024 CA EXB" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CAH13" width="80" type="Number" outputFormat="#" largeSeparator="true" headerText="FG 2024 CA EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                    <HEADERCELLSTYLE name="color" value="0xff5001"/>
                    <CELLSTYLE name="color" value="0xff5001"/>
                </COLUMN>
                <COLUMN dataField="CATEC" width="80" type="Number" outputFormat="#" headerText="Ecart Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
                <COLUMN dataField="PCTEC" width="60" type="Number" outputFormat="#,0%" headerText="% Ecart Total GHS-EXH" visible="true" textAlign="right" totalFunction="sum" otherFunction="sum">
                </COLUMN>
            </DATAGRID>
        </ONGLET>              
    </PRESENTATION>
</VUE>