function killerrors()
{ return true; }
window.onerror = killerrors; //检查浏览器类型
function checkBrowser()
{
function loginfo()
{
this.alert = function (string)
{
if (false)
{
alert(string);
}
}
}
var log = new loginfo();
var browser = navigator.appName;
if (browser == "Microsoft Internet Explorer")
{
var b_version = navigator.appVersion
var version = b_version.split(";");
var trim_Version = version[1].replace(/[ ]/g, ""); if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE6.0")
{
log.alert("IE 6.0");
return "ie6";
}
else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE7.0")
{
log.alert("IE 7.0");
return "ie7";
}
else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE8.0")
{
log.alert("IE 8.0");
return "ie8";
}
else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE9.0")
{
log.alert("IE 9.0");
return "ie9";
}
else
{
log.alert("other IE");
return "ie0";
}
}
else
{
log.alert("other browser");
return "notIE";
}
} //给元素绑定一个 onclick 事件 跳转到指定的 URL ,
function bindGotoUrl(objcetId, Url, bindPrem, functionObj)
{
//允计在跳转前再做一些事 如果做完事后
if (0 != functionObj)
{
var intNum = functionObj(bindPrem);
if (0 != intNum)
{
return;
}
}
document.getElementById(objcetId).onclick = function ()
{
window.location.href = Url;
};
}
//创建元素
function CreateDocument(prent, ID, ElementType, title)
{
var createDomObj = document.createElement(ElementType);
if (0 != title)
{
createDomObj.title = title;
}
var prentOBJ = document.getElementById(prent);
prentOBJ.appendChild(createDomObj);
createDomObj.id = ID;
return ID + "";
}
//创建表格
function createTable()
{
var div = document.getElementById("dd");
var table = document.createElement("table"); //创建table
var row = table.insertRow(); //创建一行
var cell = row.insertCell(); //创建一个单元
cell.width = "150"; //更改cell的各种属性
cell.style.backgroundColor = "#999999";
cell.innerHTML = "你好吗?";
cell = row.insertCell(); //创建一个单元
cell.width = "150"; //更改cell的各种属性
cell.style.backgroundColor = "#999999";
cell.innerHTML = "非常好!";
div.appendChild(table);
} //创建表格 里面放一个div
function createTable(prentID, tableID, inId)
{
var ta = document.createElement("table");
var tb = document.createElement("tbody");
var tr = document.createElement("tr");
var td = document.createElement("td");
var div = document.createElement("div");
div.id = inId;
ta.id = tableID;
td.appendChild(div);
tr.appendChild(td);
td.id = tableID + "_td";
tb.appendChild(tr);
ta.appendChild(tb);
document.getElementById(prentID).appendChild(ta);
} function FormatValue(inPam)
{
var tmp;
inPam += "";
if (inPam.length > 4)
{
tmp = (Math.round(inPam / 1000) / 10) + "W";
if (inPam.length > 8)
{
tmp = (Math.round(inPam / 1000) / 100000) + "Y";
}
}
else
{
tmp = inPam * 1;
}
return tmp;
} /*******************页面全局变量*********************/
//平台信息
var jsonList = 0;
//发送总量
var sendView = 0;
//告警信息
var errInfoList = 0;
//页面管理
var mg = new terraceManage();
var bindPrem;
var _s;
//音重设标志
setSoundFlag=0;
/*******************页面全局变量 end *********************/ /*************************************************************************页面公共方法 begin *********************************************/ var getRemainInfo=function (ptCode){
//alert("滞留通道的平台编号--"+ptCode);
$.ajax({
type:"POST",
url:"manageSmon.htm?method=getRemaindInfo",
data:"ptCode="+ptCode,
async:false,
success:function(msg){
//alert(msg);
var reList = null;
//Json转换为List
reList = eval("("+msg.split("$^@")[0]+")")
var remainedInfo = ""; if(reList.length == 0){
//如果List长度为0,则不做任何提示.
return;
}
if(+msg.split("$^@")[0].length>1)
{
var bean = eval("("+msg.split("$^@")[1]+")");
remainedInfo = remainedInfo + "平台:"+bean.ptname + "\n级别:"+bean.mtlvlnosd +"\n智能队列大小:"+bean.smartvfybuf +"\n写RPT_RVOK缓冲:"+bean.wrrptrvokbuf +"\nRPT_SDOK缓冲:"+bean.wrrptsdokbuf +"\n";
}
for ( var i = 0; i < reList.length; i++) {
//格式化参数
if(reList[i].mtRemained >= 10000){
var xx = reList[i].mtRemained/10000;
var xxx = Math.round(xx*10)/10;
reList[i].mtRemained = xxx+"w";
}
if(reList[i].mtHaveSnd >= 10000){
var xx = reList[i].mtHaveSnd/10000;
var xxx = Math.round(xx*10)/10;
reList[i].mtHaveSnd = xxx+"w";
}
if(reList[i].mtTotal >= 10000){
var xx = reList[i].mtTotal/10000;
var xxx = Math.round(xx*10)/10;
reList[i].mtTotal = xxx+"w";
} //通道账号、账号名称、滞留数、已发数、接收总数。
remainedInfo = remainedInfo + "通道账号:"+reList[i].userId+",账号名称:"+reList[i].staffName+",滞留数:"+reList[i].mtRemained+",已发数:"+reList[i].mtHaveSnd+",接收总数:"+reList[i].mtTotal+"\n";
}
alert(remainedInfo);
}
});
}
//重新调整布局div大小
function changeHeight(PageFlag)
{
if(0==PageFlag)
{
changeHeightPT();
}else
{
changeHeightCab();
}
}
//重新调整布局div大小
function changeHeightPT()
{
if ("notIE" == checkBrowser())
{
document.getElementById("right_top").style.height = 230;
var y = document.body.clientHeight*1 - 20;
if(y*1<0)
{
y=0;
}
right_btn_y=y-230;
if(right_btn_y*1<0)
{
right_btn_y=0;
}
right_btn_scroll_div_y=y - 230 - 30;
if(right_btn_scroll_div_y*1<0)
{
right_btn_scroll_div_y=0;
}
document.getElementById("right").style.height = y;
document.getElementById("right_btn").style.height = right_btn_y;
document.getElementById("right_btn_scroll_div").style.height =right_btn_scroll_div_y; }
else
{
document.getElementById("right_top").style.height = 180;
var y = document.body.clientHeight*1-91;
if(y*1<0)
{
y=0;
}
right_btn_y=y-180;
if(right_btn_y*1<0)
{
right_btn_y=0;
}
right_btn_scroll_div_y=y-180 - 30;
if(right_btn_scroll_div_y*1<0)
{
right_btn_scroll_div_y=0;
}
var right=document.getElementById("right");
right.style.height = y;
document.getElementById("right_btn").style.height =right_btn_y;
document.getElementById("right_btn_scroll_div").style.height = right_btn_scroll_div_y;
}
}
function changeHeightCab()
{
//document.getElementById("left").style.border='1px solid #CC0000';;
document.getElementById("left").style.marginLeft =0;
changeHeightPT();
}
//创柱状图并绑定css名称
function CreatePillar(prentID, inId, ClassName, TopClassName, BtnClassName, textClassName,_P_TOP_function)
{
//记忆柱状外层ID
this.id = inId;
//值单位判定与转换
this.getValue = function (x)
{
if (x >= 10000)
{
var xx = x / 10000;
var xxx = Math.round(xx * 10) / 10;
return xxx + "w";
}
else
{
return x;
}
}
//创建柱状相关的三个div
CreateDocument(prentID, inId, "div", 0);
CreateDocument(this.id, inId + "_P_TOP", "div", 0);
CreateDocument(this.id, inId + "_P_text_2", "div", 0);
CreateDocument(this.id, inId + "_P_BTN", "div", 0); if(_P_TOP_function!=0)
{
document.getElementById(inId + "_P_TOP").onclick=_P_TOP_function;
}
//绑定样式 为零时绑定默认样式
if (0 != ClassName)
{
$("#" + inId).addClass(ClassName);
}
else
{
$("#" + inId).addClass('restore_P');
}
if (0 != TopClassName)
{
$("#" + inId + "_P_TOP").addClass(TopClassName + "");
}
else
{
$("#" + inId + "_P_TOP").addClass('restore_P_TOP');
}
if (0 != BtnClassName)
{
$("#" + inId + "_P_BTN").addClass(BtnClassName);
}
else
{
$("#" + inId + "_P_BTN").addClass('restore_P_BTN');
}
if (0 != textClassName)
{
$("#" + inId + "_P_text_2").addClass(textClassName);
}
else
{
$("#" + inId + "_P_text_2").addClass('restore_P_text');
}
//更新柱状图比例 传入有色层所占百分比
this.update = function (ps, text)
{
//这里默认是 火狐 chrome 新版本 处理
if ("notIE" == checkBrowser())
{
//获取柱状层高度
var offsetHeight = document.getElementById(this.id).offsetHeight;
var height = offsetHeight * ps;
if (height > offsetHeight)
{
height = offsetHeight;
}
if (height < 0)
{
height = 1;
}
if (0 == offsetHeight)
{
offsetHeight = 1;
}
if (0 != text)
{
var _P_BTN_newheight = (height / offsetHeight) * 85 + "%";
var _P_TOP_newheight = ((offsetHeight - height) / offsetHeight) * 85 + "%";
document.getElementById(this.id + "_P_BTN").style.height = _P_BTN_newheight;
document.getElementById(this.id + "_P_TOP").style.height = _P_TOP_newheight;
document.getElementById(this.id + "_P_text_2").innerHTML = text;
}
else
{
var _P_BTN_newheight = (height / offsetHeight) * 100 + "%";
var _P_TOP_newheight = ((offsetHeight - height) / offsetHeight) * 100 + "%";
document.getElementById(this.id + "_P_BTN").style.height = _P_BTN_newheight;
document.getElementById(this.id + "_P_TOP").style.height = _P_TOP_newheight;
}
}
else ////这里因为首页关系 默认是IE quirks (怪异模式\向前兼容模式) (其实标准IE7 IE8 IE9 模式都用上面的代码才不变形 但是首页框架只能用quirks)
{
//获取柱状层高度
var offsetHeight = 1;
if (0 != text)
{
offsetHeight = 180;
document.getElementById(this.id).style.height = offsetHeight;
}
else
{
offsetHeight = 35;
document.getElementById(this.id).style.height = offsetHeight;
}
var height = offsetHeight * ps;
if (height > offsetHeight)
{
height = offsetHeight;
}
if (height < 0)
{
height = 1;
}
if (0 == offsetHeight)
{
offsetHeight = 1;
}
if (0 != text)
{
var _P_BTN_newheight = (height / offsetHeight) * offsetHeight * 0.85;
var _P_TOP_newheight = offsetHeight - _P_BTN_newheight;
document.getElementById(this.id + "_P_BTN").style.height = _P_BTN_newheight;
document.getElementById(this.id + "_P_TOP").style.height = _P_TOP_newheight;
document.getElementById(this.id + "_P_text_2").innerHTML = text;
}
else
{
var _P_BTN_newheight = (height / offsetHeight) * offsetHeight;
var _P_TOP_newheight = ((offsetHeight - height) / offsetHeight) * offsetHeight;
$("#" + this.id + "_P_BTN").css("height", _P_BTN_newheight + "px");
$("#" + this.id + "_P_TOP").css("height", _P_TOP_newheight + "px");
$("#" + this.id + "_P_text_2").css("height", 1 + "px");
}
}
}
} //更新声新标志
function updateSetSoundFlag(evtTypeTmp)
{
/******启用框架页的播放标签 这样就不会有两个页面同时播声音的现象******/
if(window.parent.topFrame.checkSoundFlag())
{
//本次轮循未设声音 并且本次更新有错误
if(0==window.parent.topFrame.setSoundFlag&&0!=evtTypeTmp)
{
if(20==evtTypeTmp)
{
window.parent.topFrame.playSound(10);
}else if(10==evtTypeTmp)
{
window.parent.topFrame.playSound(20);
}
window.parent.topFrame.setSoundFlag=evtTypeTmp;
}
//己设声音 但级别没有本次错误高
else if(10==evtTypeTmp&&20==window.parent.setSoundFlag)
{
window.parent.topFrame.playSound(10);
window.parent.topFrame.setSoundFlag=evtTypeTmp;
}
}
}
/*************************************************************************页面公共方法 end*********************************************/
//平台对象
function terrace()
{
//正在更新标志
this.RaphaelID = "";
//初始化平台对象
this.init = function (RaphaelIDIn)
{
var id;
if ("" == this.RaphaelID)
{
this.RaphaelID = RaphaelIDIn;
id = this.RaphaelID + "_child" + "T0";
//闪光图片
CreateDocument(this.RaphaelID, id, "div", "平台");
$("#" + id).addClass('T0_1');
id = this.RaphaelID + "_child" + "T1";
//平台标题
CreateDocument(this.RaphaelID, id, "div", 0);
$("#" + id).addClass('T1_1');
document.getElementById(id).innerHTML = "";
//帐户图片
id = this.RaphaelID + "_child" + "E1";
CreateDocument(this.RaphaelID, id, "div", "账号");
$("#" + id).addClass('E1_1');
//通道图片
id = this.RaphaelID + "_child" + "E2";
CreateDocument(this.RaphaelID, id, "div", "通道");
$("#" + id).addClass('E2_1'); //发送量柱形
id = this.RaphaelID + "_child" + "E3";
CreateDocument(this.RaphaelID, id, "div", "MT: 滞留/已发/接收总量");
$("#" + id).addClass('E3_1'); if ("notIE" == checkBrowser())
{
this.E3 = new CreatePillar(id, id + "restore_P_E3", 0, "restore_P_TOP_E3", "restore_P_BTN_E3", 0,getRemainInfo);
}
else
{
this.E3 = new CreatePillar(id, id + "restore_P_E3", "restore_P_E3_ie", "restore_P_TOP_E3_ie", "restore_P_BTN_E3_ie", "restore_P_text_E3_ie",getRemainInfo);
}
//图片下面文字基准行1
id = this.RaphaelID + "_child" + "base_1";
CreateDocument(this.RaphaelID, id, "div", 0);
$("#" + id).addClass('base_1');
prentID = id + "";
//
id = this.RaphaelID + "_child" + "base_1_t1";
CreateDocument(prentID, id, "text", 0);
document.getElementById(id).innerHTML = "0";
$("#" + id).addClass('base_1_t1');
//
id = this.RaphaelID + "_child" + "base_1_t2";
CreateDocument(prentID, id, "text", 0);
document.getElementById(id).innerHTML = "0";
$("#" + id).addClass('base_1_t2'); id = this.RaphaelID + "_child" + "E3";
CreateDocument(this.RaphaelID, id, "div", 0);
$("#" + id).addClass('E3_1');
//图片下面文字基准行1
id = this.RaphaelID + "_child" + "base_2";
CreateDocument(this.RaphaelID, id, "div", 0);
$("#" + id).addClass('base_2'); prentID = this.RaphaelID + "_child" + "base_2";
//文字1 用于说明帐户信息 加到基准行1
id = this.RaphaelID + "_child" + "base_2_Text1";
CreateDocument(prentID, id, "text", 0);
document.getElementById(id).innerHTML = "0/0";
$("#" + id).addClass('base_2_t1');
//文字2 用于说明通道信息 加到基准行1
id = this.RaphaelID + "_child" + "base_2_Text2";
CreateDocument(prentID, id, "text", 0);
document.getElementById(id).innerHTML = "0/0";
$("#" + id).addClass('base_2_t2');
//文字3 用于说明滞留 加到基准行1
id = this.RaphaelID + "_child" + "base_2_Text3";
CreateDocument(prentID, id, "text", 0);
document.getElementById(id).innerHTML = "0";
$("#" + id).addClass('base_2_t3');
}
}
//update 内部状态变更 ,取ajax 成功后去更新内部状态
this.updateTerrace = function (bean)
{ var evtTypeTmp=0;
var id,
ps;
id = this.RaphaelID + "_child" + "T1";
this.ptCode = bean.ptCode;
document.getElementById(id).innerHTML = "" + this.ptCode;
//-- 更新平台属性
this.mtTotalSndValue = bean.mtTotalSnd;
this.mtRemainedValue = bean.mtRemained;
this.mtTotalRecvValue = bean.mtTotalRecv;
var dy=(new Number(bean.mtTotalSnd) * 1 + new Number(bean.mtRemained) * 1);
if(dy==0)
{dy=1;}
Total_Ps = ( new Number(bean.mtTotalSnd) * 1) / dy;
Remained_Ps = 1 - Total_Ps;
if ("notIE" == checkBrowser())
{
if (Remained_Ps > 0 && Remained_Ps < 0.09)
{
this.E3.update(0.91, 0);
}
else if (Total_Ps > 0 && Total_Ps < 0.09)
{
this.E3.update(0.09, 0);
}
else
{
this.E3.update(Total_Ps, 0);
}
}
else
{
if (Remained_Ps > 0 && Remained_Ps < 0.03)
{
this.E3.update(0.97, 0);
}
else if (Total_Ps > 0 && Total_Ps < 0.03)
{
this.E3.update(0.03, 0);
}
else
{
this.E3.update(Total_Ps, 0);
}
}
this.mtTotalSndValue = FormatValue(bean.mtTotalSnd);
this.mtRemainedValue = FormatValue(bean.mtRemained);
this.mtTotalRecvValue = FormatValue(bean.mtTotalRecv);
//滞留
id = this.RaphaelID + "_child" + "base_1_t1";
document.getElementById(id).innerHTML = this.mtRemainedValue;
//己发
id = this.RaphaelID + "_child" + "base_1_t2";
document.getElementById(id).innerHTML = this.mtTotalSndValue;
//总量
id = this.RaphaelID + "_child" + "base_2_Text3";
document.getElementById(id).innerHTML = this.mtTotalRecvValue; var url,
gotoUrl; //得到帐户DIV ID
id = this.RaphaelID + "_child" + "E1";
this.gotoUserJbUrl = "/smonitor/manage_err.htm?method=getAll&clickType=1&pageNumber=1&itype=2&ptCode=" + ("" + bean.ptCode);
//帐号警告
if (bean.userJb == 20)
{
url = "img/ui2/e1-1.gif";
evtTypeTmp=20; //单击用户时
bindGotoUrl(id, this.gotoUserJbUrl, "", 0);
}
//严重
else if (bean.userJb == 10)
{
evtTypeTmp=10;
url = "img/ui2/e1-2s.gif";
//单击用户时
bindGotoUrl(id, this.gotoUserJbUrl, "", 0);
}
//正常
else
{
url = "img/ui2/e1.png";
}
//更新图片
document.getElementById(id).style.backgroundImage = "url(\'" + url + "\')"; //得到通道div ID
id = this.RaphaelID + "_child" + "E2";
this.gotoUserJbUrl = "/smonitor/manage_err.htm?method=getAll&clickType=1&pageNumber=1&itype=3&ptCode=" + ("" + bean.ptCode);
//通道警告
url = "img/ui2/e2.png";
if (bean.spgateJb == 20)
{
evtTypeTmp=20;
url = "img/ui2/e2-1.gif";
bindGotoUrl(id, this.gotoUserJbUrl, "", 0);
}
//严重
if (bean.spgateJb == 10)
{
evtTypeTmp=10;
url = "img/ui2/e2-2s.gif";
bindGotoUrl(id, this.gotoUserJbUrl, "", 0);
}
//更新图片
document.getElementById(id).style.backgroundImage = "url(\'" + url + "\')"; //得到平台div ID
id = this.RaphaelID + "_child" + "T0";
this.gotoUserJbUrl = "/smonitor/manage_err.htm?method=getAll&clickType=1&pageNumber=1&itype=5&ptCode=" + ("" + bean.ptCode);
//通道警告
url = "img/ui2/t0.gif";
if (bean.ptJb == 20)
{
evtTypeTmp=20;
url = "img/ui2/t1.gif";
bindGotoUrl(id, this.gotoUserJbUrl, "", 0);
}
//严重
if (bean.ptJb == 10)
{
evtTypeTmp=10;
url = "img/ui2/t2.gif";
bindGotoUrl(id, this.gotoUserJbUrl, "", 0);
}
//更新图片
document.getElementById(id).style.backgroundImage = "url(\'" + url + "\')";
//文字1 用于说明帐户信息 加到基准行1
id = this.RaphaelID + "_child" + "base_2_Text1";
document.getElementById(id).innerHTML = bean.errUserNum + "/" + bean.userNum;
//文字2 用于说明通道信息 加到基准行1
id = this.RaphaelID + "_child" + "base_2_Text2";
document.getElementById(id).innerHTML = bean.errSpgateNum + "/" + bean.spgateNum;
updateSetSoundFlag(evtTypeTmp);
}
} function MQ()
{
var mqArray,id;
for (i = 0; i < 20; i++)
{
id="mq"+i;
//CreateDocument("MARQUEE001", id, "div", 0);
//mqArray[i]=document.getElementById(id);
}
}
//平台管理对象
function terraceManage()
{ this.ptSize = 1;
//平台对象
this.CanvasList = new Array();
//得到最大的值
this.getMax = function (x, y, z)
{
if ((x > y) && (x > z))
{
return x;
}
if ((y > x) && (y > z))
{
return y;
}
if ((z > x) && (z > y))
{
return z;
}
return x;
} //根据返回数组大小创建 平台个数
this.forechPtInit = function (size)
{
var Style;
for (i = 0; i < size; i++)
{
/**********************处理平台信息******************************/
//li
CreateDocument("PT_root", "pt_li" + i, "li", 0);
//li 嵌入table 并 table 嵌入 div
createTable("pt_li" + i, "pt_table" + i, "pt" + i);
$("#pt_table" + i).addClass('pt_tb');
$("#pt_table" + i + "_td").addClass('restore_td');
$("#pt" + i).addClass('PT');
//new
this.CanvasList[i] = new terrace();
//document.getElementById("pt" + i).style.display = "none";
//创建平台视图
this.CanvasList[i].init("pt" + i);
}
}
//右边的发送栏
this.sendManageInit = function ()
{ this.mq=new MQ();
/**********************初始化发送量栏div******************************/
//标题
var prentID,
inId;
CreateDocument("right_top", "right_top_top_title", "div", 0);
$("#right_top_top_title").addClass('right_top_top_title');
document.getElementById('right_top_top_title').innerHTML = "发送缓冲图"; //发送柱形群
CreateDocument("right_top", "right_top_pillar", "div", 0);
$("#right_top_pillar").addClass('right_top_pillar'); CreateDocument("right_top_pillar", "right_top_pillar_submit", "div", 0);
$("#right_top_pillar_submit").addClass('right_top_pillar_submit');
this.submit = new CreatePillar("right_top_pillar_submit", "submit", 0, 0, "restore_P_BTN_submit", 'alarmManage_P_text',0);
CreateDocument("right_top_pillar", "right_top_pillar_send", "div", 0);
$("#right_top_pillar_send").addClass('right_top_pillar_send');
this.send = new CreatePillar("right_top_pillar_send", "send", 0, 0, "restore_P_BTN_send", 'alarmManage_P_text',0); CreateDocument("right_top_pillar", "right_top_pillar_retard", "div", 0);
$("#right_top_pillar_retard").addClass('right_top_pillar_retard');
this.retard = new CreatePillar("right_top_pillar_retard", "retard", 0, 0, "restore_P_BTN_retard", 'alarmManage_P_text',0); CreateDocument("right_top", "right_top_btn_title", "div", 0); //底部柱形说明群
$("#right_top_btn_title").addClass('right_top_btn_title');
CreateDocument("right_top_btn_title", "right_top_btn_title_txt1", "div", 0);
$("#right_top_btn_title_txt1").addClass('right_top_btn_title_txt1');
document.getElementById('right_top_btn_title_txt1').innerHTML = "己发";
CreateDocument("right_top_btn_title", "right_top_btn_title_txt2", "div", 0);
$("#right_top_btn_title_txt2").addClass('right_top_btn_title_txt2');
document.getElementById('right_top_btn_title_txt2').innerHTML = "待发";
CreateDocument("right_top_btn_title", "right_top_btn_title_txt3", "div", 0);
$("#right_top_btn_title_txt3").addClass('right_top_btn_title_txt3');
document.getElementById('right_top_btn_title_txt3').innerHTML = "总量";
}
//右边的告警栏
this.alarmManageInit = function ()
{
/**********************初始化发告警栏div******************************/
CreateDocument("right_btn_title1", "alarmManage", "div", 0);
$("#alarmManage").addClass('alarmManage');
document.getElementById('alarmManage').innerHTML = "告警消息栏";
var string = "";
while (string.length < 700)
{
string += "------------------------------------\n";
} }
//柱状图形更新,按最大值的百分比进行更新
this.UpdateSendManage = function ()
{ //更新发送量柱状
if (0 != sendView)
{
var x = sendView[0] * 1;
var y = sendView[1] * 1;
var z = sendView[2] * 1;
var max=this.getMax(x, y, z) ;
//基准数 =最大数的0.9倍
var basic = max / 0.9;
if (0 == basic)
{
basic = 1;
}
if(0!=max)
{
//原数相对基准数的百分比
mg.submit.update(x / basic, FormatValue(x) + "");
mg.send.update(y / basic, FormatValue(y) + "");
mg.retard.update(z / basic, FormatValue(z) + "");
}else
{
//如果max为空则 说明无可用值 全设为0
mg.submit.update(1 / 1000, "<font>0</font>" + "");
mg.send.update(1 / 1000, "<font>0</font>"+ "");
mg.retard.update(1 / 1000, "<font>0</font>"+ "");
}
} }
this.UpdateAlarmManage_execCount=0;
//更新吿警信息
this.UpdateAlarmManage = function ()
{
var n=10;
if(this.UpdateAlarmManage_execCount<n)
{
this.UpdateAlarmManage_execCount++;
}else
{
this.UpdateAlarmManage_execCount
}
if((n-1)<this.UpdateAlarmManage_execCount||this.UpdateAlarmManage_execCount<2){
var i = 0,
j = 0,
string = "";
var evtTypeTmp=0;
if (0 != errInfoList)
{
for (i = 0; i < errInfoList.length; i++)
{
string += "<a href=\"/smonitor/manage_err.htm?method=getAll&amp;nameOrIp="+errInfoList[i].hostName+"&amp;ptCode="+errInfoList[i].ptCode+"&amp;proceName="+errInfoList[i].proceName+"&amp;history=true&amp;clickType=1\">";
if (10 == errInfoList[i].evtType)
{
evtTypeTmp=10;
string += "<font size=\"3\" color=\"red\"; style=\"font-size:\"14px\";color:\"red\";font-weight: \"800\">";
}
else if (20 == errInfoList[i].evtType)
{
evtTypeTmp=20;
string += "<font size=\"3\" color=\"#FFB400\" style=\"font-size:\"14px\";color:\"#FFB400\";font-weight: \"800\">";
}
else
{
string += "<font size=\"3\" color=\"#339966\">";
}
string = string + errInfoList[i].hostName ;
string = string + errInfoList[i].ptCode ;
string = string + errInfoList[i].proceName ;
if (errInfoList[i].appName.indexOf("机房") > -1)
{
string = string + errInfoList[i].roomName;
}
else if (errInfoList[i].appName.indexOf("机柜") > -1)
{
string = string + errInfoList[i].cabinetName;
}
else if (errInfoList[i].appName.indexOf("主机") > -1)
{
string = string + errInfoList[i].hostName;
}
else
{
string = string + errInfoList[i].ptName;
}
string = string + errInfoList[i].who;
string = string +":";
string = string + errInfoList[i].msg;
//string = string + "id:" + errInfoList[i].id + ";hostId:" + errInfoList[i].hostId + ";proceId:" + errInfoList[i].proceId + ";ptCode:" + errInfoList[i].ptCode + ";appType:" + errInfoList[i].appType + ";who:" + errInfoList[i].who + ";evtType:" + errInfoList[i].evtType + ";evtId:" + errInfoList[i].evtId + ";monStatus:" + errInfoList[i].monStatus + ";dealFlag:" + errInfoList[i].dealFlag + ";evtTime:" + errInfoList[i].evtTime + ";rcvTime:" + errInfoList[i].rcvTime + ";msg:" + errInfoList[i].msg + ";userType:" + errInfoList[i].userType + ";ptName:" + errInfoList[i].ptName + ";hostName:" + errInfoList[i].hostName + ";proceName:" + errInfoList[i].proceName + ";roomId:" + errInfoList[i].roomId + ";cabinetId:" + errInfoList[i].cabinetId + ";roomName:" + errInfoList[i].roomName + ";cabinetName:" + errInfoList[i].cabinetName + ";adapter1:" + errInfoList[i].adapter1 + ";appName:" + errInfoList[i].appName + "\n" + "</font>";
string = string + "\n"+ "</font></a>";
}
updateSetSoundFlag(evtTypeTmp);
} document.getElementById("right_btn_scroll_div").innerHTML = string;
}
} this.updatePT = function ()
{
//刷新数据状态
if (0 != jsonList)
{
var undefinedValue; //未初始化的
//平台数小于预设平台数则创建新的平台
if (jsonList.length > this.ptSize)
{
for (i = this.ptSize; i < jsonList.length; i++)
{
CreateDocument("PT_root", "pt_li" + i, "li", 0);
$("#pt" + i).addClass('PT_div');
createTable("pt_li" + i, "pt_table" + i, "pt" + i);
$("#pt_table" + i).addClass('pt_tb');
$("#pt_table" + i + "_td").addClass('restore_td');
$("#pt" + i).addClass('PT');
this.CanvasList[i] = new terrace();
this.CanvasList[i].init("pt" + i);
}
this.ptSize = jsonList.length;
}
//更新平台状态 并显示
for (i = 0; i < jsonList.length; i++)
{
if ('' == jsonList[i] || "" == jsonList[i] || undefinedValue == jsonList[i])
{
return;
}
this.CanvasList[i].updateTerrace(jsonList[i]);
//显示
document.getElementById("pt" + i).style.display = "block";
}
for (i = jsonList.length; i < this.ptSize; i++)
{
//隐藏多余的
document.getElementById("pt" + i).style.display = "none";
}
}
}
this.timesss = 0;
this.ajaxForNetCheck = function ()
{ $.ajax(
{
type : "POST",
url : "manageSmon.htm?",
data : "method=ajaxAll3",
async:false,
success : function (msg2)
{
var rt = msg2;
rtLength = rt.length;
//tomcat关闭了,获得网络断开了..
if (rtLength == 0)
{
return;
}
else //更新
{
var unDefind;
if (unDefind != rt && "" != rt && '' != rt)
{
var DateString = rt;
}
//柱状图形比
if (unDefind != DateString && "" != DateString&& '' != DateString)
{
sendView = DateString.split(":");
}
}
}
}
); } //刷告警信息栏
this.ajaxForErr = function ()
{
$.ajax(
{
type : "POST",
url : "manageSmon.htm",
data : "method=ajaxAllRollFirst3",
async:false,
success : function (msg3)
{
if ("" != msg3)
{
errInfoList = eval("(" + msg3 + ")");
// 20 10
//errInfoList=[{"adapter1":"TestAdapter","appName":"网关转发Test程序机房","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"瓜迪奥拉","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":20,"hostId":1,"hostName":"192.168.1.0","id":1,"monStatus":1,"msg":"门将异常,被进球了。","proceId":100,"proceName":"0xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"梅西游戏专用机房0","userType":1,"who":"梅西"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"瓜迪奥拉","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":20,"hostId":1,"hostName":"192.168.1.1","id":1,"monStatus":1,"msg":"门将异常,被进球了。","proceId":100,"proceName":"1xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"梅西游戏专用机房1","userType":1,"who":"梅西"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"}];
// 20
//errInfoList=[{"adapter1":"TestAdapter","appName":"网关转发Test程序机房","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"瓜迪奥拉","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":20,"hostId":1,"hostName":"192.168.1.0","id":1,"monStatus":1,"msg":"门将异常,被进球了。","proceId":200,"proceName":"0xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"梅西游戏专用机房0","userType":1,"who":"梅西"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"瓜迪奥拉","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":20,"hostId":1,"hostName":"192.168.1.1","id":1,"monStatus":1,"msg":"门将异常,被进球了。","proceId":200,"proceName":"1xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"梅西游戏专用机房1","userType":1,"who":"梅西"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":20,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":200,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":20,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":200,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":20,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":200,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":200,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":200,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"2013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":200,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"2013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"}];
// 10
//errInfoList=[{"adapter1":"TestAdapter","appName":"网关转发Test程序机房","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"瓜迪奥拉","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.0","id":1,"monStatus":1,"msg":"门将异常,被进球了。","proceId":100,"proceName":"0xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"梅西游戏专用机房0","userType":1,"who":"梅西"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"瓜迪奥拉","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.1","id":1,"monStatus":1,"msg":"门将异常,被进球了。","proceId":100,"proceName":"1xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"梅西游戏专用机房1","userType":1,"who":"梅西"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机柜","appType":1,"cabinetId":1,"cabinetName":"C罗戴花集锦存放专用机柜","dealFlag":1,"dealMan":"慕里泥凹","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":10,"hostId":1,"hostName":"192.168.1.2","id":1,"monStatus":1,"msg":"被自己晃晕了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"机房2","userType":1,"who":"C罗"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"},{"adapter1":"TestAdapter","appName":"网关转发Test程序机房主机","appType":1,"cabinetId":1,"cabinetName":"NO Info","dealFlag":1,"dealMan":"普兰德利","evtId":1,"evtTime":"1013-07-11 16:04:36","evtType":0,"hostId":1,"hostName":"巴洛特利换衣集锦存放专用主机IP:192.168.1.9","id":1,"monStatus":1,"msg":"不会进球,思考人生去了。","proceId":100,"proceName":"xxxtest.exe","ptCode":"","ptName":"","rcvTime":"1013-07-11 16:04:36","roomId":0,"roomName":"机房BE","userType":1,"who":"巴洛特利"}]; }
}
}
);
}
this.ajaxPt = function ()
{
this._url = "servlet/AjaxErrBeanServlet";
$.ajax(
{
type : "POST",
url : this._url,
data : "",
async:false,
success : function (msg1)
{
if ("" != msg1)
{
//ajax
jsonList = eval("(" + msg1 + ")");
//20 10
//jsonList=[{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT0","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT1","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT2","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"20","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT3","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"10","errUserNum":"20","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT4","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"10","errUserNum":"20","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT5","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"500","mtTotalRecv":"20000","mtTotalSnd":"19500","ptCode":"EPT6","ptJb":"20","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"500","mtTotalRecv":"20000","mtTotalSnd":"19500","ptCode":"EPT7","ptJb":"20","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"500","mtTotalRecv":"20000","mtTotalSnd":"19500","ptCode":"EPT8","ptJb":"20","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT9","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT10","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT11","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT12","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT13","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT14","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT15","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT16","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT17","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT18","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT19","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT20","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT21","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT22","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT23","ptJb":"10","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1","mtTotalRecv":"2","mtTotalSnd":"1","ptCode":"NNC","ptJb":"4","spgateJb":"20","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1","mtTotalRecv":"3","mtTotalSnd":"2","ptCode":"NF","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1","mtTotalRecv":"2000000000","mtTotalSnd":"1999999999","ptCode":"NA","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1999999999","mtTotalRecv":"2000000000","mtTotalSnd":"1","ptCode":"NA2","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"}];
//
//jsonList=[{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT0","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT1","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT2","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT3","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT4","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT5","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"0","errUserNum":"10","mtRemained":"500","mtTotalRecv":"10000","mtTotalSnd":"19500","ptCode":"EPT6","ptJb":"10","spgateJb":"6","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"0","errUserNum":"10","mtRemained":"500","mtTotalRecv":"10000","mtTotalSnd":"19500","ptCode":"EPT7","ptJb":"10","spgateJb":"6","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"0","errUserNum":"10","mtRemained":"500","mtTotalRecv":"10000","mtTotalSnd":"19500","ptCode":"EPT8","ptJb":"10","spgateJb":"6","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT9","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT10","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT11","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT12","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT13","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT14","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT15","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT16","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT17","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT18","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT19","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT10","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT21","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT22","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"10","errUserNum":"10","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT23","ptJb":"10","spgateJb":"10","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"10","mtRemained":"1","mtTotalRecv":"2","mtTotalSnd":"1","ptCode":"NNC","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"0","errUserNum":"10","mtRemained":"1","mtTotalRecv":"3","mtTotalSnd":"2","ptCode":"NF","ptJb":"4","spgateJb":"10","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"0","errUserNum":"10","mtRemained":"1","mtTotalRecv":"1000000000","mtTotalSnd":"1999999999","ptCode":"NA","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"10","userNum":"2"},{"errSpgateNum":"0","errUserNum":"10","mtRemained":"1999999999","mtTotalRecv":"1000000000","mtTotalSnd":"1","ptCode":"NA2","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"10","userNum":"2"}];
//
//jsonList=[{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT0","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT1","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT2","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT3","ptJb":"4","spgateJb":"20","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT4","ptJb":"4","spgateJb":"20","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT5","ptJb":"4","spgateJb":"20","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"500","mtTotalRecv":"20000","mtTotalSnd":"19500","ptCode":"EPT6","ptJb":"20","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"500","mtTotalRecv":"20000","mtTotalSnd":"19500","ptCode":"EPT7","ptJb":"20","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"500","mtTotalRecv":"20000","mtTotalSnd":"19500","ptCode":"EPT8","ptJb":"20","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT9","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT20","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT11","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT12","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT13","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT14","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT15","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT16","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT17","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT18","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT19","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT20","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT21","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT22","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"20","errUserNum":"20","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT23","ptJb":"20","spgateJb":"20","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1","mtTotalRecv":"2","mtTotalSnd":"1","ptCode":"NNC","ptJb":"4","spgateJb":"20","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1","mtTotalRecv":"3","mtTotalSnd":"2","ptCode":"NF","ptJb":"4","spgateJb":"20","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1","mtTotalRecv":"2000000000","mtTotalSnd":"1999999999","ptCode":"NA","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"},{"errSpgateNum":"0","errUserNum":"20","mtRemained":"1999999999","mtTotalRecv":"2000000000","mtTotalSnd":"1","ptCode":"NA2","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"20","userNum":"2"}];
//
//jsonList=[{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT0","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT1","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT2","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT3","ptJb":"4","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT4","ptJb":"4","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"1","mtTotalRecv":"800","mtTotalSnd":"799","ptCode":"jPT5","ptJb":"4","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"500","mtTotalRecv":"0000","mtTotalSnd":"19500","ptCode":"EPT6","ptJb":"0","spgateJb":"6","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"500","mtTotalRecv":"0000","mtTotalSnd":"19500","ptCode":"EPT7","ptJb":"0","spgateJb":"6","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"500","mtTotalRecv":"0000","mtTotalSnd":"19500","ptCode":"EPT8","ptJb":"0","spgateJb":"6","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT9","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT0","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT11","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT12","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT13","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT14","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT15","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT16","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT17","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT18","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT19","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT0","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT21","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT22","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"799","mtTotalRecv":"800","mtTotalSnd":"1","ptCode":"PT23","ptJb":"0","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"1","mtTotalRecv":"2","mtTotalSnd":"1","ptCode":"NNC","ptJb":"4","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"1","mtTotalRecv":"3","mtTotalSnd":"2","ptCode":"NF","ptJb":"4","spgateJb":"0","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"1","mtTotalRecv":"000000000","mtTotalSnd":"1999999999","ptCode":"NA","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"0","userNum":"2"},{"errSpgateNum":"0","errUserNum":"0","mtRemained":"1999999999","mtTotalRecv":"000000000","mtTotalSnd":"1","ptCode":"NA2","ptJb":"4","spgateJb":"6","spgateNum":"3","userJb":"0","userNum":"2"}]; upldateflag = 1;
}
}
}
);
}
} /*************************************************************************页面加载入口 begin*********************************************/
//加载页面
function load(PageFlag)
{ changeHeight(PageFlag);
//PageFlag=0表示 加载平台页面 非零 则表示机柜页面 区别是是否加载平台内容
//处理页面异常
window.onerror = killerrors;
if (0 == PageFlag)
{
mg.forechPtInit(mg.ptSize);
document.getElementById("PT_root12").style.display="block";
$("#total").hide();
}else
{
firstChangeIndex();
$("#PT_root12").hide();
$("#total").show();
}
mg.sendManageInit();
mg.alarmManageInit();
setInterval(function ()
{
if (0 == PageFlag)
{
showPT(PageFlag);
}
else
{
showCB(PageFlag);
}
}, 800);
function Marquee1()
{
//更新告警信息
mg.UpdateAlarmManage();
}
//滚动栏定时器
setInterval(function ()
{
Marquee1()
}, 1000);
changeHeight(PageFlag);
$("#maindiv2").show(); }
function show(PageFlag)
{
//init 本次调用是声音设置标志
if (0 == PageFlag)
{
showPT(PageFlag);
}
else
{
showCB(PageFlag);
}
}
function showPT(PageFlag)
{
changeHeight(PageFlag);
//取数据
mg.ajaxPt();
mg.ajaxForNetCheck();
mg.ajaxForErr();
//更新
mg.updatePT();
mg.UpdateSendManage(); return;
}
function showCB(PageFlag)
{
changeHeight(PageFlag);
//取数据
mg.ajaxForNetCheck();
mg.ajaxForErr();
ajaxTwo();
mg.UpdateSendManage(); return;
} /*************************************************************************页面加载入口 end*********************************************/ //告警声音总开关标志 =0不出声 =1出声
var SoundFlag=1;
//现在声音设置标志 ,供子页面调用,=0表示暂未告警 =10表示严重 =20表示警告
var setSoundFlag=0;
function checkSoundFlag()
{
if(0==SoundFlag)
{
return false;
}else
{
return true;
}
}
//声音播放
function playSound(setSoundFlag)
{
var src="";
var soundObj=null;
if(20==setSoundFlag)
{
src="sound/sd1.wav";
}
else
{
src="sound/sd2.mp3";
}
if ("notIE" != checkBrowser())
{
soundObj = document.getElementById("soundJustForIE");
if (src != "" && typeof src != undefined)
{
soundObj.src = src;
}
soundObj = null;
}
else
{
soundObj = document.getElementById("soundForHTML5");
if (src != "" && typeof src != undefined)
{
soundObj.src = src;
}
soundObj = null;
}
}
//清除声音
function cleareSound(ieFlag)
{
//每次调用声音后,播放一次后调用该方法进行清除
if ("notIE" != checkBrowser())
{
document.getElementById('soundJustForIE').src = "";
}else
{
document.getElementById('soundForHTML5').src = "";
}
}
//定时重新检查是否有告警 暂定3秒
setInterval(function ()
{
cleareSound();
setSoundFlag=0;
}, 30000); //总开关样式修改 及保存用户习惯到后台
function openSound(){
//alert("开启声音总开关");
var c = document.getElementById("sound").src;
var cc = c.substring(c.lastIndexOf("/")+1);
//1代表开启声音报警,0代表关闭声音报警
if(cc == "nochecked.gif"){
$.ajax({
type:"POST",
url:"manageSmon.htm",
data:"method=setSound&state="+1,
async : false,
success:function(msg){
}
});
document.getElementById("sound").src = "img/ui/checked.gif";
SoundFlag=1;
setSoundFlag=0;
}else{
//alert("关闭声音");
$.ajax({
type:"POST",
url:"manageSmon.htm",
data:"method=setSound&state="+0,
async : false,
success:function(msg){
}
});
document.getElementById("sound").src = "img/ui/nochecked.gif";
SoundFlag=0;
cleareSound("");
setSoundFlag=0;
}
} $.ajax({
type : "POST",
url : "manageSmon.htm",
data : "method=getSetsound",
success : function(msg) {
if(msg == "1"){
document.getElementById("sound").src = "img/ui/checked.gif";
SoundFlag=1;
}else{
document.getElementById("sound").src = "img/ui/nochecked.gif";
SoundFlag=0;
}
}
}); function quit() {
var bool = false;
if (confirm("您确定要退出该系统吗?")) {
bool = true;
}
return bool;
}
//调出监控菜单栏
//manageTime1记录系统管理子菜单前一次点击时间、manageTime第二次点击时间与前一次点击时间的间隔
//monTime2记录监控日志子菜单前一次点击时间、monTime第二次点击时间与前一次点击时间的间隔
var manageTime1 = "";
var manageTime;
var monTime2 = "";
var monTime;
function getMenu(n,$this)
{
//平台监控页面
if(3==n)
{
document.getElementById("menuAction").style.display="none";
document.getElementById("monMenu1").style.display="none";
document.getElementById("changeView").style.display="block";
window.parent.document.getElementById("full").rows = "100,*,0,0";
window.parent.gotoURL("mainFrame","servlet/WarnIndexServlet?method=changeIndex3","mainFrame");
}
//平台
else
{
document.getElementById("changeView").style.display="none";
if(n==2){ if(monTime2 == ""){
//第一次进入
monTime2 = new Date();
$("#manageMenu222").css("left","396px");
$("#manageMenu222").animate({left:'-=396px'}, 1000);
}else{
monTime = new Date() - monTime2;
if(monTime > 1100){
//初始化系统管理子菜单
monTime2 = new Date();
$("#manageMenu222").css("left","396px");
$("#manageMenu222").animate({left:'-=396px'}, 1000);
}
} //监控日志按钮
//隐藏changeView、manageMenu1、manageMenu2
$("#changeView").hide();
$("#menuAction").hide();
//显示monMenu1
$("#monMenu1").show(); change(27); //var _url = "servlet/ChangeTitleServlet?n="+2;
window.parent.document.getElementById("full").rows = "100,0,0,*"; }else if(n==1){
//防止连续点击导致子菜单消失
if(manageTime1 == ""){
//第一次进入
manageTime1 = new Date();
$("#right_img").attr("src","img/ui/two/right.png");
$("#manageMenu111").css("left","393px");
$("#manageMenu111").animate({left:'-=393px'}, 1000);
//设置子菜单状态
menuStatus = 1;
}else{
var manageTime = new Date() - manageTime1;
if(manageTime > 1100){
//初始化系统管理子菜单
manageTime1 = new Date();
$("#right_img").attr("src","img/ui/two/right.png");
$("#manageMenu111").css("left","393px");
$("#manageMenu111").animate({left:'-=393px'}, 1000);
//设置子菜单状态
menuStatus = 1;
}
}
//系统管理按钮
//隐藏changeView、monMenu1
$("#changeView").hide();
$("#monMenu1").hide();
//显示manageMenu1、manageMenu2
$("#menuAction").show();
change(1);
//var _url = "servlet/ChangeTitleServlet?n="+1;
window.parent.document.getElementById("full").rows = "100,0,0,*";
} }
} function withBody(){
TOfunc();
} function loginName(){
//获得该用户的登陆时间以及登陆ip
$.ajax({
type : "POST",
url : "servlet/SmonGetIptimeServlet",
data : "",
success : function(msg) {
//alert(msg);
var sz = msg.split(",");
var v = "";
for(i = 0;i < sz.length-1;i++){
var v1 = sz[i];
var v2 = "\n";
v = v + v2 + (i+1) + ": " + v1 + v2;
}
alert(v);
}
});
}
var firstCindex=0;
function changeView2(){ if(0== firstCindex ){
window.parent.gotoURL("mainFrame1","servlet/WarnIndexServlet?method=changeIndex4","mainFrame1");
window.parent.document.getElementById("full").rows = "100,0,*,0";
window.parent.m1Flag=1;
firstCindex = 1;
}else{
//第一次切换视图,切换之后将值赋为1
window.parent.gotoURL("mainFrame","servlet/WarnIndexServlet?method=changeIndex3","mainFrame");
window.parent.document.getElementById("full").rows = "100,*,0,0";
firstCindex = 0;
}
} //子菜单点击事件
function change(n)
{
$("#d"+n).css("background","#60BC1D");
//$("#c"+n).css("color","#0f7ec1"); if(n < 15){
for(var i = 0;i < 15 ; i++){
if(i != n){
$("#d"+i).css("background","none");
//$("#c"+i).css("color","white");
}
}
}else if(n > 20){
for(var i = 20;i < 30 ; i++){
if(i != n){
$("#d"+i).css("background","none");
}
}
}
} //子菜单左右滑动方法
function menuMove(a)
{
//获得该图片的名称
var tp = document.getElementById("right_img").src;
//截出图片名
var t = tp.substring(tp.lastIndexOf("/")+1);
if(t == "right.png"){
//向右的图片
$("#manageMenu111").animate({left:'-=393px'}, 1000);
//滑动后更换图片
$("#right_img").attr("src","img/ui/two/left.png");
//设置子菜单状态,主要是为了鼠标滚动事件
menuStatus = 2;
}else{
//向左的图片
$("#manageMenu111").animate({left:'+=393px'}, 1000);
//滑动后更换图片
$("#right_img").attr("src","img/ui/two/right.png");
//设置子菜单状态,主要是为了鼠标滚动事件
menuStatus = 1;
}
} //二级子菜单鼠标进入事件
function dover(a)
{
$("#d"+a).css("border","white 1px solid");
}
//二级子菜单鼠标离开事件
function dout(a)
{
$("#d"+a).css("border","white 0px solid");
} /*********************
HTML Elements
*********************/
*{
margin:0;
padding:0;
} /*
去掉连接点击的虚线边框问题
*/
a:focus {
outline:none;
} #header h2{ color:#000;
width: 98%;
height: 45px;
margin-top:0px;
padding-right: 16px;
} #topmenu a,#topmenu a:visited{
color:#f7f6f0;
}
#topmenu a:hover{ }
#topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{
color:#993400;
background: #FFF url(../../img/bg_menu_blue.jpg) repeat-x top;
border-left: #FFF 1px solid;
border-right: #FFF 1px solid;
} body{ font-size: 12px;
font-family: Arial, Tahoma, Verdana; } a, a:visited{
text-decoration:none;
} /*超链接无下划线*/
a:LINK{
text-decoration: none;
}
a{
text-decoration:none;
} img{
vertical-align: middle;
border:0;
margin:1px;
}
p{
padding:3px;
} input{
padding:2px;
border:1px solid #8FBC8F;
-moz-border-radius: 5px;
/*
font-family:Verdana, Arial, Helvetica, sans-serif,"宋体";
*/
/*width: 100;*/
} select{
padding:2px;
} .spanselect{
border:1px solid #8FBC8F;
overflow:hidden;
vertical-align: middle;
height: 23px;
margin: 0px;
padding: 0px;
} LABEL{
font-size: 12px;
} span{
font-size: 12px;
color: red;
}
/*********************
Structure
*********************/ #header{
width:100%;
min-width: 1000px;
} #content{
margin:0,auto;
float:left;
width:100%;
/*
min-width: 980px ;
_width:expression(document.body.clientWidth < 980 ? "980px" : "auto");
*/
} #sidebar{
background:#FFF;
width:170px;
float:right;
margin:10px 0 10px 0;
padding:10px;
}
#footer{
clear:both;
padding:5px;
margin-top:10px;
} #box{
width:100%;
padding:0px; /*为了能设置box的left属性*/
position: relative; } /*********************
Sidebar
*********************/
#sidebar ul{
list-style:none;
line-height:22px;
}
#sidebar ul li a,#sidebar ul li a:visited{
padding-left:19px;
text-decoration:none;
margin:0 3px;
display:block;
}
#sidebar ul li a:hover{
text-decoration:underline;
text-decoration: none;
}
#sidebar ul li ul{
margin-left:10px;
}
#sidebar h3{
padding:2px;
font-size:14px;
}
/*********************
TopMenu, Top-Panel
*********************/
#topmenu{ margin-left:2.5%;
height:50px;
margin-top:10px;
width:60%;
float:left; } #total{ min-width: 980px ;
_width:expression(document.body.clientWidth < 980 ? "980px" : "auto"); } /*********************
a
*********************/
a:link {
color:#1db1c7;
text-decoration:underline;
/*设置链接无下划线*/
text-decoration: none;
}
a:visited {
color:#1db1c7;
text-decoration:underline;
text-decoration: none;
}
a:hover {
color:gray;
text-decoration:none;
}
a:active {
color:green;
text-decoration:none;
} #topmenu ul{
list-style:none;
line-height:30px;
margin-top: 0px; }
#topmenu li{
margin-top: 0px;
display:inline;
}
#topmenu a,#topmenu a:visited{
padding:5px 8px 5px 8px;
text-decoration:none;
}
#topmenu .current a, #topmenu .current a:hover, #topmenu .current a:visited{
padding:5px 12px 5px 12px;
font-weight:bold; } #panel1{ height:40px;
float:left; } /*********************
Other
*********************/
.a-right{text-align:right;}
.a-left{text-align:left;}
.a-center{text-align:center;}
#pager{
margin-top:36%;
height:25px;
position:fixed;
}
#styleswitcher{
float:right;
}
#styleswitcher ul{
list-style:none;
line-height:10px;
}
#styleswitcher li{
height:12px;
display:inline;
}
#footer ul {
list-style:none;
}
#footer li {
display:inline;
}
a#defswitch {
width:15px;
height:10px;
margin: 3px 0 3px 0;
background-color:#bd3f09;
font-size: 8px;
color:#bd3f09;
display:inline-block;
}
a#blueswitch {
width:15px;
height:10px;
margin: 3px 0 3px 0;
background-color:#375b91;
font-size: 8px;
color:#375b91;
display:inline-block;
}
a#greenswitch {
width:15px;
height:10px;
margin: 3px 0 3px 0;
background-color:#d0e0b8;
font-size: 8px;
color:#d0e0b8;
display:inline-block;
}
a#brownswitch {
width:15px;
height:10px;
margin: 3px 0 3px 0;
background-color:#654322;
font-size: 8px;
color:#654322;
display:inline-block;
}
a#mixswitch {
width:15px;
height:10px;
margin: 3px 0 3px 0;
background-color:#294145;
font-size: 8px;
color:#294145;
display:inline-block;
}
#credits{
clear:both;
width:200px;
float:left;
} /*********************
Tables
*********************/ table{
margin:5px;
border-collapse: collapse;
table-layout:automatic;
width:99%;
margin-top: 5px;
margin-right: 5px;
/*border:1px solid #1db1c7;*/
}
td, th{
/*border:1px solid #1db1c7;*/
font-size: 12px;
padding: 2px;
}
thead{
width:1500px;
background-color:#1db1c7;
} #table1{
font-size:16px;
} /*********************
Home
*********************/
#infowrap li{
display:inline:
}
#wrapper{
width: 95%;
/*
margin-left: 2%;
*/
margin-left: 10px;
/*方便设置left*/
position: relative; } #infobox{
width:212px;
height:120px;
float:left;
margin:15px auto 0 12px;
position: relative; }
.infoboxtt{
width:212px;
height:120px;
float:left;
margin:15px auto 0 12px;
position: relative;
} #infobox h3{
padding:5px;
font-size:14px;
}
.margin-left{
margin-left:5px;
}
#rightnow .reallynow {
padding: 0px;
font-size:14px; }
#rightnow h3{
padding:0px;
padding: 0 0px;
font-size:10px;
}
#rightnow .reallynow span {
display: block;
text-align: left;
float: left; font-size:8px
}
#rightnow .reallynow a {
text-decoration:none;
display: block;
text-align: right;
float: right;
padding:0 0 0 0px;
margin-left:0px;
font-weight:normal;
font-size:12px;
}
#rightnow .reallynow a:hover{
text-decoration:underline;
}
#rightnow .youhave {
font-size: 12px;
padding: 10px;
}
#rightnow a {
font-weight: bold;
}
/*********************
Forms
*********************/
form{
padding:10px;
margin:0 auto;
}
form#form fieldset {
display:block;
padding:5px 10px 5px 10px;
line-height:20px;
margin-bottom:10px;
}
form#form legend {
font-size:12px;
font-weight:bold;
margin-bottom:5px;
padding:3px;
width:254px;
}
form#form label {
clear:left;
display:block;
float:left;
width:100px;
text-align:right;
padding-right:10px;
margin-bottom:5px;
}
form#form input {
padding:3px;
margin-bottom:5px;
}
form#form select {
margin-left:5px;
}
form#form textarea {
width:410px;
height:200px;
padding:5px;
overflow:auto;
}
form#form option {
background:#FFF;
}
form#form optgroup option { }
form#form #button1, form#form #button2, form#form #button3 {
padding-right:5px;
cursor:pointer;
width:60px;
margin-left:50px;
font-weight:bold;
}
form#form #button1:hover, form#form #button2:hover, form#form #button3:hover {
background-position:center left;
} /*********************
Icons
*********************/
.icon{
padding-left:19px;
text-decoration:none;
height:20px;
font-size:12x;
margin:0 3px;
display:inline-block;
line-height:20px;
} .user{background:transparent url(../../img/btn_0.png) no-repeat left;}
.useradd{background:transparent url(../../img/icons/user_add.png) no-repeat left;}
.group{background:transparent url(../../img/icons/group.png) no-repeat left;}
.search{background:transparent url(../../img/1btn_0.png) no-repeat left;width: 70px;}
.online{background:transparent url(../../img/ui/21.png) no-repeat left;}
.pagenew{background:transparent url(../../img/icons/page_add.png) no-repeat left;}
.rss{background:transparent url(../../img/icons/rss.png) no-repeat left;}
.feed{background:transparent url(../../img/icons/feed.png) no-repeat left;}
.report{background:transparent url(../../img/icons/report.png) no-repeat left;}
.house{background:transparent url(../../img/icons/house.png) no-repeat left;}
.manage{background:transparent url(../../img/icons/cog.png) no-repeat left;}
.manage_page{background:transparent url(../../img/icons/page_gear.png) no-repeat left;}
.folder{background:transparent url(../../img/icons/folder.png) no-repeat left;}
.promotions{background:transparent url(../../img/icons/coins.png) no-repeat left;}
.cart{background:transparent url(../../img/icons/cart.png) no-repeat left;}
.folder_table{background:transparent url(../../img/icons/folder_page.png) no-repeat left;}
.shipping{background:transparent url(../../img/icons/car.png) no-repeat left;}
.invoices{background:transparent url(../../img/icons/page_white_text_width.png) no-repeat left;}
.addorder{background:transparent url(../../img/icons/folder_page_add.png) no-repeat left;}
.add{background:transparent url(../../img/icons/add.png) no-repeat left;}
.app_add{background:transparent url(../../img/icons/application_add.png) no-repeat left;}
.report_seo{background:transparent url(../../img/icons/report_link.png) no-repeat left;}
.modules{background:transparent url(../../img/icons/bricks.png) no-repeat left;}
.modules_manage{background:transparent url(../../img/icons/bricks_gear.png) no-repeat left;}
.mus{color: red;font-size:20px;vertical-align: middle;vertical-align: bottom;}
.tishi{height:13px;width:13px;}
/*.tdcolor{color:#1db1c7}*/
.tdcolor{color:black}
.blue{color:red};
#prt{margin:0px;padding:0px}; /*
.yuan{
border: 1px solid #8FBC8F;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
position:relative;
z-index:100;
behavior: url(css/ie-css3.htc);
height: 23px;
vertical-align: middle;
} .yuan4{
border: 1px solid #8FBC8F;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
position:absolute;
z-index:1;
width:60px;
behavior: url(css/ie-css3.htc);
} .yuan3{
border: 1px solid #8FBC8F;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
position:relative;
z-index:3;
width:25px;
height:18px;
behavior: url(css/ie-css3.htc);
}
*/
.passwordStand{
width:100px ;
border: 1px solid #8FBC8F;
} .fang1{
width:100px ;
border: 1px solid #8FBC8F;
}
.fang2{
width:100px ;
border: 1px solid #46c4fa;
} .fang3{
width:57px ;
border: 1px solid #8FBC8F;
}
.fang4{
width:57px ;
border: 1px solid #46c4fa;
}
.fang5{
width:140px ;
border: 1px solid #8FBC8F;
} .fang6{
width:140px ;
border: 1px solid #46c4fa;
} .tiaojian1{
width: 140px;
border: 1px solid #8FBC8F;
vertical-align: middle;
}
.tiaojian2{
width: 140px;
border: 1px solid #46c4fa;
vertical-align: middle;
} .tiaojian3{
width: 120px;
border: 1px solid #8FBC8F;
vertical-align: middle;
}
.tiaojian4{
width: 120px;
border: 1px solid #46c4fa;
vertical-align: middle;
} .remUnderline{
text-decoration: none;
} /*---------------------------------------------监控二期首页样式----------------------------------------------------*/
#test1{
font-size: 0px;
height: 15px;
} #allRoom{
border: 0px #0c8dce solid;
position: absolute;
margin:0px 15px 0px 15px;
} #roomTop{
margin-left: 15px;
} #maindiv2{
display: none;
} #roomBigTitle{
margin-top:13px;
margin-left:21px;
font-weight:bold;
font-size:22;
text-align: center;
width:120px;
float: left;
} .firstBigRoomT{
margin-left:20px;
float: left;
height: 40px;
} .firstRoomName{
float: left;
margin-top: 13px;
margin-left: 5px;
font-size: 18px;
font-weight: bold;
} .firstRoomN{
float: left;
width: 40px;
} .roomImg{
margin-left: 10px;
margin-top: 10px;
} #moveTotal{
display:inline;
} #move1{ margin-left:0px;
display:inline;
margin-top: 0px;
float: left;
overflow:hidden;
position: relative;
height: 568px; } #all_cab{
width:10000px;
position:absolute;
height:100%;
} .roomCab1{
height:547px;
margin-top: 2px;
} roomCab11{
display:none;
height:547px;
margin-top: 2px;
} .roomCab2{
position:relative;
display:inline;
height: 565px;
width: 212px;
float: left;
} .roomCab22{
display:inline;
position:relative;
height: 565px;
width: 212px;
float: left;
/*
style="display:inline;position:relative;height: 565px; width: 212px;float: left;"
*/
} .roomCabName1{
margin-left:17px;
height:18px;
width: 195px;
height: 22px;
/*
style="margin-left:17px;height:18px;width: 195px;height: 22px;"
*/
} .roomCabName2{ width: 195px;
height: 14px;
margin-top: 4px;
text-align:center;
font-weight: bold;
font-size: 12;
/*
style="width: 195px;height: 14px;margin-top: 4px;text-align:center;font-weight: bold;font-size: 12;"
*/
} .cabinetBody1{
margin-top:-8px !important;margin-top: 0px;
width:212px;
height: 543px;
background-image: url('../../img/ui/two/jigui2.png');
/*
style="margin-top:-8px !important; margin-top: 0px;width:212px;height: 543px;background-image: url('../../img/ui/two/jigui2.png');"
*/
} .topdb{ display: none;
margin-left:25px;
overflow:hidden;
height: 24px;
width:166px;
/*
style="display: none;margin-left:25px;overflow:hidden;height: 24px;width:166px;"
*/ } .bottomdb{ display: none;
margin-left:25px;
overflow:hidden;
height: 24px;
width:166px;
/*
style="display: none;margin-left:25px;overflow:hidden;height: 24px;width:166px;"
*/ } .computerPoint{ color:black;
text-align:center;
font-size:10px;
width: 5px;
height: 12px;
float: right; } .computerPointWai{
font-size:10px;
width: 5px;
height: 24px;
float: right;
} .cabinetNum{ text-align:center;
font-size:10px;
width: 15px;
height: 12px;
float: right; } .cabinetNumWai{ font-size:10px;
width: 15px;
height: 24px;
float: right; } .computerBack0{ margin-left:25px;
overflow:hidden;
margin-top:0px;
width:166px;
height: 11px;
background-image: url(''); } .computerBack1{ margin-left:25px;
overflow:hidden;
margin-top:1px;
width:166px;
height: 11px;
background-image: url(''); } .computerImg{ display:inline;
font-size:0px;
width: 13px;
height: 11px;
margin-left: 10px;
float: left; } .computeru{ color:white;
font-size:10px;
width: 15px;
height: 11px;
float: left; } #jgdiv_left{ height: 44px;
width: 44px;
position: absolute;
z-index: 998;
left:0px;
top: 400px; } #jgdiv_right{ height: 44px;
width: 44px;
position: absolute;
z-index: 999; } #rightdiv{
width:200px;
float: right;
margin-right:22px!important;margin-right:5px;
display:inline ;
margin-top:15px;
} #right22{ border: 1px solid #0c8dce;
height:243px;
width:100% } #ids2{ line-height:30px;
text-align:center ;
font-size:18;
color:white;
height:30px;
width:200px;
background: url('../../img/ui2/msg.png'); } #right2{ height:213px;
width:200px ;
border-top-color:#0c8dce;
margin-top:0px;
overflow: hidden; } #bao1{ height:183px;
width:200px ;
margin-top:10px;
margin-left:0px;
overflow: hidden; } .bao11{
display:inline;
margin-left:10px;
width: 60px;
height: 210px;
float: left;
margin-top: 0px;
} .bao12{
margin-left:0px;
width: 60px;
height: 210px;
float: left;
margin-top: 0px;
} .bao21{
margin-left:10px;
width: 40px;
height: 200px;
font-size: 0px;
} .bao22{
text-align:center;
font-size: 11px;
height: 12px;
} .bao23{
margin-left:5px ;
width: 50px;
background:#00ae72;
height: 220px;
font-size:9px;
} .bao24{
margin-left:5px;
width: 50px;
background:#038315;
height: 220px;
font-size:9px;
} #bao2{ font-weight:bolder ;
height:20px;
width:200px;
margin-left:0px ;
border-top: 1px solid black; } .bao25{
text-align:center;
display:inline;
margin-left:10px;
width: 60px;
height: 210px;
float: left;
margin-top: 3px;
} .bao26{
text-align:center;
margin-left:0px;
width: 60px;
height: 210px;
float: left;
margin-top: 3px;
} #right1{
margin-top:10px;
height:350px ;
width:200px ;
border: 1px solid #0c8dce;
border-bottom-color: #0c8dce;
} #ids{
line-height:30px;
text-align:center ;
font-size:18;
color:white;
margin-top:0px;
height:30px;
width:200px;
background: url('../../img/ui2/msg.png');
}

<!---<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">--->
<!---<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<%@ page language="java" import="java.util.*,com.mengw.smonitor.pojo.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";

int frontSize = 0;
int frontPos = 0;
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 2006 08:21:57 GMT">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<title>M-BOSS平台监控系统</title>
<link href="mon/UI/UI.css" rel="stylesheet" media="screen" type="text/css" />
<link rel="stylesheet" type="text/css" href="mon/UI/machineRoom.css">
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="mon/UI/machineRoom_head.js"></script>
<script type="text/javascript" src="mon/UI/machineRoom_body.js"></script>
<script type="text/javascript" src="mon/UI/ui.util.js"></script>
<script type="text/javascript" src="mon/UI/UI.js"></script>
</head>
<!------>
<body onresize="changeHeight()" style="background: url(img/ui2/bg.png) repeat ;">
<!-- 声音 -->
<div style="display:none; ">
<!-- 支持IE -->
<bgsound id="soundJustForIE" loop="infinite" style="display:none; " src=""> </bgsound>
<!-- 支持html5 -->
<audio id="soundForHTML5" loop="loop" style="display:none; " autoplay="true" preload="false" controls="controls"><br>
<source src="" type="audio/mpeg">
<br>
您的浏览器不支持音频标签!<br>
</audio>
</div>
<!---顶层--->
<!---顶层--->
<div class="container" id="container" >

<div id="left">
<div class="layout2" id="PT_root12" >
<ul id="PT_root">
</div>
<jsp:include page="/mon/UI/Room.jsp"/>

<script type="text/javascript">
</script>

</div>
<div id="right">
<div id="right_top" class="right_top">
</div>
<div id="right_btn" class="right_btn">
<div id="right_btn_title1" class="right_btn_title1">
</div>
<MARQUEE id="right_btn_scroll_div" onmouseover="this.stop()" onmouseout="this.start()" behavior="scroll" scrollamount="2" scrolldelay="100" direction="up" height="100%">
<div id="MARQUEE001"></div>
</MARQUEE>
</div>
</div>
</div>

</body>
<script type="text/javascript" >
load(${loadFlag});
</script>
</html>

demo 记录 通用方法什么的到这里抄一下的更多相关文章

  1. 使用JsPlumb绘制拓扑图的通用方法

    转自:http://www.it165.net/pro/html/201311/7616.html 使用JsPlumb绘制拓扑图的通用方法 一. 实现目标 绘制拓扑图, 实际上是个数据结构和算法的问题 ...

  2. 针对MSHFlexGrid的一系列通用方法-项目中实践代码分享

    1.给MSHFlexGrid填充数据通用方法 '自定义报表填充程序 fgrid Public Function ShowformfData(Resultset As ADODB.Recordset, ...

  3. 使用 JsPlumb 绘制拓扑图的通用方法

    摘要: 实现 JsPlumb 绘制拓扑图的通用方法. 只要服务端返回一个符合指定格式的数据结构,就可以绘制相应的拓扑图. 难度: 中级 示例工程见:  http://download.csdn.net ...

  4. Flutter实战视频-移动电商-66.会员中心_编写ListTile通用方法

    66.会员中心_编写ListTile通用方法 布局List里面嵌套一个ListTile的布局效果 里面有很多条记录,以后可能还会增加,所以这里我们做一个通用的组件 通用组件方法 这里使用Column布 ...

  5. Android应用开发完全退出程序的通用方法

    在开发一个android应用时,有可能有N个Activity,而在每个Activity里的菜单里有个"退出程序"菜单,这里就要完全退出程序了,所以今天给大家分享的是Android应 ...

  6. beego orm commonDAL通用方法汇总

    orm 通用方法——QueryModelById 主键查询 orm 通用方法——GetOneModel 条件查询一个对象 orm 通用方法——QueryModelCount条件查询记录数 orm 通用 ...

  7. 使用java泛型设计通用方法

    泛型是Java SE 1.5的新特性, 泛型的本质是参数化类型, 也就是说所操作的数据类型被指定为一个参数. 因此我们可以利用泛型和反射来设计一些通用方法. 现在有2张表, 一张user表和一张stu ...

  8. .NET基础架构方法—DataTableToExcel通用方法

    p { display: block; margin: 3px 0 0 0; } --> .NET架构基础方法—DataTableToExcel通用方法(NPOI) 今天封装DataTaleTo ...

  9. DataTable数据赋值给Model通用方法

    注:该文属本人原创,今后项目中发现该方法存在BUG会实时更新,转载记得附上原文出处,方便大家获得最新代码. 相信大家在做项目中,经常会根据不同的表new各种不同的Model,当需要对Model进行实例 ...

随机推荐

  1. SqlServer和MySQL中存储过程out返回值处理C#代码

    1.SqlServer中out处理 C#代码 #region"SqlServer中存储过程处理out返回值" //public void getdata() //{ // stri ...

  2. *SCM-MANAGER独立部署方式

    从官网获取最新版本 scm-manager 独立安装包 https://www.scm-manager.org/download/ 解压 为合适的路径 修改 services.bat 文件服务相关信息 ...

  3. Falsk项目cookie中的 csrf_token 和表单中的 csrf_token实现

    Flask中请求体的请求开启CSRF保护可以按以下配置 from flask_wtf.csrf import CSRFProtect app.config.from_object(Config) CS ...

  4. Docker搭建独立服务器

    用Docker尝试搭建了一个Apache2服务器,整体安装很简单,但是从容器中退出后,Apache2服务器也就随之停止,网上有很多说可以通过docker run 加上-d参数可以使得服务器跑在后台,但 ...

  5. d3.js(v5.7)力导向图(关系图谱)

    先上图,后面再一一解释: ok,为了方便理解,这里我就没有用之前封装的automatch函数来将数据和节点匹配了,如果你对enter(),exit()函数还不是很理解的话,请移步至我之前写的<n ...

  6. C# http post上传文件

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.I ...

  7. IT NEWS WebSite

    1.http://stackoverflow.com/ 2.google news 订阅 3.(IOS/Android/Java/Html5/JavaScript..)weekly 4.http:// ...

  8. ss client 配置

    1.1安装ss apt-get install python-pippip install shadowsocks 1.2配置ss 新建一个配置文件config.json/etc/shadowsock ...

  9. js 字符串和数组注意点

    var a="foo"; var b=[ "f","o","o"]; a[1]="o"; b[1]= ...

  10. 每天一个linux命令(文件操作):【转载】locate命令

    locate 让使用者可以很快速的搜寻档案系统内是否有指定的档案.其方法是先建立一个包括系统内所有档案名称及路径的数据库,之后当寻找时就只需查询这个数据库,而不必实际深入档案系统之中了.在一般的 di ...