117 lines
4.5 KiB
Plaintext
117 lines
4.5 KiB
Plaintext
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AssetViewBase.master.cs" Inherits="AssetViewBaseBase" %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<title></title>
|
|
<link rel="stylesheet" href="<%=GetUrl("css/default.css")%>" type="text/css" />
|
|
<link rel="stylesheet" href="<%=GetUrl("css/split_sub.css")%>" type="text/css" />
|
|
<style type="text/css">
|
|
#search {
|
|
background-color: rgb(235, 235, 235);
|
|
border: none;
|
|
padding-top: 5px;
|
|
padding-bottom: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#search:hover {
|
|
background: rgb(225, 225, 225);
|
|
}
|
|
</style>
|
|
<style type="text/css">
|
|
:root { <%=StyleVariables%> }
|
|
.data-grid {
|
|
height: 100%;
|
|
font-size: 12px !important;
|
|
font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif !important;
|
|
}
|
|
</style>
|
|
<link type="text/css" href="<%=GetUrl("js/components/css/gridview.css") %>" rel="stylesheet" />
|
|
<link type="text/css" href="<%=GetUrl("css/override.css") %>" rel="stylesheet" />
|
|
<script src="<%=GetUrl("js/jquery-3.6.0.min.js")%>" type="text/javascript"></script>
|
|
<script src="<%=GetUrl("js/cookie.js")%>" type="text/javascript"></script>
|
|
<script src="<%=GetUrl("js/utility.js")%>" type="text/javascript"></script>
|
|
<script type="text/javascript" src="<%=GetUrl("js/components/gridview.js") %>"></script>
|
|
<script src="<%=GetUrl("js/language.js")%>" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
<%-- _net.root = '<%=Page.ResolveUrl("~/")%>';--%>
|
|
var GridView = window.GridView || window['g5-gridview'];
|
|
var canExport = <%= CanExportFile %>;
|
|
|
|
function getText(s, flag) {
|
|
return (s == null)
|
|
? (flag ? '<i>null</i>' : '')
|
|
: htmlencode(s, $('#div_text_holder')).replace(/ /g, ' ');
|
|
}
|
|
|
|
function systemrequest(method, param, callback, error) {
|
|
_network.request("SystemSettings/SystemOptions.aspx", -1, method, param, callback, error || function (e) {
|
|
console.log(e);
|
|
showmaskbg(false, true);
|
|
showAlert(GetTextByKey('P_WO_PAGEERROR', 'An unknown error occurred. Please refresh page.'), GetTextByKey('P_WO_QUERY', 'Query'));
|
|
});
|
|
}
|
|
var systemunitofodometer;
|
|
function GetSystemUnitOfOdometer() {
|
|
systemrequest("GetSystemUnitOfOdometer", "", function (data) {
|
|
systemunitofodometer = data;
|
|
$('#dialogadd_sel_odometeruom').val(systemunitofodometer);
|
|
$('#dialogadjust_sel_odometeruom').val(systemunitofodometer);
|
|
}, function (err) {
|
|
});
|
|
}
|
|
|
|
function GetLanguageByCookie() {
|
|
var lang = getCookie('<%=Common.LanguageCookieName%>');
|
|
if (lang == null) {
|
|
return "en-us";
|
|
} else {
|
|
return lang;
|
|
}
|
|
}
|
|
|
|
$(function () {
|
|
_fleet.currentLang = GetLanguageByCookie();
|
|
GetSystemUnitOfOdometer();
|
|
$("#content1").applyFleetLanguageText(true);
|
|
// 加载完毕后通知上级页面
|
|
if (typeof window.parent.onsubpageloaded == 'function') {
|
|
window.parent.onsubpageloaded();
|
|
}
|
|
if (typeof window.parent.ondocumentclick == 'function') {
|
|
$(document.body).click(window.parent.ondocumentclick);
|
|
}
|
|
|
|
function resizeContent() {
|
|
$('#mask_bg').height($(document).outerHeight(false)).width($(document).outerWidth(false));
|
|
}
|
|
|
|
$(window).resize(function () {
|
|
resizeContent();
|
|
});
|
|
//window.onresize = resizeContent;
|
|
resizeContent();
|
|
|
|
window.ondocumentclick = function (e) {
|
|
$(document.body).click();
|
|
};
|
|
if (typeof window.parent.ondocumentclick == 'function') {
|
|
$(document.body).click(window.parent.ondocumentclick);
|
|
}
|
|
});
|
|
</script>
|
|
<asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder>
|
|
</head>
|
|
<body>
|
|
<div id="content1">
|
|
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
|
|
</asp:ContentPlaceHolder>
|
|
</div>
|
|
<div id="div_text_holder"></div>
|
|
</body>
|
|
</html>
|