This commit is contained in:
2024-03-26 15:56:31 +08:00
parent 634e8b71ab
commit 0855ae42cd
547 changed files with 94818 additions and 60463 deletions

View File

@ -16,55 +16,10 @@
display: none;
}
.edit-content table {
border-collapse: collapse;
width: 100%;
}
.edit-content table td.label {
/*width: 200px;*/
text-align: right;
padding-right: 10px;
line-height: 24px;
height: 24px;
vertical-align: middle !important;
}
.edit-content table td input,
.edit-content table td textarea {
border: 1px solid #a9a9a9;
width: 320px;
height: 18px;
padding: 1px;
}
.edit-content table td input[type="checkbox"] {
border: none;
}
.edit-content table td input[type="radio"] {
border: none;
width: unset;
height: unset;
}
.edit-content table td textarea {
height: 100px;
resize: none;
/*max-width: 200px;*/
}
.div_filter {
margin-top: -3px;
}
.div_filter .dropdown {
width: 322px;
margin: 2px 0 0 0px;
}
.div_panel {
min-width: 200px;
.edit-content table td input[type="radio"] {
border: none;
width: unset;
height: unset;
}
.a {
@ -72,51 +27,12 @@
color: #2140fb;
}
.subtitle {
margin: 20px 40px 10px 0px;
font-size: 16px;
color: gray;
}
.subtitle span {
margin-left: 10px;
}
.subtitle hr {
background-color: #d8d8d8;
border: none;
height: 1px;
margin: 0;
}
.machinetd {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.tab-header {
float: left;
padding: 2px 6px;
cursor: pointer;
border: 1px solid #fff;
border-bottom: none;
}
.tab-header:hover {
background: #eee;
}
.tab-header.selected {
border-color: #d8d8d8;
cursor: default;
}
.tab-header.selected:hover {
background: #fff;
}
.ctl_button {
font-family: 'CalciteWebCoreIcons';
display: block;
@ -162,6 +78,10 @@
<script type="text/javascript" src="<%=GetFileUrlWithVersion("../fic/js/lib/vue.min.js")%>"></script>
<script src="<%=GetFileUrlWithVersion("../js/controls.js")%>" type="text/javascript"></script>
<script src="<%=GetFileUrlWithVersion("../fic/js/utility.js")%>" type="text/javascript"></script>
<script type="text/javascript">
_fleet.currentLang = GetLanguageByCookie();
_utility.currentLang = _fleet.currentLang;
</script>
<script src="<%=GetFileUrlWithVersion("../fic/fic/js/controls/gridctrl.js")%>" type="text/javascript"></script>
<script src="<%=GetFileUrlWithVersion("../fic/fic/js/controls/editGridCtrl.js")%>" type="text/javascript"></script>
<script src="<%=GetFileUrlWithVersion("../fic/fic/js/controls/dialog.js")%>" type="text/javascript"></script>
@ -182,9 +102,6 @@
<script type="text/javascript" src="<%=GetFileUrlWithVersion("../fic/fic/js/chartManage/chartTypeWizard.js") %>"></script>
<script type="text/javascript" src="<%=GetFileUrlWithVersion("../fic/fic/js/Management/filtersSelector.js") %>"></script>
<script>
$(function () {
_utility.currentLang = _fleet.currentLang;
});
$addDomainUserForm = function () { }
</script>
<script src="<%=GetFileUrlWithVersion("../fic/js/datepicker.min.js")%>"></script>
@ -194,8 +111,9 @@
var userOptions = null;
var uid = '<%=IID%>';
var IsSupperAdmin =<%=IsSupperAdmin ?"true":"false"%>;
var GridView1 = window['lib-ui'].Grid;//与FIC中冲突暂时使用GridView1主要在userfilter.js使用
function showmaskbg1(flag, noanimation) {
function showmaskbg1(flag, noanimation) {//与FIC中冲突
if (window.parent && typeof window.parent.onmaskbg == 'function') {
window.parent.onmaskbg(flag, noanimation);
}
@ -211,6 +129,32 @@
}
}
function showAlert1(msg, title, icon, next) {//覆盖FIC的showAlert
if (window.parent && typeof window.parent.showalert == 'function') {
window.parent.showalert(msg, title, icon, next);
} else {
_dialog.showAlert(msg, title, icon, next);
}
}
function showConfirm1(msg, title, fok, fcancel) {//与FIC中冲突
if (window.parent && typeof window.parent.showconfirm == 'function') {
window.parent.showconfirm(msg, title, fok, fcancel);
} else {
showmaskbg1(true);
_dialog.showConfirm(msg, title, function (e) {
showmaskbg1(false);
if (typeof fok === 'function') {
fok(e);
}
}, function () {
if (fcancel)
fcancel();
showmaskbg1(false);
});
}
}
function requestFIC(service, method, param, callback, error) {
$.ajax({
url: _network.root + 'fic/fic/FICSvc.ashx?fmt=json&SN=' + Math.random(),
@ -231,7 +175,7 @@
error: error || function (e) {
console.log(e);
showmaskbg(false, true);
showAlert(GetTextByKey('P_UM_PAGEERROR', 'An unknown error occurred. Please refresh page.'), GetTextByKey('P_UM_QUERY', 'Query'));
showAlert1(GetTextByKey('P_UM_PAGEERROR', 'An unknown error occurred. Please refresh page.'), GetTextByKey('P_UM_QUERY', 'Query'));
}
});
}
@ -246,7 +190,7 @@
_network.request("SystemSettings/UserOptions.aspx", -1, method, param, callback, error || function (e) {
console.log(e);
showmaskbg(false, true);
showAlert(GetTextByKey('P_SET_QUERY', 'An unknown error occurred. Please refresh page.'), GetTextByKey('P_SET_QUERY', 'Query'));
showAlert1(GetTextByKey('P_SET_QUERY', 'An unknown error occurred. Please refresh page.'), GetTextByKey('P_SET_QUERY', 'Query'));
});
}
@ -317,6 +261,7 @@
sel.val(language);
}
}
showUserOptions();
}
function getTimeZones() {
@ -352,6 +297,7 @@
}
function showUserOptions() {
if (!userOptions) return;
if (userOptions.SystemStyleID) {
$("#selStyle").val(userOptions.SystemStyleID);
}
@ -380,7 +326,7 @@
subscribe = scriber.getObject();
userfilter = scriber.getUserFilter();
if (typeof subscribe === 'string') {
showAlert(subscribe, GetTextByKey("P_UM_ERROR", 'Error'));
showAlert1(subscribe, GetTextByKey("P_UM_ERROR", 'Error'));
return;
}
}
@ -419,12 +365,12 @@
param = htmlencode(param);
useroptionsrequest("SaveUserOptions", param, function (data) {
if (data !== 'OK') {
showAlert(data, GetTextByKey("P_SET_SAVEUSEROPTIONS", 'Save User Options'));
showAlert1(data, GetTextByKey("P_SET_SAVEUSEROPTIONS", 'Save User Options'));
} else {
if (userfiltertemplateloaded) {
getUserFilterData();
}
showAlert(GetTextByKey("P_SET_SAVSUCCESSFULLY", "Saved Successfully."), GetTextByKey("P_SET_SAVEUSEROPTIONS", 'Save User Options'));
showAlert1(GetTextByKey("P_SET_SAVSUCCESSFULLY", "Saved Successfully."), GetTextByKey("P_SET_SAVEUSEROPTIONS", 'Save User Options'));
}
showloading(false);
}, function (err) {
@ -473,6 +419,8 @@
$('#tr_timezone').show();
GetOptionSetting();
$("#div_container").tab();
$('input[placeholder=Search]').attr("placeholder", GetTextByKey("P_AM_SEARCH", "Search"));
});
</script>
@ -489,9 +437,12 @@
<div class="edit-content">
<div id="div_container">
<ul id="ul_container" class="tab_header" style="padding-top: 5px;">
<li id="tab_header_info" data-href="tab_info" class="selected" data-lgid="P_XXXX">User Information</li>
<li id="tab_header_info" data-href="tab_info" class="selected" data-lgid="P_UM_USERINFORMATION">User Information</li>
<li id="tab_header_subscribe" data-href="tab_subscribe" onclick="reshowgrid()" data-lgid="P_UM_SUBSCRIBEMESSAGE">Subscribe Message</li>
<li id="tab_header_filter" data-href="tab_filter" class="cononly" onclick="onuserfilterclick()" data-lgid="P_XXXX">Asset Alert Filter Templates</li>
<%if (!IsDealer)
{ %>
<li id="tab_header_filter" data-href="tab_filter" class="cononly" onclick="onuserfilterclick()" data-lgid="P_WO_ASSETALERTFILTERTEMPLATES">Asset Alert Filter Templates</li>
<%} %>
</ul>
<div id="tab_info" data-page="tab_info">
@ -509,7 +460,7 @@
<td></td>
</tr>
<tr id="tr_timezone" style="display: none;">
<td class="label" data-lgid="P_SET_XXX">Time Zone:</td>
<td class="label" data-lgid="P_SET_TIMEZON_COLON">Time Zone:</td>
<td>
<select id="dialog_timezone" style="width: 200px; height: 20px;"></select></td>
<td></td>
@ -523,7 +474,7 @@
<div id="tab_filter" data-page="tab_filter" style="display: none;">
<div style="margin: 9px 6px 20px">
<span class="title" data-lgid="P_XXXX">Filter Templates:</span>
<span class="title" data-lgid="P_UM_FILTERTEMPLATES_COLON">Filter Templates:</span>
<select id="sel_filtertemplate" style="width: 300px; height: 20px;"></select>
<span class="sbutton iconadd" onclick="onOpenFilterTemplate(0);" data-lgid="P_UM_ADD"></span>
<span class="sbutton iconedit" onclick="onOpenFilterTemplate(1);" data-lgid="P_UM_EDIT"></span>
@ -629,11 +580,11 @@
</div>
<div class="dialog" id="dialog_filtertemplate" style="display: none; width: 500px;">
<div class="dialog-title"><span class="title" data-lgid="P_XXX">Add Filter Template</span><em class="dialog-close"></em></div>
<div class="dialog-title"><span class="title" data-lgid="P_UM_ADDFILTERTEMPLATES">Add Filter Template</span><em class="dialog-close"></em></div>
<div class="dialog-content">
<table style="line-height: 30px; table-layout: fixed;">
<tr>
<td class="label" style="width: 160px;" data-lgid="P_XXX">Template Name:</td>
<td class="label" style="width: 160px;" data-lgid="P_UM_TEMPLATENAME_COLON">Template Name:</td>
<td style="width: 330px;">
<input type="text" id="dialog_filtertemplatename" tabindex="1" maxlength="200" autocomplete="off" /></td>
</tr>