Files
Database/KPI/KPI_INI.SRC
Alex Tiehuis d12d8178b0 FCLT#64375 Blok grafiekjes met info verschijnen niet meer bij KPI
svn path=/Database/trunk/; revision=48552
2020-10-22 09:22:06 +00:00

255 lines
7.3 KiB
Plaintext

#ifdef KPI
/* $Revision$
* $Id$
*/
/* TODO lcl */
_FAC_MODULE('KPI','lcl_module_KPI')
----- Grafieken -----
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Total', 'kpi_v_graph_tot_tot', 2, 0, 70, 90, 100, null, fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Trend', 'kpi_v_graph_tot_trend', 4, null, null, null, null, 'FCLT_SORT', fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Total', 'kpi_v_graph_proc_tot', 2, 0, 70, 90, 100, null, fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Category', 'kpi_v_graph_proc_ond', 1, null, null, null, null, 'FCLT_SORT', fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Trend', 'kpi_v_graph_proc_trend', 4, null, null, null, null, 'FCLT_SORT', fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Total', 'kpi_v_graph_ond_tot', 2, 0, 70, 90, 100, null, fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Category', 'kpi_v_graph_ond_proc', 1, null, null, null, null, 'FCLT_SORT', fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
INSERT INTO fac_usrgraph
( fac_usrgraph_omschrijving, fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_limiet0, fac_usrgraph_limiet1, fac_usrgraph_limiet2, fac_usrgraph_limiet3, fac_usrgraph_orderby, fac_functie_key)
SELECT 'Trend', 'kpi_v_graph_ond_trend', 4, null, null, null, null, 'FCLT_SORT', fac_functie_key FROM fac_functie WHERE fac_functie_code='WEB_KPIRAP';
SET SQLBLANKLINES ON
UPDATE fac_usrgraph SET fac_usrgraph_options = '{
"title": "",
"seriesDefaults": {
"rendererOptions": {
"background": "white",
"ringColor": "#444",
"needleThickness": 7,
"hubRadius": 7,
"intervalInnerRadius": 25,
"intervalOuterRadius": 50,
"shadowDepth": 0,
"intervalColors": [
"#CC0000",
"#EE9900",
"#77BB00"
]
}
}
}'
WHERE fac_usrgraph_omschrijving = 'Total';
-- onderdeel
UPDATE fac_usrgraph SET fac_usrgraph_options = '{
"title": "",
"animate": true,
"stackSeries": false,
"seriesDefaults": {
"pointLabels": {
"show": true,
"edgeTolerance": -100,
"ypadding": 0
}
},
"series": [
{
"rendererOptions": {
"barWidth": 50,
"varyBarColor": true,
"shadow": false
}
}
],
"axes": {
"yaxis": {
"min": 0,
"max": 100,
"ticks": [
0,
20,
40,
60,
80,
100
],
"tickOptions": {
"enableFontSupport": true,
"fontFamily": "Tahoma",
"fontSize": "9pt"
},
"rendererOptions": {
"drawBaseline": false
}
},
"xaxis": {
"tickOptions": {
"enableFontSupport": true,
"fontFamily": "Tahoma",
"fontSize": "10pt",
"showGridline": false
}
}
},
"canvasOverlay": {
"show": true,
"objects": [
{
"horizontalLine": {
"name": "n070",
"y": 70,
"lineWidth": 1,
"lineCap": "square",
"color": "rgba(220, 160, 0, 0.5)",
"shadow": false
}
},
{
"horizontalLine": {
"name": "n090",
"y": 90,
"lineWidth": 1,
"lineCap": "square",
"color": "rgba(85, 238, 0, 0.5)",
"shadow": false
}
}
]
},
"axesStyles": {
"borderWidth": 0,
"ticks": {
"fontSize": "20pt",
"fontFamily": "Tahoma",
"textColor": "black"
},
"label": {
"fontFamily": "Tahoma",
"textColor": "black"
}
},
"grid": {
"backgroundColor": "white",
"borderWidth": 0,
"gridLineColor": "#eee",
"gridLineWidth": 1,
"borderColor": "white",
"shadow": false
}
}'
WHERE fac_usrgraph_omschrijving = 'Category';
-- trend
UPDATE fac_usrgraph SET fac_usrgraph_options = '{
"title": "",
"animate": true,
"seriesDefaults": {
"showMarker": false,
"pointLabels": {
"show": true
}
},
"series": [
{
"color": "#55acda",
"shadow": true
}
],
"axes": {
"yaxis": {
"tickOptions": {
"enableFontSupport": true,
"fontFamily": "Tahoma",
"fontSize": "9pt"
},
"rendererOptions": {
"drawBaseline": false
}
},
"xaxis": {
"tickOptions": {
"enableFontSupport": true,
"fontFamily": "Tahoma",
"fontSize": "10pt",
"showGridline": false
}
}
},
"axesStyles": {
"borderWidth": 0,
"ticks": {
"fontSize": "20pt",
"fontFamily": "Tahoma",
"textColor": "black"
},
"label": {
"fontFamily": "Tahoma",
"textColor": "black"
}
},
"grid": {
"backgroundColor": "white",
"borderWidth": 0,
"gridLineColor": "#eee",
"gridLineWidth": 1,
"borderColor": "white",
"shadow": false
},
"canvasOverlay": {
"show": true,
"objects": [
{
"horizontalLine": {
"name": "n070",
"y": 70,
"lineWidth": 2,
"lineCap": "square",
"color": "rgba(220, 160, 0, 0.5)",
"shadow": false
}
},
{
"horizontalLine": {
"name": "n090",
"y": 90,
"lineWidth": 2,
"lineCap": "square",
"color": "rgba(85, 238, 0, 0.5)",
"shadow": false
}
}
]
}
}'
WHERE fac_usrgraph_omschrijving = 'Trend';
SET SQLBLANKLINES OFF
REGISTERONCE('$Id$')
#endif // KPI