Commit 015d25d0 authored by prumde's avatar prumde

Updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205917 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 09e1ffef
<?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[PLAN_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[0]]>
</default_value>
<col_name><![CDATA[startingBattery]]></col_name>
<col_descr><![CDATA[Starting Battery]]></col_descr>
<col_id><![CDATA[startingBattery]]></col_id>
<field_name><![CDATA[START BATTERY]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
</filters>
<page_title><![CDATA[Account Activity]]></page_title>
<datasource id ='1' driverName='DriverITM' dataSourceType = 'dataModel'><![CDATA[accout_activity_dm]]></datasource>
<datasource id ='2' driverName='DriverITM' dataSourceType='servlet'><![CDATA[rest/dashboard/history/password]]></datasource>
<datasource id ='3' driverName='DriverITM' dataSourceType='servlet'><![CDATA[rest/dashboard/history/device]]></datasource>
<view id='1' name='Simple Layout'>
<component datasource='1' id='20000' type='CARD'>
<component_icon><![CDATA[accountActivitySummary.png]]></component_icon>
<ComponentTitle><![CDATA[Account Activity Summary Graph]]></ComponentTitle>
<ComponentName><![CDATA[acc-activity-graph]]></ComponentName>
<component_css><![CDATA[db-col-2]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<layout protoType='card'>
<html><![CDATA[]]></html>
</layout>
</component>
<component datasource='1' id='30000' type='CARD'>
<component_icon><![CDATA[accountActivityDetails.png]]></component_icon>
<ComponentTitle><![CDATA[Account Activity Details]]></ComponentTitle>
<ComponentName><![CDATA[account-activity]]></ComponentName>
<component_css><![CDATA[db-col-2]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<layout protoType='card'>
<html><![CDATA[]]></html>
</layout>
</component>
<component datasource='2' id='4' type='FEED'>
<component_icon><![CDATA[password_history.png]]></component_icon>
<ComponentTitle><![CDATA[Password History]]></ComponentTitle>
<ComponentName><![CDATA[Password History]]></ComponentName>
<component_css><![CDATA[db-col-2]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<obj_name><![CDATA[]]></obj_name>
<layout protoType='card'>
<html><![CDATA[
<ng-container *ngIf="context.passwrdHistory && context.passwrdHistory.length &gt; 0 ; else nodata">
<div *ngFor="let passChgHisData of context.passwrdHistory">
<div class="summDetails">
<div class="sum-content" style="padding-top: 8px;">
<div class="sumInfo">
<img *ngIf="passChgHisData.DEVICE_TYPE == 'Browser'" class="sumImg" src='angplugin/assets/images/svg/desktop.svg' />
<img *ngIf="passChgHisData.DEVICE_TYPE == 'Android Tablet'" class="sumImg" src='angplugin/assets/images/svg/tablet.svg' />
<img *ngIf="passChgHisData.DEVICE_TYPE == 'Android Mobile'" class="sumImg" src='angplugin/assets/images/svg/Mobile.svg' />
</div>
<div class="sumInfoRes">
<span class="sumOsName">{{passChgHisData.DEVICE_MAKE}}</span>
<span class="sumInfoLoginData">Last Password Changed : {{passChgHisData.PASS_CHG_DATE | amTimeAgo }}</span>
</div>
</div>
</div>
</div>
</ng-container>
<ng-template #nodata >
<div> No data to display</div>
</ng-template>
]]></html>
</layout>
</component>
<component datasource='3' id='5' type='FEED'>
<component_icon><![CDATA[device_history.png]]></component_icon>
<ComponentTitle><![CDATA[Device History]]></ComponentTitle>
<ComponentName><![CDATA[Device History]]></ComponentName>
<component_css><![CDATA[db-col-2]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<layout protoType='card'>
<html><![CDATA[
<div class="ext-dashboard">
<div *ngFor="let deviceHisData of context.deviceList" style="padding-bottom: 1px;cursor:pointer;">
<details class="details-animated">
<summary>
<div class="summDetails">
<div class="sum-content" style="padding-top: 8px;">
<div class="sumInfo">
<img *ngIf="deviceHisData.DEVICE_TYPE == 'Browser'" class="sumImg" src='angplugin/assets/images/svg/desktop.svg'/>
<img *ngIf="deviceHisData.DEVICE_TYPE == 'Android Tablet'" class="sumImg" src='angplugin/assets/images/svg/tablet.svg'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Android' || deviceHisData.DEVICE_OS == 'iOS'" class="sumImg" src='angplugin/assets/images/svg/Mobile.svg'/>
</div>
<div class="sumInfoRes">
<span class="sumOsName">{{deviceHisData.DEVICE_MAKE}}</span>
<span class="sumInfoLoginData">Device Logged in : {{deviceHisData.CHG_DATE | amTimeAgo }}</span>
</div>
</div>
<div class="timeline-expand-icon"></div>
</div>
</summary>
<div class="row summaryContent">
<div *ngIf="deviceHisData.DEVICE_OS" class="osHistory">
<span style="font-size:12px;color:#666;">Operating System</span>
<div class="osDetail" style="background-color: white;">
<div class="osIcon">
<img *ngIf="deviceHisData.DEVICE_OS == 'Linux'" class="osIconImg" src='angplugin/assets/images/Linux.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Windows NT'" class="osIconImg" src='angplugin/assets/images/windows.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Android'" class="osIconImg" src='angplugin/assets/images/Android.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'iOS'" class="osIconImg" src='angplugin/assets/images/Apple.png'/>
</div>
<div class="summaryInfoRes">
<span class="summarryOsName">{{deviceHisData.DEVICE_OS}}</span>
</div>
</div>
</div>
<div *ngIf="deviceHisData.DEVICE_TYPE" class="osHistory">
<span style="font-size:12px;color:#666;">Browser</span>
<div class="osDetail" style="background-color: white;">
<div class="osIcon">
<img *ngIf="deviceHisData.DEVICE_OS == 'Linux'" class="osIconImg" src='angplugin/assets/images/chrome.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Windows NT'" class="osIconImg" src='angplugin/assets/images/windows.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'Android'" class="osIconImg" src='angplugin/assets/images/Android.png'/>
<img *ngIf="deviceHisData.DEVICE_OS == 'iOS'" class="osIconImg" src='angplugin/assets/images/Apple.png'/>
</div>
<div class="summaryInfoRes">
<span *ngIf="deviceHisData.DEVICE_TYPE != 'Browser'" class="summarryOsName">{{deviceHisData.DEVICE_TYPE}}</span>
<span *ngIf="deviceHisData.DEVICE_TYPE == 'Browser'" class="summarryOsName">Chrome</span>
</div>
</div>
</div>
</div>
</details>
</div>
</div>
]]></html>
</layout>
</component>
</view>
</Root>
......@@ -7,7 +7,7 @@
"image" : "logo_company.png",
"title" : "Proteus Vision",
"subtitle" : "Simple &#149; Smart &#149; Intelligent",
"quicklinks" : [
"kpilinks" : [
{
"bgImage":"linear-gradient(-45deg, #007bab, #00c9ff)",
"image" : "location2.svg",
......@@ -15,21 +15,12 @@
"subtitle1" : " getUserActSummary('PTE_COUNT') ",
"execFunction" : "openComponentANG('place-time-entity', 'component');"
},
{
"bgImage":"linear-gradient(-45deg, #333333, #666666)",
"image" : "tag.svg",
"title" : "My Tagging",
"subtitle1" : "",
"execFunction" : "openComponentANG('my-tagging', 'component');"
},
{
"bgImage":"linear-gradient(-45deg, #e47842, #ffac83)",
"image" : "my_activities.svg",
"title" : "My Activities",
"subtitle1" : "getUserActSummary('LAST_LOGIN')",
"subtitle1Click" : "event.stopPropagation(); openComponentANG('allLoginHistory', 'dashboard'); ",
"subtitle2" : "getUserActSummary('LAST_PASS_CHG')",
"subtitle2Click" : "event.stopPropagation(); openComponentANG('passwordHistory', 'dashboard'); ",
"execFunction" : "openComponentANG('accountActivity', 'dashboard');"
},
{
......@@ -39,19 +30,21 @@
"subtitle1" : "getUserActSummary('CLM_COUNT')",
"execFunction" : "openComponentANG('contentLibrary', 'dashboard');"
},
{
"bgImage":"linear-gradient(-45deg, #01a27f, #00e1af)",
"image" : "my_device.svg",
"title" : "My Devices",
"subtitle1" : "getUserActSummary('DEVICE_OWNER')",
"execFunction" : " openComponentANG('deviceHistory', 'dashboard'); "
},
{
"bgImage":"linear-gradient(-45deg, #333333, #666666)",
"image" : "background_progress.svg",
"title" : "Background Job",
"subtitle1" : " 'Background Job' ",
"execFunction" : "openComponentANG('backgroundJobStatus', 'dashboard');"
}
],
"quicklinks" : [
{
"bgImage":"linear-gradient(-45deg, #333333, #666666)",
"image" : "tag.svg",
"title" : "My Tagging",
"subtitle1" : "",
"execFunction" : "openComponentANG('my-tagging', 'component');"
},
{
"bgImage":"linear-gradient(-45deg, #007bab, #00c9ff)",
......@@ -67,7 +60,7 @@
"subtitle1" : " getTodaysDashboardStatus('CUST_TYPE') ",
"subtitle2" : " getTodaysDashboardStatus('LISTED') ",
"execFunction" : "openComponentANG('todays', 'dashboard');",
"displayLink" : "Y"
"obj_name_rights" : "strg_meet_dcr_realtime_wiz"
},
{
"bgImage":"linear-gradient(-45deg, #7053cc, #c3b3f7)",
......@@ -119,18 +112,14 @@
<img src='{{quicklink.image}}' [ngClass]="evalFunction(quicklink.imageFunction)" />
</div>
<div class="quicklink-content">
<span class="quicklink-content-first-line">{{quicklink.title}}</span>
<span *ngIf="quicklink.subtitle1Click" class="quicklink-content-second-line" (click)="evalFunction(quicklink.subtitle1Click)">
<a href='#' class="quicklinksubtitle1Click">{{evalFunction(quicklink.subtitle1)}}</a>
</span>
<span *ngIf="!quicklink.subtitle1Click"
class="quicklink-content-second-line">{{evalFunction(quicklink.subtitle1)}}
<span class="quicklink-content-first-line">
{{quicklink.title}}
</span>
<span *ngIf="quicklink.subtitle2Click" class="quicklink-content-second-line" (click)="evalFunction(quicklink.subtitle2Click)">
<a href='#' class="quicklinksubtitle2Click">{{evalFunction(quicklink.subtitle2)}}</a>
<span class="quicklink-content-second-line">
{{evalFunction(quicklink.subtitle1)}}
</span>
<span *ngIf="!quicklink.subtitle2Click"
class="quicklink-content-second-line">{{evalFunction(quicklink.subtitle2)}}
<span class="quicklink-content-second-line">
{{evalFunction(quicklink.subtitle2)}}
</span>
</div>
</div>
......
......@@ -6,7 +6,7 @@
<datasource id='1' driverName='DriverITM' dataSourceType='servlet'><![CDATA[rest/dashboard/history/password]]></datasource>
<view id='1' name='SalesOrder'>
<component datasource='1' id='1' type='FEED'>
<component_icon><![CDATA[missedcalls.svg]]></component_icon>
<component_icon><![CDATA[password_history.svg]]></component_icon>
<ComponentTitle><![CDATA[Password History]]></ComponentTitle>
<ComponentName><![CDATA[Password History]]></ComponentName>
<component_css><![CDATA[]]>
......
<?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[fromDate]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[0]]></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[toDate]]></field_name>
<mod_name><![CDATA[DASHBOARD]]></mod_name>
<show_ontitle><![CDATA[0]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
</filters>
<datasource id ='1' driverName='DriverITM' dataSourceType='servlet' callbackJSFunction = 'updateCacheDCRData'><![CDATA[TodaysServlet]]></datasource>
<datasource id ='2' driverName='DriverITM' dataSourceType='servlet'><![CDATA[MissedCallsServlet]]></datasource>
<datasource id ='3' driverName='DriverITM' dataSourceType='servlet'><![CDATA[ImportantEventServlet]]></datasource>
<page_title><![CDATA[Todays]]></page_title>
<view id='1' name='Default'>
<component datasource='1' id='10000' type='CARD'>
<chart_properties id='1' chartProvider='chartjs'>
<chart_type id='doughnut'><![CDATA[doughnut]]></chart_type>
<height><![CDATA[270px]]></height>
<width><![CDATA[]]></width>
<opacity><![CDATA[1]]></opacity>
<label><![CDATA[Calls]]></label>
<legendPosition><![CDATA[inline]]></legendPosition>
<colors>
<color id="Listed"><![CDATA[31, 193, 113]]></color>
<color id="Unlisted"><![CDATA[255, 205, 20]]></color>
</colors>
</chart_properties>
<component_icon><![CDATA[todays.svg]]></component_icon>
<ComponentTitle><![CDATA[Todays]]></ComponentTitle>
<ComponentName><![CDATA[summary-timeline]]></ComponentName>
<component_css><![CDATA[db-col-3]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<link_metadata><![CDATA[customerInfo]]></link_metadata>
<isAutoRefresh><![CDATA[Y]]></isAutoRefresh>
<layout protoType='card'>
<html><![CDATA[]]></html>
</layout>
<column_group id='1'>
<columns>
<column id='1' type='string' key='OPTION_NAME'><![CDATA[OPTION_NAME]]></column>
</columns>
</column_group>
<column_group id='2'>
<columns>
<column id='1' type='string' value='OPTION_VALUE' ><![CDATA[OPTION_VALUE]]></column>
</columns>
</column_group>
</component>
<component datasource='2' id='2' type='FEED'>
<component_icon><![CDATA[missedcalls.svg]]></component_icon>
<ComponentTitle><![CDATA[Missed Calls]]></ComponentTitle>
<ComponentName><![CDATA[Missed Calls]]></ComponentName>
<component_css><![CDATA[db-col-3]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<obj_name><![CDATA[visitplanprocess]]></obj_name>
<layout protoType='card'>
<html><![CDATA[
<style>
.missed-call-row {
padding: 0.25em 0.5em;
display: flex;
box-shadow: 0px -1px 0px 0px #ededed;
}
.missed-call-cust {
align-self: center;
}
.missed-call-cust img {
height: 32px;
width: 32px;
border-radius: 50%;
}
.missed-call-content {
position: relative;
width: 100%;
display: flex;
justify-content: space-between;
padding: 0 0.5em;
}
.missed-call-content1 {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
.missed-call-content2 {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
}
.missed-call-content1 span {
font-size: 12px;
color: #666;
display: block;
}
.missed-call-content2 span {
color: #aaa;
font-size: 12px;
}
</style>
<div style="padding-top: 1px">
<div *ngFor = "let missCallData of context" onclick="setFeedData.onClick($event);">
<ng-container *ngTemplateOutlet=" eventsTemplate; context:{ $implicit: missCallData }" ></ng-container>
</div>
</div>
<ng-template #eventsTemplate let-missCallData >
<div class = "missed-call-row" >
<div class = "missed-call-cust">
<img src='{{missCallData.SC_IMAGE}}' />
</div>
<div class="missed-call-content">
<div class = "missed-call-content1">
<span> {{missCallData.CUST_NAME}} - {{missCallData.LOCALITY}} </span>
<span *ngIf="!missCallData.LAST_VISIT"> No.Visits {{missCallData.NO_VISIT}}</span>
<span *ngIf="missCallData.LAST_VISIT"> No.Visits {{missCallData.NO_VISIT}} -{{ missCallData.LAST_VISIT | date : 'mediumDate'}} </span>
</div>
<div class = "missed-call-content2">
<span> {{missCallData.CLASS_CODE_DESCR}} </span>
<span *ngIf="!missCallData.LAST_VISIT"> {{ 'Never Meet' }}</span>
<span *ngIf="missCallData.LAST_VISIT"> {{ 'Meet '+missCallData.DAYS_SINCE+' days back' }}</span>
</div>
</div>
</div>
</ng-template>
]]></html>
</layout>
<column_group id='1'>
<columns>
<column id='1' type='number' aggFunction='SORT_BY'><![CDATA[DAYS_SINCE]]></column>
</columns>
</column_group>
</component>
<component datasource='3' id='3' type='FEED'>
<component_icon><![CDATA[customerevents.svg]]></component_icon>
<ComponentTitle><![CDATA[Customer Events]]></ComponentTitle>
<ComponentName><![CDATA[Customer Events]]></ComponentName>
<component_css><![CDATA[db-col-3]]></component_css>
<component_descr><![CDATA[]]></component_descr>
<obj_name><![CDATA[custevents]]></obj_name>
<layout protoType='card'>
<html><![CDATA[
<style>
.cust-event-row {
padding: 0.25em 0.5em;
display: flex;
box-shadow: 0px -1px 0px 0px #ededed;
}
.cust-event-cust {
align-self: center;
}
.cust-event-cust img {
height: 32px;
width: 32px;
border-radius: 50%;
}
.cust-event-content {
position: relative;
width: 100%;
display: flex;
justify-content: space-between;
padding: 0 0.5em;
}
.cust-event-content1 {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
.cust-event-content2 {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
}
.cust-event-content1 span {
font-size: 12px;
color: #666;
display: block;
}
.cust-event-content2 span {
color: #aaa;
font-size: 12px;
}
</style>
<div *ngFor = "let ctx of context">
<div *ngIf = "ctx.key =='EV1_TODAY'">
<div class="event-interval"> Today </div>
<div *ngIf = "ctx.objects.length == 1 && !ctx.objects[0].SC_CODE" class = "tree-row" style ="line-height: 32px; padding-left: 8px; font-size:small;">
No Events Available
</div>
<div *ngIf = "ctx.objects.length > 0 && ctx.objects[0].SC_CODE" >
<ng-container *ngTemplateOutlet=" eventsTemplate; context:{ $implicit: ctx.objects }" ></ng-container>
</div>
</div>
<div *ngIf = "ctx.key=='EV2_WEEK_DATA' ">
<div class="event-interval"> This Week </div>
<div *ngIf = "ctx.objects.length == 1 && !ctx.objects[0].SC_CODE" class = "tree-row" style ="line-height: 32px; padding-left: 8px; font-size:small;">
No Events Available
</div>
<div *ngIf = "ctx.objects.length > 0 && ctx.objects[0].SC_CODE" >
<ng-container *ngTemplateOutlet=" eventsTemplate; context:{ $implicit: ctx.objects }" ></ng-container>
</div>
</div>
<div *ngIf = "ctx.key=='EV3_NEXT_WEEK_DATA' ">
<div class="event-interval"> Next Week </div>
<div *ngIf = "ctx.objects.length == 1 && !ctx.objects[0].SC_CODE" class = "tree-row" style ="line-height: 32px; padding-left: 8px; font-size:small;">
No Events Available
</div>
<div *ngIf = "ctx.objects.length > 0 && ctx.objects[0].SC_CODE">
<ng-container *ngTemplateOutlet=" eventsTemplate; context:{ $implicit: ctx.objects }" ></ng-container>
</div>
</div>
</div>
<ng-template #eventsTemplate let-eventsData >
<div *ngFor = "let eventData of eventsData">
<div class = "cust-event-row" >
<div class = "cust-event-cust">
<img src='{{eventData.SC_IMAGE}}' />
</div>
<div class="cust-event-content">
<div class = "cust-event-content1">
<span> {{eventData.SC_NAME}} ({{eventData.SC_CODE}}) </span>
<span> {{eventData.EVENT_DESCR}} - {{eventData.PRESENT_DATE | date : 'fullDate'}}</span>
</div>
<div class = "cust-event-content2">
<span *ngIf="!eventData.DR_MOBILE_NO || eventData.DR_MOBILE_NO.length > 0 ">
<a style="color: gray;" href="tel:+91{{eventData.DR_MOBILE_NO}}">
<i class="material-icons phone-icon">phone</i>
{{eventData.DR_MOBILE_NO}}
</a>
</span>
<span> {{eventData.EVENT_DATE}}</span>
</div>
</div>
</div>
</div>
</ng-template>
]]></html>
</layout>
<column_group id='1'>
<columns>
<column id='1' type='string' aggFunction='GROUP_BY'><![CDATA[EVENT_INTERVAL]]></column>
</columns>
</column_group>
</component>
<!-- </view> -->
</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