You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

73 lines
2.9 KiB

<?xml version="1.0" encoding="ISO-8859-1"?>
<VUE name="COMPTA000043" label="Intégrité base CTI - Comptabilité" title="Intégrité base CTI - Comptabilité" database="iCTI" swf="*CTI_view1" softCode="iCTI_compta" helpFile="iCTI_COMPTA_COMPTA000043.HTML" skipFirstSelection="true" >
<CACHE cachable="false" />
<SELECTIONS>
</SELECTIONS>
<QUERIES>
<QUERY label="">
<SQL select="
(
SELECT 1, 'Historique', 'Vue v_historique_ecritures_1', subviewp.count, subviewv.count
FROM
(SELECT count(*) AS count FROM compta.p_historique_ecritures ) subviewp,
(SELECT count(*) AS count FROM compta.v_historique_ecritures_1 ) subviewv
)
UNION ALL
(
SELECT 2, 'Historique cumulé', 'Vue v_historique_ecritures_total_1', subviewp.count, subviewv.count
FROM
(SELECT count(*) AS count FROM compta.p_historique_ecritures ) subviewp,
(SELECT SUM(nombre_ecritures) AS count FROM compta.v_historique_ecritures_total_1 ) subviewv
)
UNION ALL
(
SELECT 3, 'Comptes', 'Vue t_comptes_c', subviewp.count, subviewv.count
FROM
(SELECT count(*) AS count
FROM compta.t_comptes
WHERE oid IN (SELECT compte_id FROM compta.p_historique_ecritures_total) OR
oid IN (SELECT compte_extra_id FROM compta.p_historique_ecritures_total)
) subviewp,
(SELECT count(*) AS count
FROM compta.t_comptes_c
WHERE oid IN (SELECT compte_id FROM compta.p_historique_ecritures_total) OR
oid IN (SELECT compte_extra_id FROM compta.p_historique_ecritures_total)
) subviewv
)
ORDER BY 1
">
<FIELDS>
<FIELD name="NUM"/>
<FIELD name="TAB"/>
<FIELD name="VIEW"/>
<FIELD name="NB_P"/>
<FIELD name="NB_V"/>
</FIELDS>
</SQL>
</QUERY>
</QUERIES>
<CALCFIELDS>
</CALCFIELDS>
<PRESENTATION>
<VIEWLINKS>
</VIEWLINKS>
<ONGLET excelLabel="Intégrité" label="Intégrité">
<DATAGRID title="" total="false" sortable="false" headerHeight="40">
<ROWSTYLE name="fontSize" value="12"/>
<COLUMN dataField="NUM" width="60" type="Number" outputFormat="#" visible="false" headerText="N°" textAlign="left">
</COLUMN>
<COLUMN dataField="TAB" minWidth="100" type="Char" visible="true" headerText="Table" textAlign="left">
</COLUMN>
<COLUMN dataField="VIEW" minWidth="200" type="Char" visible="true" headerText="Vue" textAlign="left">
</COLUMN>
<COLUMN dataField="NB_P" width="100" type="Number" visible="true" headerText="Taille table" outputFormat="0" fixed="false" textAlign="right">
</COLUMN>
<COLUMN dataField="NB_V" width="100" type="Number" visible="true" headerText="Taille vue" outputFormat="0" fixed="false" textAlign="right">
<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0xFF0000" condition="ROW.NB_V != ROW.NB_P"/>
<CELLSTYLE name="cellIndicator" value="circle, 5, left top, 0x00FF33" condition="ROW.NB_V == ROW.NB_P"/>
</COLUMN>
</DATAGRID>
</ONGLET>
</PRESENTATION>
</VUE>