fleet-contractor/Site/Chart.aspx
2023-04-28 12:22:26 +08:00

418 lines
25 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Title="" Language="C#" MasterPageFile="~/IronIntelMasterPage.master" AutoEventWireup="true" CodeFile="Chart.aspx.cs" Inherits="FIC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="holder_head" runat="Server">
<link type="text/css" href="<%=Common.GenerateUrl("fic/js/components/css/modal.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/workspace.css") %>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/js/components/css/override.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/js/components/css/gridview.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/js/components/css/datagrid.css") %>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/js/components/css/design-grid.min.css") %>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/chart.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/pivot.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/js/components/css/vue-ctrls.css") %>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/form.css") %>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/wizardctrl.css") %>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/Grid.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("css/datepicker.min.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/JsTreeCss/style.min.css")%>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("fic/css/tabcontrol.css") %>" rel="stylesheet" />
<link type="text/css" href="<%=Common.GenerateUrl("../css/override.css") %>" rel="stylesheet" />
<link rel="stylesheet" href="https://js.arcgis.com/3.40/esri/css/esri.css" />
<style type="text/css">
body {
/* 禁止选中 */
-moz-user-select: none; /*火狐*/
-webkit-user-select: none; /*webkit浏览器*/
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /*早期浏览器*/
user-select: none;
overflow: hidden;
}
#wsp_personal {
outline: none;
margin: 0 3px;
height: 33px;
float: left;
}
#host_header .workspace_menu {
padding-right: 0;
/*overflow-y: auto;
overflow-x: hidden;*/
min-width: 255px;
}
#host_header .workspace_menu .wspMenuTitle {
height: 30px;
line-height: 30px;
font-weight: bold;
}
#host_header .workspace_menu ul {
padding: 0;
margin: 0;
max-height: 260px;
overflow-y: auto;
overflow-x: hidden;
}
#host_header .workspace_menu li {
white-space: nowrap;
height: 24px;
line-height: 24px;
cursor: pointer;
padding: 0 40px 0 2px;
margin: 0 5px 0 0;
list-style: none;
}
#host_header .workspace_menu li:hover {
background: #eaeaea;
}
#host_header .workspace_menu li.no-result {
cursor: default;
font-style: italic;
}
#host_header .workspace_menu li.no-result:hover {
background: inherit;
}
#wsp_content {
position: fixed;
top: 93px;
width: 100%;
bottom: 0;
overflow: auto;
}
#workspace_info {
height: 33px;
line-height: 33px;
padding: 0 0 0 4px;
background: rgba(0,0,0,0.2);
}
#workspace_info .workspace_grade_icon {
width: 15px;
height: 11px;
float: left;
margin: 11px 0 0 6px;
}
#chart_comments_container,
#email_subscription_container {
position: fixed;
border: none;
background: white;
top: 0;
right: 0;
height: 100%;
width: 420px;
border-left: 1px solid #aaa;
z-index: 1000;
}
#email_subscription_container {
width: 900px;
}
</style>
<script type="text/javascript">
var subpages = [];
var appPath = "<%=this.ResolveUrl("~/") %>";
var sitePath = "<%=this.ResolveUrl("~/fic/") %>";
ApplicationPath = sitePath;
var isLocalForm = true;
</script>
<%--<script type="text/javascript" src="<%=Common.GenerateUrl("js/jquery-1.11.3.js") %>"></script>--%>
<script type="text/javascript" src="<%=Common.GenerateUrl("js/lib/vue.min.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("js/promise.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/components/modal.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("js/utility.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/dialog.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/additionalFilter.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/editGridCtrl.js") %>"></script>
<%--<script type="text/javascript" src="<%=GenerateUrl("fic/js/controls/changepassword.js") %>"></script>--%>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/workspace.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("js/echarts.min.js")%>"></script>
<%--<script type="text/javascript" src="//cdn.jsdelivr.net/npm/echarts@4.8.0/dist/echarts.js"></script>--%>
<script type="text/javascript" src="<%=Common.GenerateUrl("js/datepicker.min.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("js/lib/vue-color.min.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/components/gridview.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/about.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/menu.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/pivot.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/controls.js") %>"></script>
<%--<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/editGridCtrl.js") %>"></script>--%>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/components/datagrid.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/components/vue-ctrls.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/components/design-grid.min.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/form.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/wizardctrl.js") %>"></script>
<%-- 覆盖fic定义 --%>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/override.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/g5masterjs.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/wsp_pivot.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/board.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chart.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/charts/gauge.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/charts/scorecard.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/gridctrl.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/charts/grid.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/charts/graph.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/charts/simplechart.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/charts/favorites.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/charts/fifrs.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/controls/jstree.min.js")%>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartTypeWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/selectChartType.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/selectChartSubType.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/DimWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/ListWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/Grid2DWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/Grid3DWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/RssWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/WebWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/MapViewWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/StockWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/VideoWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/FavoriteWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/AlertWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/Management/alertMessageWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/Graph2DWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/Graph3DWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/ColumnLineWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/PieWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/GaugeWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/ScatterPlotWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/FifrsWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/ScorecardWizard.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/commonOp.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/selectDTOption.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/chartFilter.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/BaseXYPivotCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/D1YPivotCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/D2XYPivotCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/D3XYPivotCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/PointSetXYPivotCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/xCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/zCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/parameterInitValueOption.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/shapeAndColorSetting.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/yCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/pivotCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/subctrls/webPivotCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/aggregatesCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/targetInputDataCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/chartNoteCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/chartInformationCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/setuprssurlCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/stockSymbolsCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/typeCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/setupFavoriteUrlCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/subscribetoAMessageCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/TargetRelation.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/SortByCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/gaugeInformationCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/drilldownselect.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/drilldownurl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/webSetup.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/drilldownchart.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/drilldownCell.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/frptSelectReportCtrl.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/frptSetPivot.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/freeReportSetCells.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/freeReportSetPivots.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/subctrls/targetMappingHeader.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/chartWizardOptions/subctrls/cellDialog.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/Management/boardFilters.js") %>"></script>
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/Management/workspaceFilters.js") %>"></script>
<script>
//必须放在地图js之前
var dojoConfig = {
async: true,//这个参数一定要设置必须要设置true;
parseOnLoad: true,
paths: {
extras1: location.pathname.replace(/\/[^/]+$/, "") + "/js/mapview"
},
cacheBust: true
};
</script>
<script src="https://js.arcgis.com/3.40"></script>
<script src="<%=Common.GenerateUrl("fic/js/mapview/asset.js")%>"></script>
<script src="<%=Common.GenerateUrl("fic/js/mapview/maphelper.js")%>"></script>
<script src="<%=Common.GenerateUrl("fic/js/mapview/mapview.js")%>"></script>
<script type="text/javascript">
var LinkIcons = new Array();
var frsInstalled = false;
_utility.rootPath = "<%=this.ResolveUrl("~/") %>";
_utility.loginedUser = {};
// register the plugin
Vue.use(window['g5-vue-ctrls'].directives);
var chartiid ='<%=_chartIID%>';
var chartname ='<%=_chartName%>';
function openMessage(text) {
_utility.showMessage(text, DEFAULT_LANG.FIC);
}
// 菜单列表接口
_utility.getChartMenuList = function (chart, pinclass) {
return [
{ 'cmd': 'customization', 'class': 'custom', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A028', 'Customization') },
{ 'cmd': 'edit_chart', 'class': 'edit', 'text': GetLanguageByKey('LHBIS_FIC_SILVERLIGHT_WSP_RMENUCTRL_A020', 'Edit Chart') },
{ 'cmd': 'save_chart_as', 'class': 'save-chart-as', 'text': GetLanguageByKey('LHBIS_FIC_SILVERLIGHT_WSP_RMENUCTRL_A021', 'Save Chart As...') },
{ 'cmd': 'refresh', 'class': 'refresh seperator', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A004', 'Refresh Chart') },
{ 'cmd': 'auto_refresh', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A024', 'Auto Refresh') },
{ 'cmd': 'fixed_columns', 'class': '', 'text': GetLanguageByKey('FI_FRS_RD066', 'Fixed Columns') },
{ 'cmd': 'disp-reftime', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A005', 'Display Refresh Time'), 'checked': chart.displayRefreshTime },
{ 'cmd': 'reset_fixed_columns', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A027', 'Reset Fixed Columns') },
{ 'cmd': 'chart-note', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A006', 'Chart Notes') },
{ 'cmd': 'addfilter', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTCLIENT_A013', 'Additional Filtering') },
{ 'cmd': 'set_yzero', 'class': 'seperator', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A013', 'Set Y axis to zero') },
{ 'cmd': 'print_chart', 'class': 'seperator', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A021', 'Print') },
//{ 'cmd': 'fullscreen', 'class': '', 'text': GetLanguageByKey('FULL_SCREEN', 'Full Screen') },
{ 'cmd': 'pinborder', 'class': 'seperator ' + pinclass, 'text': GetLanguageByKey('PIN_BORDER', 'Pin Border') },
{ 'cmd': 'adjust_column_width', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A012', 'Adjust column width'), 'checked': chart.chart && chart.chart.Adjustcolumnwidth },
{ 'cmd': 'grid_reset_defaults', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A008', 'Reset Defaults') },
{ 'cmd': 'export_Excel', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A009', 'Export to Excel') },
{ 'cmd': 'export_Xps', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A016', 'Export to XPS') },
{ 'cmd': 'export_Pdf', 'class': 'seperator', 'text': GetLanguageByKey('EXPORT_TO_PDF', 'Export to PDF') },
{ 'cmd': 'email_subscription', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CLIENT_MODULES_RSUBSCRIBE_A008', 'Email Subscription') }
];
};
$(function () {
$("#host_main").remove();
$("#divTitleBorder").remove();
new Promise(getThemes)
.then(GetUserParamter)
.then(window.onUserInited || function () { });
initLanguage();
getChartColorSchemes().catch(catchError);
});
function catchError(err) {
_utility.showMessage(err, DEFAULT_LANG.FIC, null, function () {
window.location = '../Logout.ashx';
});
}
function init() {
// chart comments
var iframe = $('<iframe id="chart_comments_container" style="display:none;margin-right:-420px"></iframe>');
var email_iframe = $('<iframe id="email_subscription_container" style="display:none;margin-right:-900px"></iframe>');
var bg = $('<div id="chart_comments_bg" class="maskbg" style="display:none"></div>').click(function () {
iframe.stop().animate({ 'margin-right': -420 }, ANIMATE_FAST_SPEED, function () {
iframe.hide();
bg.hide();
});
email_iframe.stop().animate({ 'margin-right': -900 }, ANIMATE_FAST_SPEED, function () {
iframe.hide();
bg.hide();
});
});
$(document.body).append(bg, iframe);
$(document.body).append(bg, email_iframe);
}
var commentOpenCount = 0;
function onCommentsOpened() {
commentOpenCount++;
if (commentOpenCount < 2) {
return;
}
var container = $('#chart_comments_container')[0];
//container.contentWindow.user = _utility.loginedUser;
container.contentWindow.showMessage(_utility.loginedUser, _utility.currentLang, sitePath);
}
var favicon;
var isFavorite = false;
function onUserInited() {
init();
openChartByIID();
setFavoriteDisplay(false, chartiid, chartname, 10);
//GetDefaultWSP().then(init).catch(catchError);
}
function initChartIcons() {
$(".chart_restore").hide();
$(".chart_close").show().click(function (e) {
if (typeof window.parent.hideChartContainer === "function")
window.parent.hideChartContainer();
});
favicon = $('<i class="chart_favorite fa" style="display: none"></i>');
favicon.click(function () {
isFavorite = !isFavorite;
if (typeof window.parent.setChartFavorite === "function")
window.parent.setChartFavorite(isFavorite, navigate);
showChartFavorite(isFavorite);
refreshFavorites();
})
$(".chart_comments").after(favicon);
}
function showChartFavorite(f) {
if (!favicon)
return;
isFavorite = f;
if (isFavorite)
favicon.removeClass("chart_unfavorite").addClass("chart_favorite");
else
favicon.removeClass("chart_favorite").addClass("chart_unfavorite");
favicon.show();
}
function openChartByIID() {
if (!chartiid || chartiid == "")
return;
var chart = new $chart();
chart.wnd = window;
chart.parentDom = window.document;
var obj = {
ID: chartiid
};
chart.load(obj);
setTimeout(function () {
chart.toggleFullscreen();
initChartIcons();
showChartFavorite(isUserFavorate(chartiid));
})
}
function changeChart(iid, name) {
chartiid = iid;
chartname = name;
openChartByIID();
setFavoriteDisplay(false, chartiid, chartname, 10);
}
function ShowLoadingMask() {
}
function HiddenLoadingMask() {
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="holder_content" runat="Server">
<div id="chart_content"></div>
</asp:Content>