Commit f4336aa9 authored by prumde's avatar prumde

Updated for coaching dashboard

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214805 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1f0f0ec7
......@@ -41,7 +41,7 @@
<link_metadata><![CDATA[leaderboard_abm]]></link_metadata>
<column_group id="1">
<columns>
<column id="1" type="number" aggFunction="RANK" filterkey="EMP_CODE" range="1:1"><![CDATA[COACHING_COUNT]]></column>
<column id="1" type="number" aggFunction="RANK" filterkey="EMP_CODE" range="1:1" ><![CDATA[PERC]]></column>
</columns>
</column_group>
<composite_config><![CDATA[
......@@ -49,8 +49,8 @@
component_type: 'BANNER_CARD',
detailModel: {
image_column: 'image',
info_column: 'rank',
sub_info_column: 'COACHING_COUNT',
info_column: 'ESI_RANK',
sub_info_column: 'PERC',
}
}
]]></composite_config>
......@@ -114,12 +114,12 @@
},
{
id: "YELLOW",
expression: " ( 61 < data[0] ) && ( data[0] <= 80 ) ",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 ) ",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " ( 81 < data[0] ) && ( data[0] <= 100 ) ",
expression: " ( 81 <= data[0] ) && ( data[0] <= 100 ) ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
......@@ -155,6 +155,8 @@
image: 'meet_summary.svg',
title: 'Summary',
title_column: 'title',
header: 'Team Coaching',
header_column: 'header',
summary_theme: 'blue',
theme_column: 'summary_theme',
info_visible: false,
......@@ -166,9 +168,10 @@
title_column: 'EMP_NAME',
filter_column: 'EMP_CODE',
badge_column: 'POSITION_DESCR',
info_text: 'Customer',
badge_theme: 'blue',
info_text: 'Customer Calls',
info_column: 'CUST_COUNT',
sub_info_text: 'Coaching',
sub_info_text: 'Coaching Done',
sub_info_column: 'COACHING_COUNT',
info_visible : true,
}
......@@ -229,12 +232,12 @@
},
{
id: "YELLOW",
expression: " ( 61 < data[0] ) && ( data[0] <= 80 ) ",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 ) ",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " ( 81 < data[0] ) && ( data[0] <= 100 ) ",
expression: " ( 81 <= data[0] ) && ( data[0] <= 100 ) ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
......
......@@ -41,7 +41,7 @@
<link_metadata><![CDATA[leaderboard_esi]]></link_metadata>
<column_group id="1">
<columns>
<column id="1" type="number" aggFunction="RANK" filterkey="EMP_CODE" range="1:1"><![CDATA[COACHING_COUNT]]></column>
<column id="1" type="number" aggFunction="RANK" filterkey="EMP_CODE" range="1:1" ><![CDATA[PERC]]></column>
</columns>
</column_group>
<composite_config><![CDATA[
......@@ -49,8 +49,8 @@
component_type: 'BANNER_CARD',
detailModel: {
image_column: 'image',
info_column: 'rank',
sub_info_column: 'COACHING_COUNT',
info_column: 'ESI_RANK',
sub_info_column: 'PERC',
}
}
]]></composite_config>
......@@ -96,9 +96,9 @@
theme_column: 'SURVEY_THEME',
title_column: 'SH_DESCR',
filter_column: 'SH_DESCR',
info_text: 'Customer',
info_text: 'Customer Calls',
info_column: 'CUST_COUNT',
sub_info_text: 'Coaching',
sub_info_text: 'Coaching Done',
sub_info_column: 'COACHING_COUNT',
info_visible : true,
}
......@@ -135,7 +135,7 @@
chartType: 'percentage',
labels: [''],
options: {
animateScale: true,
animateScale: true,
animateRotate: true,
width: 64,
height: 64,
......@@ -152,12 +152,12 @@
},
{
id: "YELLOW",
expression: " ( 61 < data[0] ) && ( data[0] <= 80 ) ",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 ) ",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " ( 81 < data[0] ) && ( data[0] <= 100 ) ",
expression: " ( 81 <= data[0] ) && ( data[0] <= 100 ) ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
......
......@@ -73,9 +73,10 @@
title_column: 'EMP_NAME',
filter_column: 'EMP_CODE',
badge_column: 'POSITION_DESCR',
info_text: 'Customer',
badge_theme: 'orange',
info_text: 'Customer Calls',
info_column: 'CUST_COUNT',
sub_info_text: 'Coaching',
sub_info_text: 'Coaching Done',
sub_info_column: 'COACHING_COUNT',
info_visible : true,
link_metadata: 'coaching_rsm_abm'
......@@ -137,12 +138,12 @@
},
{
id: "YELLOW",
expression: " ( 61 < data[0] ) && ( data[0] <= 80 ) ",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 ) ",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " ( 81 < data[0] ) && ( data[0] <= 100 ) ",
expression: " ( 81 <= data[0] ) && ( data[0] <= 100 ) ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
......
......@@ -65,6 +65,8 @@
image: 'meet_summary.svg',
title: 'Summary',
title_column: 'title',
header: 'Team Coaching',
header_column: 'header',
summary_theme: 'blue',
theme_column: 'summary_theme',
info_visible: false,
......@@ -76,9 +78,10 @@
title_column: 'EMP_NAME',
filter_column: 'EMP_CODE',
badge_column: 'POSITION_DESCR',
info_text: 'Customer',
badge_theme: 'blue',
info_text: 'Customer Calls',
info_column: 'CUST_COUNT',
sub_info_text: 'Coaching',
sub_info_text: 'Coaching Done',
sub_info_column: 'COACHING_COUNT',
info_visible : true,
}
......@@ -134,12 +137,12 @@
},
{
id: "YELLOW",
expression: " ( 61 < data[0] ) && ( data[0] <= 80 ) ",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 ) ",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " ( 81 < data[0] ) && ( data[0] <= 100 ) ",
expression: " ( 81 <= data[0] ) && ( data[0] <= 100 ) ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
......
......@@ -88,12 +88,12 @@
},
{
id: "YELLOW",
expression: " ( 61 < data[0] ) && ( data[0] <= 80 ) ",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 ) ",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " ( 81 < data[0] ) && ( data[0] <= 100 ) ",
expression: " ( 81 <= data[0] ) && ( data[0] <= 100 ) ",
colors: [[0, 199, 153], [248, 248, 248]]
}
]
......
<?xml version='1.0'?>
<Root>
<filters display="N">
<filter type='4'>
<default_value><![CDATA[LAST('0','M')]]>
</default_value>
<col_name><![CDATA[FromDate]]></col_name>
<col_descr><![CDATA[From date]]></col_descr>
<col_id><![CDATA[FromDate]]></col_id>
<field_name><![CDATA[]]></field_name>
<mod_name><![CDATA[]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
<filter type='4'>
<default_value><![CDATA[CURRENT_DATE]]>
</default_value>
<col_name><![CDATA[ToDate]]></col_name>
<col_descr><![CDATA[To date]]></col_descr>
<col_id><![CDATA[ToDate]]></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[my activity]]></page_title>
<datasource id="1" driverName="DriverITM" dataSourceType='datamodel'><![CDATA[USER_TASK_DM]]></datasource>
<view id="1" name="Default">
<component datasource="1" id="1" type="FEED">
<component_icon><![CDATA[stock_status.svg]]></component_icon>
<ComponentTitle><![CDATA[My Activity]]></ComponentTitle>
<component_css><![CDATA[db-col-1]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<obj_name><![CDATA[user_tasks]]></obj_name>
<height><![CDATA[368]]></height>
<layout protoType="card">
<html>
<![CDATA[
<style>
.profileImg
{
width: 30px;
height: 30px;
background: #6673a0;
border-radius: 50%;
text-align: center;
line-height: 30px;
color: #fff;
font-size: 14px;
}
</style>
<div style='max-height: 300px; overflow: auto;'>
<div *ngFor="let taskData of context;" style="padding: 0px 5px 0px;">
<ng-container *ngTemplateOutlet=" eventsTemplate; context:{ 'taskData' : taskData }"></ng-container>
</div>
</div>
<ng-template #eventsTemplate let-taskData = 'taskData' >
<div style=''>
<div style='display: flex; width: 100%;'>
<div style=" width: 40px; height: 40px; float:left;">
<div *ngIf="taskData.TASK_DESCR " class="profileImg"
[ngStyle]="{'background':taskData.CURR_STATUS=='C'? ' rgb(0, 199, 153)' : taskData.CURR_STATUS=='W'? ' rgb(252, 101, 101)' : 'rgb(255, 211, 90)' }">
{{taskData.TASK_DESCR.substring(0,1)}}{{ taskData.TASK_DESCR.trim().indexOf(' ') > 0 ?
taskData.TASK_DESCR.substring(taskData.TASK_DESCR.indexOf(' ')
+1,taskData.TASK_DESCR.indexOf(' ')+2) : taskData.TASK_DESCR.substring(1,2) }}
</div>
</div>
<div style='display: inline-block; font-size:14px; padding:1px;
cursor:pointer; width: 100%;'title='{{taskData.TASK_DESCR}}'>
<div class="componantTtl truncateText" style='position: relative; vertical-align: -webkit-baseline-middle;'>
{{taskData.TASK_DESCR}}
</div>
<!-- {{taskData.taskDueStr | amDifference: today :'days' : true}} -->
<div style=" font-size: 12px; color: #666; " > {{ taskData.taskDueStr }} <!-- {{ 'today | amDifference: taskData.CURR_STATUS :'days' : true }} --> days </div>
</div>
<div style='float: right; font-size: 14px; width: 15%; line-height: 27px; '>
<mat-slide-toggle>Yes</mat-slide-toggle>
</div>
</div>
</div>
</ng-template> ]]>
</html>
</layout>
</component>
</view>
</Root>
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