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

106 lines
4.1 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/IronIntelMasterPage.master" CodeFile="IronIntelMain.aspx.cs" Inherits="IronIntelMain" %>
<asp:Content ID="Content1" ContentPlaceHolderID="holder_head" runat="Server">
<style type="text/css">
.modules {
margin-left: 240px;
margin-right: 160px;
margin-bottom: 50px;
padding-right: 0px;
/*position: absolute;*/
/*top: 120px;*/
/*bottom: 40px;*/
/*overflow-y: auto;*/
}
body {
background-color: #F6F6F6;
}
</style>
<script type="text/javascript">
SetClientTimeoffset();
function showAppModules(data) {
if (data) {
var sysModules = $("#sysModules").empty();
var wspModules = $("#wspModules").empty();
for (var i = 0; i < data.length; i++) {
var m = data[i];
if (!m.Visible) continue;
var mctrl = $("<div class='module'></div>");
var icon = createMouduleIcon(m, 0);
mctrl.append(icon);
var namectrl = $("<div class='modulenamectrl'></div>")
.append($("<div class='modulename'></div>")
.append($("<span></span>").text(m.ModuleType === 1 ? m.Name : m.CurrentName)));
mctrl.append(namectrl);
mctrl.attr("title", m.ModuleType === 1 ? m.Description : m.CurrentDesc);
var css = [];
//if (m.BackColor)
// css["background-color"] = m.BackColor;
//if (m.ForeColor)
// css["color"] = m.ForeColor;
mctrl.css(css);
mctrl.mouseenter(mctrl, function (e) {
e.data.css("cursor", 'pointer');
});
mctrl.mousedown(m, function (e) {
$(e.target).on("mouseup", "", e.data, openAppModule);
});
if (m.ModuleType == 0) {
sysModules.append(mctrl);
$("#titleFeatures").show();
}
else if (m.ModuleType == 1) {
wspModules.append(mctrl);
$("#titleWSP").show();
}
}
}
$("#ploading").hide();
}
function openAppModule(e) {
var url = e.data.Url;
if (e.data.ID == '150')
url += "#nav_jobsitemanage";
if (e.data.OpenInNewWindow)
window.open(url, "_bank");
else
window.location = url;
$(e.target).off("mouseup");
}
$(document).scroll(null, function (e) {
$("#footer").css("bottom", -$(document).scrollTop());
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="holder_content" runat="Server">
<div id="header" style="height: 60px;">
</div>
<div id="ploading" class="panel_loading"></div>
<div id="modules" class="modules">
<div id="titleFeatures" class="modulestitle" style="display: none;" data-lgid="P_MAIN_FEATURES">Features</div>
<div id="sysModules"></div>
<div id="titleWSP" class="modulestitle" style="margin-top: 10px; display: none;" data-lgid="P_MAIN_DASHBOARDS">Dashboards</div>
<div id="wspModules"></div>
<div style="clear: both;"></div>
</div>
<div id="footer" style="width: 100%; background-color: lightgray; position: fixed; bottom: 0px;">
<table style="margin: 0 auto; margin-right: 10px;">
<tr id="version_info">
<td><span data-lgid="P_MAIN_VERSION_COLON">Version:</span> <%=AppVersion %></td>
<td data-lgid="P_MAIN_POWEREDBY">Powered By</td>
<td>
<img class="logo" src="titlelogo.ashx?cmpid=Foresight&v=0" style="width: 100px; height: 20px;" />
</td>
</tr>
</table>
</div>
</asp:Content>