Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
business-java
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proteus
business-java
Commits
28ff9324
Commit
28ff9324
authored
Apr 24, 2020
by
CORP\prumde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes done for SUN CHC Dashboard
parent
24f9e315
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
51 deletions
+98
-51
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_kpi.xml
...dashboard/module-resource/sfa/metadataxml/chc/chc_kpi.xml
+8
-11
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_kpi.xml
...ard/module-resource/sfa/metadataxml/chc/chc_sales_kpi.xml
+82
-39
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_performance.xml
...le-resource/sfa/metadataxml/chc/chc_sales_performance.xml
+8
-1
No files found.
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_kpi.xml
View file @
28ff9324
...
...
@@ -4,7 +4,7 @@
</filters>
<page_title>
<![CDATA[CHC SUN Activity]]>
</page_title>
<datasource
id=
"1"
dataSourceType=
"datamodel"
>
<![CDATA[CHC_KPI_DM]]>
</datasource>
<view
id=
"1"
name=
"Default"
type=
"flatonly"
>
<view
id=
"1"
name=
"Default"
type=
"flatonly"
fixed_refresh=
"true"
>
<component
datasource=
"1"
id=
"1"
type=
"COMPOSITE"
>
<component_icon>
<![CDATA[]]>
</component_icon>
<ComponentTitle>
<![CDATA[]]>
</ComponentTitle>
...
...
@@ -444,10 +444,8 @@
]
}
}
}
]]>
</composite_config>
</composite>
<composite>
...
...
@@ -473,23 +471,22 @@
</column_group>
<composite_config>
<![CDATA[
{
chartDetailModel:{
series : true,
summary : {
chartDetailModel:{
series : true,
summary : {
info_column : 'ACTUAL_VALUE_STR',
subinfo_column : 'TARGET_VALUE_STR',
data_column : 'ACTUAL_VALUE',
target_column : 'TARGET_VALUE',
sh_descr : 'SH_DESCR'
}
},
}
},
chartConfig: {
image: 'total_calls.svg',
title_column: 'Total Calls',
theme : 'violet',
chartType: 'percentage',
options: {
options: {
percentFactorColumn: 'TARGET_VALUE',
animateScale: true,
animateRotate: true,
...
...
@@ -502,7 +499,7 @@
chartCenterText: "data[0] + '%'",
chartCenterTextFont1 : "20px Roboto,sans-serif",
condnFormat: [
{
{
id: "RED",
expression: "data[0] <= 60",
colors: [[252, 101, 101], [248, 248, 248]]
...
...
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_kpi.xml
View file @
28ff9324
...
...
@@ -2,9 +2,12 @@
<Root>
<filters
display=
"N"
>
</filters>
<page_title>
<![CDATA[CHC SUN Activity]]>
</page_title>
<page_title>
<![CDATA[CHC Sales and Target KPI]]>
</page_title>
<datasource
id=
"1"
dataSourceType=
"datamodel"
>
<![CDATA[CHC_SALES_KPI_DM]]>
</datasource>
<view
id=
"1"
name=
"Default"
type=
"flatonly"
>
<view
id=
"1"
name=
"Default"
type=
"flatonly"
fixed_refresh=
"true"
>
<component
datasource=
"1"
id=
"1"
type=
"COMPOSITE"
>
<component_icon>
<![CDATA[]]>
</component_icon>
<ComponentTitle>
<![CDATA[]]>
</ComponentTitle>
...
...
@@ -13,18 +16,58 @@
<component_descr>
<![CDATA[]]>
</component_descr>
<layout>
<html>
<![CDATA[]]>
</html>
<style></style>
</layout>
<composite>
<!-- Changes done on 4-APR-20 [for YTD,MTD] START -->
<composite>
<composite_type>
<![CDATA[CARD_PANEL]]>
</composite_type>
<composite_id>
<![CDATA[_composite_ytd_mtd_wise_kpi]]>
</composite_id>
<composite_descr>
<![CDATA[Quarterly Sales and Target Values]]>
</composite_descr>
<composite_css>
<![CDATA[db-col-1]]>
</composite_css>
<link_metadata>
<![CDATA[chc_sales_brands_kpi]]>
</link_metadata>
<column_group
id=
"1"
>
<columns>
<column
id=
"1"
type=
"string"
filterBy=
"PRD_QTR"
>
<![CDATA[YTD,MTD]]>
</column>
</columns>
</column_group>
<composite_config>
<![CDATA[
{
component_type: 'SIMPLE_CARD',
card_col_css : 'card-col-2',
detailModel: {
image_column: 'image',
image: 'date_white.svg',
title_column: 'PRD_QTR_STR',
info_column: 'ACTUAL_VALUE_STR',
theme_column : 'THEME_COLOR'
},
dataFormats: [
{
id: "ACTUAL_VALUE",
formatCondition: "data['SALES_VAL'] ",
formatExpressions: [
" data['ACTUAL_VALUE_STR'] = formattedValue(data['SALES_VAL'], 'MAX_FR_DIG_2' )"
]
}
]
}
]]>
</composite_config>
</composite>
<composite>
<composite_type>
<![CDATA[CARD_PANEL]]>
</composite_type>
<composite_id>
<![CDATA[_composite_quarterwise_kpi]]>
</composite_id>
<composite_descr>
<![CDATA[Quarterly Sales and Target Values]]>
</composite_descr>
<composite_css>
<![CDATA[db-col-1]]>
</composite_css>
<link_metadata>
<![CDATA[]]>
</link_metadata>
<link_metadata>
<![CDATA[
chc_sales_brands_kpi
]]>
</link_metadata>
<column_group
id=
"1"
>
<columns>
<column
id=
"1"
type=
"string"
aggFunction=
"SUM"
groupBy=
"PRD_QTR"
>
<![CDATA[SALES_VAL,TARGET_VAL]]>
</column>
<column
id=
"1"
type=
"string"
filterBy=
"PRD_QTR"
>
<![CDATA[QTR1,QTR2,QTR3,QTR4]]>
</column>
</columns>
<columns>
<column
id=
"2"
type=
"string"
aggFunction=
"SUM"
groupBy=
"PRD_QTR"
>
<![CDATA[SALES_VAL,TARGET_VAL]]>
</column>
</columns>
</column_group>
<composite_config>
<![CDATA[
...
...
@@ -39,7 +82,7 @@
order_column: 'PRD_QTR',
sub_info_column: 'DESCR',
theme_column : 'THEME_COLOR',
sales_info_str_column :
"Sales",
sales_info_str_column : "Sales",
target_info_str_column : "Target"
},
chart_properties: {
...
...
@@ -81,7 +124,8 @@
}
}
]]>
</composite_config>
</composite>
</composite>
<composite>
<composite_type>
<![CDATA[CHART_PANEL]]>
</composite_type>
<composite_id>
<![CDATA[_composite_acct_prd_month_wise_summary]]>
</composite_id>
...
...
@@ -89,6 +133,12 @@
<composite_css>
<![CDATA[db-col-1]]>
</composite_css>
<link_metadata>
<![CDATA[]]>
</link_metadata>
<column_group
id=
"1"
>
<columns>
<column
id=
"1"
type=
"string"
filterBy=
"PRD_QTR"
>
<![CDATA[QTR1,QTR2,QTR3,QTR4]]>
</column>
</columns>
</column_group>
<composite_config>
<![CDATA[
{
chartDetailModel: {
...
...
@@ -99,7 +149,7 @@
target_column : 'TARGET_VAL',
sh_descr : 'SH_DESCR'
}
},
},
chartConfig: {
chartType: 'bar',
image: 'total_calls.svg',
...
...
@@ -126,7 +176,6 @@
pointHoverBorderWidth: 2,
backgroundColor : "rgba(1, 162, 127, 1)"
}
],
options: {
x_column_label: 'Duration',
...
...
@@ -141,7 +190,8 @@
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
var label = '\u20B9 ' + tooltipItem.yLabel + ' in ' + tooltipItem.xLabel ;
//var label = '\u20B9 ' + tooltipItem.yLabel + ' in ' + tooltipItem.xLabel ;
var label = formattedValue( tooltipItem.yLabel, 'MAX_FR_DIG_2' );
return label;
},
title: function(tooltipItem, data) {
...
...
@@ -150,48 +200,41 @@
},
backgroundColor: 'rgba(0,0,0,1)'
}
},
},
chartScales: {
xAxes: [
{
ticks:
{
callback: function( label, index, labels ) {
if ( /\s/.test( label ) ) {
return label.split( " " );
} else {
return label;
}
},
fontSize: 10
}
ticks: {
callback: function( label, index, labels ) {
if ( /\s/.test( label ) ) {
return label.split( " " );
} else {
return label;
}
},
fontSize: 10
}
}
],
yAxes: [
{
ticks:
{
fontSize: 10,
beginAtZero: true,
min: 0,
callback: function(value, index, values) {
if (Math.floor(value) === value) {
return value;
}
ticks: {
fontSize: 10,
beginAtZero: true,
min: 0,
callback: function(value, index, values) {
if (Math.floor(value) === value) {
return value;
}
}
}
}
}
]
}
}
}
}
]]>
</composite_config>
</composite>
</component>
</view>
</Root>
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_performance.xml
View file @
28ff9324
...
...
@@ -2,7 +2,7 @@
<Root>
<filters
display=
"N"
>
<filter
type=
"1"
>
<default_value>
<![CDATA[]]>
</default_value>
<default_value>
<![CDATA[
CURRENT_PERIOD
]]>
</default_value>
<col_name>
<![CDATA[PRD_CODE]]>
</col_name>
<col_descr>
<![CDATA[Period Code]]>
</col_descr>
<col_id>
<![CDATA[prdCode]]>
</col_id>
...
...
@@ -205,6 +205,13 @@
formatExpressions: [
" data['ACTUAL_VALUE_STR'] = formattedValue(data['ACTUAL_VALUE'], '%' ) "
]
},
{
id: "ACTUAL_VALUE",
formatCondition: " data['FLD_NAME'] == 'SALES_ECO' ",
formatExpressions: [
" data['ACTUAL_VALUE_STR'] = formattedValue(data['ACTUAL_VALUE'], '%' ) "
]
}
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment