339 lines
16 KiB
Plaintext
339 lines
16 KiB
Plaintext
<%@ 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.44/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/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="<%=Common.GenerateUrl("fic/js/workspace.js") %>"></script>
|
||
|
||
<script type="text/javascript" src="<%=Common.GenerateUrl("js/echarts.min.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/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>
|
||
|
||
<%-- 覆盖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/jstree.min.js")%>"></script>
|
||
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/ShowBundler.min.js")%>"></script>
|
||
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/chartManage/ChartBundler.min.js") %>"></script>
|
||
<script type="text/javascript" src="<%=Common.GenerateUrl("fic/js/Management/ManagementBundler.min.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.44"></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;
|
||
var GridView1 = window['lib-ui'].Grid;
|
||
|
||
_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': 'grid_reset_defaults', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A008', 'Reset Defaults') },
|
||
{ '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_displaydataponits', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A030', 'Display Data Points') },
|
||
{ 'cmd': 'set_displayindividualvalues', 'class': '', 'text': GetLanguageByKey('LHBIS_FIC_CHARTS_CHARTTITLE_A029', 'Display Individual Values') },
|
||
{ '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': '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 ($(e.target).parent().hasClass('chart_top')) {
|
||
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>
|
||
|