Commit 17c4f7c6 authored by prumde's avatar prumde

Updated for any level drilldown

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217408 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2378ce3a
<?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[Sell Planning Review - ANY START LEVEL]]></page_title>
<datasource id="1" dataSourceType="datamodel"><![CDATA[SELL_PLAN_REVIEW_ALL_DM]]></datasource>
<view id="1" name="Default" type="flatonly" fixed_refresh="true">
<component datasource="1" id="1" type="COMPOSITE">
<component_icon><![CDATA[sellPlanReview.svg]]></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_id><![CDATA[_composite_any_list]]></composite_id>
<composite_descr><![CDATA[Sell Planning Summary ANY LEVEL]]></composite_descr>
<link_metadata><![CDATA[sell_plan_product_details]]></link_metadata>
<link_condition><![CDATA[ rowData['IS_PLANNING_AVAIL'] == 'Y' ]]></link_condition>
<column_group id="1">
<columns>
<column id="1" type="string" filterByExpr=" data['REPORT_TO'] == (localStorage.getItem('userName') + '').padEnd(10,' ') "><![CDATA[]]></column>
</columns>
</column_group>
<column_group id="2">
<columns>
<column id="1" type="string" aggFunction="AVERAGE" groupBy="EMP_CODE"><![CDATA[SELL_IN,SELL_OUT]]></column>
</columns>
</column_group>
<composite_config><![CDATA[
{
component_type: 'PROFILE_CARD_3',
summaryModel: {
image: 'meet_summary.svg',
title: 'My Summary',
title_column: 'title',
theme_column: 'HIER_THEME',
info_visible: true,
selected: true,
link_metadata : 'sell_plan_product_summary',
sub_title_column: 'STATION_DESCR',
info_text: 'Sell In',
info_column: 'SELL_IN',
sub_info_text: 'Sell Out',
sub_info_column: 'SELL_OUT',
copykeys : 'REPORT_TO,EMP_CODE,EMP_NAME,SELL_IN,SELL_OUT,HIER_THEME',
_OBJECT_KEY : 'EMP_CODE',
_STORAGE_KEY : 'userName'
},
detailModel: {
image_column: 'USER:EMP_CODE',
image_size: 'lg',
title_column: 'EMP_NAME',
sub_title_column: 'STATION_DESCR',
header_column: 'header',
header: 'My Team ',
filter_column: 'EMP_CODE',
badge_column: 'DESIGNATION',
badge_theme_column: 'HIER_THEME',
alt_image_column: 'VACANT_IMAGE',
info_text: 'Sell In',
info_column: 'SELL_IN',
sub_info_text: 'Sell Out',
sub_info_column: 'SELL_OUT',
info_visible : true,
link_metadata: 'sell_plan_review_any_drill'
},
chart_properties: {
chartType: 'percentage',
labels: [''],
options: {
width: 20,
height: 20,
responsive: true,
maintainAspectRatio: false,
tooltip: false,
cutOutPercentage: 0,
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>
</component>
</view>
</Root>
<?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>
<filter type="1">
<default_value><![CDATA[]]></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[1]]></show_ontitle>
<mandatory><![CDATA[Y]]></mandatory>
</filter>
</filters>
<page_title><![CDATA[Sell Planning Review - DRILL TO ANY LEVEL]]></page_title>
<datasource id="1" dataSourceType="datamodel" filterKey='EMP_CODE' filterExpr=' context["REPORT_TO"] == "$EMP_CODE" ' ><![CDATA[SELL_PLAN_REVIEW_ALL_DM]]></datasource>
<view id="1" name="Default" type="flatonly">
<component datasource="1" id="1" type="COMPOSITE">
<component_icon><![CDATA[sellPlanReview.svg]]></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_id><![CDATA[_composite_any_drill_list]]></composite_id>
<composite_descr><![CDATA[Sell Planning Summary with Drilldown to ANY LEVEL]]></composite_descr>
<link_metadata><![CDATA[sell_plan_product_details]]></link_metadata>
<link_condition><![CDATA[ rowData['IS_PLANNING_AVAIL'] == 'Y' ]]></link_condition>
<column_group id="1">
<columns>
<column id="1" type="string" aggFunction="AVERAGE" groupBy="EMP_CODE"><![CDATA[SELL_IN,SELL_OUT]]></column>
</columns>
</column_group>
<composite_config><![CDATA[
{
component_type: 'PROFILE_CARD_3',
summaryModel: {
image: 'meet_summary.svg',
title: 'Summary of <EMP_NAME>',
title_column: 'title',
theme_column: 'HIER_THEME',
info_visible: true,
selected: true,
link_metadata : 'sell_plan_product_summary',
sub_title_column: 'STATION_DESCR',
info_text: 'Sell In',
info_column: 'SELL_IN',
sub_info_text: 'Sell Out',
sub_info_column: 'SELL_OUT',
copykeys : 'REPORT_TO,EMP_CODE,EMP_NAME,SELL_IN,SELL_OUT,HIER_THEME'
},
detailModel: {
image_column: 'USER:EMP_CODE',
image_size: 'lg',
title_column: 'EMP_NAME',
sub_title_column: 'STATION_DESCR',
header_column: 'header',
header: "<EMP_NAME>'s Team ",
filter_column: 'EMP_CODE',
badge_column: 'DESIGNATION',
badge_theme_column: 'HIER_THEME',
alt_image_column: 'VACANT_IMAGE',
info_text: 'Sell In',
info_column: 'SELL_IN',
sub_info_text: 'Sell Out',
sub_info_column: 'SELL_OUT',
info_visible : true,
link_metadata: 'sell_plan_review_any_drill'
},
chart_properties: {
chartType: 'percentage',
labels: [''],
options: {
width: 20,
height: 20,
responsive: true,
maintainAspectRatio: false,
tooltip: false,
cutOutPercentage: 0,
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>
</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