-
Notifications
You must be signed in to change notification settings - Fork 0
/
KZDashboards-KZMap.dashboard.dfi.xml
137 lines (123 loc) · 9.31 KB
/
KZDashboards-KZMap.dashboard.dfi.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25">
<Document name="KZDashboards-KZMap.dashboard.DFI">
<dashboard xmlns="http://www.intersystems.com/deepsee/library" name="KZMap" folderName="KZDashboards" title="" description="" keywords="" owner="" shared="true" public="true" locked="false" resource="" timeCreated="2013-07-04T05:29:56.446Z" createdBy="ilson" category="" bookCover="" scheme="" worklistCount="0" snapTo="true" snapGrid="true" gridRows="10" gridCols="10" canResize="true" canModify="true" showTitleBar="true" companyName="" companyLogo="" companyStyle="">
<widget name="MapW" type="portlet" subtype="KZ.MapPortlet" subtypeClass="" title="Казахстан" dataSource="KZMapKPI.kpi" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="0" colSpanL="7" rowSpanL="10" showToolbar="true" theme="" dataColorList="">
<control name="" action="applyFilter" target="*" targetProperty="ParentGuid" location="widget" type="hidden" controlClass="" label="ParentGuid" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen=""></control>
<control name="" action="applyFilter" target="*" targetProperty="ParameterName" location="widget" type="dropdown" controlClass="" label="Параметр" title="" value="Население" text="" readOnly="false" valueList="" displayList="" activeWhen=""></control>
<control name="" action="applyFilter" target="" targetProperty="PolygonsMarkers" location="widget" type="dropdown" controlClass="" label="Вариант отображения" title="" value="Polygons" text="" readOnly="false" valueList="" displayList="" activeWhen=""></control>
<property name="colorProperty"></property>
<property name="coordsJsFile">polygonsKZ.js</property>
<property name="coordsProperty">Guid</property>
<property name="fillOpacity">0.6</property>
<property name="getAdditionInfoForObjectById">KZ.ParameterValue;GetParametersData</property>
<property name="getBordersMethod">KZ.Borders;GetBorders</property>
<property name="hoverOpacity">0.4</property>
<property name="latitude">49</property>
<property name="latitudeProperty">Latitude</property>
<property name="longitude">66</property>
<property name="longitudeProperty">Longitude</property>
<property name="markerDataProperties">Name,Guid,DefaultZoom,CanDrillDown,Value,ParameterId,Level,CenterName,SpecialIcon</property>
<property name="markerIcon">http://i.imgur.com/pBB7MYT.png</property>
<property name="markerSpecialIcon">http://i.imgur.com/bFJRQfv.png</property>
<property name="markerSpecialProperty">SpecialIcon</property>
<property name="markerTitleProperty">Name</property>
<property name="onclickmarker"><![CDATA[
if (marker.data.CanDrillDown == 1)
{
for (var n = 0; n < zenThis._polygons.length; n++)
{
var poly = zenThis._polygons[n];
if (poly.data.Guid == marker.data.Guid)
{
zenInvokeCallbackMethod(zenThis.onclickpolygon,zenThis,'onclickpolygon','polygon',poly,'position', marker.position);
}
}
}
else
{
zenInvokeCallbackMethod(zenThis.onrightclickpolygon,zenThis,'onrightclickpolygon','polygon', {data: marker.data},'position', marker.position);
}
]]></property>
<property name="onclickpolygon"><![CDATA[
if(!zenThis.lastPolygon)
zenThis.lastPolygon=[];
zenThis.drillDown(polygon.data.Name, position, polygon.data.DefaultZoom, {Guid: polygon.data.Guid, Level: polygon.data.Level});
if (zenThis.lastPolygon.length > 0)
{
zenThis.lastPolygon[zenThis.lastPolygon.length - 1].setVisible(false);
}
zenThis.currPolygon = new google.maps.Polygon({zIndex: 99, fillOpacity: 0.01, strokeColor: 'rgb(0,0,0)', strokeOpacity: 0.4, paths: polygon.getPaths(), clickable: false, map: zenThis.getMapObject()});
zenThis.lastPolygon.push(zenThis.currPolygon);
]]></property>
<property name="ondrilldown">
if(!zenThis.lastGuid)
{
zenThis.lastGuid = [];
zenThis.lastLevel = [];
zenThis.currGuid = '';
zenThis.currName = '';
zenThis.currLevel = '';
}
zenThis.lastLevel.push(zenThis.currLevel);
zenThis.lastGuid.push(zenThis.currGuid);
zenThis.currLevel = data.Level;
zenThis.currGuid = data.Guid;
zenThis._sliderRangeData.currGuid = data.Guid;
zenPage.dashboardEventHandler(zenThis,'click', zenThis.currGuid, 'applyFilter', '*', 'ParentGuid');
</property>
<property name="ondrillup"><![CDATA[
if (zenThis.lastGuid)
{
zenThis.currGuid = zenThis.lastGuid.pop();
zenThis.currLevel = zenThis.lastLevel.pop();
zenThis.currPolygon = zenThis.lastPolygon.pop();
zenThis._sliderRangeData.currGuid = zenThis.currGuid;
zenPage.dashboardEventHandler(zenThis,'click', zenThis.currGuid, 'applyFilter', '*', 'ParentGuid');
if (zenThis.lastPolygon.length > 0)
{
zenThis.lastPolygon[zenThis.lastPolygon.length - 1].setVisible(true);
}
if (zenThis.currPolygon)
zenThis.currPolygon.setMap(null);
}
]]></property>
<property name="onrightclickmarker">
zenInvokeCallbackMethod(zenThis.onrightclickpolygon,zenThis,'onrightclickpolygon','polygon', {data: marker.data},'position', marker.position);
</property>
<property name="onrightclickpolygon"><![CDATA[
var content = '<div style="font-size: 12px; font-family:arial;"><span style="font-weight: bold;">' + polygon.data.Name + '</span><br>';
if(polygon.data.Level==0 || polygon.data.Level==1){
content += polygon.data.CenterName ? ('<br>Административный центр: ' + polygon.data.CenterName + '<br>') : '';
}
var otherInfo = zenThis.GetAdditionInformationForObjectById(polygon.data.Guid);
otherInfo.parameters = otherInfo.parameters.split(';');
otherInfo.unitNames = otherInfo.unitNames.split(';');
otherInfo.values = otherInfo.values.split(';');
for (var i=0; i < otherInfo.parameters.length-1; i++){
content += '<br>' + otherInfo.parameters[i] + ': ' + zenThis.beatNumber(otherInfo.values[i]) + ' ' + otherInfo.unitNames[i];
}
zenThis.openInfoWindowAtPosition(position, content + '</div>');
]]></property>
<property name="polygonDataProperties">Name,Guid,DefaultZoom,CanDrillDown,Value,DataUrl,ParameterId,Level,CenterName</property>
<property name="polygonTitleProperty">Name</property>
<property name="saveBordersMethod">KZ.Borders;SaveBorders</property>
<property name="strokeOpacity">1</property>
<property name="strokeWeight">1</property>
<property name="zoom">5</property>
</widget>
<widget name="TopW" type="pivot" subtype="barChart" subtypeClass="barChart" title="Упорядоченный список областей / районов по значению выбранного параметра" dataSource="KZTopChart.kpi" dataLink="" drillDownDataSource="" width="200" height="200" sidebarContent="" showSidebar="false" sidebarWidth="" maximized="false" homeRowL="0" homeColL="7" colSpanL="3" rowSpanL="10" showToolbar="true" theme="" dataColorList="">
<control name="" action="applyFilter" target="" targetProperty="ParentGuid" location="widget" type="hidden" controlClass="" label="ParentGuid" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen=""></control>
<control name="" action="applyFilter" target="" targetProperty="ParameterName" location="widget" type="hidden" controlClass="" label="ParameterName" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen=""></control>
<control name="" action="applyFilter" target="" targetProperty="TopNumber" location="widget" type="dropdown" controlClass="" label="Размер списка" title="" value="20" text="" readOnly="false" valueList="" displayList="" activeWhen=""></control>
<control name="" action="refresh" target="" targetProperty="" location="widget" type="timer" controlClass="" timeout="10" label="" title="" value="" text="" readOnly="false" valueList="" displayList="" activeWhen=""></control>
<dataProperty name="Значение" label="Значение" width="" align="" subtype="" style="" display="" format="" showAs="" valueColumn="false" summary="" summaryValue="" dataValue="Value" targetValue="" thresholdLower="" thresholdUpper="" rangeLower="" rangeUpper="" baseValue="" override=""></dataProperty>
<property name="chartToggle">chart</property>
<property name="initialExecute">1</property>
<property name="legendPos">none</property>
<override name="barChart">{legendVisible:'false',seriesColorScheme:'pastel',stripeStyle:'stroke-width:0;fill:transparent;',xAxis:{majorGridLines:false,_type:'axis'},yAxisList:[{labelPosition:'left',_type:'axis'}],chartPivot:true,_type:'barChart'}</override>
<override name="legend">{hidden:true,legendLabels:'Name,Value',legendPosition:'right',_type:'chartLegend'}</override>
<override name="pivot">{cellWidth:'220',columnList:'Value',crossJoinRowLimit:2000,currListingPage:1,currPage:1,kpi:'KZ.KPI.Top',listingFields:[],listingSelect:'multi',pivotVariables:{},showRowCaption:false,_type:'pivotTable'}</override>
</widget>
</dashboard>
</Document></Export>