Commit d995012b authored by pborate's avatar pborate

Updated changes for cg crm dashboard

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211722 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1081cfaa
<?xml version='1.0'?>
<Root>
<filters display='Y'>
<filter type='4'>
<default_value><![CDATA[]]>
</default_value>
<col_name><![CDATA[fromDate]]></col_name>
<col_descr><![CDATA[Date]]></col_descr>
<col_id><![CDATA[fromDate]]></col_id>
<field_name><![CDATA[EVENT_DATE]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
<filter type='1'>
<default_value><![CDATA[EMP_CODE]]></default_value>
<col_name ><![CDATA[ASE_NAME]]></col_name>
<col_descr ><![CDATA[ASE Name]]></col_descr>
<col_id><![CDATA[aseName]]></col_id>
<field_name><![CDATA[ASE_NAME]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
</filters>
<page_title><![CDATA[Consumer Goods - CRM]]></page_title>
<datasource id ='1' driverName='DriverITM' dataSourceType='servlet'><![CDATA[ConsumerGoodsCRMServlet]]></datasource>
<view id='1' name='SalesOrder'>
<component datasource='1' id='10000' type='CARD'>
<component_icon><![CDATA[contentLibrary.png]]></component_icon>
<ComponentTitle><![CDATA[Consumer Goods - CRM]]></ComponentTitle>
<ComponentName><![CDATA[dashboard-kpi]]></ComponentName>
<component_css><![CDATA[db-col-1]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<height><![CDATA[300]]></height>
<width><![CDATA[100%]]></width>
<flat_view><![CDATA[Y]]></flat_view>
<min_height><![CDATA[0]]></min_height>
<layout protoType='card'>
<html><![CDATA[]]></html>
</layout>
</component>
<component datasource='1' id='20000' type='FEED'>
<component_icon><![CDATA[contentLibrary.png]]></component_icon>
<ComponentTitle><![CDATA[Work Summary]]></ComponentTitle>
<ComponentName><![CDATA[]]></ComponentName>
<component_css><![CDATA[db-col-1]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<height><![CDATA[300]]></height>
<min_height><![CDATA[0]]></min_height>
<layout protoType='card'>
<html><![CDATA[
<ng-container *ngIf="context.WORK_SUMMARY && context.WORK_SUMMARY.length &gt; 0 ; else nodata">
<div style="padding-top: '10px'">
<div *ngFor = "let summary of context.WORK_SUMMARY" onclick="setFeedData.onClick($event);">
<ng-container *ngTemplateOutlet=" workSummaryTemplate; context:{ $implicit: summary }" ></ng-container>
</div>
</div>
</ng-container>
<ng-template #nodata >
<div> No data to display</div>
</ng-template>
<ng-template #workSummaryTemplate let-summary>
<div style="margin:0;padding: 5px 0 5px 30px;border-bottom: 1px solid #f2f2f2;" class = "tree-row">
<div class = "tree-row-img">
<img style="height: 28px;width: 28px;" class='dashboard-userAvatar' src='{{summary.imgUrl}}'/>
</div>
<div class="tree-row-content">
<div class="tree-row1">
<span class="tree-row-text"><span style="font-weight: 600;text-transform: uppercase;">{{summary.salesPersName}}</span>, {{summary.salesPersZone}}</span>
</div>
<div class="tree-row2" style="padding-top: 4px;">
<span *ngFor="let chip of summary.workDetails" class="ang-chip">
<span style="font-weight: 600;" [style.color]="chip.color">{{chip.count}}</span> {{chip.value}}
</span>
</div>
</div>
</div>
</ng-template>
]]></html>
</layout>
</component>
<!--
<component datasource='1' id='30000' type='CARD'>
<component_icon><![CDATA[contentLibrary.png]]></component_icon>
<ComponentTitle><![CDATA[Work Details]]></ComponentTitle>
<ComponentName><![CDATA[assessment-details]]></ComponentName>
<component_css><![CDATA[db-col-2]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<height><![CDATA[300]]></height>
<min_height><![CDATA[0]]></min_height>
<layout protoType='tree'>
<html id='customer'><![CDATA[
<div class="avatar">
<img style="height: 28px;width: 28px;" class='dashboard-userAvatar' src='{{customer_img}}' />
<div class="avatar-text-content">
<span style="font-size: 14px;" class="avatar-text">{{customer}}</span>
<span style="font-size: 12px;display: block;padding-left: 4px;color: rgb(122, 122, 122);">SKU {{customer_sku}}, Outlet {{customer_outlet}}</span>
</div>
</div>
]]></html>
<html id='product'><![CDATA[
<div class="avatar">
<span style="height: 26px;width: 26px;display: inline-block;border-radius: 100%;background: #e6e6e6;line-height: 26px;text-align: center;"/>{{product_intitals}}</span>
<div class="avatar-text-content">
<span style="font-size: 14px;" class="avatar-text">{{product}}</span>
<span style="font-size: 12px;display: block;padding-left: 4px;color: rgb(122, 122, 122);">Outlet {{product_outlet}}, Quantity {{product_quantity}}</span>
</div>
</div>
</div>
]]></html>
</layout>
</component>
-->
</view>
</Root>
<?xml version='1.0'?>
<Root>
<filters display='Y'>
<filter type='4'>
<default_value><![CDATA[]]>
</default_value>
<col_name><![CDATA[fromDate]]></col_name>
<col_descr><![CDATA[From date]]></col_descr>
<col_id><![CDATA[fromDate]]></col_id>
<field_name><![CDATA[EVENT_DATE]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
<filter type='4'>
<default_value><![CDATA[]]>
</default_value>
<col_name><![CDATA[toDate]]></col_name>
<col_descr><![CDATA[To date]]></col_descr>
<col_id><![CDATA[toDate]]></col_id>
<field_name><![CDATA[EVENT_DATE]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
<filter type='1'>
<default_value><![CDATA[EMP_CODE]]></default_value>
<col_name ><![CDATA[ASE_NAME]]></col_name>
<col_descr ><![CDATA[ASE Name]]></col_descr>
<col_id><![CDATA[aseName]]></col_id>
<field_name><![CDATA[ASE_NAME]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
</filters>
<page_title><![CDATA[Consumer Goods - CRM]]></page_title>
<!--<datasource id ='1' driverName='DriverITM' dataSourceType='servlet'><![CDATA[dashboard/dashboardKPI.json]]></datasource> -->
<datasource id ='1' driverName='DriverITM' dataSourceType='servlet'><![CDATA[ConsumerGoodsCRMServlet]]></datasource>
<view id='1' name='cgcrmMtd' >
<component datasource='1' id='10000' type='CARD'>
<component_icon><![CDATA[contentLibrary.png]]></component_icon>
<ComponentTitle><![CDATA[Consumer Goods - CRM]]></ComponentTitle>
<ComponentName><![CDATA[dashboard-kpi]]></ComponentName>
<component_css><![CDATA[db-col-1]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<height><![CDATA[300]]></height>
<width><![CDATA[100%]]></width>
<min_height><![CDATA[auto]]></min_height>
<flat_view><![CDATA[Y]]></flat_view>
<layout protoType='card'>
<html><![CDATA[]]></html>
</layout>
</component>
<component datasource='1' id='20000' type='FEED'>
<component_icon><![CDATA[contentLibrary.png]]></component_icon>
<ComponentTitle><![CDATA[MTD Work Summary]]></ComponentTitle>
<ComponentName><![CDATA[]]></ComponentName>
<component_css><![CDATA[db-col-1]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<height><![CDATA[400]]></height>
<layout protoType='card'>
<html><![CDATA[
<style>
.noFeedDataFound {
text-align: center;
padding: 20px;
font-size: 12px;
}
</style>
<ng-container *ngIf="context.WORK_SUMMARY && context.WORK_SUMMARY.length &gt; 0 ; else nodata">
<div style="padding-top: '10px'">
<div *ngFor = "let summary of context.WORK_SUMMARY" onclick="setFeedData.onClick($event);">
<ng-container *ngTemplateOutlet=" workSummaryTemplate; context:{ $implicit: summary }" ></ng-container>
</div>
</div>
</ng-container>
<ng-template #nodata >
<div class="noFeedDataFound"> No data to display</div>
</ng-template>
<ng-template #workSummaryTemplate let-summary>
<div style="margin:0;padding: 5px 0 5px 30px;border-bottom: 1px solid #f2f2f2;" class = "tree-row">
<div class = "tree-row-img">
<img style="height: 28px;width: 28px;" class='dashboard-userAvatar' src='{{summary.imgUrl}}'/>
</div>
<div class="tree-row-content">
<div class="tree-row1">
<span class="tree-row-text"><span style="font-weight: 600;text-transform: uppercase;">{{summary.salesPersName}}</span>, {{summary.salesPersZone}}</span>
</div>
<div class="tree-row2" style="padding-top: 4px;">
<span *ngFor="let chip of summary.workDetails" class="ang-chip">
<span style="font-weight: 600;" [style.color]="chip.color">{{chip.count}}</span> {{chip.value}}
</span>
</div>
</div>
</div>
</ng-template>
]]></html>
</layout>
</component>
<component datasource='1' id='30000' type='CARD'>
<component_icon><![CDATA[contentLibrary.png]]></component_icon>
<ComponentTitle><![CDATA[MTD Work Details Itemwise]]></ComponentTitle>
<ComponentName><![CDATA[assessment-details]]></ComponentName>
<component_css><![CDATA[db-col-2]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<height><![CDATA[400]]></height>
<layout protoType='tree'>
<html id='customer'><![CDATA[
<div class="avatar">
<img style="height: 28px;width: 28px;" class='dashboard-userAvatar' src='{{customer_img}}' />
<div class="avatar-text-content">
<span style="font-size: 14px;" class="avatar-text">{{customer}}</span>
<span style="font-size: 12px;display: block;padding-left: 4px;color: rgb(122, 122, 122);">SKU {{customer_sku}}, Outlet {{customer_outlet}}</span>
</div>
</div>
]]></html>
<html id='product'><![CDATA[
<div class="avatar">
<span style="height: 26px;width: 26px;display: inline-block;border-radius: 100%;background: #e6e6e6;line-height: 26px;text-align: center;"/>{{product_intitals}}</span>
<div class="avatar-text-content">
<span style="font-size: 14px;" class="avatar-text">{{product}}</span>
<span style="font-size: 12px;display: block;padding-left: 4px;color: rgb(122, 122, 122);">Outlet {{product_outlet}}, Quantity {{product_quantity}}</span>
</div>
</div>
</div>
]]></html>
</layout>
<column_group id='ROOT_DATA'>
<col_group_title><![CDATA[WORK_DETAIL_ITEM]]></col_group_title>
<column_size><![CDATA[120]]></column_size>
<column_alignment><![CDATA[left]]></column_alignment>
<columns>
<column id='WORK_DETAIL_ITEM' type='string'><![CDATA[WORK_DETAIL_ITEM]]></column>
</columns>
</column_group>
</component>
<component datasource='1' id='40000' type='CARD'>
<component_icon><![CDATA[contentLibrary.png]]></component_icon>
<ComponentTitle><![CDATA[MTD Work Details Placewise]]></ComponentTitle>
<ComponentName><![CDATA[assessment-details]]></ComponentName>
<component_css><![CDATA[db-col-2]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<height><![CDATA[400]]></height>
<min_height><![CDATA[0]]></min_height>
<layout protoType='tree' expansion_Icon_Position='left'>
<html id='salesPers'><![CDATA[
<div class="avatar">
<img style="height: 28px;width: 28px;" class='dashboard-userAvatar' src='{{salesPers_Img}}' />
<div class="avatar-text-content">
<span style="font-size: 14px;" class="avatar-text">{{salesPers_Name}}</span>
</div>
</div>
]]></html>
<html id='locality'><![CDATA[
<div class="avatar">
<span style="font-size: 12px;text-align: right;color: #666;display: inline-block;float: right;position: absolute;right: 0px;" class="avatar-text">
{{eventDate}} </span>
<img style="height: 28px;width: 28px;" class='dashboard-userAvatar' src='{{locality_img}}' />
<div class="avatar-text-content">
<span style="font-size: 14px;" class="avatar-text">{{locality}}</span>
<div class="tree-row2" style="padding-top: 4px; display: block;">
<span class="ang-chip">
<span style="font-weight: 600; color: {{wdkpi0color}}; " >{{wdkpi0count}}</span> {{wdkpi0value}}
</span>
<span class="ang-chip">
<span style="font-weight: 600; color: {{wdkpi1color}};">{{wdkpi1count}}</span> {{wdkpi1value}}
</span>
<span class="ang-chip">
<span style="font-weight: 600; color: {{wdkpi2color}};">{{wdkpi2count}}</span> {{wdkpi2value}}
</span>
<span class="ang-chip">
<span style="font-weight: 600; color: {{wdkpi3color}};">{{wdkpi3count}}</span> {{wdkpi3value}}
</span>
</div>
</div>
</div>
</div>
]]></html>
</layout>
<column_group id='ROOT_DATA'>
<col_group_title><![CDATA[WORK_DETAIL_PLACE]]></col_group_title>
<column_size><![CDATA[120]]></column_size>
<column_alignment><![CDATA[left]]></column_alignment>
<columns>
<column id='WORK_DETAIL_PLACE' type='string'><![CDATA[WORK_DETAIL_PLACE]]></column>
</columns>
</column_group>
</component>
</view>
</Root>
...@@ -67,11 +67,16 @@ ...@@ -67,11 +67,16 @@
<layout protoType='card'> <layout protoType='card'>
<html><![CDATA[ <html><![CDATA[
<ng-container *ngIf="context.WORK_SUMMARY && context.WORK_SUMMARY.length &gt; 0 ; else nodata">
<div style="padding-top: '10px'"> <div style="padding-top: '10px'">
<div *ngFor = "let summary of context.WORK_SUMMARY" onclick="setFeedData.onClick($event);"> <div *ngFor = "let summary of context.WORK_SUMMARY" onclick="setFeedData.onClick($event);">
<ng-container *ngTemplateOutlet=" workSummaryTemplate; context:{ $implicit: summary }" ></ng-container> <ng-container *ngTemplateOutlet=" workSummaryTemplate; context:{ $implicit: summary }" ></ng-container>
</div> </div>
</div> </div>
</ng-container>
<ng-template #nodata >
<div> No data to display</div>
</ng-template>
<ng-template #workSummaryTemplate let-summary> <ng-template #workSummaryTemplate let-summary>
<div style="margin:0;padding: 5px 0 5px 30px;border-bottom: 1px solid #f2f2f2;" class = "tree-row"> <div style="margin:0;padding: 5px 0 5px 30px;border-bottom: 1px solid #f2f2f2;" class = "tree-row">
<div class = "tree-row-img"> <div class = "tree-row-img">
...@@ -126,6 +131,15 @@ ...@@ -126,6 +131,15 @@
</div> </div>
]]></html> ]]></html>
</layout> </layout>
<column_group id='ROOT_DATA'>
<col_group_title><![CDATA[WORK_DETAIL_ITEM]]></col_group_title>
<column_size><![CDATA[120]]></column_size>
<column_alignment><![CDATA[left]]></column_alignment>
<columns>
<column id='WORK_DETAIL_ITEM' type='string'><![CDATA[WORK_DETAIL_ITEM]]></column>
</columns>
</column_group>
</component> </component>
</view> </view>
......
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