<%@ Master Language="C#" AutoEventWireup="true" CodeFile="DeviceManagementBase.master.cs" Inherits="MachineDeviceManagement_DeviceManagementBase" %> <!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" /> <link type="text/css" href="<%=GetUrl("js/lib/ui.min.css") %>" rel="stylesheet" /> <style type="text/css"> html, body { height: 100%; } #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: 14px; } </style> <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/lib/utility.min.js")%>" type="text/javascript"></script> <script src="<%=GetUrl("js/lib/ui.min.js")%>" type="text/javascript"></script> <script src="<%=GetUrl("js/utility.js")%>" type="text/javascript"></script> <script type="text/javascript" src="<%=GetUrl("js/language.js") %>"></script> <script type="text/javascript"> var canExport = <%= CanExportFile %>; _network.root = '<%=Page.ResolveUrl("~/")%>'; var GridView = window['lib-ui'].Grid; function getText(s, flag) { return (s == null) ? (flag ? '<i>null</i>' : '') : htmlencode(s, $('#div_text_holder')).replace(/ /g, ' '); } function GetLanguageByCookie() { var lang = getCookie('<%=Common.LanguageCookieName%>'); if (lang == null) { return "en-us"; } else { return lang; } } 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 () { _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() { if ($('.content_main').length > 0) $('.content_main').css('min-height', $(window).height() - $('.content_main').offset().top - 4); if ($('#machinesDiv').length > 0) $('#machinesDiv').css('min-height', $(window).height() - $('#machinesDiv').offset().top - 4); } $(window).resize(function () { resizeContent(); }); //window.onresize = resizeContent; resizeContent(); $(document.body).click(function (e) { if (typeof hidePanels === 'function') hidePanels(); }); }); </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>