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
68a5a659
Commit
68a5a659
authored
Apr 24, 2020
by
CORP\prumde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New Dashboard from Sales Information JSP dashboard
parent
28ff9324
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
321 additions
and
0 deletions
+321
-0
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_brands_kpi.xml
...ule-resource/sfa/metadataxml/chc/chc_sales_brands_kpi.xml
+147
-0
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_information.xml
...le-resource/sfa/metadataxml/chc/chc_sales_information.xml
+174
-0
No files found.
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_brands_kpi.xml
0 → 100644
View file @
68a5a659
<?xml version='1.0'?>
<Root>
<filters
display=
"N"
>
<filter
type=
"1"
>
<default_value>
<![CDATA[EMP_CODE]]>
</default_value>
<col_name>
<![CDATA[EMP_CODE]]>
</col_name>
<col_descr>
<![CDATA[Emp Code]]>
</col_descr>
<col_id>
<![CDATA[EMP_CODE]]>
</col_id>
<field_name>
<![CDATA[]]>
</field_name>
<mod_name>
<![CDATA[]]>
</mod_name>
<show_ontitle>
<![CDATA[0]]>
</show_ontitle>
<mandatory>
<![CDATA[Y]]>
</mandatory>
</filter>
<filter
type=
"1"
>
<default_value>
<![CDATA[]]>
</default_value>
<col_name>
<![CDATA[PRD_QTR]]>
</col_name>
<col_descr>
<![CDATA[PRD QTR]]>
</col_descr>
<col_id>
<![CDATA[PRD_QTR]]>
</col_id>
<field_name>
<![CDATA[]]>
</field_name>
<mod_name>
<![CDATA[]]>
</mod_name>
<show_ontitle>
<![CDATA[1]]>
</show_ontitle>
<mandatory>
<![CDATA[Y]]>
</mandatory>
</filter>
</filters>
<page_title>
<![CDATA[Sales Info and Growth Brand wise ]]>
</page_title>
<datasource
id=
"1"
dataSourceType=
"datamodel"
filterKey=
'PRD_QTR'
filterExpr=
' context["PRD_QTR"] == "$PRD_QTR"'
>
<![CDATA[CHC_SALES_BRANDS_KPI_DM]]>
</datasource>
<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>
<ComponentName>
<![CDATA[]]>
</ComponentName>
<component_css>
<![CDATA[db-col-1]]>
</component_css>
<component_descr>
<![CDATA[]]>
</component_descr>
<layout>
<html>
<![CDATA[]]>
</html>
</layout>
<composite>
<composite_type>
<![CDATA[CHART_PANEL]]>
</composite_type>
<composite_id>
<![CDATA[chc_sales_info_brandwise]]>
</composite_id>
<composite_descr>
<![CDATA[Sales Info and Growth Brand wise]]]>
</composite_descr>
<composite_css>
<![CDATA[db-col-1]]>
</composite_css>
<link_metadata>
<![CDATA[]]>
</link_metadata>
<composite_config>
<![CDATA[
{
chartConfig: {
chartType: 'horizontalBar',
image: 'total_calls.svg',
table_header: 'Brandswise Sales',
title_column: 'PRD_QTR_STR',
theme : 'violet',
datasets: [
{
x_column: 'BRAND_NAME',
y_column:'SALES_VAL',
y_column_descr: 'Current Sales',
ttt_column: 'GROWTH_VAL',
ttt_column_descr: 'Growth',
fill: false,
lineTension: 0.1,
pointHoverRadius: 5,
pointHoverBorderWidth: 2,
backgroundColor : "rgba(0, 123, 171, 1)"
},
{
x_column: 'BRAND_NAME',
y_column:'PRV_SALES_VAL',
y_column_descr: 'Previous Sales',
fill: false,
lineTension: 0.1,
pointHoverRadius: 5,
pointHoverBorderWidth: 2,
backgroundColor : "rgba(1, 162, 127, 1)"
}
],
options: {
displayTopBar: true,
chartText: {
text : "formattedValue(dataString, 'RS' )",
fontSize : 11,
padding : 18
},
animateScale: false,
animateRotate: false,
width: 400,
height: 291,
responsive: true,
maintainAspectRatio: false,
tooltip: true,
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
var datasetIndex = tooltipItem.datasetIndex;
var dataset = data.datasets[datasetIndex];
var labelStr = dataset.label + ' : ' + formattedValue( tooltipItem.xLabel, 'MAX_FR_DIG_2' );
console.log('data.datasets[0]', datasetIndex, dataset.label, labelStr);
return labelStr;
},
title: function(tooltipItems, data) {
var tooltip = tooltipItems[0];
var dataset = data.datasets[0];
var titles = dataset.titles;
var titleStr = dataset.ttt_column_descr || '';
titleStr += ' : ' + formattedValue( titles[tooltip.index], '%' );
console.log('data.datasets', titleStr);
return titleStr;
}
},
backgroundColor: 'rgba(0,0,0,1)'
}
},
chartScales: {
xAxes: [
{
display: false,
gridLines: {
display:false
}
}
],
yAxes: [
{
gridLines: {
display:false
},
barPercentage: 0.7,
ticks:
{
min: 0,
callback: function( label, index, labels ) {
return label;
},
fontSize: 10
}
}
]
}
}
}
]]>
</composite_config>
</composite>
</component>
</view>
</Root>
webitm-dashboard/ibase/dashboard/module-resource/sfa/metadataxml/chc/chc_sales_information.xml
0 → 100644
View file @
68a5a659
<?xml version='1.0'?>
<Root>
<filters
display=
"Y"
>
<filter
type=
"1"
>
<default_value>
<![CDATA[EMP_CODE]]>
</default_value>
<col_name>
<![CDATA[EMP_CODE]]>
</col_name>
<col_descr>
<![CDATA[Emp Code]]>
</col_descr>
<col_id>
<![CDATA[EMP_CODE]]>
</col_id>
<field_name>
<![CDATA[]]>
</field_name>
<mod_name>
<![CDATA[]]>
</mod_name>
<show_ontitle>
<![CDATA[0]]>
</show_ontitle>
<mandatory>
<![CDATA[Y]]>
</mandatory>
</filter>
<filter
type=
"1"
>
<default_value>
<![CDATA[CURRENT_PERIOD]]>
</default_value>
<col_name>
<![CDATA[PERIOD]]>
</col_name>
<col_descr>
<![CDATA[Period]]>
</col_descr>
<col_id>
<![CDATA[PERIOD]]>
</col_id>
<field_name>
<![CDATA[]]>
</field_name>
<mod_name>
<![CDATA[]]>
</mod_name>
<show_ontitle>
<![CDATA[1]]>
</show_ontitle>
<mandatory>
<![CDATA[Y]]>
</mandatory>
</filter>
</filters>
<page_title>
<![CDATA[ Sales Information <span class="ang-dbSubTitleLbl"> (*without adjustment)</span> ]]>
</page_title>
<datasource
id=
"1"
dataSourceType=
"datamodel"
>
<![CDATA[CHC_SALES_INFO_SUMM_DM]]>
</datasource>
<datasource
id=
"2"
dataSourceType=
"datamodel"
>
<![CDATA[CHC_SALES_TOP_BRANDS_DM]]>
</datasource>
<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>
<ComponentName>
<![CDATA[]]>
</ComponentName>
<component_css>
<![CDATA[db-col-1]]>
</component_css>
<component_descr>
<![CDATA[]]>
</component_descr>
<layout>
<html>
<![CDATA[]]>
</html>
</layout>
<composite>
<composite_type>
<![CDATA[CARD_PANEL]]>
</composite_type>
<composite_id>
<![CDATA[_composite_sales_performance_kpi]]>
</composite_id>
<composite_descr>
<![CDATA[Sales Performance KPI - Sales Achivement, Growth and PMPM]]>
</composite_descr>
<composite_css>
<![CDATA[db-col-1]]>
</composite_css>
<link_metadata>
<![CDATA[]]>
</link_metadata>
<composite_config>
<![CDATA[
{
component_type: 'SIMPLE_CARD',
card_col_css : 'custom',
detailModel: {
image_column: 'FLD_IMAGE',
theme_column : 'FLD_THEME',
title_column: 'FLD_DESCR',
info_column: 'ACTUAL_VALUE_STR'
},
dataFormats: [
{
id: "ACTUAL_VALUE",
formatCondition: " data['FLD_VALUE'] ",
formatExpressions: [
" data['ACTUAL_VALUE_STR'] = formattedValue(data['FLD_VALUE'], 'MAX_FR_DIG_2' )"
]
}
]
}
]]>
</composite_config>
</composite>
</component>
<component
datasource=
"2"
id=
"1"
type=
"COMPOSITE"
>
<component_icon>
<![CDATA[]]>
</component_icon>
<ComponentTitle>
<![CDATA[]]>
</ComponentTitle>
<ComponentName>
<![CDATA[]]>
</ComponentName>
<component_css>
<![CDATA[db-col-1]]>
</component_css>
<component_descr>
<![CDATA[]]>
</component_descr>
<layout>
<html>
<![CDATA[]]>
</html>
</layout>
<composite>
<composite_type>
<![CDATA[CHART_PANEL]]>
</composite_type>
<composite_id>
<![CDATA[chc_sales_info_top_brands]]>
</composite_id>
<composite_descr>
<![CDATA[Sales Information Top Brands]]]>
</composite_descr>
<composite_css>
<![CDATA[db-col-1]]>
</composite_css>
<link_metadata>
<![CDATA[]]>
</link_metadata>
<composite_config>
<![CDATA[
{
chartDetailModel: {
summary : {
info_column : 'ACTUAL_VALUE_STR',
subinfo_column : 'TARGET_VALUE_STR',
data_column : 'SALES_VAL',
sh_descr : 'SH_DESCR'
}
},
chartConfig: {
chartType: 'horizontalBar',
image: 'total_calls.svg',
title_column: 'Top Brands',
theme : 'violet',
datasets: [
{
x_column: 'BRAND_NAME',
y_column:'SALES_VAL',
y_column_descr: 'Top Brands',
fill: false,
lineTension: 0.1,
pointHoverRadius: 5,
pointHoverBorderWidth: 2,
backgroundColor : "rgba(0, 123, 171, 1)",
}
],
options: {
displayTopBar: true,
chartText: {
text : "formattedValue(dataString, 'RS' )",
fontSize : 11,
padding : 18
},
animateScale: true,
animateRotate: true,
width: 400,
height: 300,
responsive: true,
maintainAspectRatio: false,
tooltip: true,
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
var label = formattedValue( tooltipItem.xLabel, 'MAX_FR_DIG_2' );
return label;
},
title: function(tooltipItem, data) {
return '';
}
},
backgroundColor: 'rgba(0,0,0,1)'
}
},
chartScales: {
xAxes: [
{
display: false,
gridLines: {
display:false
}
}
],
yAxes: [
{
gridLines: {
display:false
},
barPercentage: 0.7,
ticks: {
min: 0,
callback: function( label, index, labels ) {
return label;
},
fontSize: 10
}
}
]
}
}
}
]]>
</composite_config>
</composite>
</component>
</view>
</Root>
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