Commit 6bc48a9e authored by prumde's avatar prumde

Updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217940 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6dc16180
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
image: 'ICON', image: 'ICON',
title_column: 'SH_DESCR', title_column: 'SH_DESCR',
info_column: 'ACTUAL_VALUE', info_column: 'ACTUAL_VALUE',
order_column: 'ACTUAL_VALUE',
sub_info_column: 'DESCR', sub_info_column: 'DESCR',
theme_column : 'THEME_COLOR', theme_column : 'THEME_COLOR',
info_text_column : 'ACTUAL_VALUE_STR', info_text_column : 'ACTUAL_VALUE_STR',
...@@ -61,6 +60,8 @@ ...@@ -61,6 +60,8 @@
chartCenterText: " data[0] + '%'", chartCenterText: " data[0] + '%'",
chartCenterTextColor1 : "#fff", chartCenterTextColor1 : "#fff",
chartCenterTextFont1 : "16px Roboto,sans-serif", chartCenterTextFont1 : "16px Roboto,sans-serif",
borderWidth: '2',
borderColor: '#f8f8f8',
condnFormat: [ condnFormat: [
{ {
id: "RED", id: "RED",
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
target_info_column: 'TARGET_VAL', target_info_column: 'TARGET_VAL',
order_column: 'PRD_QTR', order_column: 'PRD_QTR',
sub_info_column: 'DESCR', sub_info_column: 'DESCR',
THEME_COLOR: "blue",
theme_column : 'THEME_COLOR', theme_column : 'THEME_COLOR',
sales_info_str_column : "Sales", sales_info_str_column : "Sales",
target_info_str_column : "Target" target_info_str_column : "Target"
...@@ -59,6 +58,8 @@ ...@@ -59,6 +58,8 @@
chartCenterText: " data[0] + '%'", chartCenterText: " data[0] + '%'",
chartCenterTextColor1 : "#fff", chartCenterTextColor1 : "#fff",
chartCenterTextFont1 : "16px Roboto,sans-serif", chartCenterTextFont1 : "16px Roboto,sans-serif",
borderWidth: '2',
borderColor: '#f8f8f8',
condnFormat: [ condnFormat: [
{ {
id: "RED", id: "RED",
......
<?xml version='1.0'?> <?xml version='1.0'?>
<Root> <Root>
<filters display="N"> <filters display="N">
<filter type="1">
<default_value><![CDATA[]]></default_value>
<col_name><![CDATA[PRD_CODE]]></col_name>
<col_descr><![CDATA[Period Code]]></col_descr>
<col_id><![CDATA[prdCode]]></col_id>
<field_name><![CDATA[prdCode]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
</filters> </filters>
<page_title><![CDATA[CHC SUN Activity]]></page_title> <page_title><![CDATA[Sales Performance]]></page_title>
<datasource id="1" dataSourceType="datamodel"><![CDATA[CHC_SALES_KPI_DM]]></datasource>
<datasource id="2" dataSourceType="jsondata"><![CDATA[[ <datasource id="1" dataSourceType="datamodel"><![CDATA[CHC_SALES_PERF_SUMMARY_DM]]></datasource>
{ <datasource id="2" dataSourceType="datamodel"><![CDATA[CHC_SALES_PERF_DM]]></datasource>
"EMP_CODE":"E76377",
"EMP_NAME":"Vinod Kumar Tripathi",
"DESIGNATION":"Reginal Sales Manager",
"EMP_DOJ":"Joined Team A in 12 Aug 2016",
"EMP_GRADE":"A",
"PERCENTAGE":"4"
}
]]]></datasource>
<view id="1" name="Default" type="flatonly"> <view id="1" name="Default" type="flatonly">
<component datasource="2" id="1" type="COMPOSITE"> <component datasource="1" id="1" type="COMPOSITE">
<component_icon><![CDATA[]]></component_icon> <component_icon><![CDATA[]]></component_icon>
<ComponentTitle><![CDATA[]]></ComponentTitle> <ComponentTitle><![CDATA[]]></ComponentTitle>
<ComponentName><![CDATA[]]></ComponentName> <ComponentName><![CDATA[]]></ComponentName>
...@@ -36,56 +39,18 @@ ...@@ -36,56 +39,18 @@
{ {
component_type: 'BANNER_CARD_2', component_type: 'BANNER_CARD_2',
detailModel: { detailModel: {
image_column: 'image',
image: 'date_white.svg',
image_column: 'EMP_CODE', image_column: 'EMP_CODE',
info_column1: 'EMP_NAME', info_column1: 'EMP_NAME',
sub_info_column3: 'EMP_GRADE',
sub_info_column2: 'PERCENTAGE',
info_column2: 'DESIGNATION', info_column2: 'DESIGNATION',
sub_info_column1: 'EMP_DOJ' sub_info_column1: 'EMP_DOJ',
}, sub_info_column2: 'PERCENTILE'
chart_properties: {
chartType: 'percentage',
labels: [''],
options: {
percentFactorColumn: 'TARGET_VAL',
animateScale: true,
animateRotate: true,
width: 72,
height: 72,
responsive: true,
maintainAspectRatio: false,
tooltip: false,
cutOutPercentage: 70,
chartCenterText: " data[0] + '%'",
chartCenterTextColor1 : "#fff",
chartCenterTextFont1 : "16px Roboto,sans-serif",
condnFormat: [
{
id: "RED",
expression: "data[0] <= 60",
colors: [[252, 101, 101], [248, 248, 248]]
},
{
id: "YELLOW",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 )",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " 81 <= data[0] ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
}
} }
} }
]]></composite_config> ]]></composite_config>
</composite> </composite>
</component> </component>
<component datasource="1" id="1" type="COMPOSITE"> <component datasource="2" id="1" type="COMPOSITE">
<component_icon><![CDATA[]]></component_icon> <component_icon><![CDATA[]]></component_icon>
<ComponentTitle><![CDATA[]]></ComponentTitle> <ComponentTitle><![CDATA[]]></ComponentTitle>
<ComponentName><![CDATA[]]></ComponentName> <ComponentName><![CDATA[]]></ComponentName>
...@@ -98,65 +63,19 @@ ...@@ -98,65 +63,19 @@
<composite> <composite>
<composite_type><![CDATA[CARD_PANEL]]></composite_type> <composite_type><![CDATA[CARD_PANEL]]></composite_type>
<composite_id><![CDATA[_composite_daywise_kpi]]></composite_id> <composite_id><![CDATA[_composite_sales_performance_kpi]]></composite_id>
<composite_descr><![CDATA[Day wise KPI - PC, POB, TLSD and TC]]></composite_descr> <composite_descr><![CDATA[Sales Performance KPI - TC, PC, Field Work, Sales Achivement, Growth and PMPM]]></composite_descr>
<composite_css><![CDATA[db-col-1]]></composite_css> <composite_css><![CDATA[db-col-1]]></composite_css>
<link_metadata><![CDATA[]]></link_metadata> <link_metadata><![CDATA[]]></link_metadata>
<column_group id="1">
<columns>
<column id="1" type="string" aggFunction="SUM" groupBy="PRD_QTR"><![CDATA[SALES_VAL,TARGET_VAL]]></column>
</columns>
</column_group>
<composite_config><![CDATA[ <composite_config><![CDATA[
{ {
component_type: 'CUSTOM_CHART_4', component_type: 'SIMPLE_CARD',
detailModel: { detailModel: {
image_column: 'image', image_column: 'ICON',
image: 'date_white.svg',
title_column: 'PRD_QTR_STR',
sales_info_column: 'SALES_VAL',
target_info_column: 'TARGET_VAL',
order_column: 'PRD_QTR',
sub_info_column: 'DESCR',
THEME_COLOR: "blue",
theme_column : 'THEME_COLOR', theme_column : 'THEME_COLOR',
sales_info_str_column : "Sales", title_column: 'DESCR',
target_info_str_column : "Target" info_column: 'ACTUAL_VALUE',
}, sub_info_column: 'ACTUAL_VALUE_STR'
chart_properties: {
chartType: 'percentage',
labels: [''],
options: {
percentFactorColumn: 'TARGET_VAL',
animateScale: true,
animateRotate: true,
width: 72,
height: 72,
responsive: true,
maintainAspectRatio: false,
tooltip: false,
cutOutPercentage: 70,
chartCenterText: " data[0] + '%'",
chartCenterTextColor1 : "#fff",
chartCenterTextFont1 : "16px Roboto,sans-serif",
condnFormat: [
{
id: "RED",
expression: "data[0] <= 60",
colors: [[252, 101, 101], [248, 248, 248]]
},
{
id: "YELLOW",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 )",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " 81 <= data[0] ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
}
} }
} }
]]></composite_config> ]]></composite_config>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment