|
|
<?xml version="1.0" encoding="ISO-8859-15"?>
|
|
|
<VUE name="RH000028"
|
|
|
label="RH. Evolution mensuelle des Indicateurs de planning"
|
|
|
title="= SELECT.DATA_LABEL + ' par ' + SELECT.GROUPBY_LABEL + ' de ' + SELECT.PERIODE_LABEL + ' à ' + SELECT.TOPERIODE_LABEL "
|
|
|
database="iCTI"
|
|
|
swf="*CTI_view1"
|
|
|
globals="RH_globals.XML"
|
|
|
dboptimizer="RH_dboptimizer.XML"
|
|
|
componentsFile="RH_components.XML"
|
|
|
softCode="iCTI_rh">
|
|
|
|
|
|
<VIEWPROPERTIES componentName="PROPERTIES_PLANNING"/>
|
|
|
<VIEWPROPERTIES componentName="PROPERTIES_GROUPBY"/>
|
|
|
<VIEWPROPERTIES>
|
|
|
<PROPERTY name="DATAFUNC">
|
|
|
<value><![CDATA[[EVAL
|
|
|
// <?php
|
|
|
|
|
|
function RH000027_calcSQL($data) {
|
|
|
$ctiDivision = "base.cti_division(%s, %s)";
|
|
|
$columnCheckSequence = "(CASE WHEN COLUMNCHECKSEQUENCE %s THEN %s ELSE null END)";
|
|
|
$countDistinctCaseWhen = "count(DISTINCT CASE WHEN 1=1 %s THEN %s ELSE null END)";
|
|
|
$sumDistinctCaseWhen = "sum(CASE WHEN 1=1 %s THEN %s ELSE 0 END)";
|
|
|
$sumDistinctOn = "base.cti_sum_distinct_on(DISTINCT ARRAY[%s::numeric, %s::numeric])";
|
|
|
$sumDistinctOnCaseWhen = "base.cti_sum_distinct_on(DISTINCT ARRAY[%s::numeric, (CASE WHEN 1=1 %s THEN %s ELSE 0 END)::numeric])";
|
|
|
|
|
|
switch ($data) {
|
|
|
case 'NSAL':
|
|
|
$tmp1 = 'count(DISTINCT v_rh_view_1.salarie_id)';
|
|
|
$tmp2 = sprintf($countDistinctCaseWhen, "AND COLUMNCHECKSEQUENCE", 'salarie_id');
|
|
|
break;
|
|
|
|
|
|
case 'HRDU':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_du)';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_du ELSE 0 END)';
|
|
|
break;
|
|
|
case 'ETDU':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_du)/151.67';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_du ELSE 0 END)/151.67';
|
|
|
break;
|
|
|
|
|
|
case 'HRDUA':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_du_ajuste)';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_du_ajuste ELSE 0 END)';
|
|
|
break;
|
|
|
|
|
|
case 'HRVAL':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_valide)';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_valide ELSE 0 END)';
|
|
|
break;
|
|
|
case 'ETVAL':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_valide)/151.67';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_valide ELSE 0 END)/151.67';
|
|
|
break;
|
|
|
|
|
|
case 'HRPRE':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_presence)';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_presence ELSE 0 END)';
|
|
|
break;
|
|
|
case 'ETPRE':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_presence)/151.67';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_presence ELSE 0 END)/151.67';
|
|
|
break;
|
|
|
|
|
|
case 'HRABS':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_absence)';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_absence ELSE 0 END)';
|
|
|
break;
|
|
|
case 'ETABS':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_absence)/151.67';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_absence ELSE 0 END)/151.67';
|
|
|
break;
|
|
|
case 'TXABS':
|
|
|
$tmp1 = 'sum(v_rh_view_1.temps_absence)';
|
|
|
$tmp2 = 'sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_absence ELSE 0 END)';
|
|
|
break;
|
|
|
|
|
|
default :
|
|
|
$tmp1 = 'null';
|
|
|
$tmp2 = 'null';
|
|
|
}
|
|
|
return array($tmp1, $tmp2);
|
|
|
}
|
|
|
|
|
|
// ?>
|
|
|
EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATASQL">
|
|
|
<value><![CDATA[[EVAL
|
|
|
// <?php
|
|
|
|
|
|
$indicators = "INDICATORS{%s,}";
|
|
|
$indicatorsColumns = "INDICATORS_COLUMNS{%s,}";
|
|
|
|
|
|
$tmp = RH000027_calcSQL('[DATA]');
|
|
|
|
|
|
return sprintf($indicators, $tmp[0]) . PHP_EOL . sprintf($indicatorsColumns, $tmp[1]);
|
|
|
|
|
|
// ?>
|
|
|
EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
<PROPERTY name="DATACOLUMN">
|
|
|
<value><![CDATA[[EVAL
|
|
|
// <?php
|
|
|
|
|
|
$tmp = RH000027_calcSQL('[DATA]');
|
|
|
return $tmp[0];
|
|
|
|
|
|
// ?>
|
|
|
EVAL]]]></value>
|
|
|
</PROPERTY>
|
|
|
</VIEWPROPERTIES>
|
|
|
<SELECTIONS label="Paramètres de l'analyse" displayText="">
|
|
|
<GROUP label="Période">
|
|
|
<FIELD name="ALIAS_PERIODE" label="" UI="combo" width="220" default="CUM_LAST_MONTH" tree="true" globalListProvider="ALIAS_PERIODE" />
|
|
|
<FIELD name="PERIODE" label="" UI="combo" tree="true" width="200" default="2010-01-01" globalListProvider="PERIODE_DEBUT_JOUR">
|
|
|
</FIELD>
|
|
|
<FIELD name="TOPERIODE" label="au" UI="combo" tree="true" width="200" default="2010-01-31" globalListProvider="PERIODE_FIN_JOUR">
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="PERIODICITE" label="Périodicité" width="200" UI="combo" default="MONTH">
|
|
|
<OPTION label="Journalière" data="DAY" />
|
|
|
<OPTION label="Hebdomadaire" data="WEEK2" aliasData="H" />
|
|
|
<OPTION label="Mensuelle" data="MONTH" />
|
|
|
<OPTION label="Trimestrielle" data="QUARTER" />
|
|
|
<OPTION label="Annuelle" data="YEAR" />
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP>
|
|
|
<FIELD name="DATA" label="Donnée" UI="combo" default="HRVAL">
|
|
|
<OPTION label="Nb [DICT.RH.SALARIE#4]" data="NSAL" data2="#" data3="#"/>
|
|
|
<OPTIONx label="Temps présence (ETP)" data="ETPRE" data2="#,0" data3="#,0"/>
|
|
|
<OPTION label="Temps présence (H)" data="HRPRE" data2="#,0h" data3="#,0h"/>
|
|
|
<OPTIONx label="Temps du (ETP)" data="ETDU" data2="#,0" data3="#,0"/>
|
|
|
<OPTION label="Temps du (H)" data="HRDU" data2="#,0h" data3="#,0h"/>
|
|
|
<OPTIONx label="Temps du ajusté (H)" data="HRDUAA" data2="#,0h" data3="#h"/>
|
|
|
<OPTIONx label="Temps validé (ETP)" data="ETVAL" data2="#,0" data3="#,0"/>
|
|
|
<OPTION label="Temps validé (H)" data="HRVAL" data2="#,0h" data3="#h"/>
|
|
|
<OPTIONx label="Absences (ETP)" data="ETABS" data2="#,0" data3="#,0"/>
|
|
|
<OPTION label="Absences (H)" data="HRABS" data2="#,0h" data3="#h"/>
|
|
|
<OPTION label="Taux Absences (%)" data="TXABS" data2="#,0%" data3="#,0%"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="Regroupement">
|
|
|
<FIELD name="GROUPBY" label="" UI="combo" width="200" default="SAL" tree="true" >
|
|
|
<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
|
|
|
<OPTION label="Planning" data="PLA" treeLevel="1" globalListProvider="PLANNING_GROUPBY"/>
|
|
|
<OPTION label="[DICT.RH.SALARIE#1]" data="SAL" treeLevel="1" globalListProvider="SALARIE_GROUPBY"/>
|
|
|
<OPTION label="[DICT.RH.CONTRAT#1]" data="CNT" treeLevel="1" globalListProvider="CONTRAT_GROUPBY"/>
|
|
|
<OPTION label="Temporel" data="MOIACT" treeLevel="1" globalListProvider="TEMPOREL_PLANNING_GROUPBY"/>
|
|
|
<OPTION label="Référentiel SAE" data="REFERENTIEL_SAE" treeLevel="1" globalListProvider="REFERENTIEL_SAE_GROUPBY"/>
|
|
|
</FIELD>
|
|
|
<FIELD name="GROUPBY_TAB" width="100" label="Présentation" UI="combo" default="AUTO" visible="= SELECT.GROUPBY_2 != '-1' ">
|
|
|
<OPTION label="Automatique" data="AUTO"/>
|
|
|
<OPTION label="Arbre" data="TREE"/>
|
|
|
<OPTION label="Onglet" data="TAB"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="GROUPBY_2" label="" width="200" UI="combo" default="-1" tree="true" >
|
|
|
<OPTION label="Pas de second niveau" data="-1"/>
|
|
|
<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
|
|
|
<OPTION label="Planning" data="PLA" treeLevel="1" globalListProvider="PLANNING_GROUPBY"/>
|
|
|
<OPTION label="[DICT.RH.SALARIE#1]" data="SAL" treeLevel="1" globalListProvider="SALARIE_GROUPBY"/>
|
|
|
<OPTION label="[DICT.RH.CONTRAT#1]" data="CNT" treeLevel="1" globalListProvider="CONTRAT_GROUPBY"/>
|
|
|
<OPTION label="Temporel" data="MOIACT" treeLevel="1" globalListProvider="TEMPOREL_PLANNING_GROUPBY"/>
|
|
|
<OPTION label="Référentiel SAE" data="REFERENTIEL_SAE" treeLevel="1" globalListProvider="REFERENTIEL_SAE_GROUPBY"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
<GROUP label="">
|
|
|
<FIELD name="GROUPBY_3" label="" width="200" UI="combo" default="-1" tree="true" >
|
|
|
<OPTION label="Pas de troisième niveau" data="-1"/>
|
|
|
<OPTION label="Entreprise" data="ENT" treeLevel="1" globalListProvider="ENTREPRISE_GROUPBY"/>
|
|
|
<OPTION label="Planning" data="PLA" treeLevel="1" globalListProvider="PLANNING_GROUPBY"/>
|
|
|
<OPTION label="[DICT.RH.SALARIE#1]" data="SAL" treeLevel="1" globalListProvider="SALARIE_GROUPBY"/>
|
|
|
<OPTION label="[DICT.RH.CONTRAT#1]" data="CNT" treeLevel="1" globalListProvider="CONTRAT_GROUPBY"/>
|
|
|
<OPTION label="Temporel" data="MOIACT" treeLevel="1" globalListProvider="TEMPOREL_PLANNING_GROUPBY"/>
|
|
|
<OPTION label="Référentiel SAE" data="REFERENTIEL_SAE" treeLevel="1" globalListProvider="REFERENTIEL_SAE_GROUPBY"/>
|
|
|
</FIELD>
|
|
|
</GROUP>
|
|
|
</SELECTIONS>
|
|
|
<SELECTIONS componentName="FILTRES_SALCNT_SOUSSELECTIONS"/>
|
|
|
<SELECTIONS componentName="FILTRES_PLANNING_SELECTIONS"/>
|
|
|
<SELECTIONS componentName="FILTRES_SALARIES_SELECTIONS"/>
|
|
|
<SELECTIONS componentName="FILTRES_CONTRATS_SELECTIONS"/>
|
|
|
<SELECTIONS componentName="FILTRES_REFERENTIEL_SAE_SELECTIONS"/>
|
|
|
<QUERIES>
|
|
|
<QUERY label="">
|
|
|
<SQL optimizer="V_PLA_X" optimizer2="V_ALL_X">
|
|
|
<select><![CDATA[
|
|
|
|
|
|
CTIPREPAR_TREE
|
|
|
WORKTABLE{rh000028_du}
|
|
|
GROUPBY1{[VIEW.GROUPBY_OID_FIELD_DU],, [VIEW.GROUPBY_COD_FIELD_DU],, [VIEW.GROUPBY_TXT_FIELD_DU]}
|
|
|
GROUPBY1MODE{[GROUPBY_TAB]}
|
|
|
GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD_DU],, [VIEW.GROUPBY_2_COD_FIELD_DU],, [VIEW.GROUPBY_2_TXT_FIELD_DU]}
|
|
|
GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD_DU],, [VIEW.GROUPBY_3_COD_FIELD_DU],, [VIEW.GROUPBY_3_TXT_FIELD_DU]}
|
|
|
COLUMNBY[PERIODICITE]{v_rh_view_1.date_fin_activite,, '[PERIODE]' ,, '[TOPERIODE]' ,, 31,, [VIEW.COLUMN_OPTION]}
|
|
|
INDICATORS{SUM(v_rh_view_1.temps_du),,}
|
|
|
INDICATORS_COLUMNS{sum(CASE WHEN COLUMNCHECKSEQUENCE THEN v_rh_view_1.temps_du ELSE 0 END),, }
|
|
|
FROM #V_PLA_X##V_ALL_X#
|
|
|
WHERE v_rh_view_1.date_fin_activite BETWEEN '[PERIODE]' AND '[TOPERIODE]'
|
|
|
[VIEW.SALARIES_SELECT]
|
|
|
[VIEW.CONTRATS_SELECT]
|
|
|
[VIEW.REFERENTIEL_SAE_SELECT]
|
|
|
[VIEW.PLANNING_SELECT] AND
|
|
|
'[DATA]' = 'TXABS' AND
|
|
|
v_rh_view_1.temps_du <> 0
|
|
|
|
|
|
]]></select>
|
|
|
</SQL>
|
|
|
<SQL optimizer="V_PLA_X" optimizer2="V_ALL_X">
|
|
|
<select><![CDATA[
|
|
|
|
|
|
CTISELECT_TREE
|
|
|
WORKTABLE{rh000028}
|
|
|
GROUPBY1{[VIEW.GROUPBY_OID_FIELD],, [VIEW.GROUPBY_COD_FIELD],, [VIEW.GROUPBY_TXT_FIELD]}
|
|
|
GROUPBY1MODE{[GROUPBY_TAB]}
|
|
|
GROUPBY2{[VIEW.GROUPBY_2_OID_FIELD],, [VIEW.GROUPBY_2_COD_FIELD],, [VIEW.GROUPBY_2_TXT_FIELD]}
|
|
|
GROUPBY3{[VIEW.GROUPBY_3_OID_FIELD],, [VIEW.GROUPBY_3_COD_FIELD],, [VIEW.GROUPBY_3_TXT_FIELD]}
|
|
|
COLUMNBY[PERIODICITE]{v_rh_view_1.date_fin_activite,, '[PERIODE]' ,, '[TOPERIODE]' ,, 31,, [VIEW.COLUMN_OPTION]}
|
|
|
SIGNIFDATA{[VIEW.ACTIVITE_SIGNIFICATIVE_DATA],, [ACTIVITE_SIGNIFICATIVE_MODE],, [ACTIVITE_SIGNIFICATIVE_NUMBER]}
|
|
|
OPTIONS{NOTZERO=1}
|
|
|
[VIEW.DATASQL]
|
|
|
FROM #V_PLA_X##V_ALL_X#
|
|
|
WHERE v_rh_view_1.date_fin_activite BETWEEN '[PERIODE]' AND '[TOPERIODE]'
|
|
|
[VIEW.SALARIES_SELECT]
|
|
|
[VIEW.CONTRATS_SELECT]
|
|
|
[VIEW.REFERENTIEL_SAE_SELECT]
|
|
|
[VIEW.PLANNING_SELECT]
|
|
|
[VIEW.PLANNING_ABSENCE_SELECT]
|
|
|
|
|
|
AFTER{
|
|
|
UPDATE rh000028 SET
|
|
|
indicateurs[1] = base.cti_division(rh000028.indicateurs[1] , COALESCE(rh000028_du.indicateurs[1],0)) * 100.00 ,
|
|
|
indicateurs[2] = base.cti_division(rh000028.indicateurs[2] , COALESCE(rh000028_du.indicateurs[2],0)) * 100.00 ,
|
|
|
indicateurs[3] = base.cti_division(rh000028.indicateurs[3] , COALESCE(rh000028_du.indicateurs[3],0)) * 100.00 ,
|
|
|
indicateurs[4] = base.cti_division(rh000028.indicateurs[4] , COALESCE(rh000028_du.indicateurs[4],0)) * 100.00 ,
|
|
|
indicateurs[5] = base.cti_division(rh000028.indicateurs[5] , COALESCE(rh000028_du.indicateurs[5],0)) * 100.00 ,
|
|
|
indicateurs[6] = base.cti_division(rh000028.indicateurs[6] , COALESCE(rh000028_du.indicateurs[6],0)) * 100.00 ,
|
|
|
indicateurs[7] = base.cti_division(rh000028.indicateurs[7] , COALESCE(rh000028_du.indicateurs[7],0)) * 100.00 ,
|
|
|
indicateurs[8] = base.cti_division(rh000028.indicateurs[8] , COALESCE(rh000028_du.indicateurs[8],0)) * 100.00 ,
|
|
|
indicateurs[9] = base.cti_division(rh000028.indicateurs[9] , COALESCE(rh000028_du.indicateurs[9],0)) * 100.00 ,
|
|
|
indicateurs[10] = base.cti_division(rh000028.indicateurs[10] , COALESCE(rh000028_du.indicateurs[10],0)) * 100.00 ,
|
|
|
indicateurs[11] = base.cti_division(rh000028.indicateurs[11] , COALESCE(rh000028_du.indicateurs[11],0)) * 100.00 ,
|
|
|
indicateurs[12] = base.cti_division(rh000028.indicateurs[12] , COALESCE(rh000028_du.indicateurs[12],0)) * 100.00 ,
|
|
|
indicateurs[13] = base.cti_division(rh000028.indicateurs[13] , COALESCE(rh000028_du.indicateurs[13],0)) * 100.00 ,
|
|
|
indicateurs[14] = base.cti_division(rh000028.indicateurs[14] , COALESCE(rh000028_du.indicateurs[14],0)) * 100.00 ,
|
|
|
indicateurs[15] = base.cti_division(rh000028.indicateurs[15] , COALESCE(rh000028_du.indicateurs[15],0)) * 100.00 ,
|
|
|
indicateurs[16] = base.cti_division(rh000028.indicateurs[16] , COALESCE(rh000028_du.indicateurs[16],0)) * 100.00 ,
|
|
|
indicateurs[17] = base.cti_division(rh000028.indicateurs[17] , COALESCE(rh000028_du.indicateurs[17],0)) * 100.00 ,
|
|
|
indicateurs[18] = base.cti_division(rh000028.indicateurs[18] , COALESCE(rh000028_du.indicateurs[18],0)) * 100.00 ,
|
|
|
indicateurs[19] = base.cti_division(rh000028.indicateurs[19] , COALESCE(rh000028_du.indicateurs[19],0)) * 100.00 ,
|
|
|
indicateurs[20] = base.cti_division(rh000028.indicateurs[20] , COALESCE(rh000028_du.indicateurs[20],0)) * 100.00 ,
|
|
|
indicateurs[21] = base.cti_division(rh000028.indicateurs[21] , COALESCE(rh000028_du.indicateurs[21],0)) * 100.00 ,
|
|
|
indicateurs[22] = base.cti_division(rh000028.indicateurs[22] , COALESCE(rh000028_du.indicateurs[22],0)) * 100.00 ,
|
|
|
indicateurs[23] = base.cti_division(rh000028.indicateurs[23] , COALESCE(rh000028_du.indicateurs[23],0)) * 100.00 ,
|
|
|
indicateurs[24] = base.cti_division(rh000028.indicateurs[24] , COALESCE(rh000028_du.indicateurs[24],0)) * 100.00 ,
|
|
|
indicateurs[25] = base.cti_division(rh000028.indicateurs[25] , COALESCE(rh000028_du.indicateurs[25],0)) * 100.00 ,
|
|
|
indicateurs[26] = base.cti_division(rh000028.indicateurs[26] , COALESCE(rh000028_du.indicateurs[26],0)) * 100.00 ,
|
|
|
indicateurs[27] = base.cti_division(rh000028.indicateurs[27] , COALESCE(rh000028_du.indicateurs[27],0)) * 100.00 ,
|
|
|
indicateurs[28] = base.cti_division(rh000028.indicateurs[28] , COALESCE(rh000028_du.indicateurs[28],0)) * 100.00 ,
|
|
|
indicateurs[29] = base.cti_division(rh000028.indicateurs[29] , COALESCE(rh000028_du.indicateurs[29],0)) * 100.00 ,
|
|
|
indicateurs[30] = base.cti_division(rh000028.indicateurs[30] , COALESCE(rh000028_du.indicateurs[30],0)) * 100.00 ,
|
|
|
indicateurs[31] = base.cti_division(rh000028.indicateurs[31] , COALESCE(rh000028_du.indicateurs[31],0)) * 100.00 ,
|
|
|
indicateurs[32] = base.cti_division(rh000028.indicateurs[32] , COALESCE(rh000028_du.indicateurs[32],0)) * 100.00 ,
|
|
|
indicateurs[33] = base.cti_division(rh000028.indicateurs[33] , COALESCE(rh000028_du.indicateurs[33],0)) * 100.00 ,
|
|
|
indicateurs[34] = base.cti_division(rh000028.indicateurs[34] , COALESCE(rh000028_du.indicateurs[34],0)) * 100.00
|
|
|
FROM rh000028 rh000028_bis
|
|
|
LEFT JOIN rh000028_du ON (rh000028_du.oidt = rh000028_bis.oidt OR rh000028_du.oidt = -111) AND
|
|
|
(rh000028_du.oid1 = rh000028_bis.oid1 OR rh000028_du.oid1 = -111) AND
|
|
|
(rh000028_du.oid2 = rh000028_bis.oid2 OR rh000028_du.oid2 = -111) AND
|
|
|
(rh000028_du.oid3 = rh000028_bis.oid3 OR rh000028_du.oid3 = -111)
|
|
|
WHERE rh000028_bis.oidt = rh000028.oidt AND
|
|
|
rh000028_bis.oid1 = rh000028.oid1 AND
|
|
|
rh000028_bis.oid2 = rh000028.oid2 AND
|
|
|
rh000028_bis.oid3 = rh000028.oid3 AND
|
|
|
'[DATA]' = 'TXABS'
|
|
|
}
|
|
|
|
|
|
]]></select>
|
|
|
<FIELDS>
|
|
|
<INSERT name="CTISELECT_TREE_FIELDS"/>
|
|
|
<FIELD name="N"/>
|
|
|
<FIELD name="N0"/>
|
|
|
<FIELD name="N1"/>
|
|
|
<FIELD name="N2"/>
|
|
|
<FIELD name="N3"/>
|
|
|
<FIELD name="N4"/>
|
|
|
<FIELD name="N5"/>
|
|
|
<FIELD name="N6"/>
|
|
|
<FIELD name="N7"/>
|
|
|
<FIELD name="N8"/>
|
|
|
<FIELD name="N9"/>
|
|
|
<FIELD name="N10"/>
|
|
|
<FIELD name="N11"/>
|
|
|
<FIELD name="N12"/>
|
|
|
<FIELD name="N13"/>
|
|
|
<FIELD name="N14"/>
|
|
|
<FIELD name="N15"/>
|
|
|
<FIELD name="N16"/>
|
|
|
<FIELD name="N17"/>
|
|
|
<FIELD name="N18"/>
|
|
|
<FIELD name="N19"/>
|
|
|
<FIELD name="N20"/>
|
|
|
<FIELD name="N21"/>
|
|
|
<FIELD name="N22"/>
|
|
|
<FIELD name="N23"/>
|
|
|
<FIELD name="N24"/>
|
|
|
<FIELD name="N25"/>
|
|
|
<FIELD name="N26"/>
|
|
|
<FIELD name="N27"/>
|
|
|
<FIELD name="N28"/>
|
|
|
<FIELD name="N29"/>
|
|
|
<FIELD name="N30"/>
|
|
|
<FIELD name="N31"/>
|
|
|
</FIELDS>
|
|
|
</SQL>
|
|
|
</QUERY>
|
|
|
</QUERIES>
|
|
|
<PRESENTATION>
|
|
|
<VIEWLINKS>
|
|
|
<VIEWLINK label="Justificatif" shortLabel="Justificatif" view="RH000026.XML" componentName="RH_VIEWLINK" >
|
|
|
<ARGS name="SPEC" >
|
|
|
<value><![CDATA[
|
|
|
LINKVARIABLES['GROUPBY_2'] = 'SAL'
|
|
|
return 'OK';
|
|
|
]]></value>
|
|
|
</ARGS>
|
|
|
</VIEWLINK>
|
|
|
</VIEWLINKS>
|
|
|
<ONGLET excelLabel="Evolution mensuelle" label="Evolution mensuelle" multiTab="true">
|
|
|
<CHART title="Evolution (Total)" type="lineChart" serieIsCategory="true" fromTotal="true">
|
|
|
<CATEGORY field="TXT" type="Char"/>
|
|
|
<SERIE field="N1" displayName="VIEW.COLH1" displayNameCalc="true" visibleCondition="VIEW.COLH1 != null"/>
|
|
|
<SERIE field="N2" displayName="VIEW.COLH2" displayNameCalc="true" visibleCondition="VIEW.COLH2 != null"/>
|
|
|
<SERIE field="N3" displayName="VIEW.COLH3" displayNameCalc="true" visibleCondition="VIEW.COLH3 != null"/>
|
|
|
<SERIE field="N4" displayName="VIEW.COLH4" displayNameCalc="true" visibleCondition="VIEW.COLH4 != null"/>
|
|
|
<SERIE field="N5" displayName="VIEW.COLH5" displayNameCalc="true" visibleCondition="VIEW.COLH5 != null"/>
|
|
|
<SERIE field="N6" displayName="VIEW.COLH6" displayNameCalc="true" visibleCondition="VIEW.COLH6 != null"/>
|
|
|
<SERIE field="N7" displayName="VIEW.COLH7" displayNameCalc="true" visibleCondition="VIEW.COLH7 != null"/>
|
|
|
<SERIE field="N8" displayName="VIEW.COLH8" displayNameCalc="true" visibleCondition="VIEW.COLH8 != null"/>
|
|
|
<SERIE field="N9" displayName="VIEW.COLH9" displayNameCalc="true" visibleCondition="VIEW.COLH9 != null"/>
|
|
|
<SERIE field="N10" displayName="VIEW.COLH10" displayNameCalc="true" visibleCondition="VIEW.COLH10 != null"/>
|
|
|
<SERIE field="N11" displayName="VIEW.COLH11" displayNameCalc="true" visibleCondition="VIEW.COLH11 != null"/>
|
|
|
<SERIE field="N12" displayName="VIEW.COLH12" displayNameCalc="true" visibleCondition="VIEW.COLH12 != null"/>
|
|
|
<SERIE field="N13" displayName="VIEW.COLH13" displayNameCalc="true" visibleCondition="VIEW.COLH13 != null"/>
|
|
|
<SERIE field="N14" displayName="VIEW.COLH14" displayNameCalc="true" visibleCondition="VIEW.COLH14 != null"/>
|
|
|
<SERIE field="N15" displayName="VIEW.COLH15" displayNameCalc="true" visibleCondition="VIEW.COLH15 != null"/>
|
|
|
<SERIE field="N16" displayName="VIEW.COLH16" displayNameCalc="true" visibleCondition="VIEW.COLH16 != null"/>
|
|
|
<SERIE field="N17" displayName="VIEW.COLH17" displayNameCalc="true" visibleCondition="VIEW.COLH17 != null"/>
|
|
|
<SERIE field="N18" displayName="VIEW.COLH18" displayNameCalc="true" visibleCondition="VIEW.COLH18 != null"/>
|
|
|
<SERIE field="N19" displayName="VIEW.COLH19" displayNameCalc="true" visibleCondition="VIEW.COLH19 != null"/>
|
|
|
<SERIE field="N20" displayName="VIEW.COLH20" displayNameCalc="true" visibleCondition="VIEW.COLH20 != null"/>
|
|
|
<SERIE field="N21" displayName="VIEW.COLH21" displayNameCalc="true" visibleCondition="VIEW.COLH21 != null"/>
|
|
|
<SERIE field="N22" displayName="VIEW.COLH22" displayNameCalc="true" visibleCondition="VIEW.COLH22 != null"/>
|
|
|
<SERIE field="N23" displayName="VIEW.COLH23" displayNameCalc="true" visibleCondition="VIEW.COLH23 != null"/>
|
|
|
<SERIE field="N24" displayName="VIEW.COLH24" displayNameCalc="true" visibleCondition="VIEW.COLH24 != null"/>
|
|
|
<SERIE field="N25" displayName="VIEW.COLH25" displayNameCalc="true" visibleCondition="VIEW.COLH25 != null"/>
|
|
|
<SERIE field="N26" displayName="VIEW.COLH26" displayNameCalc="true" visibleCondition="VIEW.COLH26 != null"/>
|
|
|
<SERIE field="N27" displayName="VIEW.COLH27" displayNameCalc="true" visibleCondition="VIEW.COLH27 != null"/>
|
|
|
<SERIE field="N28" displayName="VIEW.COLH28" displayNameCalc="true" visibleCondition="VIEW.COLH28 != null"/>
|
|
|
<SERIE field="N29" displayName="VIEW.COLH29" displayNameCalc="true" visibleCondition="VIEW.COLH29 != null"/>
|
|
|
<SERIE field="N30" displayName="VIEW.COLH30" displayNameCalc="true" visibleCondition="VIEW.COLH30 != null"/>
|
|
|
<SERIE field="N31" displayName="VIEW.COLH31" displayNameCalc="true" visibleCondition="VIEW.COLH31 != null"/>
|
|
|
</CHART>
|
|
|
<DATAGRID title="" total="true" showOthers="true" headerHeight="36" variableRowHeight="true" sortable="= SELECT.GROUPBY_3 == '-1' && (SELECT.GROUPBY_2 == '-1' || SELECT.GROUPBY_TAB == 'TAB')" selectRowInRows="= ROW.OID == '-9999997'" otherRowInRows="= ROW.OID == '-9999998'" totalRowInRows="= ROW.OID == '-9999999'">
|
|
|
<INSERT name="DATAGRID_MULTITAB_STYLES"/>
|
|
|
<COLUMN dataField="OID" width="60" type="Char" visible="false" headerText="Oid"/>
|
|
|
<COLUMN dataField="COD" width="90" type="Char" headerText="Code" textAlign="left" otherFunction="text" totalFunction="text" totalComplement="TOTAL">
|
|
|
<INSERT name="COLUMN_COD_MULTITAB_STYLES"/>
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="TXT" type="Char" minWidth="50" headerText="SELECT.GROUPBY_LABEL" headerTextCalc="true" textAlign="left" totalFunction="text" otherFunction="text" otherComplement="*ROW"/>
|
|
|
<COLUMN dataField="N" width="90" visibleCondition="SELECT.PERIODICITE != 'YEAR'" type="Number" outputFormat="= SELECT.DATA2" headerText="Total" textAlign="right" totalFunction="sum" otherFunction="sum"/>
|
|
|
<COLUMN dataField="N_P" type="Number" headerText="% / Total" width="70" visibleCondition="SELECT.PERIODICITE != 'YEAR' && SELECT.DATA != 'TXABS'" outputFormat="#,00%" textAlign="right" totalFunction="calc" totalComplement="" otherFunction="calc" calc="true">
|
|
|
<CALC formula="ROW.N / TOTALROW.N * 100"/>
|
|
|
</COLUMN>
|
|
|
<COLUMN dataField="N0" width="90" visibleCondition="VIEW.COLH0 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" headerText="<<" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N1" width="90" visibleCondition="VIEW.COLH1 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH1" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N2" width="90" visibleCondition="VIEW.COLH2 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH2" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N3" width="90" visibleCondition="VIEW.COLH3 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH3" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N4" width="90" visibleCondition="VIEW.COLH4 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH4" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N5" width="90" visibleCondition="VIEW.COLH5 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH5" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N6" width="90" visibleCondition="VIEW.COLH6 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH6" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N7" width="90" visibleCondition="VIEW.COLH7 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH7" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N8" width="90" visibleCondition="VIEW.COLH8 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH8" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N9" width="90" visibleCondition="VIEW.COLH9 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH9" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N10" width="90" visibleCondition="VIEW.COLH10 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH10" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N11" width="90" visibleCondition="VIEW.COLH11 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH11" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N12" width="90" visibleCondition="VIEW.COLH12 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH12" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N13" width="90" visibleCondition="VIEW.COLH13 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH13" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N14" width="90" visibleCondition="VIEW.COLH14 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH14" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N15" width="90" visibleCondition="VIEW.COLH15 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH15" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N16" width="90" visibleCondition="VIEW.COLH16 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH16" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N17" width="90" visibleCondition="VIEW.COLH17 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH17" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N18" width="90" visibleCondition="VIEW.COLH18 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH18" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N19" width="90" visibleCondition="VIEW.COLH19 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH19" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N20" width="90" visibleCondition="VIEW.COLH20 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH20" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N21" width="90" visibleCondition="VIEW.COLH21 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH21" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N22" width="90" visibleCondition="VIEW.COLH22 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH22" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N23" width="90" visibleCondition="VIEW.COLH23 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH23" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N24" width="90" visibleCondition="VIEW.COLH24 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH24" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N25" width="90" visibleCondition="VIEW.COLH25 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH25" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N26" width="90" visibleCondition="VIEW.COLH26 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH26" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N27" width="90" visibleCondition="VIEW.COLH27 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH27" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N28" width="90" visibleCondition="VIEW.COLH28 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH28" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N29" width="90" visibleCondition="VIEW.COLH29 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH29" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N30" width="90" visibleCondition="VIEW.COLH30 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH30" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
<COLUMN dataField="N31" width="90" visibleCondition="VIEW.COLH31 != null" type="Number" outputFormat="= SELECT.DATA2" fixed="false" selectable="true" headerText="VIEW.COLH31" headerTextCalc="true" textAlign="right" otherFunction="sum" totalFunction="sum"/>
|
|
|
|
|
|
</DATAGRID>
|
|
|
</ONGLET>
|
|
|
</PRESENTATION>
|
|
|
</VUE>
|