1.事务添加

2.亦庄bug修改
3.业务系统添加逻辑变更
This commit is contained in:
wangwenrui
2018-09-29 09:52:11 +08:00
parent dc91c4c987
commit dc168fa9b9
270 changed files with 128480 additions and 128056 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,318 +1,318 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_actsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
$('#tnts').text("");
$('#cnts').text("");
$('#cnl').text("");
$('#cnll').text("");
$('#tnl').text("");
$("#oidFont").attr('color','red');
if($id("checkTypeName1","","i18n_actsi.text.checkTypeName1_n81i") && $id("checkTypeName","","i18n_actsi.text.checkTypeName_n81i")&& $id("tableName","","i18n_actsi.text.tableName_n81i")){
if(containSpecial($("#checkTypeName1").val())){
$("#checkTypeName1").next().html("i18n_actsi.text.checkTypeName1.hasSpecialChar_n81i");
return;
}
if(containSpecial1($("#checkTypeName").val())){//判断是否包含特殊字符和中文
if($("#checkTypeName").val().length<64 && $("#tableName").val().length<=20){
if($("#tableName").val()=='DI_'){
$("#tableName").next().html("i18n_actsi.text.tableName.enterDBName_n81i");
return;
}
if(containSpecial($("#tableName").val())){
$("#tableName").next().html("i18n_actsi.text.tableName.tabSpecialChar_n81i");
$("#tableName").val('DI_');
return;
}
if(!containSpecial1($("#tableName").val())){
$("#tableName").next().html("i18n_actsi.text.tableName.tabHasZh_n81i");
$("#tableName").val('DI_');
return;
}
if(jQuery("#viewLevel2").attr('checked')==true){
if($id("usergroupid","xz","i18n_actsi.text.usergroup_n81i")){
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}else{
$("#oidFont").text("i18n_actsi.text.oidFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}
}
}else{
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}else{
$("#oidFont").text("i18n_actsi.text.oidFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}
}
}else{
if($("#checkTypeName").val().length>63){
$("#ctypeName").html("i18n_actsi.text.ctypeName.exception1_n81i");
}
if($("#tableName").val().length>20){
$("#tableNameFont").html("i18n_actsi.text.tableNameFont.exception_n81i");
}
}
}else{
$("#ctypeName").html("i18n_actsi.text.ctypeName.exception2_n81i");
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query";
document.Mkform.submit();
}
//验证非中文和特殊字符
function containSpecial1(s)
{
var cs = /^\w+$/;
resu = cs.test(s);
return (cs.test(s));
}
//验证oid
function checkOID(oid){
var cs = /^([1-9]|\.)([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
jQuery(function(){
jQuery("td[id=usergroup]").hide();
jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2');
if($("#isSnmp0").attr('checked')==true ||$("#isSnmp1").attr('checked')==true){ //oid显示且必选
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{
jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
//-- 查看权限事件绑定
jQuery("input[type=radio][name=checkTypeInfo.viewLevel]").click(function(){
if(jQuery(this).val() == 2){ //用户组显示且必选
jQuery("td[id=usergroup]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=usergroup]").hide();
jQuery("#usergroupid").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
});
//-- 是否为snmp监控事件绑定
jQuery("input[type=radio][name=checkTypeInfo.isSnmp]").click(function(){
if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=oid]").hide();
jQuery("#snmpOID").val("");
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
});
//--验证OID失去焦点事件
$("#snmpOID").focusout(function() {
if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){
$("#oidFont").attr('color','#009900').text("OIDi18n_actsi.text.lawful_n81i");
}
});
})
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class="btn3_mouseout"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_actsi.button.back_n81i"/>
</div>
<form action="" name="Mkform" method="post">
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_actsi.text.addCheckType_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_actsi.text.checkTypeName1_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1"/>
<font color="red">*</font>
</td>
<td class="color_1" width="10%" align="right" nowrap="nowrap">
i18n_actsi.text.checkTypeName_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeIden }"/>
<font id="ctypeName" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_actsi.text.tableName_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.tableName"
id="tableName" value="DI_"/>
<font id="tableNameFont" color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.tableDesc_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="checkTypeInfo.tableComments"
id="tableName" />
</td>
</tr>
<tr>
<td class="td_1" nowrap="nowrap">i18n_actsi.text.viewPrivilege_n81i</td>
<td class="td_3" id="viewLevel0">
<c:if test="${!ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="1" checked="checked" />i18n_actsi.text.viewPrivilege.publisher_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" id="viewLevel2" value="2" />i18n_actsi.text.viewPrivilege.publisherGroup_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="3" />i18n_actsi.text.viewPrivilege.allInSys_n81i&nbsp;
</c:if>
<c:if test="${ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="4" checked="checked"/>i18n_actsi.text.viewPrivilege.unlimited_n81i&nbsp;
</c:if>
</td>
<td class="td_1" id="usergroup">i18n_actsi.text.usergroup1_n81i</td>
<td class="td_2" id="usergroup">
<select name="checkTypeInfo.groupId" id="usergroupid">
<option selected="selected" value="">
i18n_actsi.text.selectUserGroup_n81i
</option>
<c:forEach items="${setxtjs}" var="stjs">
<option value="${stjs.jsbh}">
${stjs.jsmc}
</option>
</c:forEach>
</select>
<font color="red" id="group_red">* </font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.snmp_n81i
</td>
<td class="color_3" align="left" id="snmp">
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1" />SNMP4J
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0" />ObjectSNMP
<!--
-->
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2" checked="checked"/>i18n_actsi.text.NO_n81i
</td>
<td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap">
OID
</td>
<td id="oid" class="color_3" align="left">
<input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="30"/>
<font id="oidFont" color="red">*</font>
</td>
<!--
<td class="color_1" align="right" valign="top" nowrap="nowrap">
存在是否替换
</td>
<td class="color_3" align="left">
<input type="radio" name="replace" id="yes" value="1" checked="checked"/>是
<input type="radio" name="replace" id="no" value="2" />否
</td>
-->
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.isSchedule_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_actsi.text.NO_n81i
<input type="hidden" name="checkTypeInfo.isSchedule" value="1"/>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.remark_n81i
</td>
<td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" name="checkTypeInfo.checkRemark" id="checkRemark"></textarea>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_actsi.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_actsi.button.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_actsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
$('#tnts').text("");
$('#cnts').text("");
$('#cnl').text("");
$('#cnll').text("");
$('#tnl').text("");
$("#oidFont").attr('color','red');
if($id("checkTypeName1","","i18n_actsi.text.checkTypeName1_n81i") && $id("checkTypeName","","i18n_actsi.text.checkTypeName_n81i")&& $id("tableName","","i18n_actsi.text.tableName_n81i")){
if(containSpecial($("#checkTypeName1").val())){
$("#checkTypeName1").next().html("i18n_actsi.text.checkTypeName1.hasSpecialChar_n81i");
return;
}
if(containSpecial1($("#checkTypeName").val())){//判断是否包含特殊字符和中文
if($("#checkTypeName").val().length<64 && $("#tableName").val().length<=20){
if($("#tableName").val()=='DI_'){
$("#tableName").next().html("i18n_actsi.text.tableName.enterDBName_n81i");
return;
}
if(containSpecial($("#tableName").val())){
$("#tableName").next().html("i18n_actsi.text.tableName.tabSpecialChar_n81i");
$("#tableName").val('DI_');
return;
}
if(!containSpecial1($("#tableName").val())){
$("#tableName").next().html("i18n_actsi.text.tableName.tabHasZh_n81i");
$("#tableName").val('DI_');
return;
}
if(jQuery("#viewLevel2").attr('checked')==true){
if($id("usergroupid","xz","i18n_actsi.text.usergroup_n81i")){
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}else{
$("#oidFont").text("i18n_actsi.text.oidFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}
}
}else{
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}else{
$("#oidFont").text("i18n_actsi.text.oidFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit();
}
}
}else{
if($("#checkTypeName").val().length>63){
$("#ctypeName").html("i18n_actsi.text.ctypeName.exception1_n81i");
}
if($("#tableName").val().length>20){
$("#tableNameFont").html("i18n_actsi.text.tableNameFont.exception_n81i");
}
}
}else{
$("#ctypeName").html("i18n_actsi.text.ctypeName.exception2_n81i");
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query";
document.Mkform.submit();
}
//验证非中文和特殊字符
function containSpecial1(s)
{
var cs = /^\w+$/;
resu = cs.test(s);
return (cs.test(s));
}
//验证oid
function checkOID(oid){
var cs = /^([1-9]|\.)([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
jQuery(function(){
jQuery("td[id=usergroup]").hide();
jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2');
if($("#isSnmp0").attr('checked')==true ||$("#isSnmp1").attr('checked')==true){ //oid显示且必选
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{
jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
//-- 查看权限事件绑定
jQuery("input[type=radio][name=checkTypeInfo.viewLevel]").click(function(){
if(jQuery(this).val() == 2){ //用户组显示且必选
jQuery("td[id=usergroup]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=usergroup]").hide();
jQuery("#usergroupid").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
});
//-- 是否为snmp监控事件绑定
jQuery("input[type=radio][name=checkTypeInfo.isSnmp]").click(function(){
if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=oid]").hide();
jQuery("#snmpOID").val("");
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
});
//--验证OID失去焦点事件
$("#snmpOID").focusout(function() {
if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){
$("#oidFont").attr('color','#009900').text("OIDi18n_actsi.text.lawful_n81i");
}
});
})
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class="btn3_mouseout"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_actsi.button.back_n81i"/>
</div>
<form action="" name="Mkform" method="post">
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_actsi.text.addCheckType_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_actsi.text.checkTypeName1_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1"/>
<font color="red">*</font>
</td>
<td class="color_1" width="10%" align="right" nowrap="nowrap">
i18n_actsi.text.checkTypeName_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeIden }"/>
<font id="ctypeName" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_actsi.text.tableName_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.tableName"
id="tableName" value="DI_"/>
<font id="tableNameFont" color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.tableDesc_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="checkTypeInfo.tableComments"
id="tableName" />
</td>
</tr>
<tr>
<td class="td_1" nowrap="nowrap">i18n_actsi.text.viewPrivilege_n81i</td>
<td class="td_3" id="viewLevel0">
<c:if test="${!ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="1" checked="checked" />i18n_actsi.text.viewPrivilege.publisher_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" id="viewLevel2" value="2" />i18n_actsi.text.viewPrivilege.publisherGroup_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="3" />i18n_actsi.text.viewPrivilege.allInSys_n81i&nbsp;
</c:if>
<c:if test="${ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="4" checked="checked"/>i18n_actsi.text.viewPrivilege.unlimited_n81i&nbsp;
</c:if>
</td>
<td class="td_1" id="usergroup">i18n_actsi.text.usergroup1_n81i</td>
<td class="td_2" id="usergroup">
<select name="checkTypeInfo.groupId" id="usergroupid">
<option selected="selected" value="">
i18n_actsi.text.selectUserGroup_n81i
</option>
<c:forEach items="${setxtjs}" var="stjs">
<option value="${stjs.jsbh}">
${stjs.jsmc}
</option>
</c:forEach>
</select>
<font color="red" id="group_red">* </font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.snmp_n81i
</td>
<td class="color_3" align="left" id="snmp">
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1" />SNMP4J
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0" />ObjectSNMP
<!--
-->
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2" checked="checked"/>i18n_actsi.text.NO_n81i
</td>
<td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap">
OID
</td>
<td id="oid" class="color_3" align="left">
<input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="30"/>
<font id="oidFont" color="red">*</font>
</td>
<!--
<td class="color_1" align="right" valign="top" nowrap="nowrap">
存在是否替换
</td>
<td class="color_3" align="left">
<input type="radio" name="replace" id="yes" value="1" checked="checked"/>是
<input type="radio" name="replace" id="no" value="2" />否
</td>
-->
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.isSchedule_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_actsi.text.NO_n81i
<input type="hidden" name="checkTypeInfo.isSchedule" value="1"/>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.remark_n81i
</td>
<td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" name="checkTypeInfo.checkRemark" id="checkRemark"></textarea>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_actsi.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_actsi.button.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,319 +1,319 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_acts.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function addCheck(){
var type;
$.ajax({
url:"<%=path%>/detection/metaDataSet.do?action=addCheck",
type : "POST",
async:false,
data:$('#form1').serialize(),
success : function(data) {
if(data == "exception"){
type = false;
alert("i18n_acts.error.abnormalOperation_n81i");
}else if(data =="success"){
type = true;
}else{
type = false;
alert(data);
}
}
});
return type;
}
var flag = false;
function add(){
$("#filedNameFont").html("*");
$("#zfcd").html("*");
if(flag==true){
var legthValue = document.getElementById('filedTypeLength');
if(legthValue.value==""){
$("#zfcd").html("i18n_acts.error.charLen_n81i");
legthValue.focus();
return;
}
}
if($id("filedName","","i18n_acts.text.filedName_n81i")&& $id("filedComments","","i18n_acts.text.filedComments_n81i")
&& $id("filedType","xz","i18n_acts.text.filedType_n81i") && $id("showNum","","i18n_acts.text.showNum_n81i")
&& $id("showNum","sz","i18n_acts.text.showNum_n81i")){
var oid = document.getElementById("oid");
if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查
if(!$id("oid","","OID")) {
return;
}
}
if($("#filedName").val().length<15){
if(!containSpecial($("#filedName").val())){
if(!containSpecial1($("#filedName").val())){
$("#filedName").next().html("i18n_acts.error.filedName_n81i");
return;
}
if(!checkNum($("#filedName").val())){
if(document.getElementById('filedType').value=='VARCHAR2'){
if($id("filedTypeLength","","i18n_acts.text.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_acts.text.filedTypeLength_n81i") && addCheck()){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd";
document.form1.submit();
}
}else{
if(addCheck()){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd";
document.form1.submit();
}
}
}else{
$("#filedNameFont").html("i18n_acts.error.cannotNum_n81i");
}
}else{
$("#filedNameFont").html("i18n_acts.error.hasSpecialChar_n81i");
}
}else{
$("#filedNameFont").html("i18n_acts.error.lenTooLess_n81i");
}
}
}
//检查是否以数字开头
function checkNum(s)
{
var cs = /^[0-9]*$/;
resu = cs.test(s);
return (cs.test(s));
}
//验证非中文和特殊字符
function containSpecial1(s)
{
var cs = /^\w+$/;
resu = cs.test(s);
return (cs.test(s));
}
function goBack(tid){
var fw = $("#fw").val();
var ic = $("#ic").val();
if(fw!=null && fw !=""){//从向导过来
if(ic!=null && ic =='0'){//添加提交过 ----监测类别源数据 操作完成
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isComplete="+ic;
}else{//监测类别完成
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isJclbComplete=0";
}
}else{
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid;
}
}
function rclick(obj){
if(obj.id=='State1'){//停用
document.getElementById('chartState1').checked="checked";
}else{//启用
if($("#filedType").val() == "VARCHAR2"){
document.getElementById('chartState1').checked="checked";
}
}
}
jQuery(function(){
jQuery("td[id=lengthFt]").hide();
jQuery("td[id=viewLevel0]").attr('colspan',3);
//-- 字段类型选择事件绑定
jQuery("#filedType").change(function(){
if(jQuery(this).val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1);
flag = true;
//$("#chartState0").attr("disabled","disabled");
$("#chartState1").attr("checked","checked");
}else{ //字段长度隐藏
jQuery("td[id=lengthFt]").hide();
jQuery("#filedTypeLength").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3);
flag = false;
if($("#State1").attr("checked")==true){//停用
//$("#chartState0").attr("disabled","disabled");
$("#chartState1").attr("checked","checked");
}
}
});
})
</script>
<body>
<div class="middle_list" >
<form action="" name="form1" method="post" id="form1">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${typeids[0] }" name="typeids"/>
<input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" id="ic" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" id="ijc" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_acts.text.addDetecationMetaDate_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right">
i18n_acts.text.detecationType_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="hidden" name="checkTypeInfo.id"
id="checkTypeId" value="${checkTypeInfo.id }"/>
<input type="text" name="checkTypeInfo.checkTypeName"
id="checkTypeName" value="${checkTypeInfo.checkTypeName }" readonly="readonly"/>
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_acts.text.tableName_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="text" name="metadata.tableName"
id="tableName" value="${checkTypeInfo.tableName }" readonly="readonly"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.filedName_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="metadata.filedName"
id="filedName" value=""/>
<font id="filedNameFont" color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_acts.text.filedComments_n81i
</td>
<td class="color_3" align="left" >
<input type="text" name="metadata.filedComments"
id="filedComments" value=""/>
<font color="red">*i18n_acts.error.filedComments_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.filedType_n81i
</td>
<td class="color_6" align="left" id="viewLevel0">
<select name="filedType" id="filedType">
<option value="">
i18n_acts.message.filedType.selectDefault_n81i
</option>
<option value="Number">
i18n_acts.message.filedType.selectNumber_n81i
</option>
<option value="DATE">
i18n_acts.message.filedType.selectDATE_n81i
</option>
<option value="VARCHAR2">
i18n_acts.message.filedType.selectVARCHAR2_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="lengthFt">
i18n_acts.text.filedTypeLength_n81i
</td>
<td class="color_3" align="left" id="lengthFt">
<input type="text" name="filedTypeLength"
id="filedTypeLength" />
<font color="red" id="zfcd">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.metaDateState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.state"
id="State0" value="0" onclick="rclick(this)" checked="checked" />i18n_acts.message.metaDateState0_n81i
<input type="radio" name="metadata.state"
id="State1" value="1" onclick="rclick(this)"/>i18n_acts.message.metaDateState1_n81i
</td>
<td class="color_1" align="right">
i18n_acts.text.ChartState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.chartState"
id="chartState0" value="0" />i18n_acts.message.yes_n81i
<input type="radio" name="metadata.chartState"
id="chartState1" value="1" checked="checked" />i18n_acts.message.no_n81i
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.serialNumber_n81i
</td>
<td class="color_3" align="left"
<c:if test="${checkTypeInfo.isSnmp != 1&&checkTypeInfo.isSnmp !=0}">colspan="3"</c:if> >
<input type="text" name="metadata.showNum" id="showNum" value="${maxNum+1 }"/>
<font color="red">*</font>
</td>
<c:if test="${checkTypeInfo.isSnmp == 1||checkTypeInfo.isSnmp == 0}"><!-- 是SNMP监控 -->
<td class="color_1" align="right">
OID
</td>
<td class="color_3" align="left" >
<input type="text" name="metadata.oid"
id="oid" value=""/>
<font color="red">*</font>
</td>
</c:if>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_acts.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form1'].reset()" value="i18n_acts.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${checkTypeInfo.id })"
value="i18n_acts.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_acts.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function addCheck(){
var type;
$.ajax({
url:"<%=path%>/detection/metaDataSet.do?action=addCheck",
type : "POST",
async:false,
data:$('#form1').serialize(),
success : function(data) {
if(data == "exception"){
type = false;
alert("i18n_acts.error.abnormalOperation_n81i");
}else if(data =="success"){
type = true;
}else{
type = false;
alert(data);
}
}
});
return type;
}
var flag = false;
function add(){
$("#filedNameFont").html("*");
$("#zfcd").html("*");
if(flag==true){
var legthValue = document.getElementById('filedTypeLength');
if(legthValue.value==""){
$("#zfcd").html("i18n_acts.error.charLen_n81i");
legthValue.focus();
return;
}
}
if($id("filedName","","i18n_acts.text.filedName_n81i")&& $id("filedComments","","i18n_acts.text.filedComments_n81i")
&& $id("filedType","xz","i18n_acts.text.filedType_n81i") && $id("showNum","","i18n_acts.text.showNum_n81i")
&& $id("showNum","sz","i18n_acts.text.showNum_n81i")){
var oid = document.getElementById("oid");
if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查
if(!$id("oid","","OID")) {
return;
}
}
if($("#filedName").val().length<15){
if(!containSpecial($("#filedName").val())){
if(!containSpecial1($("#filedName").val())){
$("#filedName").next().html("i18n_acts.error.filedName_n81i");
return;
}
if(!checkNum($("#filedName").val())){
if(document.getElementById('filedType').value=='VARCHAR2'){
if($id("filedTypeLength","","i18n_acts.text.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_acts.text.filedTypeLength_n81i") && addCheck()){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd";
document.form1.submit();
}
}else{
if(addCheck()){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd";
document.form1.submit();
}
}
}else{
$("#filedNameFont").html("i18n_acts.error.cannotNum_n81i");
}
}else{
$("#filedNameFont").html("i18n_acts.error.hasSpecialChar_n81i");
}
}else{
$("#filedNameFont").html("i18n_acts.error.lenTooLess_n81i");
}
}
}
//检查是否以数字开头
function checkNum(s)
{
var cs = /^[0-9]*$/;
resu = cs.test(s);
return (cs.test(s));
}
//验证非中文和特殊字符
function containSpecial1(s)
{
var cs = /^\w+$/;
resu = cs.test(s);
return (cs.test(s));
}
function goBack(tid){
var fw = $("#fw").val();
var ic = $("#ic").val();
if(fw!=null && fw !=""){//从向导过来
if(ic!=null && ic =='0'){//添加提交过 ----监测类别源数据 操作完成
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isComplete="+ic;
}else{//监测类别完成
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isJclbComplete=0";
}
}else{
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid;
}
}
function rclick(obj){
if(obj.id=='State1'){//停用
document.getElementById('chartState1').checked="checked";
}else{//启用
if($("#filedType").val() == "VARCHAR2"){
document.getElementById('chartState1').checked="checked";
}
}
}
jQuery(function(){
jQuery("td[id=lengthFt]").hide();
jQuery("td[id=viewLevel0]").attr('colspan',3);
//-- 字段类型选择事件绑定
jQuery("#filedType").change(function(){
if(jQuery(this).val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1);
flag = true;
//$("#chartState0").attr("disabled","disabled");
$("#chartState1").attr("checked","checked");
}else{ //字段长度隐藏
jQuery("td[id=lengthFt]").hide();
jQuery("#filedTypeLength").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3);
flag = false;
if($("#State1").attr("checked")==true){//停用
//$("#chartState0").attr("disabled","disabled");
$("#chartState1").attr("checked","checked");
}
}
});
})
</script>
<body>
<div class="middle_list" >
<form action="" name="form1" method="post" id="form1">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${typeids[0] }" name="typeids"/>
<input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" id="ic" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" id="ijc" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_acts.text.addDetecationMetaDate_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right">
i18n_acts.text.detecationType_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="hidden" name="checkTypeInfo.id"
id="checkTypeId" value="${checkTypeInfo.id }"/>
<input type="text" name="checkTypeInfo.checkTypeName"
id="checkTypeName" value="${checkTypeInfo.checkTypeName }" readonly="readonly"/>
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_acts.text.tableName_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="text" name="metadata.tableName"
id="tableName" value="${checkTypeInfo.tableName }" readonly="readonly"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.filedName_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="metadata.filedName"
id="filedName" value=""/>
<font id="filedNameFont" color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_acts.text.filedComments_n81i
</td>
<td class="color_3" align="left" >
<input type="text" name="metadata.filedComments"
id="filedComments" value=""/>
<font color="red">*i18n_acts.error.filedComments_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.filedType_n81i
</td>
<td class="color_6" align="left" id="viewLevel0">
<select name="filedType" id="filedType">
<option value="">
i18n_acts.message.filedType.selectDefault_n81i
</option>
<option value="Number">
i18n_acts.message.filedType.selectNumber_n81i
</option>
<option value="DATE">
i18n_acts.message.filedType.selectDATE_n81i
</option>
<option value="VARCHAR2">
i18n_acts.message.filedType.selectVARCHAR2_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="lengthFt">
i18n_acts.text.filedTypeLength_n81i
</td>
<td class="color_3" align="left" id="lengthFt">
<input type="text" name="filedTypeLength"
id="filedTypeLength" />
<font color="red" id="zfcd">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.metaDateState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.state"
id="State0" value="0" onclick="rclick(this)" checked="checked" />i18n_acts.message.metaDateState0_n81i
<input type="radio" name="metadata.state"
id="State1" value="1" onclick="rclick(this)"/>i18n_acts.message.metaDateState1_n81i
</td>
<td class="color_1" align="right">
i18n_acts.text.ChartState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.chartState"
id="chartState0" value="0" />i18n_acts.message.yes_n81i
<input type="radio" name="metadata.chartState"
id="chartState1" value="1" checked="checked" />i18n_acts.message.no_n81i
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_acts.text.serialNumber_n81i
</td>
<td class="color_3" align="left"
<c:if test="${checkTypeInfo.isSnmp != 1&&checkTypeInfo.isSnmp !=0}">colspan="3"</c:if> >
<input type="text" name="metadata.showNum" id="showNum" value="${maxNum+1 }"/>
<font color="red">*</font>
</td>
<c:if test="${checkTypeInfo.isSnmp == 1||checkTypeInfo.isSnmp == 0}"><!-- 是SNMP监控 -->
<td class="color_1" align="right">
OID
</td>
<td class="color_3" align="left" >
<input type="text" name="metadata.oid"
id="oid" value=""/>
<font color="red">*</font>
</td>
</c:if>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_acts.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form1'].reset()" value="i18n_acts.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${checkTypeInfo.id })"
value="i18n_acts.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,442 +1,442 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ctsil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script>
<style type="text/css">
.mydiv {
background-color:#fff;
border: 1px solid #000;
text-align: center;
line-height: 40px;
font-size: 12px;
font-weight: bold;
z-index:99;
width: 220px;
height: 80px;
left:50%;/*FF IE7*/
top: 50%;/*FF IE7*/
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
margin-top:0px;
position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/
_top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
}
.bg {
background-color: #ccc;
width: 100%;
height: 100%;
left:0;
top:0;/*FF IE7*/
filter:alpha(opacity=50);/*IE*/
opacity:0.5;/*FF*/
z-index:1;
position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/
_top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
}
/*The END*/
</style>
</head>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_ctsil.message.success_n81i");
}else if(msg=='2'){
alert("i18n_ctsil.message.faild_n81i");
}
//添加记录
function addCheckTypeSet(){
document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
//修改记录
function updCheckTypeSet(){
if(!isRigthCheck("ids", "edit")){
alert("i18n_ctsil.error.itemSelect_n81i");
}else{
document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
}
//删除记录
function delCheckTypeSet(){
if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsil.error.itemSelect_n81i");
}else if(confirm("i18n_ctsil.error.isDelete_n81i")){
document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
}
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
document.form3.submit();
}
//配置元数据
function showRecord(checktypeid){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&typeids="+checktypeid;
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
// 程辉 2013-5-8 新增 模板下载
function downloadExample() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=downloadExample";
document.form3.submit();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
//程辉 2013-5-8 新增 导入
function importXls() {
var myfileVal = document.getElementById("myFile").value;
if(myfileVal=="") {
alert("i18n_ctsil.error.selectFile_n81i");
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
alert("i18n_ctsil.error.selectFileType_n81i");
}else if(confirm('i18n_ctsil.error.isImport_n81i')){
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=importXls";
document.form3.submit();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
}
//程辉 2013-5-8 新增 导出当前页
function emportCurrentXls() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportCurrentXls&pageNo="+$("#pageNo").val()+"&pageSize="+'${pageSize }'+"&ctn="+$("#checkTypeId").val();
document.form3.submit();
closeDiv();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
//程辉 2013-5-8 新增 导出全部
function emportAllXls() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportAllXls&ctn="+$("#checkTypeId").val();
document.form3.submit();
closeDiv();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
function showDiv(){
document.getElementById('popDiv').style.display='block';
document.getElementById('bg').style.display='block';
}
function closeDiv(){
document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none';
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
// $("#maindiv").attr("style","clear:left");
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var flashFlag = false;
var memoryData ;
var intervalID ;
$(document).ready(function(){//DOM的onload事件
//$(”#mypage”).load(”table.html”);//table.html的内容被加载到mypage元素
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
$.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容
memoryData = data;
flashFlag = true;
});
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
//alert(topH+" " +hght);
if(topH!=0 && hght!=0 && topH == hght && flashFlag){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
//if(topH>parseInt(hght/3)*2){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
// show();//如果是调用show函数加载内容。
//}
}
function show(){
flashFlag=false;
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var flag2 = true;
if(memoryData!=null&&memoryData!=""&&memoryData.replace(/(^\s*)|(\s*$)/g,"")!=""){
try{
$("#info").append($(memoryData));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);
$("#pageNo").val(pagePoint);
flag2 = false;
}catch(err){
}
}
$.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容
if(flag2){
try{
$("#info").append($(data));//用append方法追加内容到mypage元素。
}catch(err){
}
}else{
flag2 = true;
memoryData = data;
}
//无数据
if(data==null||data==""){
clearInterval(intervalID);
}
flashFlag = true;
});
loadButton();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
</script>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" action="<c:url value='/detection/checkTypeSet.do?action=query'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="pageNoforexp" id="pageNo" value="${pageNo }"/>
<div id="divTop">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_ctsil.text.detecationTypeName_n81i</font>
<select style="width:140px;" name="ctn" id="checkTypeId">
<option value="">
--i18n_ctsil.message.selectDetecationTypeDefault_n81i--
</option>
<c:if test="${fn:length(allCheckTypeInfo) > 0}">
<c:set var="isSchedule0" value="0"/>
<c:forEach items="${allCheckTypeInfo}" var="checkType">
<c:if test="${checkType.isSchedule != isSchedule0 }">
<option style="height: 2px;" disabled="disabled">--------------------</option>
<c:set var="isSchedule0" value="${checkType.isSchedule}"/>
</c:if>
<option value="${checkType.id}"
<c:if test="${not empty ctn && ctn == checkType.id }">selected="selected"</c:if>>
${checkType.checkTypeName1}
</option>
</c:forEach>
</c:if>
</select></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:downloadExample();" value="i18n_ctsil.button.downloadModel_n81i"/>
&nbsp;
<input type="button" value="i18n_ctsil.button.import_n81i Excel" title="i18n_ctsil.button.import_n81i Excel" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
<input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:importXls();" value="i18n_ctsil.button.import_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:showDiv();" value="i18n_ctsil.button.export_n81i"/>
&nbsp;
<jsp:include page="/include/include.jsp" />
</div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr >
<td width="6%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsil.button.index_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsil.text.detecationTypeName_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsil.text.detecationType_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsil.text.tableMap_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsil.text.tableComments_n81i
</td>
<td width="5%" class="color_top">
i18n_ctsil.text.isSchedule_n81i
</td>
<td width="5%" class="color_top">
i18n_ctsil.text.isSnmp_n81i
</td>
<td width="12%" class="color_8">
i18n_ctsil.text.remark_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(checkTypeSetList) > 0}">
<c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr >
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${checkTypeSet.id}"/>
</c:if>
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a>
</td>
<td class="${color }">
${checkTypeSet.checkTypeName}
</td>
<td class="${color }">
${checkTypeSet.tableName}
</td>
<td class="${color }">
${checkTypeSet.tableComments}
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsil.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsil.message.no_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsil.message.yes_n81i</c:if>
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsil.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsil.message.no_n81i</c:if>
</td>
<td class="${color_end }">
${checkTypeSet.checkRemark}
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" class="color_6" align="center">
i18n_ctsil.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty checkTypeSetList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</div>
<div id="popDiv" class="mydiv" style="display:none;">
<input type="hidden" />
<input type="button" class=btn3_mouseout style="width:100px;"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportCurrentXls();" value="i18n_ctsil.button.exportCurrentPage_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout style="width:80px"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportAllXls();" value="i18n_ctsil.button.exportAllData_n81i"/>
&nbsp;<br/>
<a href="javascript:closeDiv()">i18n_ctsil.button.closeWindow_n81i</a></div>
<div id="bg" class="bg" style="display:none;"></div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ctsil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script>
<style type="text/css">
.mydiv {
background-color:#fff;
border: 1px solid #000;
text-align: center;
line-height: 40px;
font-size: 12px;
font-weight: bold;
z-index:99;
width: 220px;
height: 80px;
left:50%;/*FF IE7*/
top: 50%;/*FF IE7*/
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
margin-top:0px;
position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/
_top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
}
.bg {
background-color: #ccc;
width: 100%;
height: 100%;
left:0;
top:0;/*FF IE7*/
filter:alpha(opacity=50);/*IE*/
opacity:0.5;/*FF*/
z-index:1;
position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/
_top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
}
/*The END*/
</style>
</head>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_ctsil.message.success_n81i");
}else if(msg=='2'){
alert("i18n_ctsil.message.faild_n81i");
}
//添加记录
function addCheckTypeSet(){
document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
//修改记录
function updCheckTypeSet(){
if(!isRigthCheck("ids", "edit")){
alert("i18n_ctsil.error.itemSelect_n81i");
}else{
document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
}
//删除记录
function delCheckTypeSet(){
if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsil.error.itemSelect_n81i");
}else if(confirm("i18n_ctsil.error.isDelete_n81i")){
document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
}
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
document.form3.submit();
}
//配置元数据
function showRecord(checktypeid){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&typeids="+checktypeid;
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
// 程辉 2013-5-8 新增 模板下载
function downloadExample() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=downloadExample";
document.form3.submit();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
//程辉 2013-5-8 新增 导入
function importXls() {
var myfileVal = document.getElementById("myFile").value;
if(myfileVal=="") {
alert("i18n_ctsil.error.selectFile_n81i");
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
alert("i18n_ctsil.error.selectFileType_n81i");
}else if(confirm('i18n_ctsil.error.isImport_n81i')){
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=importXls";
document.form3.submit();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
}
//程辉 2013-5-8 新增 导出当前页
function emportCurrentXls() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportCurrentXls&pageNo="+$("#pageNo").val()+"&pageSize="+'${pageSize }'+"&ctn="+$("#checkTypeId").val();
document.form3.submit();
closeDiv();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
//程辉 2013-5-8 新增 导出全部
function emportAllXls() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportAllXls&ctn="+$("#checkTypeId").val();
document.form3.submit();
closeDiv();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
}
function showDiv(){
document.getElementById('popDiv').style.display='block';
document.getElementById('bg').style.display='block';
}
function closeDiv(){
document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none';
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
// $("#maindiv").attr("style","clear:left");
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var flashFlag = false;
var memoryData ;
var intervalID ;
$(document).ready(function(){//DOM的onload事件
//$(”#mypage”).load(”table.html”);//table.html的内容被加载到mypage元素
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
$.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容
memoryData = data;
flashFlag = true;
});
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
//alert(topH+" " +hght);
if(topH!=0 && hght!=0 && topH == hght && flashFlag){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
//if(topH>parseInt(hght/3)*2){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
// show();//如果是调用show函数加载内容。
//}
}
function show(){
flashFlag=false;
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var flag2 = true;
if(memoryData!=null&&memoryData!=""&&memoryData.replace(/(^\s*)|(\s*$)/g,"")!=""){
try{
$("#info").append($(memoryData));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);
$("#pageNo").val(pagePoint);
flag2 = false;
}catch(err){
}
}
$.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容
if(flag2){
try{
$("#info").append($(data));//用append方法追加内容到mypage元素。
}catch(err){
}
}else{
flag2 = true;
memoryData = data;
}
//无数据
if(data==null||data==""){
clearInterval(intervalID);
}
flashFlag = true;
});
loadButton();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
</script>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" action="<c:url value='/detection/checkTypeSet.do?action=query'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="pageNoforexp" id="pageNo" value="${pageNo }"/>
<div id="divTop">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_ctsil.text.detecationTypeName_n81i</font>
<select style="width:140px;" name="ctn" id="checkTypeId">
<option value="">
--i18n_ctsil.message.selectDetecationTypeDefault_n81i--
</option>
<c:if test="${fn:length(allCheckTypeInfo) > 0}">
<c:set var="isSchedule0" value="0"/>
<c:forEach items="${allCheckTypeInfo}" var="checkType">
<c:if test="${checkType.isSchedule != isSchedule0 }">
<option style="height: 2px;" disabled="disabled">--------------------</option>
<c:set var="isSchedule0" value="${checkType.isSchedule}"/>
</c:if>
<option value="${checkType.id}"
<c:if test="${not empty ctn && ctn == checkType.id }">selected="selected"</c:if>>
${checkType.checkTypeName1}
</option>
</c:forEach>
</c:if>
</select></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:downloadExample();" value="i18n_ctsil.button.downloadModel_n81i"/>
&nbsp;
<input type="button" value="i18n_ctsil.button.import_n81i Excel" title="i18n_ctsil.button.import_n81i Excel" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
<input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:importXls();" value="i18n_ctsil.button.import_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:showDiv();" value="i18n_ctsil.button.export_n81i"/>
&nbsp;
<jsp:include page="/include/include.jsp" />
</div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr >
<td width="6%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsil.button.index_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsil.text.detecationTypeName_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsil.text.detecationType_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsil.text.tableMap_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsil.text.tableComments_n81i
</td>
<td width="5%" class="color_top">
i18n_ctsil.text.isSchedule_n81i
</td>
<td width="5%" class="color_top">
i18n_ctsil.text.isSnmp_n81i
</td>
<td width="12%" class="color_8">
i18n_ctsil.text.remark_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(checkTypeSetList) > 0}">
<c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr >
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${checkTypeSet.id}"/>
</c:if>
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a>
</td>
<td class="${color }">
${checkTypeSet.checkTypeName}
</td>
<td class="${color }">
${checkTypeSet.tableName}
</td>
<td class="${color }">
${checkTypeSet.tableComments}
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsil.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsil.message.no_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsil.message.yes_n81i</c:if>
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsil.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsil.message.no_n81i</c:if>
</td>
<td class="${color_end }">
${checkTypeSet.checkRemark}
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" class="color_6" align="center">
i18n_ctsil.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty checkTypeSetList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</div>
<div id="popDiv" class="mydiv" style="display:none;">
<input type="hidden" />
<input type="button" class=btn3_mouseout style="width:100px;"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportCurrentXls();" value="i18n_ctsil.button.exportCurrentPage_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout style="width:80px"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportAllXls();" value="i18n_ctsil.button.exportAllData_n81i"/>
&nbsp;<br/>
<a href="javascript:closeDiv()">i18n_ctsil.button.closeWindow_n81i</a></div>
<div id="bg" class="bg" style="display:none;"></div>
</body>
</html>

View File

@@ -1,64 +1,64 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(checkTypeSetList) > 0}">
<c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr >
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${checkTypeSet.id}"/>
</c:if>
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a>
</td>
<td class="${color }">
${checkTypeSet.checkTypeName}
</td>
<td class="${color }">
${checkTypeSet.tableName}
</td>
<td class="${color }">
${checkTypeSet.tableComments}
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsilc.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsilc.message.no_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsilc.message.yes_n81i</c:if>
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsilc.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsilc.message.no_n81i</c:if>
</td>
<td class="${color_end }">
${checkTypeSet.checkRemark}
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(checkTypeSetList) > 0}">
<c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr >
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">
<input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/>
</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${checkTypeSet.id}"/>
</c:if>
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a>
</td>
<td class="${color }">
${checkTypeSet.checkTypeName}
</td>
<td class="${color }">
${checkTypeSet.tableName}
</td>
<td class="${color }">
${checkTypeSet.tableComments}
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsilc.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsilc.message.no_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsilc.message.yes_n81i</c:if>
</td>
<td class="${color }">
<c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsilc.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsilc.message.no_n81i</c:if>
</td>
<td class="${color_end }">
${checkTypeSet.checkRemark}
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>

View File

@@ -1,410 +1,410 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ctsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
</head>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_ctsl.message.success_n81i");
}else if(msg=='2'){
alert("i18n_ctsl.message.faild_n81i");
}
//添加记录
function add(id){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id;
document.form3.submit();
}
//批量修改记录:
function upd(){
if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsl.error.itemSelect_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList";
document.form3.submit();
}
}
//修改记录,暂时不用
function updOld(){
//alert(1);
if(!isRigthCheck("ids", "edit")){
alert("i18n_ctsl.error.itemSelect1_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd";
document.form3.submit();
}
}
//生成数据表
function createTable(){
if(confirm("i18n_ctsl.message.isCreateTable_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab";
document.form3.submit();
}
}
//向数据表添加字段
function addFiled(){
if(confirm("i18n_ctsl.message.isAddFiled_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled";
document.form3.submit();
}
}
//停用:将METADATA表中的STATE字段置为1
function startUpOrStop(type) {
if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsl.error.itemSelect_n81i");
}else {
var num = jQuery("input[name='ids']:checked").size();
var mids = new Array(num);
jQuery("input[name='ids']:checked").each(function(i){
mids[i]=$(this).val();
});
jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json");
}
}
function checkIsState(datas,type) {
if(datas!=null && datas.length>0) {
if(type=='1'){//停用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop";
document.form3.submit();
}else{//启用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=start";
document.form3.submit();
}
}
}
function goBack(){
document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=query";
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
function goGuide(datas) {
if(datas!=null && datas!=""){
if(datas.resu=='over') {
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
if($("#isComplete").val()=='0'){
var submit = function (v, h, f) {
if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide');
return;
}
if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{
packNum:9,
packName:'jclbysj'
},
function(datas){
goGuide(datas);
},"json");
}
};
$.jBox.warning("i18n_ctsl.message.warningDetecationMetaDate_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false});
}
if($("#isJclbComplete").val()=='0'){
var submit = function (v, h, f) {
if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide');
return;
}
if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{
packNum:8,
packName:'jclb'
},
function(datas){
goGuide(datas);
},"json");
}
};
$.jBox.warning("i18n_ctsl.message.warningDetecationType_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false});
}
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
</script>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/metaDataSet.do'/>" method="post">
<input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/>
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="isSnmp" value="${isSnmp }"/>
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<div id="divTop">
<div class="box_2">
<c:if test="${isSch=='0'&& isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 -->
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
&nbsp;
<c:if test="${isSch=='0' && isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_ctsl.button.update_n81i" disabled="disabled"/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_ctsl.button.update_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
&nbsp;
<c:if test="${isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="createTable()" value="i18n_ctsl.button.createTable_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
/>
</c:if>
&nbsp;
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(1)" value="i18n_ctsl.button.stop_n81i"/> <!-- 非预置的表才有停用 -->
</c:if>
&nbsp;
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(0);" value="i18n_ctsl.button.start_n81i"/> <!-- 非预置的表才有启用 -->
</c:if>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ctsl.button.back_n81i" style="margin-right: 20px"/>
</div>
</div>
<div style="height: 25px"></div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="6%" class="color_top">
<input type="checkbox"
name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsl.text.index_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsl.text.detecationType_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsl.text.tableName_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsl.text.tableComments_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsl.text.filedName_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsl.text.filedDesc_n81i
</td>
<td width="8%" class="color_top">
i18n_ctsl.text.filedType_n81i
</td>
<td width="8%" class="color_top">
i18n_ctsl.text.isMetaDateState_n81i
</td>
<td width="8%" class="color_top">
i18n_ctsl.text.isChartState_n81i
</td>
<td width="7%"
<c:if test="${isSnmp != 1 && isSnmp!=0}"> class="color_8"</c:if>
<c:if test="${isSnmp == 1||isSnmp==0}"> class="color_top"</c:if>
>
i18n_ctsl.text.transIndex_n81i
</td>
<c:if test="${isSnmp == 1||isSnmp==0}">
<td width="9%" class="color_8">
OID
</td>
</c:if>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<c:forEach items="${metadataList}" var="metadata" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
<c:if test="${isSch=='0'}">
<input type="checkbox" name="ids" id="ids"
value="${metadata.id}" disabled="disabled"/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
value="${metadata.id}" />
</c:if>
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${metadata.checkTypeInfo.checkTypeName}
</td>
<td class="${color }">
${metadata.checkTypeInfo.tableName}
</td>
<td class="${color }">
${metadata.checkTypeInfo.tableComments}
</td>
<td class="${color }">
${metadata.filedName}
</td>
<td class="${color }">
${metadata.filedComments}
</td>
<td class="${color }">
${metadata.filedType}
</td>
<td class="${color }">
<c:if test="${metadata.state=='0' }">i18n_ctsl.button.start_n81i</c:if>
<c:if test="${metadata.state=='1' }"><font color="red">i18n_ctsl.button.stop_n81i</font></c:if>
</td>
<td class="${color }">
<c:if test="${metadata.chartState=='0' }">i18n_ctsl.message.yes_n81i</c:if>
<c:if test="${metadata.chartState=='1' }">i18n_ctsl.message.no_n81i</c:if>
</td>
<td
<c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp==0}">class="${color }"</c:if>
<c:if test="${metadata.checkTypeInfo.isSnmp != 1&&metadata.checkTypeInfo.isSnmp!=0}">class="${color_end }"</c:if>
>
${metadata.showNum}
</td>
<c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp == 0}">
<td class="${color_end }">
${metadata.oid}
</td>
</c:if>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td
<c:if test="${isSnmp != 1 && isSnmp!=0}"> colspan="10" </c:if>
<c:if test="${isSnmp == 1||isSnmp ==0}"> colspan="11" </c:if>
class="color_6" align="center">
i18n_ctsl.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty metadataList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ctsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
</head>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_ctsl.message.success_n81i");
}else if(msg=='2'){
alert("i18n_ctsl.message.faild_n81i");
}
//添加记录
function add(id){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id;
document.form3.submit();
}
//批量修改记录:
function upd(){
if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsl.error.itemSelect_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList";
document.form3.submit();
}
}
//修改记录,暂时不用
function updOld(){
//alert(1);
if(!isRigthCheck("ids", "edit")){
alert("i18n_ctsl.error.itemSelect1_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd";
document.form3.submit();
}
}
//生成数据表
function createTable(){
if(confirm("i18n_ctsl.message.isCreateTable_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab";
document.form3.submit();
}
}
//向数据表添加字段
function addFiled(){
if(confirm("i18n_ctsl.message.isAddFiled_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled";
document.form3.submit();
}
}
//停用:将METADATA表中的STATE字段置为1
function startUpOrStop(type) {
if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsl.error.itemSelect_n81i");
}else {
var num = jQuery("input[name='ids']:checked").size();
var mids = new Array(num);
jQuery("input[name='ids']:checked").each(function(i){
mids[i]=$(this).val();
});
jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json");
}
}
function checkIsState(datas,type) {
if(datas!=null && datas.length>0) {
if(type=='1'){//停用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop";
document.form3.submit();
}else{//启用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=start";
document.form3.submit();
}
}
}
function goBack(){
document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=query";
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
function goGuide(datas) {
if(datas!=null && datas!=""){
if(datas.resu=='over') {
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
if($("#isComplete").val()=='0'){
var submit = function (v, h, f) {
if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide');
return;
}
if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{
packNum:9,
packName:'jclbysj'
},
function(datas){
goGuide(datas);
},"json");
}
};
$.jBox.warning("i18n_ctsl.message.warningDetecationMetaDate_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false});
}
if($("#isJclbComplete").val()=='0'){
var submit = function (v, h, f) {
if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide');
return;
}
if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{
packNum:8,
packName:'jclb'
},
function(datas){
goGuide(datas);
},"json");
}
};
$.jBox.warning("i18n_ctsl.message.warningDetecationType_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false});
}
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
</script>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/metaDataSet.do'/>" method="post">
<input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/>
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="isSnmp" value="${isSnmp }"/>
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<div id="divTop">
<div class="box_2">
<c:if test="${isSch=='0'&& isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 -->
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
&nbsp;
<c:if test="${isSch=='0' && isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_ctsl.button.update_n81i" disabled="disabled"/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_ctsl.button.update_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
&nbsp;
<c:if test="${isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="createTable()" value="i18n_ctsl.button.createTable_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
/>
</c:if>
&nbsp;
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(1)" value="i18n_ctsl.button.stop_n81i"/> <!-- 非预置的表才有停用 -->
</c:if>
&nbsp;
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(0);" value="i18n_ctsl.button.start_n81i"/> <!-- 非预置的表才有启用 -->
</c:if>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ctsl.button.back_n81i" style="margin-right: 20px"/>
</div>
</div>
<div style="height: 25px"></div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="6%" class="color_top">
<input type="checkbox"
name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsl.text.index_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsl.text.detecationType_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsl.text.tableName_n81i
</td>
<td width="12%" class="color_top">
i18n_ctsl.text.tableComments_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsl.text.filedName_n81i
</td>
<td width="10%" class="color_top">
i18n_ctsl.text.filedDesc_n81i
</td>
<td width="8%" class="color_top">
i18n_ctsl.text.filedType_n81i
</td>
<td width="8%" class="color_top">
i18n_ctsl.text.isMetaDateState_n81i
</td>
<td width="8%" class="color_top">
i18n_ctsl.text.isChartState_n81i
</td>
<td width="7%"
<c:if test="${isSnmp != 1 && isSnmp!=0}"> class="color_8"</c:if>
<c:if test="${isSnmp == 1||isSnmp==0}"> class="color_top"</c:if>
>
i18n_ctsl.text.transIndex_n81i
</td>
<c:if test="${isSnmp == 1||isSnmp==0}">
<td width="9%" class="color_8">
OID
</td>
</c:if>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<c:forEach items="${metadataList}" var="metadata" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
<c:if test="${isSch=='0'}">
<input type="checkbox" name="ids" id="ids"
value="${metadata.id}" disabled="disabled"/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
value="${metadata.id}" />
</c:if>
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${metadata.checkTypeInfo.checkTypeName}
</td>
<td class="${color }">
${metadata.checkTypeInfo.tableName}
</td>
<td class="${color }">
${metadata.checkTypeInfo.tableComments}
</td>
<td class="${color }">
${metadata.filedName}
</td>
<td class="${color }">
${metadata.filedComments}
</td>
<td class="${color }">
${metadata.filedType}
</td>
<td class="${color }">
<c:if test="${metadata.state=='0' }">i18n_ctsl.button.start_n81i</c:if>
<c:if test="${metadata.state=='1' }"><font color="red">i18n_ctsl.button.stop_n81i</font></c:if>
</td>
<td class="${color }">
<c:if test="${metadata.chartState=='0' }">i18n_ctsl.message.yes_n81i</c:if>
<c:if test="${metadata.chartState=='1' }">i18n_ctsl.message.no_n81i</c:if>
</td>
<td
<c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp==0}">class="${color }"</c:if>
<c:if test="${metadata.checkTypeInfo.isSnmp != 1&&metadata.checkTypeInfo.isSnmp!=0}">class="${color_end }"</c:if>
>
${metadata.showNum}
</td>
<c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp == 0}">
<td class="${color_end }">
${metadata.oid}
</td>
</c:if>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td
<c:if test="${isSnmp != 1 && isSnmp!=0}"> colspan="10" </c:if>
<c:if test="${isSnmp == 1||isSnmp ==0}"> colspan="11" </c:if>
class="color_6" align="center">
i18n_ctsl.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty metadataList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</div>
</body>
</html>

View File

@@ -1,262 +1,262 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ucts.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
var flag = false;
function add(){
if(document.getElementById('lengthFt').style.display=='block'){
var legthValue = document.getElementById('filedTypeLength');
if(legthValue.value==""){
alert("i18n_ucts.message.inputFiledTypeLength_n81i");
legthValue.focus();
return;
}
}
if($id("filedName","","i18n_ucts.message.filedName_n81i") && $id("filedType","","i18n_ucts.message.filedType_n81i") && $id("filedComments","","i18n_ucts.message.filedComments_n81i"))
{
var oid = document.getElementById("oid");
if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查
if(!$id("oid","","OID")) {
return;
}
}
if(document.getElementById('filedType').value=='VARCHAR2'){
if($id("filedTypeLength","","i18n_ucts.message.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_ucts.message.filedTypeLength_n81i")){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd";
document.form1.submit();
}
}else{
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd";
document.form1.submit();
}
}
}
function goBack(tid){
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid;
}
function rclick(obj){
if(obj.id=='state1'){//停用
document.getElementById('chartState1').checked="checked";
}else{
if($("#filedType").val() == "VARCHAR2"){
$("#chartState1").attr("checked","checked");//1停用
}
}
}
jQuery(function(){
if(jQuery("#filedType").val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1);
$("#chartState1").attr("checked","checked");//1停用
}else{
jQuery("td[id=lengthFt]").hide();
jQuery("td[id=viewLevel0]").attr('colspan',3);
}
//-- 字段类型选择事件绑定
jQuery("#filedType").change(function(){
if(jQuery(this).val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1);
flag = true;
$("#chartState1").attr("checked","checked");//1停用
}else{ //字段长度隐藏--数字 时间
jQuery("td[id=lengthFt]").hide();
jQuery("#filedTypeLength").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3);
flag = false;
//判断是启用还是停用
if($("#state1").attr("checked")==true){//停用
$("#chartState1").attr("checked","checked");//1停用
}
}
});
})
</script>
<body>
<div class="middle_list" >
<form action="" name="form1" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${metadata.checkTypeInfo.id }" name="typeids"/>
<input type="hidden" value="${metadata.id }" name="metadata.id">
<input type="hidden" value="${mState }" name="mState">
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_ucts.text.updateMetaData_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right">
i18n_ucts.text.checkType_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="hidden" name="checkTypeInfo.id"
id="checkTypeId" value="${metadata.checkTypeInfo.id }"/>
<input type="text" name="checkTypeInfo.checkTypeName"
id="checkTypeName" value="${metadata.checkTypeInfo.checkTypeName }" readonly />
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_ucts.text.tableName_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="text" name="metadata.tableName"
id="tableName" value="${metadata.tableName }" readonly/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.message.filedName_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="metadata.filedName"
id="filedName" value="${metadata.filedName }"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_ucts.message.filedComments_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="metadata.filedComments"
id="filedComments" value="${metadata.filedComments }" />
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.message.filedType_n81i
</td>
<td class="color_6" align="left" id="viewLevel0">
<select name="filedType" id="filedType">
<option value="">
i18n_ucts.message.filedTypeDefault_n81i
</option>
<option value="Number" <c:if test="${metadata.filedType == 'Number'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeNumber_n81i
</option>
<option value="DATE" <c:if test="${metadata.filedType == 'DATE'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeDATE_n81i
</option>
<option value="VARCHAR2" <c:if test="${filedType == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeVARCHAR2_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="lengthFt">
i18n_ucts.message.filedTypeLength_n81i
</td>
<td class="color_3" align="left" id="lengthFt">
<input type="text" name="filedTypeLength" value="${filedTypeLength}"
id="filedTypeLength" />
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.text.isState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.state"
id="state" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' }">checked="checked"</c:if>/>启用
<input type="radio" name="metadata.state"
id="state1" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>停用
</td>
<td class="color_1" align="right">
i18n_ucts.text.isChartState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.chartState"
id="chartState0" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>是
<input type="radio" name="metadata.chartState"
id="chartState1" value="1" <c:if test="${metadata.chartState == '1' }">checked="checked"</c:if>/>否
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.text.showNum_n81i
</td>
<td class="color_3" align="left"
<c:if test="${metadata.checkTypeInfo.isSnmp == 2||metadata.checkTypeInfo.isSnmp eq null}">colspan="3"</c:if> >
<input type="text" name="metadata.showNum"
id="showNum" value="${metadata.showNum }" />
</td>
<c:if test="${metadata.checkTypeInfo.isSnmp == 1}"><!-- 是SNMP监控 -->
<td class="color_1" align="right">
OID
</td>
<td class="color_3" align="left" >
<input type="text" name="metadata.oid"
id="oid" value="${metadata.oid}"/>
<font color="red">*</font>
</c:if>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_ucts.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form1'].reset()"
value="i18n_ucts.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${metadata.checkTypeInfo.id })"
value="i18n_ucts.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ucts.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
var flag = false;
function add(){
if(document.getElementById('lengthFt').style.display=='block'){
var legthValue = document.getElementById('filedTypeLength');
if(legthValue.value==""){
alert("i18n_ucts.message.inputFiledTypeLength_n81i");
legthValue.focus();
return;
}
}
if($id("filedName","","i18n_ucts.message.filedName_n81i") && $id("filedType","","i18n_ucts.message.filedType_n81i") && $id("filedComments","","i18n_ucts.message.filedComments_n81i"))
{
var oid = document.getElementById("oid");
if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查
if(!$id("oid","","OID")) {
return;
}
}
if(document.getElementById('filedType').value=='VARCHAR2'){
if($id("filedTypeLength","","i18n_ucts.message.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_ucts.message.filedTypeLength_n81i")){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd";
document.form1.submit();
}
}else{
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd";
document.form1.submit();
}
}
}
function goBack(tid){
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid;
}
function rclick(obj){
if(obj.id=='state1'){//停用
document.getElementById('chartState1').checked="checked";
}else{
if($("#filedType").val() == "VARCHAR2"){
$("#chartState1").attr("checked","checked");//1停用
}
}
}
jQuery(function(){
if(jQuery("#filedType").val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1);
$("#chartState1").attr("checked","checked");//1停用
}else{
jQuery("td[id=lengthFt]").hide();
jQuery("td[id=viewLevel0]").attr('colspan',3);
}
//-- 字段类型选择事件绑定
jQuery("#filedType").change(function(){
if(jQuery(this).val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1);
flag = true;
$("#chartState1").attr("checked","checked");//1停用
}else{ //字段长度隐藏--数字 时间
jQuery("td[id=lengthFt]").hide();
jQuery("#filedTypeLength").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3);
flag = false;
//判断是启用还是停用
if($("#state1").attr("checked")==true){//停用
$("#chartState1").attr("checked","checked");//1停用
}
}
});
})
</script>
<body>
<div class="middle_list" >
<form action="" name="form1" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${metadata.checkTypeInfo.id }" name="typeids"/>
<input type="hidden" value="${metadata.id }" name="metadata.id">
<input type="hidden" value="${mState }" name="mState">
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_ucts.text.updateMetaData_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right">
i18n_ucts.text.checkType_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="hidden" name="checkTypeInfo.id"
id="checkTypeId" value="${metadata.checkTypeInfo.id }"/>
<input type="text" name="checkTypeInfo.checkTypeName"
id="checkTypeName" value="${metadata.checkTypeInfo.checkTypeName }" readonly />
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_ucts.text.tableName_n81i
</td>
<td class="color_3" width="35%" align="left">
<input type="text" name="metadata.tableName"
id="tableName" value="${metadata.tableName }" readonly/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.message.filedName_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="metadata.filedName"
id="filedName" value="${metadata.filedName }"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_ucts.message.filedComments_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="metadata.filedComments"
id="filedComments" value="${metadata.filedComments }" />
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.message.filedType_n81i
</td>
<td class="color_6" align="left" id="viewLevel0">
<select name="filedType" id="filedType">
<option value="">
i18n_ucts.message.filedTypeDefault_n81i
</option>
<option value="Number" <c:if test="${metadata.filedType == 'Number'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeNumber_n81i
</option>
<option value="DATE" <c:if test="${metadata.filedType == 'DATE'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeDATE_n81i
</option>
<option value="VARCHAR2" <c:if test="${filedType == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeVARCHAR2_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="lengthFt">
i18n_ucts.message.filedTypeLength_n81i
</td>
<td class="color_3" align="left" id="lengthFt">
<input type="text" name="filedTypeLength" value="${filedTypeLength}"
id="filedTypeLength" />
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.text.isState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.state"
id="state" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' }">checked="checked"</c:if>/>启用
<input type="radio" name="metadata.state"
id="state1" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>停用
</td>
<td class="color_1" align="right">
i18n_ucts.text.isChartState_n81i
</td>
<td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.chartState"
id="chartState0" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>是
<input type="radio" name="metadata.chartState"
id="chartState1" value="1" <c:if test="${metadata.chartState == '1' }">checked="checked"</c:if>/>否
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ucts.text.showNum_n81i
</td>
<td class="color_3" align="left"
<c:if test="${metadata.checkTypeInfo.isSnmp == 2||metadata.checkTypeInfo.isSnmp eq null}">colspan="3"</c:if> >
<input type="text" name="metadata.showNum"
id="showNum" value="${metadata.showNum }" />
</td>
<c:if test="${metadata.checkTypeInfo.isSnmp == 1}"><!-- 是SNMP监控 -->
<td class="color_1" align="right">
OID
</td>
<td class="color_3" align="left" >
<input type="text" name="metadata.oid"
id="oid" value="${metadata.oid}"/>
<font color="red">*</font>
</c:if>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_ucts.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form1'].reset()"
value="i18n_ucts.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${metadata.checkTypeInfo.id })"
value="i18n_ucts.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,353 +1,353 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uctsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function goBack(){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query";
document.Mkform.submit();
}
//验证oid
function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
//验证非中文和特殊字符
function containSpecial1(s)
{
var cs = /^\w+$/;
resu = cs.test(s);
return (cs.test(s));
}
function updateCheck(){
var type;
var isSnmp = $("input[type=radio][name=checkTypeInfo.isSnmp]:checked").val();
$.ajax({
url:"<%=path%>/detection/checkTypeSet.do?action=updateCheck&checkTypeInfo.isSnmp="+isSnmp,
type : "POST",
async:false,
data:$('#Mkform').serialize(),
success : function(data) {
if(data == "exception"){
type = false;
alert("i18n_uctsi.message.faild_n81i");
}else if(data =="success"){
type = true;
}else{
type = false;
alert(data);
}
}
});
return type;
}
function add(){
if($id("checkTypeName1","","i18n_uctsi.message.checkTypeName1_n81i") && $id("tableName","","i18n_uctsi.message.tableName_n81i")){
if(containSpecial($("#checkTypeName1").val())){
$("#checkTypeName1").next().html("i18n_uctsi.error.hasSpecialChar_n81i");
$("#checkTypeName1").val($("#ctname1").val());
return;
}
if($("#tableName").val()=='DI_'){
$("#tableName").next().html("i18n_uctsi.error.inputTableName_n81i");
return;
}
if($("#tableName").val().length>20){
$("#tableNameFont").html("i18n_uctsi.error.tooLong_n81i");
return;
}
if(containSpecial($("#tableName").val())){
$("#tableName").next().html("i18n_uctsi.error.tabHasSpecialChar_n81i");
$("#tableName").val($("#tnBk").val());
return;
}
if(!containSpecial1($("#tableName").val())){
$("#tableName").next().html("i18n_uctsi.error.tabHasZh_n81i");
$("#tableName").val($("#tnBk").val());
return;
}
if(jQuery("#viewLevel2").attr('checked')==true){
if($id("usergroupid","xz","i18n_uctsi.message.usergroup_n81i")){
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}else{
$("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
if(updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}
}
}
}else{
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}else{
$("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
if(updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}
}
}
}
}
jQuery(function(){
if(jQuery("#viewLevel2").attr('checked')==true){
jQuery("td[id=usergroup]").show();
}else{
jQuery("td[id=usergroup]").hide();
jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2');
}
//-- 查看权限事件绑定
jQuery("input[type='radio'][name='checkTypeInfo.viewLevel']").click(function(){
if(jQuery(this).val() == 2){ //用户组显示且必选
jQuery("td[id=usergroup]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=usergroup]").hide();
jQuery("#usergroupid").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
});
if(jQuery("#isSnmp0").attr('checked')==true || jQuery("#isSnmp1").attr('checked')==true){
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{
jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
//-- 是否snmp监控事件绑定
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").click(function(){
if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
//jQuery("#snmpOID").val("");
}
});
//--验证OID失去焦点事件
$("#snmpOID").focusout(function() {
if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){
$("#OIDFont").attr('color','#009900').text("OID合法");
}
});
})
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uctsi.button.back_n81i"/>
</div>
<input type="hidden" id="ctname1" value="${checkTypeInfo.checkTypeName1 }"/>
<form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="checkTypeInfo.id" value="${checkTypeInfo.id }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" id="tnBk" value="${checkTypeInfo.tableName }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_uctsi.text.updateDetecationType_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right">
i18n_uctsi.message.checkTypeName1_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1" value="${checkTypeInfo.checkTypeName1 }"/>
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_uctsi.text.checkTypeName_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeNameShow" value="${checkTypeInfo.checkTypeName }" disabled/>
<input type="hidden" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeInfo.checkTypeName }"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="12%" align="right">
i18n_uctsi.message.tableName_n81i
</td>
<!--<c:if test="${isHaveTable=='1' }">readonly</c:if>-->
<td class="color_3" width="38%" align="left">
<c:if test="${isHaveTable=='1' }" var="ihtFlag">
<input type="text" name="tableNameShow" value="${checkTypeInfo.tableName }" disabled/>
<input type="hidden" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" />
</c:if>
<c:if test="${!ihtFlag}">
<input type="text" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" />
</c:if>
<font id="tableNameFont" color="red">*</font>
</td>
<td class="color_1" align="right" valign="top">
i18n_uctsi.text.tableComments_n81i
</td>
<td class="color_3" align="left" valign="top">
<input type="text" name="checkTypeInfo.tableComments"
id="tableComments" value="${checkTypeInfo.tableComments }"/>
</td>
</tr>
<tr>
<td class="td_1">i18n_uctsi.text.viewPrivilige_n81i</td>
<td class="td_3" id="viewLevel0">
<c:if test="${!ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel"
id="" value="1" <c:if test="${checkTypeInfo.viewLevel == '1' }">checked="checked"</c:if>/>i18n_uctsi.text.publisher_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel"
id="viewLevel2" value="2" <c:if test="${checkTypeInfo.viewLevel == '2' }">checked="checked"</c:if>/>i18n_uctsi.text.publisherGroup_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel"
id="" value="3" <c:if test="${checkTypeInfo.viewLevel == '3' }">checked="checked"</c:if>/>i18n_uctsi.text.allInSys_n81i&nbsp;
</c:if>
<c:if test="${ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel"
id="" value="4" <c:if test="${checkTypeInfo.viewLevel == '4' }">checked="checked"</c:if>/>i18n_uctsi.text.unlimited_n81i&nbsp;
</c:if>
</td>
<td class="td_1" id="usergroup">i18n_uctsi.text.usergroup_n81i</td>
<td class="td_2" id="usergroup">
<select name="checkTypeInfo.groupId" id="usergroupid">
<option selected="selected" value="">
i18n_uctsi.message.selectUserGroup_n81i
</option>
<c:forEach items="${setxtjs}" var="stjs">
<option value="${stjs.jsbh}" <c:if test="${stjs.jsbh == checkTypeInfo.groupId }">selected="selected"</c:if>>
${stjs.jsmc}
</option>
</c:forEach>
</select>
<font color="red" id="group_red">* </font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uctsi.message.isSnmp_n81i
</td>
<td class="color_3" align="left" id="snmp">
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0"
<c:if test="${checkTypeInfo.isSnmp == 0}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>ObjectSNMP
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1"
<c:if test="${checkTypeInfo.isSnmp == 1}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>SNMP4J
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2"
<c:if test="${checkTypeInfo.isSnmp == 2||checkTypeInfo.isSnmp eq null}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>i18n_uctsi.message.no_n81i
</td>
<td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap">
OID
</td>
<td id="oid" class="color_3" align="left">
<input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="50" value="${checkTypeInfo.snmpOID}"/>
<font id="OIDFont" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uctsi.text.isSchedule_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_uctsi.message.no_n81i
<input type="hidden" name="checkTypeInfo.isSchedule" value="${checkTypeInfo.isSchedule}"/>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top">
i18n_uctsi.text.remark_n81i
</td>
<td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" id="checkRemark" name="checkTypeInfo.checkRemark">${checkTypeInfo.checkRemark }</textarea>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_uctsi.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uctsi.button.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uctsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function goBack(){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query";
document.Mkform.submit();
}
//验证oid
function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
//验证非中文和特殊字符
function containSpecial1(s)
{
var cs = /^\w+$/;
resu = cs.test(s);
return (cs.test(s));
}
function updateCheck(){
var type;
var isSnmp = $("input[type=radio][name=checkTypeInfo.isSnmp]:checked").val();
$.ajax({
url:"<%=path%>/detection/checkTypeSet.do?action=updateCheck&checkTypeInfo.isSnmp="+isSnmp,
type : "POST",
async:false,
data:$('#Mkform').serialize(),
success : function(data) {
if(data == "exception"){
type = false;
alert("i18n_uctsi.message.faild_n81i");
}else if(data =="success"){
type = true;
}else{
type = false;
alert(data);
}
}
});
return type;
}
function add(){
if($id("checkTypeName1","","i18n_uctsi.message.checkTypeName1_n81i") && $id("tableName","","i18n_uctsi.message.tableName_n81i")){
if(containSpecial($("#checkTypeName1").val())){
$("#checkTypeName1").next().html("i18n_uctsi.error.hasSpecialChar_n81i");
$("#checkTypeName1").val($("#ctname1").val());
return;
}
if($("#tableName").val()=='DI_'){
$("#tableName").next().html("i18n_uctsi.error.inputTableName_n81i");
return;
}
if($("#tableName").val().length>20){
$("#tableNameFont").html("i18n_uctsi.error.tooLong_n81i");
return;
}
if(containSpecial($("#tableName").val())){
$("#tableName").next().html("i18n_uctsi.error.tabHasSpecialChar_n81i");
$("#tableName").val($("#tnBk").val());
return;
}
if(!containSpecial1($("#tableName").val())){
$("#tableName").next().html("i18n_uctsi.error.tabHasZh_n81i");
$("#tableName").val($("#tnBk").val());
return;
}
if(jQuery("#viewLevel2").attr('checked')==true){
if($id("usergroupid","xz","i18n_uctsi.message.usergroup_n81i")){
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}else{
$("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
if(updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}
}
}
}else{
if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}else{
$("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i");
$("#snmpOID").val("");
$("#snmpOID").focus();
return;
}
}else{
if(updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit();
}
}
}
}
}
jQuery(function(){
if(jQuery("#viewLevel2").attr('checked')==true){
jQuery("td[id=usergroup]").show();
}else{
jQuery("td[id=usergroup]").hide();
jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2');
}
//-- 查看权限事件绑定
jQuery("input[type='radio'][name='checkTypeInfo.viewLevel']").click(function(){
if(jQuery(this).val() == 2){ //用户组显示且必选
jQuery("td[id=usergroup]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=usergroup]").hide();
jQuery("#usergroupid").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
});
if(jQuery("#isSnmp0").attr('checked')==true || jQuery("#isSnmp1").attr('checked')==true){
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{
jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
}
//-- 是否snmp监控事件绑定
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").click(function(){
if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选
jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏
jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
//jQuery("#snmpOID").val("");
}
});
//--验证OID失去焦点事件
$("#snmpOID").focusout(function() {
if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){
$("#OIDFont").attr('color','#009900').text("OID合法");
}
});
})
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uctsi.button.back_n81i"/>
</div>
<input type="hidden" id="ctname1" value="${checkTypeInfo.checkTypeName1 }"/>
<form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="checkTypeInfo.id" value="${checkTypeInfo.id }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" id="tnBk" value="${checkTypeInfo.tableName }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_uctsi.text.updateDetecationType_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="15%" align="right">
i18n_uctsi.message.checkTypeName1_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1" value="${checkTypeInfo.checkTypeName1 }"/>
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_uctsi.text.checkTypeName_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeNameShow" value="${checkTypeInfo.checkTypeName }" disabled/>
<input type="hidden" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeInfo.checkTypeName }"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="12%" align="right">
i18n_uctsi.message.tableName_n81i
</td>
<!--<c:if test="${isHaveTable=='1' }">readonly</c:if>-->
<td class="color_3" width="38%" align="left">
<c:if test="${isHaveTable=='1' }" var="ihtFlag">
<input type="text" name="tableNameShow" value="${checkTypeInfo.tableName }" disabled/>
<input type="hidden" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" />
</c:if>
<c:if test="${!ihtFlag}">
<input type="text" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" />
</c:if>
<font id="tableNameFont" color="red">*</font>
</td>
<td class="color_1" align="right" valign="top">
i18n_uctsi.text.tableComments_n81i
</td>
<td class="color_3" align="left" valign="top">
<input type="text" name="checkTypeInfo.tableComments"
id="tableComments" value="${checkTypeInfo.tableComments }"/>
</td>
</tr>
<tr>
<td class="td_1">i18n_uctsi.text.viewPrivilige_n81i</td>
<td class="td_3" id="viewLevel0">
<c:if test="${!ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel"
id="" value="1" <c:if test="${checkTypeInfo.viewLevel == '1' }">checked="checked"</c:if>/>i18n_uctsi.text.publisher_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel"
id="viewLevel2" value="2" <c:if test="${checkTypeInfo.viewLevel == '2' }">checked="checked"</c:if>/>i18n_uctsi.text.publisherGroup_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel"
id="" value="3" <c:if test="${checkTypeInfo.viewLevel == '3' }">checked="checked"</c:if>/>i18n_uctsi.text.allInSys_n81i&nbsp;
</c:if>
<c:if test="${ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel"
id="" value="4" <c:if test="${checkTypeInfo.viewLevel == '4' }">checked="checked"</c:if>/>i18n_uctsi.text.unlimited_n81i&nbsp;
</c:if>
</td>
<td class="td_1" id="usergroup">i18n_uctsi.text.usergroup_n81i</td>
<td class="td_2" id="usergroup">
<select name="checkTypeInfo.groupId" id="usergroupid">
<option selected="selected" value="">
i18n_uctsi.message.selectUserGroup_n81i
</option>
<c:forEach items="${setxtjs}" var="stjs">
<option value="${stjs.jsbh}" <c:if test="${stjs.jsbh == checkTypeInfo.groupId }">selected="selected"</c:if>>
${stjs.jsmc}
</option>
</c:forEach>
</select>
<font color="red" id="group_red">* </font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uctsi.message.isSnmp_n81i
</td>
<td class="color_3" align="left" id="snmp">
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0"
<c:if test="${checkTypeInfo.isSnmp == 0}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>ObjectSNMP
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1"
<c:if test="${checkTypeInfo.isSnmp == 1}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>SNMP4J
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2"
<c:if test="${checkTypeInfo.isSnmp == 2||checkTypeInfo.isSnmp eq null}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>i18n_uctsi.message.no_n81i
</td>
<td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap">
OID
</td>
<td id="oid" class="color_3" align="left">
<input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="50" value="${checkTypeInfo.snmpOID}"/>
<font id="OIDFont" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uctsi.text.isSchedule_n81i
</td>
<td class="color_3" align="left" colspan="3">
<input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_uctsi.message.no_n81i
<input type="hidden" name="checkTypeInfo.isSchedule" value="${checkTypeInfo.isSchedule}"/>
</td>
</tr>
<tr>
<td class="color_1" align="right" valign="top">
i18n_uctsi.text.remark_n81i
</td>
<td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" id="checkRemark" name="checkTypeInfo.checkRemark">${checkTypeInfo.checkRemark }</textarea>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_uctsi.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uctsi.button.reset_n81i"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,450 +1,450 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uctsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function updateCheck(){
var type;
$.ajax({
url:"<%=path%>/detection/metaDataSet.do?action=updateCheck",
type : "POST",
async:false,
data:$('#frmArticleType').serialize(),
success : function(data) {
if(data == "exception"){
type = false;
alert("i18n_uctsl.message.faild_n81i");
}else if(data =="success"){
type = true;
}else{
type = false;
alert(data);
}
}
});
return type;
}
function add() {
if(checkForm()&&updateCheck()) {
jQuery("select[ltype='haveTable']").removeAttr('disabled');
jQuery("input[type='text'][ltype='haveTable']").removeAttr('disabled');
document.form3.action="<%=path%>/detection/metaDataSet.do?action=doUpdList";
document.form3.submit();
}
}
//表单检查字段名非空长度小于30字段名不可重名
function checkForm() {
var flag = true;
//字段名
var nameArray = new Array();
jQuery("[id^='filedName_']").each(function(i) {
var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) {
//alert("字段名均不可为空");
$(this).next().html("i18n_uctsl.message.inputFiledName_n81i");
$(this).focus();
flag = false;
return false;//跳出的是each而不是checkForm
}else if(!$(this).checkByteLength(30,"i18n_uctsl.text.filedName_n81i")) {//长度不符合
$(this).focus();
flag = false;
return false;
}else if(checkNum(filedName)){
//alert("字段名均不能以数字开头");
$(this).next().html("i18n_uctsl.message.cannotNum_n81i");
$(this).focus();
flag = false;
return false;
}else {//进行字段名是否重复验证,如果重复则返回false
nameArray[i] = this.value;
}
});
//符合条件:非空,长度,才有判断元素是否重复的意义
if(flag==true) {
var names = ","+nameArray.join(",")+",";
for(var i=0;i<nameArray.length;i++) {
if(names.replace(nameArray[i]+",","").indexOf(","+nameArray[i]+",")>-1) {//说明有重复元素
//alert("字段名重复,请修改!");
$("[id^='filedName_'][value='"+nameArray[i]+"']").next().html("i18n_uctsl.message.filedNameRepeat_n81i");
$("[id^='filedName_'][value='"+nameArray[i]+"']").focus();
flag = false;
break;
}
}
}
if(flag==true) {
//字段描述非空
jQuery("[id^='filedComments_']").each(function(i) {
var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) {
alert("i18n_uctsl.message.filedComments_n81i");
$(this).focus();
flag = false;
return false;//跳出的是each而不是checkForm
}
});
}
if(flag==true) {
//字段类型非空
jQuery("[id^='filedType_']").each(function(i) {
var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) {
alert("i18n_uctsl.message.filedType1_n81i");
$(this).focus();
flag = false;
return false;//跳出的是each而不是checkForm
}else if('VARCHAR2'==this.value) {
var lengthId = "filedTypeLength_" + jQuery(this).attr('id').substr(10);
var filedLength = jQuery("input[type='text'][id='"+lengthId+"']").val();
if(filedLength==""||filedLength==undefined||filedLength==null) {
alert("i18n_uctsl.message.filedLength1_n81i");
jQuery("input[type='text'][id='"+lengthId+"']").focus();
flag = false;
return false;//跳出的是each而不是checkForm
}else if(filedLength.replace(/[\d+]/ig,"").length>0) {//文本类型的长度应为数字
alert('i18n_uctsl.message.filedLength2_n81i')
jQuery("input[type='text'][id='"+lengthId+"']").focus();
flag = false;
return false;//跳出的是each而不是checkForm
}
}
});
}
//判断是否选择了分类标识
if(flag==true) {
var issnmp =$("#is").val();
if(issnmp!=null && issnmp !=""){
if(Number(issnmp) < 2){//snmp监控
var checkedSize = $("input[type='radio'][id^='sortSign_'][value='0']:checked").size();
var hasSortSign = $("#hasSortSign").val();
if(hasSortSign!=null&& hasSortSign !="yes"&&Number(checkedSize) == 0){
alert("i18n_uctsl.message.hasSortSign_n81i");
flag = false;
return false;
}
}
}
}
return flag;
}
//检查是否以数字开头
function checkNum(s)
{
var cs = /^[0-9]*$/;
resu = cs.test(s);
return (cs.test(s));
}
//无用?
function rclick(obj){
if(obj.id=='state1'){//停用此字段时,字段不可用于统计
document.getElementById('chartState1').checked="checked";
}else{
if($("#filedType").val() == "VARCHAR2"){
$("#chartState1").attr("checked","checked");//1停用
}
}
}
jQuery(function(){
//if(jQuery("select[id^='filedType_']").val() == "VARCHAR2"){
// $("#chartState1").attr("checked","checked");//1停用,文本字段类型不可用于统计,所以当为文本类型时,用于统计选停用??
//}
//-- 字段类型选择事件绑定
/*jQuery("[id^='filedType_']").change(function(){
var idTemp = jQuery(this).attr('id');
var id = idTemp.substr(idTemp.indexOf("_"));
if(jQuery(this).val() == "VARCHAR2"){
jQuery("[id='lengthFt"+id+"']").css("display","inline");
}else{ //字段长度隐藏--数字 时间
jQuery("[id='lengthFt"+id+"']").css("display","none");
jQuery("[id='lengthFt"+id+"']").val("");//数字和时间类型字段,长度为空
}
});
*/
//分类标识选择【是】事件绑定:有一个点击是,除了这个元素以为的其它都点击否
jQuery("input[type='radio'][id^='sortSign_'][value='0']").click(function() {
var curId = jQuery(this).attr('id');//当前选择元素的ID
jQuery("input[type='radio'][id^='sortSign_'][id!='"+curId+"'][value='1']").each(function(i){
jQuery(this).trigger('click');
});
});
//选择统计时 判断字段类型
jQuery("input[type='radio'][id^='chartState_'][value='0']").click(function() {
var curId = jQuery(this).attr('id');//当前选择元素的ID
var id = curId.substr(curId.indexOf("_"));//metaId
if(jQuery("#filedType"+id).val() == "VARCHAR2"){
alert("i18n_uctsl.message.filedType2_n81i");
jQuery("input[type='radio'][id='"+curId+"'][value='1']").trigger('click');
return;
}
});
//不可把统计改为否
//if(jQuery("input[type='radio'][id^='chartState_'][value='0']").attr('checked') == true){
// alert("inin");
// alert(jQuery("input[type='radio'][id^='chartState_'][value='1']"));
// jQuery("input[type='radio'][id^='chartState_'][value='1']").attr('readonly','readonly');
//}
$("#tt").floatHeaderDiv();
})
function fieldTypeChange(obj){
var idTemp = jQuery(obj).attr('id');
var id = idTemp.substr(idTemp.indexOf("_"));
if(jQuery(obj).val() == "VARCHAR2"){
jQuery("[id='lengthFt"+id+"']").css("display","inline");
}else { //字段长度隐藏--数字 时间
jQuery("[id='lengthFt"+id+"']").css("display","none");
jQuery("[id='filedTypeLength"+id+"']").val("");//数字和时间类型字段,长度为空
}
}
function readOnlySelect(obj) {
var index = obj.selectedIndex;
obj.onchange = function() {
obj.selectedIndex = index;
}
}
function goBack(){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=query";
document.form3.submit();
}
</script>
<body>
<div class="middle_list">
<form name=form3 id="frmArticleType" action="" method="post">
<input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="pageNo" value="${pageNo}" /><!-- 列表当前页数 -->
<input type="hidden" name="pageSize" value="${pageSize}" /><!-- 列表当前页数 -->
<input type="hidden" name="isSnmp" value="${isSnmp}" id="is"/>
<input type="hidden" name="hasSortSign" value="${hasSortSign}" id="hasSortSign"/>
<c:forEach items="${ids}" var="ids" varStatus="vs">
<input type="hidden" name="ids" id="ids" value="${ids}"/>
</c:forEach>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<table border="0" cellpadding="0" cellspacing="0" class="table" id="tt">
<tr>
<td colspan="8" class="color_7" style="font-size:13px;">
<strong>i18n_uctsl.text.updateMetaData_n81i</strong>
</td>
</tr>
<tr>
<td width="2%" class="color_top">
i18n_uctsl.text.index_n81i
</td>
<td width="12%" class="color_top">
i18n_uctsl.text.filedName_n81i
</td>
<td width="16%" class="color_top">
i18n_uctsl.text.filedComments_n81i
</td>
<td width="8%" class="color_top">
i18n_uctsl.text.filedType_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.isMetaDateState_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.isChartState_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.dict_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.isClassify_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<c:forEach items="${metadataList}" var="metadata" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:set var="color_btton" value="color_3"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
<c:set var="color_btton" value="color_1"/>
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
<input type="hidden" value="${metadata.id }" name="metadataList[${index-1}].id" id="id_${metadata.id}">
<input type="hidden" value="${metadata.id }" name="metadataIds" id="metadataIds">
</td>
<td class="${color }">
<input type="text" name="metadataList[${index-1}].filedName" id="filedName_${metadata.id}"
<c:if test="${fn:trim(metadata.filedName)==''}"> value="${metadata.filedComments}" </c:if>
<c:if test="${fn:trim(metadata.filedName)!=''}"> value="${metadata.filedName}" </c:if>
<c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if>
/>
<font color="red">*</font>
</td>
<td class="${color }">
<input type="text" name="metadataList[${index-1}].filedComments"
id="filedComments_${metadata.id}" value="${metadata.filedComments }" />
<font color="red">*i18n_uctsl.text.showFiledUtil_n81i</font>
</td>
<td class="${color }">
<c:if test="${isHaveTable=='no'}">
<select name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onchange="javascript:fieldTypeChange(this);">
<option value="" >
i18n_uctsl.message.metaDataDefault_n81i
</option>
<option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataNumber_n81i
</option>
<option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataDATE_n81i
</option>
<option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataVARCHAR2_n81i
</option>
</select>
</c:if>
<c:if test="${isHaveTable=='yes'}">
<select disabled="disabled" ltype="haveTable" name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onfocus="javascript:readOnlySelect(this);">
<option value="" >
i18n_uctsl.message.metaDataDefault_n81i
</option>
<option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataNumber_n81i
</option>
<option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataDATE_n81i
</option>
<option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataVARCHAR2_n81i
</option>
</select>
</c:if>
<font color="red">*</font>
<div align="left" id="lengthFt_${metadata.id}"
<c:if test="${metadata.filedTypeOnly == 'VARCHAR2'}"> style="display:inline;" </c:if>
<c:if test="${metadata.filedTypeOnly != 'VARCHAR2'}"> style="display:none;" </c:if> >
i18n_uctsl.message.metaDataLength_n81i
<input type="text" name="metadataList[${index-1}].filedTypeLength" value="${metadata.filedTypeLength}"
id="filedTypeLength_${metadata.id}" maxlength="5" size="2"
<c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if>
<c:if test="${isHaveTable=='yes'}">ltype="haveTable" disabled="disabled" </c:if>
/>
<font color="red">*</font>
</div>
</td>
<td class="${color }">
<input type="radio" name="metadataList[${index-1}].state"
id="state_${metadata.id}" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' || fn:trim(metadata.state) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.start_n81i
<input type="radio" name="metadataList[${index-1}].state"
id="state_${metadata.id}" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>i18n_uctsl.message.stop_n81i
</td>
<td class="${color }">
<input type="radio" name="metadataList[${index-1}].chartState"
id="chartState_${metadata.id}" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i
<input type="radio" name="metadataList[${index-1}].chartState"
id="chartState_${metadata.id}" value="1" <c:if test="${metadata.chartState == '1' || fn:trim(metadata.chartState) ==''}">checked="checked"</c:if>
<c:if test="${metadata.chartState == '0' }"> disabled="disabled" </c:if>/>i18n_uctsl.message.no_n81i
</td>
<td class="${color }">
<select name="metadataList[${index-1}].typeId" id="typeId_${metadata.id}">
<option value="">
i18n_uctsl.message.metaDataDefault_n81i
</option>
<c:choose>
<c:when test="${fn:length(typeTableList) > 0}">
<c:forEach items="${typeTableList}" var="typeTable" >
<option value="${typeTable.id}" <c:if test="${typeTable.id == metadata.typeId}">selected="selected"</c:if>>
${typeTable.typeName}
</option>
</c:forEach>
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
</select>
</td>
<td class="${color }">
<input type="radio" name="metadataList[${index-1}].sortSign"
id="sortSign_${metadata.id}" value="0" <c:if test="${metadata.sortSign == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i
<input type="radio" name="metadataList[${index-1}].sortSign"
id="sortSign_${metadata.id}" value="1" <c:if test="${metadata.sortSign == '1' || fn:trim(metadata.sortSign) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.no_n81i
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" align="center">
i18n_uctsl.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
<tr>
<td class="${color_btton}" colspan="8" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_uctsl.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form3'].reset()"
value="i18n_uctsl.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${metadata.checkTypeInfo.id })"
value="i18n_uctsl.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uctsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function updateCheck(){
var type;
$.ajax({
url:"<%=path%>/detection/metaDataSet.do?action=updateCheck",
type : "POST",
async:false,
data:$('#frmArticleType').serialize(),
success : function(data) {
if(data == "exception"){
type = false;
alert("i18n_uctsl.message.faild_n81i");
}else if(data =="success"){
type = true;
}else{
type = false;
alert(data);
}
}
});
return type;
}
function add() {
if(checkForm()&&updateCheck()) {
jQuery("select[ltype='haveTable']").removeAttr('disabled');
jQuery("input[type='text'][ltype='haveTable']").removeAttr('disabled');
document.form3.action="<%=path%>/detection/metaDataSet.do?action=doUpdList";
document.form3.submit();
}
}
//表单检查字段名非空长度小于30字段名不可重名
function checkForm() {
var flag = true;
//字段名
var nameArray = new Array();
jQuery("[id^='filedName_']").each(function(i) {
var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) {
//alert("字段名均不可为空");
$(this).next().html("i18n_uctsl.message.inputFiledName_n81i");
$(this).focus();
flag = false;
return false;//跳出的是each而不是checkForm
}else if(!$(this).checkByteLength(30,"i18n_uctsl.text.filedName_n81i")) {//长度不符合
$(this).focus();
flag = false;
return false;
}else if(checkNum(filedName)){
//alert("字段名均不能以数字开头");
$(this).next().html("i18n_uctsl.message.cannotNum_n81i");
$(this).focus();
flag = false;
return false;
}else {//进行字段名是否重复验证,如果重复则返回false
nameArray[i] = this.value;
}
});
//符合条件:非空,长度,才有判断元素是否重复的意义
if(flag==true) {
var names = ","+nameArray.join(",")+",";
for(var i=0;i<nameArray.length;i++) {
if(names.replace(nameArray[i]+",","").indexOf(","+nameArray[i]+",")>-1) {//说明有重复元素
//alert("字段名重复,请修改!");
$("[id^='filedName_'][value='"+nameArray[i]+"']").next().html("i18n_uctsl.message.filedNameRepeat_n81i");
$("[id^='filedName_'][value='"+nameArray[i]+"']").focus();
flag = false;
break;
}
}
}
if(flag==true) {
//字段描述非空
jQuery("[id^='filedComments_']").each(function(i) {
var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) {
alert("i18n_uctsl.message.filedComments_n81i");
$(this).focus();
flag = false;
return false;//跳出的是each而不是checkForm
}
});
}
if(flag==true) {
//字段类型非空
jQuery("[id^='filedType_']").each(function(i) {
var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) {
alert("i18n_uctsl.message.filedType1_n81i");
$(this).focus();
flag = false;
return false;//跳出的是each而不是checkForm
}else if('VARCHAR2'==this.value) {
var lengthId = "filedTypeLength_" + jQuery(this).attr('id').substr(10);
var filedLength = jQuery("input[type='text'][id='"+lengthId+"']").val();
if(filedLength==""||filedLength==undefined||filedLength==null) {
alert("i18n_uctsl.message.filedLength1_n81i");
jQuery("input[type='text'][id='"+lengthId+"']").focus();
flag = false;
return false;//跳出的是each而不是checkForm
}else if(filedLength.replace(/[\d+]/ig,"").length>0) {//文本类型的长度应为数字
alert('i18n_uctsl.message.filedLength2_n81i')
jQuery("input[type='text'][id='"+lengthId+"']").focus();
flag = false;
return false;//跳出的是each而不是checkForm
}
}
});
}
//判断是否选择了分类标识
if(flag==true) {
var issnmp =$("#is").val();
if(issnmp!=null && issnmp !=""){
if(Number(issnmp) < 2){//snmp监控
var checkedSize = $("input[type='radio'][id^='sortSign_'][value='0']:checked").size();
var hasSortSign = $("#hasSortSign").val();
if(hasSortSign!=null&& hasSortSign !="yes"&&Number(checkedSize) == 0){
alert("i18n_uctsl.message.hasSortSign_n81i");
flag = false;
return false;
}
}
}
}
return flag;
}
//检查是否以数字开头
function checkNum(s)
{
var cs = /^[0-9]*$/;
resu = cs.test(s);
return (cs.test(s));
}
//无用?
function rclick(obj){
if(obj.id=='state1'){//停用此字段时,字段不可用于统计
document.getElementById('chartState1').checked="checked";
}else{
if($("#filedType").val() == "VARCHAR2"){
$("#chartState1").attr("checked","checked");//1停用
}
}
}
jQuery(function(){
//if(jQuery("select[id^='filedType_']").val() == "VARCHAR2"){
// $("#chartState1").attr("checked","checked");//1停用,文本字段类型不可用于统计,所以当为文本类型时,用于统计选停用??
//}
//-- 字段类型选择事件绑定
/*jQuery("[id^='filedType_']").change(function(){
var idTemp = jQuery(this).attr('id');
var id = idTemp.substr(idTemp.indexOf("_"));
if(jQuery(this).val() == "VARCHAR2"){
jQuery("[id='lengthFt"+id+"']").css("display","inline");
}else{ //字段长度隐藏--数字 时间
jQuery("[id='lengthFt"+id+"']").css("display","none");
jQuery("[id='lengthFt"+id+"']").val("");//数字和时间类型字段,长度为空
}
});
*/
//分类标识选择【是】事件绑定:有一个点击是,除了这个元素以为的其它都点击否
jQuery("input[type='radio'][id^='sortSign_'][value='0']").click(function() {
var curId = jQuery(this).attr('id');//当前选择元素的ID
jQuery("input[type='radio'][id^='sortSign_'][id!='"+curId+"'][value='1']").each(function(i){
jQuery(this).trigger('click');
});
});
//选择统计时 判断字段类型
jQuery("input[type='radio'][id^='chartState_'][value='0']").click(function() {
var curId = jQuery(this).attr('id');//当前选择元素的ID
var id = curId.substr(curId.indexOf("_"));//metaId
if(jQuery("#filedType"+id).val() == "VARCHAR2"){
alert("i18n_uctsl.message.filedType2_n81i");
jQuery("input[type='radio'][id='"+curId+"'][value='1']").trigger('click');
return;
}
});
//不可把统计改为否
//if(jQuery("input[type='radio'][id^='chartState_'][value='0']").attr('checked') == true){
// alert("inin");
// alert(jQuery("input[type='radio'][id^='chartState_'][value='1']"));
// jQuery("input[type='radio'][id^='chartState_'][value='1']").attr('readonly','readonly');
//}
$("#tt").floatHeaderDiv();
})
function fieldTypeChange(obj){
var idTemp = jQuery(obj).attr('id');
var id = idTemp.substr(idTemp.indexOf("_"));
if(jQuery(obj).val() == "VARCHAR2"){
jQuery("[id='lengthFt"+id+"']").css("display","inline");
}else { //字段长度隐藏--数字 时间
jQuery("[id='lengthFt"+id+"']").css("display","none");
jQuery("[id='filedTypeLength"+id+"']").val("");//数字和时间类型字段,长度为空
}
}
function readOnlySelect(obj) {
var index = obj.selectedIndex;
obj.onchange = function() {
obj.selectedIndex = index;
}
}
function goBack(){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=query";
document.form3.submit();
}
</script>
<body>
<div class="middle_list">
<form name=form3 id="frmArticleType" action="" method="post">
<input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="pageNo" value="${pageNo}" /><!-- 列表当前页数 -->
<input type="hidden" name="pageSize" value="${pageSize}" /><!-- 列表当前页数 -->
<input type="hidden" name="isSnmp" value="${isSnmp}" id="is"/>
<input type="hidden" name="hasSortSign" value="${hasSortSign}" id="hasSortSign"/>
<c:forEach items="${ids}" var="ids" varStatus="vs">
<input type="hidden" name="ids" id="ids" value="${ids}"/>
</c:forEach>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<table border="0" cellpadding="0" cellspacing="0" class="table" id="tt">
<tr>
<td colspan="8" class="color_7" style="font-size:13px;">
<strong>i18n_uctsl.text.updateMetaData_n81i</strong>
</td>
</tr>
<tr>
<td width="2%" class="color_top">
i18n_uctsl.text.index_n81i
</td>
<td width="12%" class="color_top">
i18n_uctsl.text.filedName_n81i
</td>
<td width="16%" class="color_top">
i18n_uctsl.text.filedComments_n81i
</td>
<td width="8%" class="color_top">
i18n_uctsl.text.filedType_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.isMetaDateState_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.isChartState_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.dict_n81i
</td>
<td width="6%" class="color_top">
i18n_uctsl.text.isClassify_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<c:forEach items="${metadataList}" var="metadata" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:set var="color_btton" value="color_3"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
<c:set var="color_btton" value="color_1"/>
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
<input type="hidden" value="${metadata.id }" name="metadataList[${index-1}].id" id="id_${metadata.id}">
<input type="hidden" value="${metadata.id }" name="metadataIds" id="metadataIds">
</td>
<td class="${color }">
<input type="text" name="metadataList[${index-1}].filedName" id="filedName_${metadata.id}"
<c:if test="${fn:trim(metadata.filedName)==''}"> value="${metadata.filedComments}" </c:if>
<c:if test="${fn:trim(metadata.filedName)!=''}"> value="${metadata.filedName}" </c:if>
<c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if>
/>
<font color="red">*</font>
</td>
<td class="${color }">
<input type="text" name="metadataList[${index-1}].filedComments"
id="filedComments_${metadata.id}" value="${metadata.filedComments }" />
<font color="red">*i18n_uctsl.text.showFiledUtil_n81i</font>
</td>
<td class="${color }">
<c:if test="${isHaveTable=='no'}">
<select name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onchange="javascript:fieldTypeChange(this);">
<option value="" >
i18n_uctsl.message.metaDataDefault_n81i
</option>
<option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataNumber_n81i
</option>
<option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataDATE_n81i
</option>
<option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataVARCHAR2_n81i
</option>
</select>
</c:if>
<c:if test="${isHaveTable=='yes'}">
<select disabled="disabled" ltype="haveTable" name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onfocus="javascript:readOnlySelect(this);">
<option value="" >
i18n_uctsl.message.metaDataDefault_n81i
</option>
<option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataNumber_n81i
</option>
<option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataDATE_n81i
</option>
<option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataVARCHAR2_n81i
</option>
</select>
</c:if>
<font color="red">*</font>
<div align="left" id="lengthFt_${metadata.id}"
<c:if test="${metadata.filedTypeOnly == 'VARCHAR2'}"> style="display:inline;" </c:if>
<c:if test="${metadata.filedTypeOnly != 'VARCHAR2'}"> style="display:none;" </c:if> >
i18n_uctsl.message.metaDataLength_n81i
<input type="text" name="metadataList[${index-1}].filedTypeLength" value="${metadata.filedTypeLength}"
id="filedTypeLength_${metadata.id}" maxlength="5" size="2"
<c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if>
<c:if test="${isHaveTable=='yes'}">ltype="haveTable" disabled="disabled" </c:if>
/>
<font color="red">*</font>
</div>
</td>
<td class="${color }">
<input type="radio" name="metadataList[${index-1}].state"
id="state_${metadata.id}" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' || fn:trim(metadata.state) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.start_n81i
<input type="radio" name="metadataList[${index-1}].state"
id="state_${metadata.id}" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>i18n_uctsl.message.stop_n81i
</td>
<td class="${color }">
<input type="radio" name="metadataList[${index-1}].chartState"
id="chartState_${metadata.id}" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i
<input type="radio" name="metadataList[${index-1}].chartState"
id="chartState_${metadata.id}" value="1" <c:if test="${metadata.chartState == '1' || fn:trim(metadata.chartState) ==''}">checked="checked"</c:if>
<c:if test="${metadata.chartState == '0' }"> disabled="disabled" </c:if>/>i18n_uctsl.message.no_n81i
</td>
<td class="${color }">
<select name="metadataList[${index-1}].typeId" id="typeId_${metadata.id}">
<option value="">
i18n_uctsl.message.metaDataDefault_n81i
</option>
<c:choose>
<c:when test="${fn:length(typeTableList) > 0}">
<c:forEach items="${typeTableList}" var="typeTable" >
<option value="${typeTable.id}" <c:if test="${typeTable.id == metadata.typeId}">selected="selected"</c:if>>
${typeTable.typeName}
</option>
</c:forEach>
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
</select>
</td>
<td class="${color }">
<input type="radio" name="metadataList[${index-1}].sortSign"
id="sortSign_${metadata.id}" value="0" <c:if test="${metadata.sortSign == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i
<input type="radio" name="metadataList[${index-1}].sortSign"
id="sortSign_${metadata.id}" value="1" <c:if test="${metadata.sortSign == '1' || fn:trim(metadata.sortSign) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.no_n81i
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" align="center">
i18n_uctsl.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
<tr>
<td class="${color_btton}" colspan="8" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_uctsl.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form3'].reset()"
value="i18n_uctsl.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${metadata.checkTypeInfo.id })"
value="i18n_uctsl.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,284 +1,284 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ddsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function goBack(){
document.Mkform.action="<%=path%>/detection/detectionSet.do?action=query";
document.Mkform.submit();
}
$(function(){
//下载附件
$(".downloadA").click(function(){
window.location="<%=path%>/detection/detectionSet.do?action=downloadScript&myFileFileName=${myFileFileName}";
});
});
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ddsi.button.back_n81i"/>
</div>
<div style="height: 25px"></div>
<form action="" name="Mkform" method="post">
<input type="hidden" name="ip" id="ip" value="${ip }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="pIden" id="pIden" value="${pIden }" />
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<jsp:include page="/common/transferHiddenParameter.jsp" />
<table border="0" cellpadding="0" cellspacing="0" class="table" style="table-layout: fixed;word-wrap:break-word;">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_ddsi.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.processIdenName_n81i
</td>
<td class="color_3" align="left" width="20%">
${detectionSetInfo.processIdenName }
</td>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.processIden_n81i
</td>
<td class="color_3" align="left" width="20%">
${detectionSetInfo.processIden }
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.nodeGroup_n81i
</td>
<td class="color_6" align="left" width="20%">
${detectionSetInfo.nodeGroupsName }
</td>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.nodeIp_n81i
</td>
<td class="color_3" align="left" width="20%" >
${detectionSetInfo.nodeIpsName }
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.checkTypeName_n81i
</td>
<td class="color_6" align="left" width="20%">
${detectionSetInfo.checkTypeInfo.checkTypeName1 }
</td>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.checkType_n81i
</td>
<td class="color_6" align="left" width="20%">
${detectionSetInfo.checkTypeInfo.checkTypeName }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.checkWay_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.checkWay == '1' }">i18n_ddsi.message.passive_n81i</c:if>
<c:if test="${detectionSetInfo.checkWay == '0' }">i18n_ddsi.message.active_n81i</c:if>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.detectionSetState_n81i
</td>
<td class="color_6" align="left">
<c:if test="${detectionSetInfo.detectionSetState == '1' }">i18n_ddsi.message.valid_n81i</c:if>
<c:if test="${detectionSetInfo.detectionSetState == '0' }">i18n_ddsi.message.invalid_n81i</c:if>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.viewLevel_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.viewLevel=='1' }">i18n_ddsi.message.publisher_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='2' }">i18n_ddsi.message.publisherGroup_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='3' }">i18n_ddsi.message.allInSys_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='4' }">i18n_ddsi.message.unlimited_n81i</c:if>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.isSchedule_n81i
</td>
<td class="color_6" align="left" >
<c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='0' }">i18n_ddsi.message.isSchedule0_n81i</c:if>
<c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='1' }">i18n_ddsi.message.isSchedule1_n81i</c:if>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.checkGap_n81i
</td>
<td class="color_3" align="left">
${detectionSetInfo.checkGap }
</td>
<!--
<td class="color_1" align="right">
上传监测数据时间间隔(分钟)
</td>
<td class="color_6" align="left">
${detectionSetInfo.uploadGap }
</td>
-->
<td class="color_1" align="right">
i18n_ddsi.text.checkOutTime_n81i
</td>
<td class="color_3" align="left">
${detectionSetInfo.checkOutTime }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.planCheckTime_n81i
</td>
<td class="color_3" align="left">
<fmt:formatDate value="${detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.checkMaxTimes_n81i
</td>
<td class="color_6" align="left">
${detectionSetInfo.checkMaxTimes }
</td>
</tr>
<%-- 1. 系统预置监测 --%>
<c:if test="${detectionSetInfo.id < 8}">
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.processFile_n81i
</td>
<td class="color_3" align="left">
${detectionSetInfo.processFile }
</td>
<td class="color_1" align="right">
i18n_ddsi.text.processPath_n81i
</td>
<td class="color_6" align="left">
${detectionSetInfo.processPath }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.isControlStart_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.id < 8}">i18n_ddsi.text.ncStartup_n81i</c:if>
<c:if test="${detectionSetInfo.id >= 8}">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</c:if>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.controlStartTime_n81i
</td>
<td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
</c:if><%-- end of 1 --%>
<%-- 2.1 第三方监测手动启动 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '0'}">
<tr>
<td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processFile }</td>
<td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td>
<td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td>
<td class="color_1" align="right"></td>
<td class="color_6" align="left"></td>
</tr>
</c:if><%-- end of 2.1 --%>
<%-- 2.2 第三方监测NC单次启动 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '1'}">
<tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td>
<td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td>
<td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processFile }</td>
<td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td>
<td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.processPath_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processPath }</td>
<td class="color_1" align="right"></td>
<td class="color_6" align="left"></td>
</tr>
</c:if><%-- end of 2.2 --%>
<%-- 2.3 第三方监测NC周期启动类型 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '2'}">
<tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td>
<td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td>
<td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.myFileFile_n81i</td>
<td class="color_3" align="left">
<a title="点击下载" href="#" class="downloadA" id="scriptFile">${myFileFileName}</a>
</td>
<td class="color_1" align="right"></td>
<td class="color_6" align="left"></td>
</tr>
</c:if><%-- end of 2.3 --%>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ddsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function goBack(){
document.Mkform.action="<%=path%>/detection/detectionSet.do?action=query";
document.Mkform.submit();
}
$(function(){
//下载附件
$(".downloadA").click(function(){
window.location="<%=path%>/detection/detectionSet.do?action=downloadScript&myFileFileName=${myFileFileName}";
});
});
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ddsi.button.back_n81i"/>
</div>
<div style="height: 25px"></div>
<form action="" name="Mkform" method="post">
<input type="hidden" name="ip" id="ip" value="${ip }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="pIden" id="pIden" value="${pIden }" />
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<jsp:include page="/common/transferHiddenParameter.jsp" />
<table border="0" cellpadding="0" cellspacing="0" class="table" style="table-layout: fixed;word-wrap:break-word;">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_ddsi.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.processIdenName_n81i
</td>
<td class="color_3" align="left" width="20%">
${detectionSetInfo.processIdenName }
</td>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.processIden_n81i
</td>
<td class="color_3" align="left" width="20%">
${detectionSetInfo.processIden }
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.nodeGroup_n81i
</td>
<td class="color_6" align="left" width="20%">
${detectionSetInfo.nodeGroupsName }
</td>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.nodeIp_n81i
</td>
<td class="color_3" align="left" width="20%" >
${detectionSetInfo.nodeIpsName }
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.checkTypeName_n81i
</td>
<td class="color_6" align="left" width="20%">
${detectionSetInfo.checkTypeInfo.checkTypeName1 }
</td>
<td class="color_1" align="right" width="20%">
i18n_ddsi.text.checkType_n81i
</td>
<td class="color_6" align="left" width="20%">
${detectionSetInfo.checkTypeInfo.checkTypeName }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.checkWay_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.checkWay == '1' }">i18n_ddsi.message.passive_n81i</c:if>
<c:if test="${detectionSetInfo.checkWay == '0' }">i18n_ddsi.message.active_n81i</c:if>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.detectionSetState_n81i
</td>
<td class="color_6" align="left">
<c:if test="${detectionSetInfo.detectionSetState == '1' }">i18n_ddsi.message.valid_n81i</c:if>
<c:if test="${detectionSetInfo.detectionSetState == '0' }">i18n_ddsi.message.invalid_n81i</c:if>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.viewLevel_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.viewLevel=='1' }">i18n_ddsi.message.publisher_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='2' }">i18n_ddsi.message.publisherGroup_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='3' }">i18n_ddsi.message.allInSys_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='4' }">i18n_ddsi.message.unlimited_n81i</c:if>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.isSchedule_n81i
</td>
<td class="color_6" align="left" >
<c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='0' }">i18n_ddsi.message.isSchedule0_n81i</c:if>
<c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='1' }">i18n_ddsi.message.isSchedule1_n81i</c:if>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.checkGap_n81i
</td>
<td class="color_3" align="left">
${detectionSetInfo.checkGap }
</td>
<!--
<td class="color_1" align="right">
上传监测数据时间间隔(分钟)
</td>
<td class="color_6" align="left">
${detectionSetInfo.uploadGap }
</td>
-->
<td class="color_1" align="right">
i18n_ddsi.text.checkOutTime_n81i
</td>
<td class="color_3" align="left">
${detectionSetInfo.checkOutTime }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.planCheckTime_n81i
</td>
<td class="color_3" align="left">
<fmt:formatDate value="${detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.checkMaxTimes_n81i
</td>
<td class="color_6" align="left">
${detectionSetInfo.checkMaxTimes }
</td>
</tr>
<%-- 1. 系统预置监测 --%>
<c:if test="${detectionSetInfo.id < 8}">
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.processFile_n81i
</td>
<td class="color_3" align="left">
${detectionSetInfo.processFile }
</td>
<td class="color_1" align="right">
i18n_ddsi.text.processPath_n81i
</td>
<td class="color_6" align="left">
${detectionSetInfo.processPath }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ddsi.text.isControlStart_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.id < 8}">i18n_ddsi.text.ncStartup_n81i</c:if>
<c:if test="${detectionSetInfo.id >= 8}">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</c:if>
</td>
<td class="color_1" align="right">
i18n_ddsi.text.controlStartTime_n81i
</td>
<td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
</c:if><%-- end of 1 --%>
<%-- 2.1 第三方监测手动启动 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '0'}">
<tr>
<td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processFile }</td>
<td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td>
<td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td>
<td class="color_1" align="right"></td>
<td class="color_6" align="left"></td>
</tr>
</c:if><%-- end of 2.1 --%>
<%-- 2.2 第三方监测NC单次启动 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '1'}">
<tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td>
<td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td>
<td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processFile }</td>
<td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td>
<td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.processPath_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processPath }</td>
<td class="color_1" align="right"></td>
<td class="color_6" align="left"></td>
</tr>
</c:if><%-- end of 2.2 --%>
<%-- 2.3 第三方监测NC周期启动类型 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '2'}">
<tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td>
<td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td>
<td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right">i18n_ddsi.text.myFileFile_n81i</td>
<td class="color_3" align="left">
<a title="点击下载" href="#" class="downloadA" id="scriptFile">${myFileFileName}</a>
</td>
<td class="color_1" align="right"></td>
<td class="color_6" align="left"></td>
</tr>
</c:if><%-- end of 2.3 --%>
</table>
</form>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,84 +1,84 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detecSetList) > 0}">
<c:forEach items="${detecSetList}" var="detecSet" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && detecSet.viewLevel ne 4) || (!ADMFlag && detecSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${detecSet.id}" />
<input type="hidden" id="yxbz${detecSet.id }"
name="yxbz${detecSet.id }" value="${detecSet.detectionSetState}" />
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }" >
${detecSet.nodeGroupsName}
</td>
<td class="${color }">
${detecSet.nodeIpsName}
</td>
<td class="${color }">
<a href="javascript:showRecord('${detecSet.id }')">${detecSet.checkTypeInfo.checkTypeName1}</a>
</td>
<!--
<td class="${color }">
<c:if test="${detecSet.checkWay=='0' }">主动</c:if>
<c:if test="${detecSet.checkWay=='1' }">被动</c:if>
</td>
-->
<td class="${color }">
${detecSet.checkGap}
</td>
<td class="${color }">
${detecSet.checkMaxTimes}
</td>
<td class="${color }">
${detecSet.checkOutTime}
</td>
<td class="${color }">
<fmt:formatDate value="${detecSet.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="${color }">
${detecSet.processIdenName}
</td>
<td class="${color }" style="word-break:break-all">
${detecSet.processFile}
</td>
<td class="${color }" style="word-break:break-all">
${detecSet.processPath}
</td>
<td class="${color }">
<c:if test="${detecSet.isControlStart=='0' }">i18n_dsilc.message.manually_n81i</c:if>
<c:if test="${detecSet.isControlStart=='1' }">i18n_dsilc.message.NCStart_n81i</c:if>
</td>
<td class="${color }">
<fmt:formatDate value="${detecSet.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="${color }">
<c:if test="${detecSet.checkTypeInfo.isSchedule=='0' }">i18n_dsilc.message.yes_n81i</c:if>
<c:if test="${detecSet.checkTypeInfo.isSchedule=='1' }">i18n_dsilc.message.no_n81i</c:if>
</td>
<td class="${color_end }">
<c:if test="${detecSet.detectionSetState=='0' }"><font color="#FF0000">i18n_dsilc.message.invalid_n81i</font></c:if>
<c:if test="${detecSet.detectionSetState=='1' }">i18n_dsilc.message.valid_n81i</c:if>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detecSetList) > 0}">
<c:forEach items="${detecSetList}" var="detecSet" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && detecSet.viewLevel ne 4) || (!ADMFlag && detecSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${detecSet.id}" />
<input type="hidden" id="yxbz${detecSet.id }"
name="yxbz${detecSet.id }" value="${detecSet.detectionSetState}" />
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }" >
${detecSet.nodeGroupsName}
</td>
<td class="${color }">
${detecSet.nodeIpsName}
</td>
<td class="${color }">
<a href="javascript:showRecord('${detecSet.id }')">${detecSet.checkTypeInfo.checkTypeName1}</a>
</td>
<!--
<td class="${color }">
<c:if test="${detecSet.checkWay=='0' }">主动</c:if>
<c:if test="${detecSet.checkWay=='1' }">被动</c:if>
</td>
-->
<td class="${color }">
${detecSet.checkGap}
</td>
<td class="${color }">
${detecSet.checkMaxTimes}
</td>
<td class="${color }">
${detecSet.checkOutTime}
</td>
<td class="${color }">
<fmt:formatDate value="${detecSet.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="${color }">
${detecSet.processIdenName}
</td>
<td class="${color }" style="word-break:break-all">
${detecSet.processFile}
</td>
<td class="${color }" style="word-break:break-all">
${detecSet.processPath}
</td>
<td class="${color }">
<c:if test="${detecSet.isControlStart=='0' }">i18n_dsilc.message.manually_n81i</c:if>
<c:if test="${detecSet.isControlStart=='1' }">i18n_dsilc.message.NCStart_n81i</c:if>
</td>
<td class="${color }">
<fmt:formatDate value="${detecSet.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="${color }">
<c:if test="${detecSet.checkTypeInfo.isSchedule=='0' }">i18n_dsilc.message.yes_n81i</c:if>
<c:if test="${detecSet.checkTypeInfo.isSchedule=='1' }">i18n_dsilc.message.no_n81i</c:if>
</td>
<td class="${color_end }">
<c:if test="${detecSet.detectionSetState=='0' }"><font color="#FF0000">i18n_dsilc.message.invalid_n81i</font></c:if>
<c:if test="${detecSet.detectionSetState=='1' }">i18n_dsilc.message.valid_n81i</c:if>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>

View File

@@ -1,231 +1,231 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dwi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function goBack(){
var nodeType='${nodeType}';
var url;
if("${type}"=="3Droom"){
url="<c:url value='/detection/detectionWarning.do?action=queryAll'/>";
}else if(nodeType == '0'){
url="<c:url value='/detection/detectionWarning.do?action=query'/>";
}else if(nodeType == '1'){
url="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
}else{
url="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";//告警信息
}
document.Mkform.action=url;
document.Mkform.submit();
}
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dwi.button.back_n81i"/>
</div>
<div style="height: 25px"></div>
<form action="" name="Mkform" method="post">
<!-- 查询页面查询条件 Start -->
<input type="hidden" name="police_level" value="${police_level }">
<input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="ip" value="${ip }" />
<input type="hidden" name="dct" value="${dct }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="pIden" value="${pIden }" />
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="timeoutDetecFilter" value="${timeoutDetecFilter}" />
<!-- 从监测网元信息进入的参数 -->
<input type="hidden" name="entry" value="${entry}"/>
<input type="hidden" name="detectId" value="${detectId}"/>
<input type="hidden" name="seqId" value="${seqId}"/>
<input type="hidden" name="police_emergent" value="${police_emergent}"/>
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" name="nodeType" value="${nodeType}"/>
<input type="hidden" name="type" value="${type}"/>
<input type="hidden" name="nameFlag" value="${nameFlag}"/>
<input type="hidden" name="pid" value="${pid}"/>
<input type="hidden" name="isLeaf" value="${isLeaf}"/>
<input type="hidden" name="picId" value="${picId}"/>
<input type="hidden" name="queryParConditionDisplay" value="${queryParConditionDisplay}"/>
<input type="hidden" name="queryChildConditionDisplay" value="${queryChildConditionDisplay}"/>
<jsp:include page="/common/transferHiddenParameter.jsp" />
<!-- 查询页面查询条件 end -->
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_dwi.message.warningInfo_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_dwi.text.processIdenName_n81i
</td>
<td class="color_3" align="left" width="20%">
${detectionWarningInfo.detectionSetInfo.processIdenName}
</td>
<td class="color_1" align="right" width="20%">
i18n_dwi.text.nodeIp_n81i
</td>
<td class="color_3" align="left" width="20%">
${nodeIp}
</td>
</tr>
<tr>
<td class="color_1" align="right" >
i18n_dwi.text.detecationState_n81i
</td>
<td class="color_3" align="left" >
<c:if test="${detectionWarningInfo.detectionedState=='0' }"><font color="#FF0000">i18n_dwi.message.abnormal_n81i</font></c:if>
<c:if test="${detectionWarningInfo.detectionedState=='1' }">i18n_dwi.message.normal_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionedState=='-1' }"><font color="#FF0000">i18n_dwi.message.execFailed_n81i</font></c:if>
</td>
<td class="color_1" align="right">
i18n_dwi.text.viewLevel_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='1' }">i18n_dwi.message.publisher_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='2' }">i18n_dwi.message.publisherGroup_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='3' }">i18n_dwi.message.allInSys_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='4' }">i18n_dwi.message.unlimited_n81i</c:if>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.stateInfo_n81i
</td>
<td class="color_3" align="left" colspan="3">
${fn:replace(fn:replace(detectionWarningInfo.detectionStateInfo,vEnter,'$@$'),'$@$','<br/>')}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.performaceData_n81i
</td>
<td class="color_3" align="left" colspan="3">
${fn:replace(fn:replace(detectionWarningInfo.performaceData,vEnter,'$@$'),'$@$','<br/>')}
</td>
</tr>
<%-- <tr>--%>
<%-- <td class="color_1" align="right">--%>
<%-- 监测首次执行时间:--%>
<%-- </td>--%>
<%-- <td class="color_3" align="left">--%>
<%-- <fmt:formatDate value="${detectionWarningInfo.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
<%-- </td>--%>
<%-- <td class="color_1" align="right">--%>
<%-- 上传监测数据时间间隔(分钟)--%>
<%-- </td>--%>
<%-- <td class="color_3" align="left">--%>
<%-- ${detectionWarningInfo.detectionSetInfo.uploadGap}--%>
<%-- </td>--%>
<%-- </tr>--%>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.checkGap_n81i
</td>
<td class="color_3" align="left">
${detectionWarningInfo.detectionSetInfo.checkGap}
</td>
<td class="color_1" align="right">
i18n_dwi.text.currentTimes_n81i
</td>
<td class="color_3" align="left">
${detectionWarningInfo.currentTimes }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.nextCheckTime_n81i
</td>
<td class="color_3" align="left">
<fmt:formatDate value="${detectionWarningInfo.nextCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="color_1" align="right" >
i18n_dwi.text.dataArriveTime_n81i
</td>
<td class="color_3" align="left" >
<fmt:formatDate value="${detectionWarningInfo.dataArriveTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right" >
i18n_dwi.text.dataCheckTime_n81i
</td>
<td class="color_3" align="left" colspan="3">
<fmt:formatDate value="${detectionWarningInfo.dataCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<!--
<td class="color_1" align="right">
监测方式:
</td>
<td class="color_3" align="left" >
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '0'}">主动</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '1'}">被动</c:if>
</td>
-->
</tr>
<tr>
<td colspan="4" align="center" class="color_8">
<strong>i18n_dwi.text.warningInfo_n81i</strong>
</td>
</tr>
<tr>
<td align="center" colspan="4" class="color_6">
<c:if test="${!empty infoMap}">
<table align="center" border="0" cellpadding="0" cellspacing="1" >
<c:forEach items="${infoMap}" var="datarow" >
<tr>
<td class="color_1" width="30%" align="right">
${datarow.key}
</td>
<td class="color_3" width="30%" align="left">
${datarow.value}
</td>
</tr>
</c:forEach>
</table>
</c:if>
<c:if test="${empty infoMap}">i18n_dwi.text.noRecord_n81i</c:if>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dwi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function goBack(){
var nodeType='${nodeType}';
var url;
if("${type}"=="3Droom"){
url="<c:url value='/detection/detectionWarning.do?action=queryAll'/>";
}else if(nodeType == '0'){
url="<c:url value='/detection/detectionWarning.do?action=query'/>";
}else if(nodeType == '1'){
url="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
}else{
url="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";//告警信息
}
document.Mkform.action=url;
document.Mkform.submit();
}
</script>
<body>
<div class="middle_list" >
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dwi.button.back_n81i"/>
</div>
<div style="height: 25px"></div>
<form action="" name="Mkform" method="post">
<!-- 查询页面查询条件 Start -->
<input type="hidden" name="police_level" value="${police_level }">
<input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="ip" value="${ip }" />
<input type="hidden" name="dct" value="${dct }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="pIden" value="${pIden }" />
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="timeoutDetecFilter" value="${timeoutDetecFilter}" />
<!-- 从监测网元信息进入的参数 -->
<input type="hidden" name="entry" value="${entry}"/>
<input type="hidden" name="detectId" value="${detectId}"/>
<input type="hidden" name="seqId" value="${seqId}"/>
<input type="hidden" name="police_emergent" value="${police_emergent}"/>
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" name="nodeType" value="${nodeType}"/>
<input type="hidden" name="type" value="${type}"/>
<input type="hidden" name="nameFlag" value="${nameFlag}"/>
<input type="hidden" name="pid" value="${pid}"/>
<input type="hidden" name="isLeaf" value="${isLeaf}"/>
<input type="hidden" name="picId" value="${picId}"/>
<input type="hidden" name="queryParConditionDisplay" value="${queryParConditionDisplay}"/>
<input type="hidden" name="queryChildConditionDisplay" value="${queryChildConditionDisplay}"/>
<jsp:include page="/common/transferHiddenParameter.jsp" />
<!-- 查询页面查询条件 end -->
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_dwi.message.warningInfo_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_dwi.text.processIdenName_n81i
</td>
<td class="color_3" align="left" width="20%">
${detectionWarningInfo.detectionSetInfo.processIdenName}
</td>
<td class="color_1" align="right" width="20%">
i18n_dwi.text.nodeIp_n81i
</td>
<td class="color_3" align="left" width="20%">
${nodeIp}
</td>
</tr>
<tr>
<td class="color_1" align="right" >
i18n_dwi.text.detecationState_n81i
</td>
<td class="color_3" align="left" >
<c:if test="${detectionWarningInfo.detectionedState=='0' }"><font color="#FF0000">i18n_dwi.message.abnormal_n81i</font></c:if>
<c:if test="${detectionWarningInfo.detectionedState=='1' }">i18n_dwi.message.normal_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionedState=='-1' }"><font color="#FF0000">i18n_dwi.message.execFailed_n81i</font></c:if>
</td>
<td class="color_1" align="right">
i18n_dwi.text.viewLevel_n81i
</td>
<td class="color_3" align="left">
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='1' }">i18n_dwi.message.publisher_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='2' }">i18n_dwi.message.publisherGroup_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='3' }">i18n_dwi.message.allInSys_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='4' }">i18n_dwi.message.unlimited_n81i</c:if>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.stateInfo_n81i
</td>
<td class="color_3" align="left" colspan="3">
${fn:replace(fn:replace(detectionWarningInfo.detectionStateInfo,vEnter,'$@$'),'$@$','<br/>')}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.performaceData_n81i
</td>
<td class="color_3" align="left" colspan="3">
${fn:replace(fn:replace(detectionWarningInfo.performaceData,vEnter,'$@$'),'$@$','<br/>')}
</td>
</tr>
<%-- <tr>--%>
<%-- <td class="color_1" align="right">--%>
<%-- 监测首次执行时间:--%>
<%-- </td>--%>
<%-- <td class="color_3" align="left">--%>
<%-- <fmt:formatDate value="${detectionWarningInfo.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
<%-- </td>--%>
<%-- <td class="color_1" align="right">--%>
<%-- 上传监测数据时间间隔(分钟)--%>
<%-- </td>--%>
<%-- <td class="color_3" align="left">--%>
<%-- ${detectionWarningInfo.detectionSetInfo.uploadGap}--%>
<%-- </td>--%>
<%-- </tr>--%>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.checkGap_n81i
</td>
<td class="color_3" align="left">
${detectionWarningInfo.detectionSetInfo.checkGap}
</td>
<td class="color_1" align="right">
i18n_dwi.text.currentTimes_n81i
</td>
<td class="color_3" align="left">
${detectionWarningInfo.currentTimes }
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_dwi.text.nextCheckTime_n81i
</td>
<td class="color_3" align="left">
<fmt:formatDate value="${detectionWarningInfo.nextCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<td class="color_1" align="right" >
i18n_dwi.text.dataArriveTime_n81i
</td>
<td class="color_3" align="left" >
<fmt:formatDate value="${detectionWarningInfo.dataArriveTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right" >
i18n_dwi.text.dataCheckTime_n81i
</td>
<td class="color_3" align="left" colspan="3">
<fmt:formatDate value="${detectionWarningInfo.dataCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
<!--
<td class="color_1" align="right">
监测方式:
</td>
<td class="color_3" align="left" >
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '0'}">主动</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '1'}">被动</c:if>
</td>
-->
</tr>
<tr>
<td colspan="4" align="center" class="color_8">
<strong>i18n_dwi.text.warningInfo_n81i</strong>
</td>
</tr>
<tr>
<td align="center" colspan="4" class="color_6">
<c:if test="${!empty infoMap}">
<table align="center" border="0" cellpadding="0" cellspacing="1" >
<c:forEach items="${infoMap}" var="datarow" >
<tr>
<td class="color_1" width="30%" align="right">
${datarow.key}
</td>
<td class="color_3" width="30%" align="left">
${datarow.value}
</td>
</tr>
</c:forEach>
</table>
</c:if>
<c:if test="${empty infoMap}">i18n_dwi.text.noRecord_n81i</c:if>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,167 +1,167 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
</script>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detecWarningList) > 0}">
<c:forEach items="${detecWarningList}" var="detecWarning"
varStatus="vs">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
style="color:${detecWarning.bgcolor};}">
${detecWarning.nodeIp} </a>
</font>
</td>
<td class="${color }">
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dclwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp;
</td>
<td class="${color }">
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
title="i18n_dclwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
</a>
</td>
<td class="${color }">
<c:if test="${detecWarning.checkWay=='0' }">i18n_dclwlc.message.active_n81i</c:if>
<c:if test="${detecWarning.checkWay=='1' }">i18n_dclwlc.message.passive_n81i</c:if>
</td>
<td class="${color }">
<fmt:formatDate value="${detecWarning.dataCheckTime}"
pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<td class="${color }">
${detecWarning.persistTime}
</td>
<td class="${color }">
${detecWarning.currentTimes}
</td>
<td class="${color }">
${detecWarning.policeLevel}
</td>
<td class="${color }" >
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%>>
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
${fn:substring(stateInfo,0,25)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 25}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</span>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>25){
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
</script>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detecWarningList) > 0}">
<c:forEach items="${detecWarningList}" var="detecWarning"
varStatus="vs">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
style="color:${detecWarning.bgcolor};}">
${detecWarning.nodeIp} </a>
</font>
</td>
<td class="${color }">
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dclwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp;
</td>
<td class="${color }">
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
title="i18n_dclwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
</a>
</td>
<td class="${color }">
<c:if test="${detecWarning.checkWay=='0' }">i18n_dclwlc.message.active_n81i</c:if>
<c:if test="${detecWarning.checkWay=='1' }">i18n_dclwlc.message.passive_n81i</c:if>
</td>
<td class="${color }">
<fmt:formatDate value="${detecWarning.dataCheckTime}"
pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<td class="${color }">
${detecWarning.persistTime}
</td>
<td class="${color }">
${detecWarning.currentTimes}
</td>
<td class="${color }">
${detecWarning.policeLevel}
</td>
<td class="${color }" >
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%>>
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
${fn:substring(stateInfo,0,25)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 25}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</span>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>25){
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});

File diff suppressed because it is too large Load Diff

View File

@@ -1,167 +1,167 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detecWarningList) > 0}">
<c:forEach items="${detecWarningList}" var="detecWarning"
varStatus="vs">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
style="color:${detecWarning.bgcolor};}">
${detecWarning.nodeIp} </a>
</td>
<td class="${color }">
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp;
</td>
<td class="${color }">
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
title="i18n_dwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
</a>
</td>
<td class="${color }">
<c:if test="${detecWarning.checkWay=='0' }">i18n_dwlc.message.active_n81i</c:if>
<c:if test="${detecWarning.checkWay=='1' }">i18n_dwlc.message.passive_n81i</c:if>
</td>
<td class="${color }">
<fmt:formatDate value="${detecWarning.dataCheckTime}"
pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<td class="${color }">
${detecWarning.persistTime}
</td>
<td class="${color }">
${detecWarning.currentTimes}
</td>
<td class="${color }">
${detecWarning.policeLevel}
</td>
<td class="${color }" >
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
${fn:substring(stateInfo,0,25)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 25}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</span>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>25){
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detecWarningList) > 0}">
<c:forEach items="${detecWarningList}" var="detecWarning"
varStatus="vs">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
style="color:${detecWarning.bgcolor};}">
${detecWarning.nodeIp} </a>
</td>
<td class="${color }">
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp;
</td>
<td class="${color }">
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
title="i18n_dwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
</a>
</td>
<td class="${color }">
<c:if test="${detecWarning.checkWay=='0' }">i18n_dwlc.message.active_n81i</c:if>
<c:if test="${detecWarning.checkWay=='1' }">i18n_dwlc.message.passive_n81i</c:if>
</td>
<td class="${color }">
<fmt:formatDate value="${detecWarning.dataCheckTime}"
pattern="yyyy-MM-dd HH:mm:ss" />
</td>
<td class="${color }">
${detecWarning.persistTime}
</td>
<td class="${color }">
${detecWarning.currentTimes}
</td>
<td class="${color }">
${detecWarning.policeLevel}
</td>
<td class="${color }" >
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
${fn:substring(stateInfo,0,25)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 25}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</span>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>25){
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,395 +1,395 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter", "\n");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dil.message.title_n81i</title>
<style>
/* 自定义滚动条 */
.pop-content {
position:relative;
max-height:300px;
}
/* .pop-content::-webkit-scrollbar {
width:3px;
height:1px;
}
.pop-content::-webkit-scrollbar-thumb {
border-radius:5px;
-webkit-box-shadow:inset 0 0 2px #CCCCCC;
background:#CCCCCC;
}
.pop-content::-webkit-scrollbar-track {
-webkit-box-shadow:inset 0 0 2px #EDEDED;
background:white;
border-radius:5px;
} */
</style>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<link rel="stylesheet" type="text/css" href="<c:url value='/scrollBar/perfect-scrollbar.css'/>" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery1.11.3.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/scrollBar/perfect-scrollbar.js"/>"></script>
<script type="text/javascript">
//查询记录
function qry(){
document.form3.action = "<c:url value='monitorData.do?action=showDetectionInfo&date="+new Date()+"'/>";
document.form3.submit();
}
//查看详情
function showRecord(monid,cid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detailWarning&cId="+cid+"&ids="+monid+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
//绘制折线图
function drawPic(ctid,dsiId,id){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&sqId="+id+"&nodeType="+$("#nodeType").val()+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== "0"){
action ="<c:url value='/detection/detectionWarning.do?action=query'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== "1"){
action ="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== ""){//左下角动画报警
action ="<c:url value='/detection/detectionWarning.do?action=queryAll&warnType=leftWarn&police_emergent=0'/>";
}else if($("#flag").val()== "queryAllConfigLevel"){
action ="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";
} else if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
} else if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=${nodeType}&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
}
if($("#requestType").val()== "newTopo"){
console.log("ccccmmmmmmmmmmmmmmmm")
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
}
document.form3.action = action;
document.form3.submit();
}
function checkDate(){
var startTime = $("#startTime").val();
var endTime = $("#endTime").val();
if(startTime != "" && endTime!=""){
if(startTime > endTime){
alert("i18n_dil.message.checkDate_n81i");
$("#endTime").val("");
$("#endTime").focus();
}
}
}
$(function(){
$('.pop-content').each(function(){
var ps = new PerfectScrollbar(this);
})
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;clear:both;");
}else{
$("#info").attr("style","width:98.5%;clear:both;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;clear:both;");
}
$("#info").floatHeaderDiv();
// $("#info").attr("style","clear:left");
});
function ieBrowser(){
/* if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
} */
}
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var memoryData ;
var intervalID ;
var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数
var dsiId="${dsiId }";
var seqId="${sqId }";
$(document).ready(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
}else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID);
}
}
function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var urlTmp = encodeURI("<c:url value='monitorData!executeAction.do?action=showDetectionInfoChild'/>&dsiId="+dsiId+ "&sqId="+seqId+"&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&sTime="+$("#startTime").val()+"&eTime="+$("#endTime").val()+"&status="+$("#status").val()+"&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(
new Date()).toString()%>");
$.ajax({
url:urlTmp,
type : "get",
async:false,
success : function(data) {
$("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint);
$('.pop-content').each(function(){
var ps = new PerfectScrollbar(this);
})
}
});
loadButton();
}
//初始化级别的显示和隐藏
var emergentVal = jQuery('#police_emergent').val();
if(emergentVal!=undefined && emergentVal!=null) {//需要选择紧急 or 非紧急,就需要初始化级别的显示隐藏
changeEmergent();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
function changeEmergent() {
var selEmergVal = jQuery('#police_emergent').val();
if(selEmergVal=='1') {
jQuery('#levelSpan').show();
}else {
jQuery('#levelSpan').hide();
}
}
</script>
</head>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='monitorData.do?action=showDetectionInfo'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(
new Date()).toString()%>"
method="post" enctype="multipart/form-data">
<input type="hidden" name="pageNoforexp" id="pageNo"
value="${pageNo }" />
<!-- 查看检测设置历史记录 begin -->
<input type="hidden" name="dsiId" value="${dsiId }" />
<input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="flag" id="flag" value="${flag }" />
<input type="hidden" name="showHistory" value="${showHistory }" />
<input type="hidden" name="entry" value="${entry }" />
<input type="hidden" name="cip" value="${cip }" />
<!-- nodeType=1异常网元 nodeType=0:异常服务器 -->
<input type="hidden" value="${nodeType }" name="nodeType"
id="nodeType" />
<!-- 查看检测设置历史记录 end -->
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type" />
<!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" id="requestType" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<input type="hidden" name="detectId" id="detectId"
value="${detectId }" />
<input type="hidden" name="ip" id="ip" value="${ip }" />
<input type="hidden" name="pid" id="pid" value="${pid }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="pIden" id="pIden" value="${pIden }" />
<input type="hidden" name="dct" id="dct" value="${dct }" />
<input type="hidden" name="police_emergent" id="police_emergent"
value="${police_emergent }" />
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}"
id="nodeIpRange" />
<input type="hidden" name="nodeGroupStr" id="nodeGroupStr"
value="${nodeGroupStr }" />
<input type="hidden" name="police_level" id="police_level"
value="${police_level }" />
<input type="hidden" name="mypageNo" value="${mypageNo }" />
<input type="hidden" name="mypageSize" value="${mypageSize }" />
<div id="divTop">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dil.text.startTime_n81i</font>:
<input type="text" id="startTime" name="sTime"
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${sTime}"
onchange="checkDate();" />
--
<input type="text" id="endTime" name="eTime"
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${eTime}"
onchange="checkDate();" /></label>
&nbsp;&nbsp;&nbsp; <label class="divTopText"><font class="selectText">i18n_dil.text.status_n81i</font>:
<select id="status" name="status" style="width: 80px;">
<option value="">
i18n_dil.message.statusDefault_n81i
</option>
<option value="1"
<c:if test="${status =='1'}">selected="selected"</c:if>>
i18n_dil.message.normal_n81i
</option>
<option value="-1,0"
<c:if test="${status == '-1,0'}">selected="selected"</c:if>>
i18n_dil.message.abnormal_n81i
</option>
</select></label>
&nbsp;&nbsp;&nbsp;
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle" onclick="javascript:qry();" />
</div>
<div class="box_2">
<jsp:include page="/include/include.jsp" />
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
value="i18n_dil.button.back_n81i" />
</div>
</div>
<div id="maindiv">
<table cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.nodeIp_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.checkType_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.checkTypeName_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.state_n81i
</td>
<td width="8%" class="color_top_1">
i18n_dil.text.dataCheckTime_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.tryTimes_n81i
</td>
<td width="32%" class="color_8">
<c:choose>
<c:when test="${flag=='queryAllConfigLevel'||flag=='warning'}">i18n_dil.text.performaceData_n81i</c:when>
<c:otherwise>i18n_dil.text.stateInfo_n81i</c:otherwise>
</c:choose>
</td>
</tr>
<c:choose>
<c:when test="${fn:length(detectionInfoWarningList) > 0}">
<c:forEach items="${detectionInfoWarningList}"
var="detectionInfo" varStatus="index">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
<c:out value="${detectionInfo[0]}" />
</td>
<td class="${color }">
<!-- <a
href="javascript:showRecord('${detectionInfo[7] }','${detectionInfo[10] }')"
title="查看详情"> -->
<c:out value="${detectionInfo[1]}" />
<!-- </a> -->
</td>
<td class="${color }">
<c:out value="${detectionInfo[2]}" />
</td>
<td class="${color }">
<c:if test="${fn:trim(detectionInfo[3])=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
<td class="${color }">
<c:out value="${detectionInfo[4]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[5]}" />
</td>
<td class="${color_end }">
<div class="pop-content">
${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')}
</div>
</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="7" class="color_6" align="center">
i18n_dil.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty detectionInfoWarningList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter", "\n");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dil.message.title_n81i</title>
<style>
/* 自定义滚动条 */
.pop-content {
position:relative;
max-height:300px;
}
/* .pop-content::-webkit-scrollbar {
width:3px;
height:1px;
}
.pop-content::-webkit-scrollbar-thumb {
border-radius:5px;
-webkit-box-shadow:inset 0 0 2px #CCCCCC;
background:#CCCCCC;
}
.pop-content::-webkit-scrollbar-track {
-webkit-box-shadow:inset 0 0 2px #EDEDED;
background:white;
border-radius:5px;
} */
</style>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<link rel="stylesheet" type="text/css" href="<c:url value='/scrollBar/perfect-scrollbar.css'/>" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery1.11.3.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
<script language="javascript" type="text/javascript"
src="<c:url value="/scrollBar/perfect-scrollbar.js"/>"></script>
<script type="text/javascript">
//查询记录
function qry(){
document.form3.action = "<c:url value='monitorData.do?action=showDetectionInfo&date="+new Date()+"'/>";
document.form3.submit();
}
//查看详情
function showRecord(monid,cid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detailWarning&cId="+cid+"&ids="+monid+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
//绘制折线图
function drawPic(ctid,dsiId,id){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&sqId="+id+"&nodeType="+$("#nodeType").val()+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== "0"){
action ="<c:url value='/detection/detectionWarning.do?action=query'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== "1"){
action ="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== ""){//左下角动画报警
action ="<c:url value='/detection/detectionWarning.do?action=queryAll&warnType=leftWarn&police_emergent=0'/>";
}else if($("#flag").val()== "queryAllConfigLevel"){
action ="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";
} else if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
} else if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=${nodeType}&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
}
if($("#requestType").val()== "newTopo"){
console.log("ccccmmmmmmmmmmmmmmmm")
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
}
document.form3.action = action;
document.form3.submit();
}
function checkDate(){
var startTime = $("#startTime").val();
var endTime = $("#endTime").val();
if(startTime != "" && endTime!=""){
if(startTime > endTime){
alert("i18n_dil.message.checkDate_n81i");
$("#endTime").val("");
$("#endTime").focus();
}
}
}
$(function(){
$('.pop-content').each(function(){
var ps = new PerfectScrollbar(this);
})
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;clear:both;");
}else{
$("#info").attr("style","width:98.5%;clear:both;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;clear:both;");
}
$("#info").floatHeaderDiv();
// $("#info").attr("style","clear:left");
});
function ieBrowser(){
/* if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
} */
}
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var memoryData ;
var intervalID ;
var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数
var dsiId="${dsiId }";
var seqId="${sqId }";
$(document).ready(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
}else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID);
}
}
function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var urlTmp = encodeURI("<c:url value='monitorData!executeAction.do?action=showDetectionInfoChild'/>&dsiId="+dsiId+ "&sqId="+seqId+"&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&sTime="+$("#startTime").val()+"&eTime="+$("#endTime").val()+"&status="+$("#status").val()+"&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(
new Date()).toString()%>");
$.ajax({
url:urlTmp,
type : "get",
async:false,
success : function(data) {
$("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint);
$('.pop-content').each(function(){
var ps = new PerfectScrollbar(this);
})
}
});
loadButton();
}
//初始化级别的显示和隐藏
var emergentVal = jQuery('#police_emergent').val();
if(emergentVal!=undefined && emergentVal!=null) {//需要选择紧急 or 非紧急,就需要初始化级别的显示隐藏
changeEmergent();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
function changeEmergent() {
var selEmergVal = jQuery('#police_emergent').val();
if(selEmergVal=='1') {
jQuery('#levelSpan').show();
}else {
jQuery('#levelSpan').hide();
}
}
</script>
</head>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='monitorData.do?action=showDetectionInfo'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(
new Date()).toString()%>"
method="post" enctype="multipart/form-data">
<input type="hidden" name="pageNoforexp" id="pageNo"
value="${pageNo }" />
<!-- 查看检测设置历史记录 begin -->
<input type="hidden" name="dsiId" value="${dsiId }" />
<input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="flag" id="flag" value="${flag }" />
<input type="hidden" name="showHistory" value="${showHistory }" />
<input type="hidden" name="entry" value="${entry }" />
<input type="hidden" name="cip" value="${cip }" />
<!-- nodeType=1异常网元 nodeType=0:异常服务器 -->
<input type="hidden" value="${nodeType }" name="nodeType"
id="nodeType" />
<!-- 查看检测设置历史记录 end -->
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type" />
<!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" id="requestType" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<input type="hidden" name="detectId" id="detectId"
value="${detectId }" />
<input type="hidden" name="ip" id="ip" value="${ip }" />
<input type="hidden" name="pid" id="pid" value="${pid }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="pIden" id="pIden" value="${pIden }" />
<input type="hidden" name="dct" id="dct" value="${dct }" />
<input type="hidden" name="police_emergent" id="police_emergent"
value="${police_emergent }" />
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}"
id="nodeIpRange" />
<input type="hidden" name="nodeGroupStr" id="nodeGroupStr"
value="${nodeGroupStr }" />
<input type="hidden" name="police_level" id="police_level"
value="${police_level }" />
<input type="hidden" name="mypageNo" value="${mypageNo }" />
<input type="hidden" name="mypageSize" value="${mypageSize }" />
<div id="divTop">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dil.text.startTime_n81i</font>:
<input type="text" id="startTime" name="sTime"
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${sTime}"
onchange="checkDate();" />
--
<input type="text" id="endTime" name="eTime"
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${eTime}"
onchange="checkDate();" /></label>
&nbsp;&nbsp;&nbsp; <label class="divTopText"><font class="selectText">i18n_dil.text.status_n81i</font>:
<select id="status" name="status" style="width: 80px;">
<option value="">
i18n_dil.message.statusDefault_n81i
</option>
<option value="1"
<c:if test="${status =='1'}">selected="selected"</c:if>>
i18n_dil.message.normal_n81i
</option>
<option value="-1,0"
<c:if test="${status == '-1,0'}">selected="selected"</c:if>>
i18n_dil.message.abnormal_n81i
</option>
</select></label>
&nbsp;&nbsp;&nbsp;
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle" onclick="javascript:qry();" />
</div>
<div class="box_2">
<jsp:include page="/include/include.jsp" />
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
value="i18n_dil.button.back_n81i" />
</div>
</div>
<div id="maindiv">
<table cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.nodeIp_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.checkType_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.checkTypeName_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.state_n81i
</td>
<td width="8%" class="color_top_1">
i18n_dil.text.dataCheckTime_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_dil.text.tryTimes_n81i
</td>
<td width="32%" class="color_8">
<c:choose>
<c:when test="${flag=='queryAllConfigLevel'||flag=='warning'}">i18n_dil.text.performaceData_n81i</c:when>
<c:otherwise>i18n_dil.text.stateInfo_n81i</c:otherwise>
</c:choose>
</td>
</tr>
<c:choose>
<c:when test="${fn:length(detectionInfoWarningList) > 0}">
<c:forEach items="${detectionInfoWarningList}"
var="detectionInfo" varStatus="index">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
<c:out value="${detectionInfo[0]}" />
</td>
<td class="${color }">
<!-- <a
href="javascript:showRecord('${detectionInfo[7] }','${detectionInfo[10] }')"
title="查看详情"> -->
<c:out value="${detectionInfo[1]}" />
<!-- </a> -->
</td>
<td class="${color }">
<c:out value="${detectionInfo[2]}" />
</td>
<td class="${color }">
<c:if test="${fn:trim(detectionInfo[3])=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
<td class="${color }">
<c:out value="${detectionInfo[4]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[5]}" />
</td>
<td class="${color_end }">
<div class="pop-content">
${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')}
</div>
</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="7" class="color_6" align="center">
i18n_dil.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty detectionInfoWarningList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</body>
</html>

View File

@@ -1,57 +1,57 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter", "\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detectionInfoWarningList) > 0}">
<c:forEach items="${detectionInfoWarningList}" var="detectionInfo"
varStatus="index">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
<c:out value="${detectionInfo[0]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[1]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[2]}" />
</td>
<td class="${color }">
<c:if test="${fn:trim(detectionInfo[3])=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
<td class="${color }">
<c:out value="${detectionInfo[4]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[5]}" />
</td>
<td class="${color_end }">
<div class="pop-content">
${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')}
</div>
</td>
</tr>
</c:forEach>
</c:when>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter", "\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(detectionInfoWarningList) > 0}">
<c:forEach items="${detectionInfoWarningList}" var="detectionInfo"
varStatus="index">
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
<c:out value="${detectionInfo[0]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[1]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[2]}" />
</td>
<td class="${color }">
<c:if test="${fn:trim(detectionInfo[3])=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
<td class="${color }">
<c:out value="${detectionInfo[4]}" />
</td>
<td class="${color }">
<c:out value="${detectionInfo[5]}" />
</td>
<td class="${color_end }">
<div class="pop-content">
${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')}
</div>
</td>
</tr>
</c:forEach>
</c:when>
</c:choose>

View File

@@ -1,432 +1,432 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dmi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js/dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link>
<link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/highstock/highstock.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script>
<script>
$(function() {
$( "#tabs" ).tabs();
$( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵)
if(document.getElementById("tabs-1")){
$("a[dtype='cli']:eq(0)").trigger('click');
$("a[dtype='cli']:eq(0)").trigger('click');
}
});
//type为空是服务器检测菜单
//type=1:网元监测
//type=1异常网元
//showHistory不为空是查询监测历史记录
function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
}
if($("#showHistory").val()== "history"){
action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>";
}
if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
}
if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
}
if($("#requestType").val()== "newTopo"){
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
}
document.Mkform.action=action;
document.Mkform.submit();
}
//查询记录
function qry(){
var startTime = $("#startTime").val();
if(startTime==""){
alert("i18n_dmi.message.startTime_n81i");
return;
}
var endTime = $("#endTime").val();
if(endTime==""){
alert("i18n_dmi.message.endTime_n81i");
return;
}
var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值
var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份
start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较
var end=new Date(endTime.replace(/-/g,"/"));//结束时间
if(end<=start1){
alert("i18n_dmi.message.startGtEnd_n81i");
return;
}
if(end>start){
alert("i18n_dmi.message.intervalErr_n81i");
return;
}
var metaId= $("#mid").val();
var drwTo= $("#tabIndex").val();
getPicScorce(metaId,drwTo);
}
var chartObj;
var seriesOptions = [];
var policeValue;
var xtilte="";
var ytitle="";
function getPicScorce(metaid,drwTo){
$("#tabIndex").val(drwTo);
$("#mid").val(metaid);
if($('#tabsHidd-'+drwTo).val()=="0"){
$.ajax( {
url : "<%=path%>/detection/monitorData!getSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(),
type : "POST",
dataType : "json",
success : function(datas) {
if(datas!=null && datas.length>0){
//$('#tabsHidd-'+drwTo).val('1');
xtitle = datas[0].xtitle;//折线图标题
ytitle = datas[0].ytitle;
policeValue = datas[0].policeVal;
var lines = datas[0].lines;
seriesOptions[0] = {
name: lines[0].name,
data: lines[0].data
//color : '#0896E9'
};
createChart(policeValue,drwTo);
}else{
$("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dmi.message.noData_n81i');
}
}
})
}
}
function createChart(policeNum,dto) {
chartObj = new Highcharts.StockChart(
{
chart : {
renderTo : 'tabs-'+dto,//显示折线图的div的id
zoomType : 'x',
showAxes : true,
spacingRight : 20,
defaultSeriesType : 'area',//显示折线图的样式:区域显示
borderWidth: 1
},
navigator: {
height: 50,
margin: 50,
outlineColor: '#E0E0E0',
outlineWidth: 2,
xAxis: {
type : 'datetime',
labels: {
align: 'left',
x: 3,
y: -4
},
dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d',
week: '%Y-%m-%d',
month: '%Y-%m',
year: '%Y'
}
}
},
rangeSelector: {
buttons: [],
inputEnabled:false,
inputDateFormat:'%Y-%m-%d'
},
title : {
text : xtitle//折线图标题
},
subtitle : {
text : ''//这是副标题内容
},
xAxis : {
type : 'datetime',
//maxZoom : 1000 * 60 * 60 * 24 *14,
//startOfWeek: 50,
labels : {
rotation : 20,
y : 20,
x : 20
},
dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d',
week: '%Y-%m-%d',
month: '%Y-%m',
year: '%Y'
}
},
yAxis : {
title : {
text : ytitle//左侧标题
},
minorTickInterval: 'auto',
plotLines: [{
value: policeValue,
width: 2,
color: '#F24C52',
dashStyle: 'dash',
label: {
text: 'i18n_dmi.message.policeLine_n81i:('+policeNum+')',
align: 'right',
y: 8,
x: 0
}
}]/*,
plotBands: [{
from: 80,
to: 100,
color: '#F24C52'
}]*/
},
tooltip : {
borderColor : "#374E94",
backgroundColor : {
linearGradient : [ 0, 0, 0, 60 ],
stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ]
},
borderWidth : 1,
shared : true,
crosshairs : {
width : 1,
color : 'red'
},
formatter : function() {
var s = Highcharts.dateFormat("%Y-%m-%d %H:%M",
this.x) + ' [';
$.each(this.points, function(i, point) {
s += '<span style="color:#374E94">'
+ point.series.name
+ ':</span><span style="font-weight: bold;color:#F24C52">'
+ Highcharts.numberFormat(point.y,2) + '</span> ';//当鼠标放到一个点上时显示的y值
});
s = $.trim(s) + "]";
return s;
}
},
plotOptions:{
line:{
lineWidth : 1,
marker: {
radius: 2,
states: {
hover: {
radius: 3
}
}
}
},
area : {
fillColor : {
//linearGradient : [ 0, 0, 0, 200 ],
//stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ]
linearGradient : [ 0, 0, 30, 250 ],
stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ]
},
fillOpacity: 0.08,
lineWidth : 1,
shadow : true,
marker: {
radius: 3,
states: {
hover: {
radius: 5
}
}
}
}
},
exporting : {
buttons : {
exportButton : {
enabled : false
}
}
},
series : seriesOptions,//显示的数据
credits: {
enabled: false,
text: 'i18n_dmi.message.updateTheMark_n81i'
}
});
Highcharts.setOptions( {
global : {
useUTC : false
}
});
}
</script>
</head>
<body>
<form action="" name="Mkform" method="post">
<input type="hidden" name="cip" value="${cip }" />
<input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "isClick" name="isClick" value ="0"/>
<input type="hidden" id="" name="isSnmp" value="${isSnmp}"/>
<jsp:include page="/common/transferHiddenParameter.jsp" />
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="tabIndex" value=""/>
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type"/>
<input type="hidden" value="${flag }" name="flag" id="flag"/>
<input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/>
<!-- 来源于拓扑图 begin -->
<input type="hidden" id="requestType" name="requestType" value="${requestType }" />
<input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<!-- 是否为特种设备进入此页面 -->
<input type="hidden" name="entry" id="entry" value="${entry }"/>
<input type="hidden" name="detectId" id="detectId" value="${detectId }"/>
<input type="hidden" name="ip" id="ip" value="${ip }"/>
<input type="hidden" name="pid" id="pid" value="${pid }"/>
<!-- 查看监测设置历史记录 begin -->
<input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="sTime" value="${sTime }" />
<input type="hidden" name="eTime" value="${eTime }" />
<input type="hidden" name="status" value="${status }" />
<input type="hidden" name="showHistory" value="${showHistory }" id="showHistory"/>
<!-- 查看监测设置历史记录 end -->
<table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="table">
<tr>
<td class="color_8" colspan="2">
<strong>i18n_dmi.text.LineChart_n81i</strong>
</td>
</tr>
<tr>
<td class="box_1">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dmi.text.startTime_n81i</font>
<%--<%
Date d = new Date();
d.setDate(d.getDate()-7);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String st = sdf.format(d);
String et = sdf.format(new Date());
%>
--%><input type="text" id="startTime"
name="startTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<label class="divTopText"><font class="selectText">i18n_dmi.text.endTime_n81i</font>
<input type="text" id="endTime"
name="endTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color: red;">i18n_dmi.message.defaultMsg_n81i</span>
</td>
<td class="box_2">
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dmi.button.back_n81i"/>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<div id="tabs">
<c:set var="index" value="${1}" />
<c:set var="index1" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<ul>
<c:forEach items="${metadataList}" var="meta">
<c:if test="${meta.filedComments==''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedName}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:if test="${meta.filedComments!=''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedComments}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</ul>
<c:forEach items="${metadataList}" var="meta1">
<div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'>
</div>
<c:set var="index1" value="${index1 + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<span>i18n_dmi.text.noRecord_n81i</span>
</c:otherwise>
</c:choose>
</div>
</td>
</tr>
</table>
</form>
<br />
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dmi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js/dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link>
<link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/highstock/highstock.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script>
<script>
$(function() {
$( "#tabs" ).tabs();
$( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵)
if(document.getElementById("tabs-1")){
$("a[dtype='cli']:eq(0)").trigger('click');
$("a[dtype='cli']:eq(0)").trigger('click');
}
});
//type为空是服务器检测菜单
//type=1:网元监测
//type=1异常网元
//showHistory不为空是查询监测历史记录
function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
}
if($("#showHistory").val()== "history"){
action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>";
}
if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
}
if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
}
if($("#requestType").val()== "newTopo"){
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
}
document.Mkform.action=action;
document.Mkform.submit();
}
//查询记录
function qry(){
var startTime = $("#startTime").val();
if(startTime==""){
alert("i18n_dmi.message.startTime_n81i");
return;
}
var endTime = $("#endTime").val();
if(endTime==""){
alert("i18n_dmi.message.endTime_n81i");
return;
}
var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值
var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份
start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较
var end=new Date(endTime.replace(/-/g,"/"));//结束时间
if(end<=start1){
alert("i18n_dmi.message.startGtEnd_n81i");
return;
}
if(end>start){
alert("i18n_dmi.message.intervalErr_n81i");
return;
}
var metaId= $("#mid").val();
var drwTo= $("#tabIndex").val();
getPicScorce(metaId,drwTo);
}
var chartObj;
var seriesOptions = [];
var policeValue;
var xtilte="";
var ytitle="";
function getPicScorce(metaid,drwTo){
$("#tabIndex").val(drwTo);
$("#mid").val(metaid);
if($('#tabsHidd-'+drwTo).val()=="0"){
$.ajax( {
url : "<%=path%>/detection/monitorData!getSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(),
type : "POST",
dataType : "json",
success : function(datas) {
if(datas!=null && datas.length>0){
//$('#tabsHidd-'+drwTo).val('1');
xtitle = datas[0].xtitle;//折线图标题
ytitle = datas[0].ytitle;
policeValue = datas[0].policeVal;
var lines = datas[0].lines;
seriesOptions[0] = {
name: lines[0].name,
data: lines[0].data
//color : '#0896E9'
};
createChart(policeValue,drwTo);
}else{
$("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dmi.message.noData_n81i');
}
}
})
}
}
function createChart(policeNum,dto) {
chartObj = new Highcharts.StockChart(
{
chart : {
renderTo : 'tabs-'+dto,//显示折线图的div的id
zoomType : 'x',
showAxes : true,
spacingRight : 20,
defaultSeriesType : 'area',//显示折线图的样式:区域显示
borderWidth: 1
},
navigator: {
height: 50,
margin: 50,
outlineColor: '#E0E0E0',
outlineWidth: 2,
xAxis: {
type : 'datetime',
labels: {
align: 'left',
x: 3,
y: -4
},
dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d',
week: '%Y-%m-%d',
month: '%Y-%m',
year: '%Y'
}
}
},
rangeSelector: {
buttons: [],
inputEnabled:false,
inputDateFormat:'%Y-%m-%d'
},
title : {
text : xtitle//折线图标题
},
subtitle : {
text : ''//这是副标题内容
},
xAxis : {
type : 'datetime',
//maxZoom : 1000 * 60 * 60 * 24 *14,
//startOfWeek: 50,
labels : {
rotation : 20,
y : 20,
x : 20
},
dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d',
week: '%Y-%m-%d',
month: '%Y-%m',
year: '%Y'
}
},
yAxis : {
title : {
text : ytitle//左侧标题
},
minorTickInterval: 'auto',
plotLines: [{
value: policeValue,
width: 2,
color: '#F24C52',
dashStyle: 'dash',
label: {
text: 'i18n_dmi.message.policeLine_n81i:('+policeNum+')',
align: 'right',
y: 8,
x: 0
}
}]/*,
plotBands: [{
from: 80,
to: 100,
color: '#F24C52'
}]*/
},
tooltip : {
borderColor : "#374E94",
backgroundColor : {
linearGradient : [ 0, 0, 0, 60 ],
stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ]
},
borderWidth : 1,
shared : true,
crosshairs : {
width : 1,
color : 'red'
},
formatter : function() {
var s = Highcharts.dateFormat("%Y-%m-%d %H:%M",
this.x) + ' [';
$.each(this.points, function(i, point) {
s += '<span style="color:#374E94">'
+ point.series.name
+ ':</span><span style="font-weight: bold;color:#F24C52">'
+ Highcharts.numberFormat(point.y,2) + '</span> ';//当鼠标放到一个点上时显示的y值
});
s = $.trim(s) + "]";
return s;
}
},
plotOptions:{
line:{
lineWidth : 1,
marker: {
radius: 2,
states: {
hover: {
radius: 3
}
}
}
},
area : {
fillColor : {
//linearGradient : [ 0, 0, 0, 200 ],
//stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ]
linearGradient : [ 0, 0, 30, 250 ],
stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ]
},
fillOpacity: 0.08,
lineWidth : 1,
shadow : true,
marker: {
radius: 3,
states: {
hover: {
radius: 5
}
}
}
}
},
exporting : {
buttons : {
exportButton : {
enabled : false
}
}
},
series : seriesOptions,//显示的数据
credits: {
enabled: false,
text: 'i18n_dmi.message.updateTheMark_n81i'
}
});
Highcharts.setOptions( {
global : {
useUTC : false
}
});
}
</script>
</head>
<body>
<form action="" name="Mkform" method="post">
<input type="hidden" name="cip" value="${cip }" />
<input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "isClick" name="isClick" value ="0"/>
<input type="hidden" id="" name="isSnmp" value="${isSnmp}"/>
<jsp:include page="/common/transferHiddenParameter.jsp" />
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="tabIndex" value=""/>
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type"/>
<input type="hidden" value="${flag }" name="flag" id="flag"/>
<input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/>
<!-- 来源于拓扑图 begin -->
<input type="hidden" id="requestType" name="requestType" value="${requestType }" />
<input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<!-- 是否为特种设备进入此页面 -->
<input type="hidden" name="entry" id="entry" value="${entry }"/>
<input type="hidden" name="detectId" id="detectId" value="${detectId }"/>
<input type="hidden" name="ip" id="ip" value="${ip }"/>
<input type="hidden" name="pid" id="pid" value="${pid }"/>
<!-- 查看监测设置历史记录 begin -->
<input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="sTime" value="${sTime }" />
<input type="hidden" name="eTime" value="${eTime }" />
<input type="hidden" name="status" value="${status }" />
<input type="hidden" name="showHistory" value="${showHistory }" id="showHistory"/>
<!-- 查看监测设置历史记录 end -->
<table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="table">
<tr>
<td class="color_8" colspan="2">
<strong>i18n_dmi.text.LineChart_n81i</strong>
</td>
</tr>
<tr>
<td class="box_1">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dmi.text.startTime_n81i</font>
<%--<%
Date d = new Date();
d.setDate(d.getDate()-7);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String st = sdf.format(d);
String et = sdf.format(new Date());
%>
--%><input type="text" id="startTime"
name="startTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<label class="divTopText"><font class="selectText">i18n_dmi.text.endTime_n81i</font>
<input type="text" id="endTime"
name="endTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color: red;">i18n_dmi.message.defaultMsg_n81i</span>
</td>
<td class="box_2">
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dmi.button.back_n81i"/>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<div id="tabs">
<c:set var="index" value="${1}" />
<c:set var="index1" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<ul>
<c:forEach items="${metadataList}" var="meta">
<c:if test="${meta.filedComments==''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedName}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:if test="${meta.filedComments!=''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedComments}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</ul>
<c:forEach items="${metadataList}" var="meta1">
<div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'>
</div>
<c:set var="index1" value="${index1 + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<span>i18n_dmi.text.noRecord_n81i</span>
</c:otherwise>
</c:choose>
</div>
</td>
</tr>
</table>
</form>
<br />
</body>
</html>

View File

@@ -1,498 +1,498 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dsmi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js/dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link>
<link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript"src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/highcharts.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script>
<script>
$(function() {
$( "#tabs" ).tabs();
$( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵)
if(document.getElementById("tabs-1")){
$("a[dtype='cli']:eq(0)").trigger('click');
$("a[dtype='cli']:eq(0)").trigger('click');//只调用一次时曲线x轴的时间和实际时间差8个小时调用2次就没问题了
}
$("#ok").click(function() {
var result = "";
var num = $(".checks:checked").size();
if(num>5){
alert("i18n_dsmi.message.selectToDraw1_n81i");
return;
}else{
$(".checks:checked").each(function() {
var lable = $(this).closest("label");
result += lable.attr("ids")+',';
});
if (result == "") {
alert("i18n_dsmi.message.selectTodraw2_n81i");
return;
} else {
var metaId= $("#mid").val();
var drwTo= $("#tabIndex").val();
getPicScorce(metaId,drwTo,result);
//清空选择
//$(".checks").removeAttr("checked");
//resetBg();
}
}
})
$("#clear").click(function() {
$(".checks").removeAttr("checked");
resetBg();
})
$(".checks").click(function() {
resetBg();
})
});
function resetBg() {
$(".checks").each(function() {
var label = $(this).closest("label");
if ($(this).is(":checked")) {
label.css("background-Color", "#B5C19B");
} else {
label.css("background-Color", "");
}
})
}
//type为空是服务器检测菜单
//type=1:网元监测
//type=1异常网元
//showHistory不为空是查询监测历史记录
function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
}
if($("#showHistory").val()== "history"){
action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>";
}
if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
}
if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
}
if($("#requestType").val()== "newTopo"){
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
}
document.Mkform.action=action;
document.Mkform.submit();
}
//查询记录
function qry(){
var startTime = $("#startTime").val();
if(startTime==""){
alert("i18n_dsmi.message.startTime_n81i");
return;
}
var endTime = $("#endTime").val();
if(endTime==""){
alert("i18n_dsmi.message.endTime_n81i");
return;
}
var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值
var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份
start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较
var end=new Date(endTime.replace(/-/g,"/"));//结束时间
if(end<=start1){
alert("i18n_dsmi.message.startGtEnd_n81i");
return;
}
if(end>start){
alert("i18n_dsmi.message.intervalErr_n81i");
return;
}
$("#ok").click();
}
var seriesOptions = [];
var policeValue;
var xtilte="";
var ytitle="";
function getPicScorce(metaid,drwTo,lns){
$("#tabIndex").val(drwTo);
$("#mid").val(metaid);
seriesOptions = [];//清空数据源
$.ajax( {
url : "<%=path%>/detection/monitorData!getSnmpSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&lns="+lns+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(),
type : "POST",
dataType : "json",
success : function(datas) {
if(datas!=null){
$('#tabsHidd-'+drwTo).val('1');
xtitle = datas[0].xtitle;
ytitle = datas[0].ytitle;
policeValue = datas[0].policeVal;
var lines = datas[1].lines;
if(lines[0].data == null || lines[0].data == ""){
$("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i');
}else{
$.each(lines, function(k, da) {
seriesOptions[k] = {
name: da.name,
data: da.data
};
createChart(policeValue,drwTo);
});
}
}else{
$("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i');
}
}
})
}
function createChart(policeNum,dto) {
var chartObj = new Highcharts.Chart(
{
chart : {
renderTo : 'tabs-'+dto,
zoomType : 'x',
showAxes : true,
spacingRight : 20,
defaultSeriesType : 'line',
borderWidth: 1
},
title : {
text : xtitle
},
subtitle : {
text : ''//这是副标题内容
},
xAxis : {
type : 'datetime',
//maxZoom : 1000 * 60 * 60 * 24 *14,
//startOfWeek: 50,
labels : {
rotation : 20,
y : 20,
x : 20
},
dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d',
week: '%Y-%m-%d',
month: '%Y-%m',
year: '%Y'
}
},
yAxis : {
title : {
text : ytitle
},
minorTickInterval: 'auto',
min:0,
plotLines: [{
value: policeValue,
width: 2,
color: '#F24C52',
dashStyle: 'dash',
label: {
text: 'i18n_dsmi.message.policyLine_n81i:('+policeNum+')',
align: 'right',
y: 8,
x: 0
}
}]/*,
plotBands: [{
from: 80,
to: 100,
color: '#F24C52'
}]*/
},
tooltip : {
borderColor : "#374E94",
backgroundColor : {
linearGradient : [ 0, 0, 0, 60 ],
stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ]
},
borderWidth : 1,
shared : true,
crosshairs : {
width : 1,
color : 'red'
},
formatter : function() {
var s = Highcharts.dateFormat("%Y-%m-%d %H:%M",
this.x) + ' [';
$.each(this.points, function(i, point) {
s += '<span style="color:#374E94">'
+ point.series.name
+ ':</span><span style="font-weight: bold;color:#F24C52">'
+ point.y + '</span> ';
});
s = $.trim(s) + "]";
return s;
}
},
plotOptions:{
line:{
lineWidth : 1,
marker: {
radius: 2,
states: {
hover: {
radius: 3
}
}
}
},
area : {
fillColor : {
//linearGradient : [ 0, 0, 0, 200 ],
//stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ]
linearGradient : [ 0, 0, 30, 250 ],
stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ]
},
fillOpacity: 0.08,
lineWidth : 1,
shadow : true,
marker: {
radius: 3,
states: {
hover: {
radius: 5
}
}
}
}
},
exporting : {
buttons : {
exportButton : {
enabled : false
}
}
},
series : seriesOptions,
credits: {
enabled: false,
text: 'i18n_dsmi.message.updateTheMark_n81i'
}
});
Highcharts.setOptions( {
global : {
useUTC : false
}
});
}
</script>
</head>
<body>
<form action="" name="Mkform" method="post">
<input type="hidden" name="cip" value="${cip }" />
<input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="detectionSetInfoId" id="detectionSetInfoId" value="${detectionSetInfoId }">
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/>
<input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "isClick" name="isClick" value ="0"/>
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="tabIndex" value=""/>
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type"/>
<input type="hidden" value="${flag }" name="flag" id="flag"/>
<input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/>
<!-- 来源于拓扑图 begin -->
<input type="hidden" id="requestType" name="requestType" value="${requestType }" />
<input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<!-- 是否为特种设备进入此页面 -->
<input type="hidden" name="entry" id="entry" value="${entry }"/>
<input type="hidden" name="detectId" id="detectId" value="${detectId }"/>
<input type="hidden" name="ip" id="ip" value="${ip }"/>
<input type="hidden" name="pid" id="pid" value="${pid }"/>
<!-- 查看监测设置历史记录 begin -->
<input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="sTime" value="${sTime }" />
<input type="hidden" name="eTime" value="${eTime }" />
<input type="hidden" name="status" value="${status }" />
<input type="hidden" name="showHistory" value="${showHistory }" id="showHistory" />
<!-- 查看监测设置历史记录 end -->
<jsp:include page="/common/transferHiddenParameter.jsp" />
<table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="table">
<tr>
<td class="color_8">
<strong>i18n_dsmi.message.title_n81i</strong>
</td>
</tr>
<tr>
<td class="box_1">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dsmi.text.startTime_n81i</font>
<%--<%
Date d = new Date();
d.setDate(d.getDate()-7);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String st = sdf.format(d);
String et = sdf.format(new Date());
%>
--%><input type="text" id="startTime"
name="startTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<label class="divTopText"><font class="selectText">i18n_dsmi.text.endTime_n81i</font>
<input type="text" id="endTime"
name="endTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color: red;">i18n_dsmi.message.defaultMsg_n81i</span>
</td>
<td class="box_2">
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dsmi.button.back_n81i"/>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<div id="tabs">
<c:set var="index" value="${1}" />
<c:set var="index1" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<ul>
<c:forEach items="${metadataList}" var="meta">
<c:if test="${meta.filedComments==''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedName}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:if test="${meta.filedComments!=''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedComments}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</ul>
<!-- 画图用的div -->
<c:forEach items="${metadataList}" var="meta1">
<div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'>
</div>
<c:set var="index1" value="${index1 + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<span>i18n_dsmi.text.noRecord_n81i</span>
</c:otherwise>
</c:choose>
</div>
<div id="listDiv"
style="margin:5px 0px;background-color: #d3eaef; text-align:left;overflow: auto;border:1px solid gray;">
<c:choose>
<c:when test="${fn:length(dataList) > 0}">
<table width="100%" align="left" border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;">
<c:set var="numPerRow" value="${6}" />
<c:forEach items="${dataList}" var="item" varStatus="num">
<c:if test="${num.count%numPerRow==1}">
<tr>
</c:if>
<td align="left" width="10%" style="">
<label class="item" title="${item}" ids="${item}"style="text-overflow: ellipsis; overflow: hidden;padding-left: 5px;">
<input class="checks" type="checkbox" value="${item}"/>
${item}
</label>
</td>
<c:if test="${num.count%numPerRow==0}">
</tr>
</c:if>
</c:forEach>
<c:if test="${fn:length(dataList)%numPerRow!=0}">
</tr>
</c:if>
</table>
</c:when>
<c:otherwise>
<span>i18n_dsmi.textnoClassify_n81i</span>
</c:otherwise>
</c:choose>
<span style=" text-align: left;">
<br/>
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
id="clear" value="i18n_dsmi.button.clearSelected_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
id="ok" value="i18n_dsmi.button.sure_n81i"/>
</span>
</div>
</td>
</tr>
</table>
</form>
<br />
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dsmi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/js/dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link>
<link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript"src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/highcharts.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script>
<script>
$(function() {
$( "#tabs" ).tabs();
$( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵)
if(document.getElementById("tabs-1")){
$("a[dtype='cli']:eq(0)").trigger('click');
$("a[dtype='cli']:eq(0)").trigger('click');//只调用一次时曲线x轴的时间和实际时间差8个小时调用2次就没问题了
}
$("#ok").click(function() {
var result = "";
var num = $(".checks:checked").size();
if(num>5){
alert("i18n_dsmi.message.selectToDraw1_n81i");
return;
}else{
$(".checks:checked").each(function() {
var lable = $(this).closest("label");
result += lable.attr("ids")+',';
});
if (result == "") {
alert("i18n_dsmi.message.selectTodraw2_n81i");
return;
} else {
var metaId= $("#mid").val();
var drwTo= $("#tabIndex").val();
getPicScorce(metaId,drwTo,result);
//清空选择
//$(".checks").removeAttr("checked");
//resetBg();
}
}
})
$("#clear").click(function() {
$(".checks").removeAttr("checked");
resetBg();
})
$(".checks").click(function() {
resetBg();
})
});
function resetBg() {
$(".checks").each(function() {
var label = $(this).closest("label");
if ($(this).is(":checked")) {
label.css("background-Color", "#B5C19B");
} else {
label.css("background-Color", "");
}
})
}
//type为空是服务器检测菜单
//type=1:网元监测
//type=1异常网元
//showHistory不为空是查询监测历史记录
function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
}
if($("#showHistory").val()== "history"){
action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>";
}
if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
}
if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
}
if($("#requestType").val()== "newTopo"){
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
}
document.Mkform.action=action;
document.Mkform.submit();
}
//查询记录
function qry(){
var startTime = $("#startTime").val();
if(startTime==""){
alert("i18n_dsmi.message.startTime_n81i");
return;
}
var endTime = $("#endTime").val();
if(endTime==""){
alert("i18n_dsmi.message.endTime_n81i");
return;
}
var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值
var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份
start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较
var end=new Date(endTime.replace(/-/g,"/"));//结束时间
if(end<=start1){
alert("i18n_dsmi.message.startGtEnd_n81i");
return;
}
if(end>start){
alert("i18n_dsmi.message.intervalErr_n81i");
return;
}
$("#ok").click();
}
var seriesOptions = [];
var policeValue;
var xtilte="";
var ytitle="";
function getPicScorce(metaid,drwTo,lns){
$("#tabIndex").val(drwTo);
$("#mid").val(metaid);
seriesOptions = [];//清空数据源
$.ajax( {
url : "<%=path%>/detection/monitorData!getSnmpSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&lns="+lns+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(),
type : "POST",
dataType : "json",
success : function(datas) {
if(datas!=null){
$('#tabsHidd-'+drwTo).val('1');
xtitle = datas[0].xtitle;
ytitle = datas[0].ytitle;
policeValue = datas[0].policeVal;
var lines = datas[1].lines;
if(lines[0].data == null || lines[0].data == ""){
$("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i');
}else{
$.each(lines, function(k, da) {
seriesOptions[k] = {
name: da.name,
data: da.data
};
createChart(policeValue,drwTo);
});
}
}else{
$("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i');
}
}
})
}
function createChart(policeNum,dto) {
var chartObj = new Highcharts.Chart(
{
chart : {
renderTo : 'tabs-'+dto,
zoomType : 'x',
showAxes : true,
spacingRight : 20,
defaultSeriesType : 'line',
borderWidth: 1
},
title : {
text : xtitle
},
subtitle : {
text : ''//这是副标题内容
},
xAxis : {
type : 'datetime',
//maxZoom : 1000 * 60 * 60 * 24 *14,
//startOfWeek: 50,
labels : {
rotation : 20,
y : 20,
x : 20
},
dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d',
week: '%Y-%m-%d',
month: '%Y-%m',
year: '%Y'
}
},
yAxis : {
title : {
text : ytitle
},
minorTickInterval: 'auto',
min:0,
plotLines: [{
value: policeValue,
width: 2,
color: '#F24C52',
dashStyle: 'dash',
label: {
text: 'i18n_dsmi.message.policyLine_n81i:('+policeNum+')',
align: 'right',
y: 8,
x: 0
}
}]/*,
plotBands: [{
from: 80,
to: 100,
color: '#F24C52'
}]*/
},
tooltip : {
borderColor : "#374E94",
backgroundColor : {
linearGradient : [ 0, 0, 0, 60 ],
stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ]
},
borderWidth : 1,
shared : true,
crosshairs : {
width : 1,
color : 'red'
},
formatter : function() {
var s = Highcharts.dateFormat("%Y-%m-%d %H:%M",
this.x) + ' [';
$.each(this.points, function(i, point) {
s += '<span style="color:#374E94">'
+ point.series.name
+ ':</span><span style="font-weight: bold;color:#F24C52">'
+ point.y + '</span> ';
});
s = $.trim(s) + "]";
return s;
}
},
plotOptions:{
line:{
lineWidth : 1,
marker: {
radius: 2,
states: {
hover: {
radius: 3
}
}
}
},
area : {
fillColor : {
//linearGradient : [ 0, 0, 0, 200 ],
//stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ]
linearGradient : [ 0, 0, 30, 250 ],
stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ]
},
fillOpacity: 0.08,
lineWidth : 1,
shadow : true,
marker: {
radius: 3,
states: {
hover: {
radius: 5
}
}
}
}
},
exporting : {
buttons : {
exportButton : {
enabled : false
}
}
},
series : seriesOptions,
credits: {
enabled: false,
text: 'i18n_dsmi.message.updateTheMark_n81i'
}
});
Highcharts.setOptions( {
global : {
useUTC : false
}
});
}
</script>
</head>
<body>
<form action="" name="Mkform" method="post">
<input type="hidden" name="cip" value="${cip }" />
<input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="detectionSetInfoId" id="detectionSetInfoId" value="${detectionSetInfoId }">
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/>
<input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "isClick" name="isClick" value ="0"/>
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="tabIndex" value=""/>
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type"/>
<input type="hidden" value="${flag }" name="flag" id="flag"/>
<input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/>
<!-- 来源于拓扑图 begin -->
<input type="hidden" id="requestType" name="requestType" value="${requestType }" />
<input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<!-- 是否为特种设备进入此页面 -->
<input type="hidden" name="entry" id="entry" value="${entry }"/>
<input type="hidden" name="detectId" id="detectId" value="${detectId }"/>
<input type="hidden" name="ip" id="ip" value="${ip }"/>
<input type="hidden" name="pid" id="pid" value="${pid }"/>
<!-- 查看监测设置历史记录 begin -->
<input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="sTime" value="${sTime }" />
<input type="hidden" name="eTime" value="${eTime }" />
<input type="hidden" name="status" value="${status }" />
<input type="hidden" name="showHistory" value="${showHistory }" id="showHistory" />
<!-- 查看监测设置历史记录 end -->
<jsp:include page="/common/transferHiddenParameter.jsp" />
<table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="table">
<tr>
<td class="color_8">
<strong>i18n_dsmi.message.title_n81i</strong>
</td>
</tr>
<tr>
<td class="box_1">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dsmi.text.startTime_n81i</font>
<%--<%
Date d = new Date();
d.setDate(d.getDate()-7);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String st = sdf.format(d);
String et = sdf.format(new Date());
%>
--%><input type="text" id="startTime"
name="startTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<label class="divTopText"><font class="selectText">i18n_dsmi.text.endTime_n81i</font>
<input type="text" id="endTime"
name="endTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color: red;">i18n_dsmi.message.defaultMsg_n81i</span>
</td>
<td class="box_2">
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dsmi.button.back_n81i"/>
</div>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<div id="tabs">
<c:set var="index" value="${1}" />
<c:set var="index1" value="${1}" />
<c:choose>
<c:when test="${fn:length(metadataList) > 0}">
<ul>
<c:forEach items="${metadataList}" var="meta">
<c:if test="${meta.filedComments==''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedName}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:if test="${meta.filedComments!=''}">
<li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedComments}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/>
</li>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</ul>
<!-- 画图用的div -->
<c:forEach items="${metadataList}" var="meta1">
<div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'>
</div>
<c:set var="index1" value="${index1 + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<span>i18n_dsmi.text.noRecord_n81i</span>
</c:otherwise>
</c:choose>
</div>
<div id="listDiv"
style="margin:5px 0px;background-color: #d3eaef; text-align:left;overflow: auto;border:1px solid gray;">
<c:choose>
<c:when test="${fn:length(dataList) > 0}">
<table width="100%" align="left" border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;">
<c:set var="numPerRow" value="${6}" />
<c:forEach items="${dataList}" var="item" varStatus="num">
<c:if test="${num.count%numPerRow==1}">
<tr>
</c:if>
<td align="left" width="10%" style="">
<label class="item" title="${item}" ids="${item}"style="text-overflow: ellipsis; overflow: hidden;padding-left: 5px;">
<input class="checks" type="checkbox" value="${item}"/>
${item}
</label>
</td>
<c:if test="${num.count%numPerRow==0}">
</tr>
</c:if>
</c:forEach>
<c:if test="${fn:length(dataList)%numPerRow!=0}">
</tr>
</c:if>
</table>
</c:when>
<c:otherwise>
<span>i18n_dsmi.textnoClassify_n81i</span>
</c:otherwise>
</c:choose>
<span style=" text-align: left;">
<br/>
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
id="clear" value="i18n_dsmi.button.clearSelected_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
id="ok" value="i18n_dsmi.button.sure_n81i"/>
</span>
</div>
</td>
</tr>
</table>
</form>
<br />
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,348 +1,348 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_mil.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>"
rel="stylesheet" type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>"
type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script>
<script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/monitorData.do?action=query";
document.form3.submit();
}
//查看详情
function showRecord(monid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid;
document.form3.submit();
}
//绘制折线图
function drawPic(ctid,dsiId,ip){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip;
document.form3.submit();
}
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
var set_Id;
var ajaxProperties = "";
var ajaxTableName = "";
var ajaxType = "";
var id = "";
var returnDiv = "";
var ajaxValue = "";
function lianxiangkeydown() {
clearTimeout(set_Id);
}
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2")
{
if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1;
id = id1;
returnDiv = returnDiv1;
ajaxValue = ajaxValue1;
clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500);
}
}
function ajaxForLianxiang()
{
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{
var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
});
}
jQuery(function(){
$("#info").floatHeaderDiv();
})
</script>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/monitorData.do'/>" method="post">
<table width="99%" align="center" align="center" cellpadding="0"
cellspacing="1" class="ta_color">
<div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr>
<td colspan="10">
<table width="100%" border="0" cellpadding="0" cellspacing="1"
class="ta_color">
<tr class="td_color">
<jsp:include page="/include/include.jsp"></jsp:include>
</tr>
<tr align="left">
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.hostName_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1"> &nbsp;&nbsp;<input type="text"
id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_mil.message.hostName_n81i" value="${nodeIp}" size="20" />
</span>
<div id='suggest1' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.checkType_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1">
&nbsp;&nbsp;
<input type="text" id="checkTypeName"
onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);"
name="checkTypeName"
title="i18n_mil.message.checkType_n81i"
value="${checkTypeName}" size="20" />
</span>
<div id='suggest2' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color">
<div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>"
align="center" onclick="javascript:qry()"
border="0" />
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_mil.text.hostName_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_mil.text.checkType_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_mil.text.processIdenName_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.status_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.dataCheckTime_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.persistTime_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.tryTimes_n81i</span>
</div>
</td>
<td width="22%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.stateInfo_n81i</span>
</div>
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupList) > 0}">
<c:forEach items="${nodeIpGroupList}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="detecNewInfo"
varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if>
<c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a
href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img
src="${pageContext.request.contextPath }/img/action.gif"
border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<!--
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<input type="checkbox" name="ids" id="ids"
value="${detecNewInfo.id}" />
<span class="STYLE1">${index+(pageNo-1)*pageSize}</span>
</div>
</td>
-->
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')">
<img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="10" height="20" align="center" class="color_6">
i18n_mil.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
<tr>
<td height="20" colspan="10" class="td_color">
<jsp:include page="/common/page.jsp" /></td>
</tr>
</table>
</form>
<br />
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_mil.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>"
rel="stylesheet" type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>"
type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script>
<script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/monitorData.do?action=query";
document.form3.submit();
}
//查看详情
function showRecord(monid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid;
document.form3.submit();
}
//绘制折线图
function drawPic(ctid,dsiId,ip){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip;
document.form3.submit();
}
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
var set_Id;
var ajaxProperties = "";
var ajaxTableName = "";
var ajaxType = "";
var id = "";
var returnDiv = "";
var ajaxValue = "";
function lianxiangkeydown() {
clearTimeout(set_Id);
}
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2")
{
if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1;
id = id1;
returnDiv = returnDiv1;
ajaxValue = ajaxValue1;
clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500);
}
}
function ajaxForLianxiang()
{
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{
var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
});
}
jQuery(function(){
$("#info").floatHeaderDiv();
})
</script>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/monitorData.do'/>" method="post">
<table width="99%" align="center" align="center" cellpadding="0"
cellspacing="1" class="ta_color">
<div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr>
<td colspan="10">
<table width="100%" border="0" cellpadding="0" cellspacing="1"
class="ta_color">
<tr class="td_color">
<jsp:include page="/include/include.jsp"></jsp:include>
</tr>
<tr align="left">
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.hostName_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1"> &nbsp;&nbsp;<input type="text"
id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_mil.message.hostName_n81i" value="${nodeIp}" size="20" />
</span>
<div id='suggest1' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.checkType_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1">
&nbsp;&nbsp;
<input type="text" id="checkTypeName"
onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);"
name="checkTypeName"
title="i18n_mil.message.checkType_n81i"
value="${checkTypeName}" size="20" />
</span>
<div id='suggest2' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color">
<div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>"
align="center" onclick="javascript:qry()"
border="0" />
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_mil.text.hostName_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_mil.text.checkType_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_mil.text.processIdenName_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.status_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.dataCheckTime_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.persistTime_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.tryTimes_n81i</span>
</div>
</td>
<td width="22%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_mil.text.stateInfo_n81i</span>
</div>
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupList) > 0}">
<c:forEach items="${nodeIpGroupList}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="detecNewInfo"
varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if>
<c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a
href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img
src="${pageContext.request.contextPath }/img/action.gif"
border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<!--
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<input type="checkbox" name="ids" id="ids"
value="${detecNewInfo.id}" />
<span class="STYLE1">${index+(pageNo-1)*pageSize}</span>
</div>
</td>
-->
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')">
<img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="10" height="20" align="center" class="color_6">
i18n_mil.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
<tr>
<td height="20" colspan="10" class="td_color">
<jsp:include page="/common/page.jsp" /></td>
</tr>
</table>
</form>
<br />
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,286 +1,286 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a>
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_milnc.message.handshake_n81i'}">
<c:set var="handshake" value="true" />
</c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a>
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_milnc.message.handshake_n81i'}">
<c:set var="handshake" value="true" />
</c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,193 +1,193 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="2" end="9">
<c:set var="dniId" value="${rowData[1] }" />
<c:set var="ctiId" value="${rowData[12] }" />
<c:set var="dsiId" value="${rowData[11] }" />
<c:set var="nodeIp" value="${rowData[2] }" />
<c:set var="sqId" value="${rowData[13] }" />
<c:set var="nodeSysType" value="${rowData[14] }" />
<c:set var="charStateNum" value="${rowData[15] }" />
<c:set var="nodeType" value="${rowData[16] }" />
<c:choose>
<c:when test="${ind.index eq 2}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a>
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if test="${fn:trim(cellData) ne '1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 9}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="2" end="9">
<c:set var="dniId" value="${rowData[1] }" />
<c:set var="ctiId" value="${rowData[12] }" />
<c:set var="dsiId" value="${rowData[11] }" />
<c:set var="nodeIp" value="${rowData[2] }" />
<c:set var="sqId" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[15] }" />
<c:choose>
<c:when test="${ind.index eq 2}">
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if test="${fn:trim(cellData) ne '1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 9}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="2" end="9">
<c:set var="dniId" value="${rowData[1] }" />
<c:set var="ctiId" value="${rowData[12] }" />
<c:set var="dsiId" value="${rowData[11] }" />
<c:set var="nodeIp" value="${rowData[2] }" />
<c:set var="sqId" value="${rowData[13] }" />
<c:set var="nodeSysType" value="${rowData[14] }" />
<c:set var="charStateNum" value="${rowData[15] }" />
<c:set var="nodeType" value="${rowData[16] }" />
<c:choose>
<c:when test="${ind.index eq 2}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a>
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if test="${fn:trim(cellData) ne '1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 9}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="2" end="9">
<c:set var="dniId" value="${rowData[1] }" />
<c:set var="ctiId" value="${rowData[12] }" />
<c:set var="dsiId" value="${rowData[11] }" />
<c:set var="nodeIp" value="${rowData[2] }" />
<c:set var="sqId" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[15] }" />
<c:choose>
<c:when test="${ind.index eq 2}">
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if test="${fn:trim(cellData) ne '1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 9}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,286 +1,286 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a>
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_mnelc.message.handshake_n81i'}">
<c:set var="handshake" value="true" />
</c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a
href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a>
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_mnelc.message.handshake_n81i'}">
<c:set var="handshake" value="true" />
</c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>

View File

@@ -1,415 +1,415 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_qe.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script type="text/javascript">
//绘制折线图
//页面5分钟刷新一次
var interval;
$(function(){
interval = setInterval('qry()',5*60*1000);
})
function clear(){
clearInterval(interval);
}
function drawPic(ctid,dsiId,id){
clear();
var mypageNo = $("#currentPage").html();
var mypageSize = $("#newPageSize").val();
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&flag=queryEmergent"+"&sqId="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
function showDetectionInfo(dsiId,seqId){
clear();
var mypageNo = $("#currentPage").html();
var mypageSize = $("#newPageSize").val();
$("#newPageSize").attr("disabled","true");
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=showDetectionInfo&dsiId="+dsiId+"&sqId="+seqId+"&flag=queryEmergent"+"&mypageNo="+mypageNo+"&mypageSize="+mypageSize;
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
if(dh==0){
location.reload();
}
var dhh = dh-30+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var memoryData ;
var intervalID ;
var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数
$(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
intervalID = setInterval(function(){cando();},800);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
}else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID);
}
}
function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var url2="<c:url value='/detection/monitorData.do?action=queryEmergentChild'/>&pageNo="+(++pagePoint)+"&pageSize="+'${pageSize }'+"&requestType=topo&nodeGroupId="+'${nodeGroupId }';
var urlTmp = encodeURI(url2);
$.ajax({
url:urlTmp,
type : "get",
async:false,
success : function(data) {
var resultHtml = $(data);
var parentLastIpTd = $("td[rowspan]:last");
var childFirstIpTd = $(resultHtml).find("td[rowspan]:first");
var pLastIp = $(parentLastIpTd).text().trim();
var cFirstIp = $(childFirstIpTd).text().trim();
if (pLastIp == cFirstIp) {
$(parentLastIpTd).attr("rowspan", $(parentLastIpTd).attr("rowspan")+$(childFirstIpTd).attr("rowspan"));
$(resultHtml).children("td[rowspan]:first").remove();
}
$("#info").append($(resultHtml));//用append方法追加内容到mypage元素。
//$("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint);
}
});
loadButton();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
/*--------------控制表格输出长度--------------------*/
$(function(){
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='monitorData.do?action=queryEmergent'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()).toString()%>"
method="post" enctype="multipart/form-data">
<input type="hidden" name="pageNoforexp" id="pageNo"
value="${pageNo }" />
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type" />
<!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<div id="maindiv">
<table cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="8%" class="color_top_1" nowrap>
i18n_qe.text.nodeIp_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_qe.text.checkType_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_qe.text.processIdenName_n81i
</td>
<td width="6%" class="color_top_1" nowrap>
i18n_qe.text.state_n81i
</td>
<td width="8%" class="color_top_1">
i18n_qe.text.dataCheckTime_n81i
</td>
<td width="8%" class="color_top_1">
i18n_qe.text.persistTime_n81i
</td>
<td width="5%" class="color_top_1" nowrap>
i18n_qe.text.tryTimes_n81i
</td>
<td width="25%" class="color_8">
i18n_qe.text.stateInfo_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<c:out
value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_qe.message.handshake_n81i'}" var="handshake"></c:if>
<c:out value="${cellData}" default="" /> &nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a
href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_qe.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" />
</a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"
title="i18n_qe.button.drawPic_n81i"> <img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
<!--<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
-->
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img border="0"
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" class="color_6" align="center">
i18n_qe.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty nodeIpGroupListNew}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
<span id="infoTipSpan" class="infoTip" style="display:none;"></span>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_qe.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script type="text/javascript">
//绘制折线图
//页面5分钟刷新一次
var interval;
$(function(){
interval = setInterval('qry()',5*60*1000);
})
function clear(){
clearInterval(interval);
}
function drawPic(ctid,dsiId,id){
clear();
var mypageNo = $("#currentPage").html();
var mypageSize = $("#newPageSize").val();
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&flag=queryEmergent"+"&sqId="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit();
}
function showDetectionInfo(dsiId,seqId){
clear();
var mypageNo = $("#currentPage").html();
var mypageSize = $("#newPageSize").val();
$("#newPageSize").attr("disabled","true");
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=showDetectionInfo&dsiId="+dsiId+"&sqId="+seqId+"&flag=queryEmergent"+"&mypageNo="+mypageNo+"&mypageSize="+mypageSize;
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
if(dh==0){
location.reload();
}
var dhh = dh-30+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var memoryData ;
var intervalID ;
var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数
$(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
intervalID = setInterval(function(){cando();},800);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
}else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID);
}
}
function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var url2="<c:url value='/detection/monitorData.do?action=queryEmergentChild'/>&pageNo="+(++pagePoint)+"&pageSize="+'${pageSize }'+"&requestType=topo&nodeGroupId="+'${nodeGroupId }';
var urlTmp = encodeURI(url2);
$.ajax({
url:urlTmp,
type : "get",
async:false,
success : function(data) {
var resultHtml = $(data);
var parentLastIpTd = $("td[rowspan]:last");
var childFirstIpTd = $(resultHtml).find("td[rowspan]:first");
var pLastIp = $(parentLastIpTd).text().trim();
var cFirstIp = $(childFirstIpTd).text().trim();
if (pLastIp == cFirstIp) {
$(parentLastIpTd).attr("rowspan", $(parentLastIpTd).attr("rowspan")+$(childFirstIpTd).attr("rowspan"));
$(resultHtml).children("td[rowspan]:first").remove();
}
$("#info").append($(resultHtml));//用append方法追加内容到mypage元素。
//$("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint);
}
});
loadButton();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
/*--------------控制表格输出长度--------------------*/
$(function(){
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='monitorData.do?action=queryEmergent'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()).toString()%>"
method="post" enctype="multipart/form-data">
<input type="hidden" name="pageNoforexp" id="pageNo"
value="${pageNo }" />
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type" />
<!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end -->
<div id="maindiv">
<table cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="8%" class="color_top_1" nowrap>
i18n_qe.text.nodeIp_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_qe.text.checkType_n81i
</td>
<td width="8%" class="color_top_1" nowrap>
i18n_qe.text.processIdenName_n81i
</td>
<td width="6%" class="color_top_1" nowrap>
i18n_qe.text.state_n81i
</td>
<td width="8%" class="color_top_1">
i18n_qe.text.dataCheckTime_n81i
</td>
<td width="8%" class="color_top_1">
i18n_qe.text.persistTime_n81i
</td>
<td width="5%" class="color_top_1" nowrap>
i18n_qe.text.tryTimes_n81i
</td>
<td width="25%" class="color_8">
i18n_qe.text.stateInfo_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<c:out
value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_qe.message.handshake_n81i'}" var="handshake"></c:if>
<c:out value="${cellData}" default="" /> &nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a
href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_qe.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" />
</a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"
title="i18n_qe.button.drawPic_n81i"> <img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
<!--<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
-->
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img border="0"
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" class="color_6" align="center">
i18n_qe.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty nodeIpGroupListNew}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
<span id="infoTipSpan" class="infoTip" style="display:none;"></span>
</body>
</html>

View File

@@ -1,296 +1,296 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<c:out
value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_qec.message.handshake_n81i'}" var="handshake"></c:if>
<c:out value="${cellData}" default="" /> &nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a
href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_qec.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" />
</a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"
title="i18n_qec.button.drawPic_n81i"> <img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
<!--<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
-->
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img border="0"
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<c:out
value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_qec.message.handshake_n81i'}" var="handshake"></c:if>
<c:out value="${cellData}" default="" /> &nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a
href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_qec.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" />
</a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"
title="i18n_qec.button.drawPic_n81i"> <img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a>
</c:if>
<!--<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
-->
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}">
<img border="0"
src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).text(infoVal);
}
}
});
</script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,161 +1,161 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_sp.message.title_n81i</title>
<script type='text/javascript' src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<style type="text/css">
body{
font-size:12px;
}
.item {
display: block;
float: left;
margin: 1px;
}
</style>
<script type="text/javascript">
$(function() {
$("#clearQuery").click(function() {
$("#query").val("");
$(".item").show();
})
//multi
$("#query").keyup(function(key) {
var str = $(this).val();
query(str);
})
$("#ok").click(function() {
var result = "";
var num = $(".checks:checked").size();
if(num>5){
alert("i18n_sp.message.selectToDraw_n81i");
return;
}else{
$(".checks:checked").each(function() {
var lable = $(this).closest("label");
result += lable.attr("ids")+',';
});
if (result == "") {
alert("i18n_sp.message.selectTodrawID_n81i");
return;
} else {
//parent.window.returnValue = result;
var ctId= $("#ctid").val();
var disId= $("#did").val();
var metaId= $("#mid").val();
var seqId= $("#seqId").val();
var drwTo= $("#drIndex").val();
//var resu = window.opener.dialogArguments;
var resu = $(window.parent.document).find("#I3")[0].contentWindow;
//alert("父窗体引用:"+resu);
resu.getPicScorce(metaId,disId,ctId,seqId,result,drwTo)
}
layclose();
}
})
$("#clear").click(function() {
$(".checks").removeAttr("checked");
resetBg();
})
$("#cancel").click(function() {
layclose();
})
$(".checks").click(function() {
resetBg();
})
})
$(function() {
$("#query").focus();
})
function layclose() {
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
}
function resetBg() {
$(".checks").each(function() {
var label = $(this).closest("label");
if ($(this).is(":checked")) {
label.css("background-Color", "#B5C19B");
} else {
label.css("background-Color", "");
}
})
}
function query(str) {
if ($.trim(str) == "") {
$(".item").show();
} else {
$(".item").hide();
$(".item[title^='" + str + "']").show();
}
}
</script>
</head>
<body>
<form action="" name="Mkform" method="post">
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="drIndex" name="drIndex" value="${drIndex}"/>
<table class="STYLE1" width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr style="">
<td style="padding: 5px 0px 0px 5px">
i18n_sp.text.query_n81i
<input type="text" id="query"
style="height: 15px; border: solid 1px; border-right-width: 0px;" />
<span title="清空" id="clearQuery"
style="cursor: pointer; margin-left: -3px; border: solid 1px; border-left-width: 0px; padding: 2px 5px 0px 5px">×</span>
&nbsp;&nbsp;i18n_sp.message.query_n81i
</td>
</tr>
<tr>
<td>
<div id="listDiv"
style="margin:5px 0px;background-color: #d3eaef; height: 260px; overflow: auto;border:1px solid gray;">
<c:forEach items="${dataList}" var="item">
<label class="item" title="${item}" ids="${item}"style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden; width: 120px;">
<input class="checks" type="checkbox" value="${item}"/>
${item}
</label>
</c:forEach>
</div>
</td>
</tr>
<tr>
<td style="padding: 0px 5px">
<input class="btn" style="width: 80px;float:left" id="clear"
type="button" value="i18n_sp.button.clear_n81i" />
<input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="ok" type="button"
value="i18n_sp.button.ok_n81i" />
<input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="cancel" type="button"
value="i18n_sp.button.cancel_n81i" />
</td>
</tr>
</table>
</form>
</body>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_sp.message.title_n81i</title>
<script type='text/javascript' src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<style type="text/css">
body{
font-size:12px;
}
.item {
display: block;
float: left;
margin: 1px;
}
</style>
<script type="text/javascript">
$(function() {
$("#clearQuery").click(function() {
$("#query").val("");
$(".item").show();
})
//multi
$("#query").keyup(function(key) {
var str = $(this).val();
query(str);
})
$("#ok").click(function() {
var result = "";
var num = $(".checks:checked").size();
if(num>5){
alert("i18n_sp.message.selectToDraw_n81i");
return;
}else{
$(".checks:checked").each(function() {
var lable = $(this).closest("label");
result += lable.attr("ids")+',';
});
if (result == "") {
alert("i18n_sp.message.selectTodrawID_n81i");
return;
} else {
//parent.window.returnValue = result;
var ctId= $("#ctid").val();
var disId= $("#did").val();
var metaId= $("#mid").val();
var seqId= $("#seqId").val();
var drwTo= $("#drIndex").val();
//var resu = window.opener.dialogArguments;
var resu = $(window.parent.document).find("#I3")[0].contentWindow;
//alert("父窗体引用:"+resu);
resu.getPicScorce(metaId,disId,ctId,seqId,result,drwTo)
}
layclose();
}
})
$("#clear").click(function() {
$(".checks").removeAttr("checked");
resetBg();
})
$("#cancel").click(function() {
layclose();
})
$(".checks").click(function() {
resetBg();
})
})
$(function() {
$("#query").focus();
})
function layclose() {
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
}
function resetBg() {
$(".checks").each(function() {
var label = $(this).closest("label");
if ($(this).is(":checked")) {
label.css("background-Color", "#B5C19B");
} else {
label.css("background-Color", "");
}
})
}
function query(str) {
if ($.trim(str) == "") {
$(".item").show();
} else {
$(".item").hide();
$(".item[title^='" + str + "']").show();
}
}
</script>
</head>
<body>
<form action="" name="Mkform" method="post">
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="drIndex" name="drIndex" value="${drIndex}"/>
<table class="STYLE1" width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr style="">
<td style="padding: 5px 0px 0px 5px">
i18n_sp.text.query_n81i
<input type="text" id="query"
style="height: 15px; border: solid 1px; border-right-width: 0px;" />
<span title="清空" id="clearQuery"
style="cursor: pointer; margin-left: -3px; border: solid 1px; border-left-width: 0px; padding: 2px 5px 0px 5px">×</span>
&nbsp;&nbsp;i18n_sp.message.query_n81i
</td>
</tr>
<tr>
<td>
<div id="listDiv"
style="margin:5px 0px;background-color: #d3eaef; height: 260px; overflow: auto;border:1px solid gray;">
<c:forEach items="${dataList}" var="item">
<label class="item" title="${item}" ids="${item}"style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden; width: 120px;">
<input class="checks" type="checkbox" value="${item}"/>
${item}
</label>
</c:forEach>
</div>
</td>
</tr>
<tr>
<td style="padding: 0px 5px">
<input class="btn" style="width: 80px;float:left" id="clear"
type="button" value="i18n_sp.button.clear_n81i" />
<input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="ok" type="button"
value="i18n_sp.button.ok_n81i" />
<input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="cancel" type="button"
value="i18n_sp.button.cancel_n81i" />
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -1,293 +1,293 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:set var="type" value="${rowData[2]}" />
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a href="javascript:void(0);" name="${cellData}"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)">
<c:out value="${cellData}" default="" />
</a>
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_smilc.message.handshake_n81i'}">
<c:set var="handshake" value="true" />
</c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type=='i18n_smilc.message.handshake_n81i' }"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type!='i18n_smilc.message.handshake_n81i' }">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().replace("<br>","").replace("<br/>","").trim();
if(infoVal.length>50){
$(stateInfos[i]).html(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).html(infoVal);
}
}
});
</script>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n");
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:set var="type" value="${rowData[2]}" />
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a href="javascript:void(0);" name="${cellData}"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)">
<c:out value="${cellData}" default="" />
</a>
</td>
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<c:if test="${cellData == 'i18n_smilc.message.handshake_n81i'}">
<c:set var="handshake" value="true" />
</c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type=='i18n_smilc.message.handshake_n81i' }"
var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type!='i18n_smilc.message.handshake_n81i' }">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" />
<c:choose>
<c:when test="${ind.index eq 1}">
</c:when>
<c:when test="${ind.index eq 2}">
<td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td>
</c:when>
<c:when test="${ind.index eq 3}">
<td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}">
<a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img
src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 4}">
<td class="color_1_1">
<c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" />
</c:if>
<c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" />
</c:if>
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" />
</c:if>
</td>
</c:when>
<c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}...
</c:if>
<c:if test="${fn:length(stateInfo) < 50}">
${stateInfo}
</c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span>
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td>
</c:otherwise>
</c:choose>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/
$(function(){
$(".prop").each(function(){
var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){
event = event ? event : window.event;
$(".popover").remove();
var x = event.clientX;//鼠标位置
var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) {
var placement = "bottom";
} else {
var placement = "top";
}
$(obj).popover({
html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement
});
$(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") {
if (propy1 < popy2) {
$(pop).css("top", propy1 - 3);
}
} else if (placement == "bottom") {
if (propy2 > popy1) {
$(pop).css("top", propy2 + 3);
}
}
}).on("mouseleave",function(event){
event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置
var y = event.clientY;
if (y < ty/2) {
var extraTop = 3;
var extraBottom = 0;
} else {
var extraTop = 0;
var extraBottom = 3;
}
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide");
} else {
$(pop).on("mouseleave",function(event){
$(obj).popover("hide");
});
}
});
});
var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().replace("<br>","").replace("<br/>","").trim();
if(infoVal.length>50){
$(stateInfos[i]).html(infoVal.substring(0,50)).append("...");
}else{
$(stateInfos[i]).html(infoVal);
}
}
});
</script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,349 +1,349 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_vil.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>"
rel="stylesheet" type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>"
type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script>
<script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/monitorData.do?action=query";
document.form3.submit();
}
//查看详情
function showRecord(monid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid;
document.form3.submit();
}
//绘制折线图
function drawPic(ctid,dsiId,ip){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip;
document.form3.submit();
}
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
var set_Id;
var ajaxProperties = "";
var ajaxTableName = "";
var ajaxType = "";
var id = "";
var returnDiv = "";
var ajaxValue = "";
function lianxiangkeydown() {
clearTimeout(set_Id);
}
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2")
{
if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1;
id = id1;
returnDiv = returnDiv1;
ajaxValue = ajaxValue1;
clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500);
}
}
function ajaxForLianxiang()
{
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{
var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
});
}
</script>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/monitorData.do'/>" method="post">
<table width="99%" align="center" align="center" cellpadding="0"
cellspacing="1" class="ta_color">
<div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr>
<td colspan="10">
<table width="100%" border="0" cellpadding="0" cellspacing="1"
class="ta_color">
<tr class="td_color">
<jsp:include page="/include/include.jsp"></jsp:include>
</tr>
<tr align="left">
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.hostName_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1"> &nbsp;&nbsp;<input type="text"
id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_vil.message.hostName_n81i" value="${nodeIp}" size="20" />
</span>
<div id='suggest1' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.checkType_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1">
&nbsp;&nbsp;
<input type="text" id="checkTypeName"
onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);"
name="checkTypeName"
title="i18n_vil.message.checkType_n81i"
value="${checkTypeName}" size="20" />
</span>
<div id='suggest2' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color">
<div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>"
align="center" onclick="javascript:qry()"
border="0" />
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_vil.text.hostName_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_vil.text.checkType_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_vil.text.processIdenName_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.state_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.dataCheckTime_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.persistTime_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.tryTimes_n81i</span>
</div>
</td>
<td width="22%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.stateInfo_n81i</span>
</div>
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(vnodeIpGroupList) > 0}">
<c:forEach items="${vnodeIpGroupList}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="detecNewInfo"
varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if>
<c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a
href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img
src="${pageContext.request.contextPath }/img/action.gif"
border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<!--
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<input type="checkbox" name="ids" id="ids"
value="${detecNewInfo.id}" />
<span class="STYLE1">${index+(pageNo-1)*pageSize}</span>
</div>
</td>
-->
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')">
<img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='0'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='-1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="10" height="20" bgcolor="#FFFFFF">
<div align="center">
<span class="STYLE1">i18n_vil.text.noRecord_n81i${fn:length(vnodeIpGroupList)}</span>
</div>
</td>
</tr>
</c:otherwise>
</c:choose>
<tr>
<td height="20" colspan="10" class="td_color">
<jsp:include page="/common/page.jsp" /></td>
</tr>
</table>
</form>
<br />
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_vil.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>"
rel="stylesheet" type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>"
type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script>
<script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/monitorData.do?action=query";
document.form3.submit();
}
//查看详情
function showRecord(monid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid;
document.form3.submit();
}
//绘制折线图
function drawPic(ctid,dsiId,ip){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip;
document.form3.submit();
}
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
var set_Id;
var ajaxProperties = "";
var ajaxTableName = "";
var ajaxType = "";
var id = "";
var returnDiv = "";
var ajaxValue = "";
function lianxiangkeydown() {
clearTimeout(set_Id);
}
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2")
{
if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1;
id = id1;
returnDiv = returnDiv1;
ajaxValue = ajaxValue1;
clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500);
}
}
function ajaxForLianxiang()
{
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{
var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
});
}
</script>
<body>
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/monitorData.do'/>" method="post">
<table width="99%" align="center" align="center" cellpadding="0"
cellspacing="1" class="ta_color">
<div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr>
<td colspan="10">
<table width="100%" border="0" cellpadding="0" cellspacing="1"
class="ta_color">
<tr class="td_color">
<jsp:include page="/include/include.jsp"></jsp:include>
</tr>
<tr align="left">
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.hostName_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1"> &nbsp;&nbsp;<input type="text"
id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_vil.message.hostName_n81i" value="${nodeIp}" size="20" />
</span>
<div id='suggest1' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color" nowrap>
<div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.checkType_n81i : </span>
</div>
</td>
<td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left">
<span class="STYLE1">
&nbsp;&nbsp;
<input type="text" id="checkTypeName"
onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);"
name="checkTypeName"
title="i18n_vil.message.checkType_n81i"
value="${checkTypeName}" size="20" />
</span>
<div id='suggest2' class="ac_results"></div>
</div>
</td>
<td height="20" class="td_color">
<div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>"
align="center" onclick="javascript:qry()"
border="0" />
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="10%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_vil.text.hostName_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_vil.text.checkType_n81i</span>
</div>
</td>
<td width="8%" class="td_color" nowrap>
<div align="center">
<span class="STYLE1">i18n_vil.text.processIdenName_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.state_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.dataCheckTime_n81i</span>
</div>
</td>
<td width="10%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.persistTime_n81i</span>
</div>
</td>
<td width="5%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.tryTimes_n81i</span>
</div>
</td>
<td width="22%" class="td_color">
<div align="center">
<span class="STYLE1">i18n_vil.text.stateInfo_n81i</span>
</div>
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(vnodeIpGroupList) > 0}">
<c:forEach items="${vnodeIpGroupList}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="detecNewInfo"
varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if>
<c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a
href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img
src="${pageContext.request.contextPath }/img/action.gif"
border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<!--
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<input type="checkbox" name="ids" id="ids"
value="${detecNewInfo.id}" />
<span class="STYLE1">${index+(pageNo-1)*pageSize}</span>
</div>
</td>
-->
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')">
<img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='0'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='-1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if>
</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div>
</td>
<td bgcolor="#FFFFFF">
<div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div>
</td>
</tr>
</c:if>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="10" height="20" bgcolor="#FFFFFF">
<div align="center">
<span class="STYLE1">i18n_vil.text.noRecord_n81i${fn:length(vnodeIpGroupList)}</span>
</div>
</td>
</tr>
</c:otherwise>
</c:choose>
<tr>
<td height="20" colspan="10" class="td_color">
<jsp:include page="/common/page.jsp" /></td>
</tr>
</table>
</form>
<br />
</body>
</html>

View File

@@ -1,115 +1,115 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_aod.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
if($id("odid","","OID")&& $id("oddesc","","i18n_aod.message.oddesc_n81i")){
if(checkOID($("#odid").val())){//验证code是否为数字
document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doAdd";
document.Mkform.submit()
}else{
$("#oidFont").text("i18n_aod.message.oidFont_n81i");
$("#odid").val("");
$("#odid").focus();
return;
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query";
document.Mkform.submit();
}
//验证oid
function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="2" class="color_8">
<strong>i18n_aod.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
OID
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oid" id="odid"/>
<font id="oidFont" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_aod.message.oddesc_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oidDesc"
id="oddesc"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_aod.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_aod.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_aod.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_aod.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
if($id("odid","","OID")&& $id("oddesc","","i18n_aod.message.oddesc_n81i")){
if(checkOID($("#odid").val())){//验证code是否为数字
document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doAdd";
document.Mkform.submit()
}else{
$("#oidFont").text("i18n_aod.message.oidFont_n81i");
$("#odid").val("");
$("#odid").focus();
return;
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query";
document.Mkform.submit();
}
//验证oid
function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="2" class="color_8">
<strong>i18n_aod.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
OID
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oid" id="odid"/>
<font id="oidFont" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_aod.message.oddesc_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oidDesc"
id="oddesc"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_aod.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_aod.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_aod.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,138 +1,138 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_odl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript">
function addRecord(){
document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form1.submit();
}
function updateRecord(id){
document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openUpdate&odid="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form1.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
</script>
</head>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form1 id="form1" action="<c:url value='/detection/oidDictionary.do'/>" method="post" >
<!--中间部分右边开始-->
<div id="divTop">
<div class="box_1">
&nbsp;
</div>
<div class="box_2">&nbsp;<jsp:include page="/include/include.jsp" /></div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td class="color_top" width="4%">
i18n_odl.text.index_n81i
</td>
<td class="color_top" width="8%">
OID
</td>
<td class="color_top" width="8%">
i18n_odl.text.oddesc_n81i
</td>
<td class="color_8" width="12%">
i18n_odl.text.option_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(oidDictionaryList) > 0}">
<c:forEach items="${oidDictionaryList}" var="aui" varStatus="vs">
<input type="hidden" id="erbh${aui.id }"
name="erbh${aui.id }" value="${aui.id}" />
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${aui.oid}
</td>
<td class="${color }">
${aui.oidDesc}
</td>
<td class="${color_end }">
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp;
<a href="javascript:updateRecord('${aui.id}')">i18n_odl.message.updateRecord_n81i</a>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="4" height="35" class="color_6" align="center">
i18n_odl.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty oidDictionaryList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
<!--中间部分右边结束-->
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_odl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript">
function addRecord(){
document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form1.submit();
}
function updateRecord(id){
document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openUpdate&odid="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form1.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
</script>
</head>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form1 id="form1" action="<c:url value='/detection/oidDictionary.do'/>" method="post" >
<!--中间部分右边开始-->
<div id="divTop">
<div class="box_1">
&nbsp;
</div>
<div class="box_2">&nbsp;<jsp:include page="/include/include.jsp" /></div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td class="color_top" width="4%">
i18n_odl.text.index_n81i
</td>
<td class="color_top" width="8%">
OID
</td>
<td class="color_top" width="8%">
i18n_odl.text.oddesc_n81i
</td>
<td class="color_8" width="12%">
i18n_odl.text.option_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(oidDictionaryList) > 0}">
<c:forEach items="${oidDictionaryList}" var="aui" varStatus="vs">
<input type="hidden" id="erbh${aui.id }"
name="erbh${aui.id }" value="${aui.id}" />
<c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${aui.oid}
</td>
<td class="${color }">
${aui.oidDesc}
</td>
<td class="${color_end }">
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp;
<a href="javascript:updateRecord('${aui.id}')">i18n_odl.message.updateRecord_n81i</a>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="4" height="35" class="color_6" align="center">
i18n_odl.message.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty oidDictionaryList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
<!--中间部分右边结束-->
</form>
</div>
</body>
</html>

View File

@@ -1,116 +1,116 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uod.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function sub(){
if($id("oid","","OID")&& $id("desc","","i18n_uod.message.oiddesc_n81i")){
if(checkOID($("#oid").val())){//验证code是否为数字
document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doUpdate";
document.Mkform.submit();
}else{
$("#oidFont").text("i18n_uod.message.oidFont_n81i");
$("#oid").val("");
$("#oid").focus();
return;
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query";
document.Mkform.submit();
}
//验证oid
function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="od.id" value="${od.id }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="2" class="color_8">
<strong>i18n_uod.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
OID
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oid" id="oid" value="${od.oid }"/>
<font id="oidFont" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_uod.message.oiddesc_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oidDesc"
id="desc" value="${od.oidDesc}"/>
<font id="troubleInfo" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="sub()"
value="i18n_uod.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uod.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uod.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uod.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
function sub(){
if($id("oid","","OID")&& $id("desc","","i18n_uod.message.oiddesc_n81i")){
if(checkOID($("#oid").val())){//验证code是否为数字
document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doUpdate";
document.Mkform.submit();
}else{
$("#oidFont").text("i18n_uod.message.oidFont_n81i");
$("#oid").val("");
$("#oid").focus();
return;
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query";
document.Mkform.submit();
}
//验证oid
function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid);
return resu;
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="od.id" value="${od.id }" />
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="2" class="color_8">
<strong>i18n_uod.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
OID
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oid" id="oid" value="${od.oid }"/>
<font id="oidFont" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_uod.message.oiddesc_n81i
</td>
<td class="color_3" width="30%" align="left">
<input type="text" name="od.oidDesc"
id="desc" value="${od.oidDesc}"/>
<font id="troubleInfo" color="red">*</font>
</td>
</tr>
<tr>
<td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="sub()"
value="i18n_uod.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uod.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uod.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,290 +1,290 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_apr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
if($id("metadataId","xz","i18n_apr.message.metadata_n81i")&&$id("policeValue","","i18n_apr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_apr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_apr.message.policeSymbols_n81i")
&& $id("policeEmergent","xz","i18n_apr.message.policeEmergent_n81i")
&& $id("policeLevel","sz","i18n_apr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val();
var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){
boo = true;
}else{
$("#pl").text("i18n_apr.message.policeLevelInfo_n81i");
return;
}
}
if(boo){
if(poliMsg!=""){
if(poliMsg.length >200){
$("#Msg").text("i18n_apr.message.inputInfo_n81i");
return;
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit();
}
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit();
}
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit();
}
jQuery(function(){
//-- 字段类型选择事件绑定
jQuery("#metadataId").change(function(){
$("#policeSymbols").find("option").not($("#che")[0]).remove();
var filedType = $("#metadataId").find("option:selected").attr('id');
if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").append("<option value='equals'>equals</option><option value='include' >include</option><option value='exclude' >exclude</option>");
}else{
$("#policeSymbols").append("<option value='>' >&gt;</option><option value='<' >&lt;</option><option value='>=' >&gt;=</option><option value='<=' >&lt;=</option><option value='=' >=</option>");
}
});
})
function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val('');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
jQuery('#marker').val('');
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${ip}" name="ip"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_apr.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_apr.message.metadata_n81i
</td>
<td class="color_6" width="30%" align="left" >
<select name="dataPoliceRelation.metadata.id" id="metadataId" style="width: 153px;">
<option value="" id="qxz">
i18n_apr.message.metadataDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_apr.text.policeState_n81i
</td>
<td class="color_6" align="left">
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" checked="checked"/>i18n_apr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" />i18n_apr.message.invalid_n81i
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_apr.text.markerFiled_n81i
</td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz">
i18n_apr.message.markerFiledDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
</td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_apr.text.marker_n81i
</td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker"
id="marker" value=""/><font color="red" > i18n_apr.message.marker_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_apr.message.policeEmergent_n81i
</td>
<td class="color_3" align="left" colspan="3" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value="">
i18n_apr.message.metadataDefault_n81i
</option>
<c:if test="${fn:length(allpoliceEmergent) > 0}">
<c:forEach items="${allpoliceEmergent}" var="policeEmergent">
<option value="${policeEmergent.typeCode}" >
${policeEmergent.typeValue}
</option>
</c:forEach>
</c:if>
<%--<option value="0" >allpoliceEmergent
紧急
</option>
<option value="1" >
非紧急
</option>
--%></select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="levelTitleTd" style="display: none;">
i18n_apr.text.policeLevel_n81i
</td>
<td class="color_3" align="left" id="levelValTd" style="display: none;">
<input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value=""/>
<font id="pl" color="red">*i18n_apr.message.policeLevelInfo_n81i</font>
</td>
</tr>
<tr id = "pv">
<td class="color_1" align="right">
i18n_apr.message.policeValue_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value=""/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_apr.message.policeUnit_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value=""/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_apr.message.policeSymbols_n81i
</td>
<td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value="" id="che">
i18n_apr.message.metadataDefault_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_apr.text.policeShowInfo_n81i
</td>
<td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo"></textarea>
<div><font color="red" id="Msg">i18n_apr.message.policeShowInfo_n81i</font></div>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_apr.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_apr.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${detectionSetInfo.id})" value="i18n_apr.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_apr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function add(){
if($id("metadataId","xz","i18n_apr.message.metadata_n81i")&&$id("policeValue","","i18n_apr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_apr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_apr.message.policeSymbols_n81i")
&& $id("policeEmergent","xz","i18n_apr.message.policeEmergent_n81i")
&& $id("policeLevel","sz","i18n_apr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val();
var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){
boo = true;
}else{
$("#pl").text("i18n_apr.message.policeLevelInfo_n81i");
return;
}
}
if(boo){
if(poliMsg!=""){
if(poliMsg.length >200){
$("#Msg").text("i18n_apr.message.inputInfo_n81i");
return;
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit();
}
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit();
}
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit();
}
jQuery(function(){
//-- 字段类型选择事件绑定
jQuery("#metadataId").change(function(){
$("#policeSymbols").find("option").not($("#che")[0]).remove();
var filedType = $("#metadataId").find("option:selected").attr('id');
if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").append("<option value='equals'>equals</option><option value='include' >include</option><option value='exclude' >exclude</option>");
}else{
$("#policeSymbols").append("<option value='>' >&gt;</option><option value='<' >&lt;</option><option value='>=' >&gt;=</option><option value='<=' >&lt;=</option><option value='=' >=</option>");
}
});
})
function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val('');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
jQuery('#marker').val('');
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${ip}" name="ip"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_apr.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_apr.message.metadata_n81i
</td>
<td class="color_6" width="30%" align="left" >
<select name="dataPoliceRelation.metadata.id" id="metadataId" style="width: 153px;">
<option value="" id="qxz">
i18n_apr.message.metadataDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_apr.text.policeState_n81i
</td>
<td class="color_6" align="left">
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" checked="checked"/>i18n_apr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" />i18n_apr.message.invalid_n81i
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_apr.text.markerFiled_n81i
</td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz">
i18n_apr.message.markerFiledDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
</td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_apr.text.marker_n81i
</td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker"
id="marker" value=""/><font color="red" > i18n_apr.message.marker_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_apr.message.policeEmergent_n81i
</td>
<td class="color_3" align="left" colspan="3" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value="">
i18n_apr.message.metadataDefault_n81i
</option>
<c:if test="${fn:length(allpoliceEmergent) > 0}">
<c:forEach items="${allpoliceEmergent}" var="policeEmergent">
<option value="${policeEmergent.typeCode}" >
${policeEmergent.typeValue}
</option>
</c:forEach>
</c:if>
<%--<option value="0" >allpoliceEmergent
紧急
</option>
<option value="1" >
非紧急
</option>
--%></select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="levelTitleTd" style="display: none;">
i18n_apr.text.policeLevel_n81i
</td>
<td class="color_3" align="left" id="levelValTd" style="display: none;">
<input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value=""/>
<font id="pl" color="red">*i18n_apr.message.policeLevelInfo_n81i</font>
</td>
</tr>
<tr id = "pv">
<td class="color_1" align="right">
i18n_apr.message.policeValue_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value=""/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_apr.message.policeUnit_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value=""/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_apr.message.policeSymbols_n81i
</td>
<td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value="" id="che">
i18n_apr.message.metadataDefault_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_apr.text.policeShowInfo_n81i
</td>
<td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo"></textarea>
<div><font color="red" id="Msg">i18n_apr.message.policeShowInfo_n81i</font></div>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_apr.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_apr.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${detectionSetInfo.id})" value="i18n_apr.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,312 +1,312 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_prl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_prl.message.success_n81i");
}else if(msg=='2'){
alert("i18n_prl.message.faild_n81i");
}
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/policeSet.do?action=query";
document.form3.submit();
}
function checkZF(id){
if(containSpecial($("#"+id).val())){
alert('i18n_prl.message.hasSpecialChar_n81i');
$("#"+id).val('');
return;
}
}
//添加记录
function add(){
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openAdd";
document.form3.submit();
}
//修改记录
function upd(){
if(!isRigthCheck("ids", "edit")){
alert("i18n_prl.message.select_n81i");
}else{
var detectionSetInfoId = $("input:checked").next().val();
var policeRelationId = $("input:checked").val();
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openUpdate&detectionSetInfoId="+detectionSetInfoId+"&policeRelationId="+policeRelationId;
document.form3.submit();
}
}
function goBack(){
window.location="<%=path%>/detection/detectionSet.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&ip="+'${ip}'+"&ctn="+'${ctn}'+"&pIden="+'${pIden}';
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
if('${setId}'==null||'${setId}'==""){
$("input[type=hidden][name=pIden]").remove();
$("input[type=hidden][name=ctn]").remove();
$("input[type=hidden][name=ip]").remove();
}
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
$(function(){
var spanObj=$("span[class='STYLE1']");
for(var i=0;i<spanObj.length;i++){
var spanVal=$(spanObj[i]).text().trim();;
console.log(spanVal);
if(spanVal.length>=25){
$(spanObj[i]).text(spanVal.substring(0,25)).append("...");
}else{
$(spanObj[i]).text(spanVal);
}
}
});
</script>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/policeSet.do?action=query'/>" method="post">
<input type="hidden" name="setId" value="${setId }"/>
<input type="hidden" name="pIden" value="${pIden }"/>
<input type="hidden" name="ctn" value="${ctn }"/>
<input type="hidden" name="ip" value="${ip }"/>
<div id="divTop">
<c:if test="${operator eq 'all'}">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_prl.text.checkTypeName_n81i</font>
<select style="width:140px;" name="ctn" id="checkTypeId">
<option value="">
--i18n_prl.message.checkTypeDefault_n81i--
</option>
<c:if test="${fn:length(allCheckTypeInfo) > 0}">
<c:set var="isSchedule0" value="0"/>
<c:forEach items="${allCheckTypeInfo}" var="checkType">
<c:if test="${checkType.isSchedule != isSchedule0 }">
<option style="height: 2px;" disabled="disabled">--------------------</option>
<c:set var="isSchedule0" value="${checkType.isSchedule}"/>
</c:if>
<option value="${checkType.id}"
<c:if test="${ctn == checkType.id }">selected="selected"</c:if>>
${checkType.checkTypeName1}
</option>
</c:forEach>
</c:if>
</select></label>
<label class="divTopText"><font class="selectText">i18n_prl.text.processIdenName_n81i </font>
<input type="text" id="pIden" style="width: 160px"
name="pIden"
title="i18n_prl.message.processIdenName_n81i"
value="${pIden}" size="49" onkeyup="checkZF('pIden');"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle3" onclick="javascript:qry();" />
&nbsp;
</div>
</c:if>
<div class="box_2">
<c:if test="${operator ne 'all'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_prl.button.add_n81i"/>
&nbsp;
</c:if>
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_prl.button.update_n81i"/>
&nbsp;
<c:if test="${operator ne 'all'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_prl.button.back_n81i"/>
</c:if>
</div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="5%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_prl.text.index_n81i
</td>
<td width="10%" class="color_top" nowrap>
i18n_prl.text.checkTypeName_n81i
</td>
<td width="10%" class="color_top" nowrap>
i18n_prl.text.processIdenName_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.checkGap_n81i
</td>
<td width="12%" class="color_top" nowrap>
i18n_prl.text.filedName_n81i
</td>
<td width="12%" class="color_top" nowrap>
i18n_prl.text.filedComments_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeValue_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeUnit_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeSymbols_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeLevel_n81i
</td>
<td width="8%" class="color_top">
i18n_prl.text.policeEmergent_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.state_n81i
</td>
<td width="20%" class="color_top" nowrap>
i18n_prl.text.policeShowInfo_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(dataPoliceRelationList) > 0}">
<c:forEach items="${dataPoliceRelationList}" var="policeRelation" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
<input type="checkbox" name="ids" id="ids"
value="${policeRelation.id}" />
<input type="hidden" value="${policeRelation.detectionSetInfo.id}">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.checkTypeInfo.checkTypeName1}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.processIdenName}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.checkGap}
</td>
<td class="${color }">
${policeRelation.metadata.filedName}
</td>
<td class="${color }">
${policeRelation.metadata.filedComments}
</td>
<td class="${color }">
${policeRelation.policeValue}
</td>
<td class="${color }">
${policeRelation.policeUnit}
</td>
<td class="${color }">
${policeRelation.policeSymbols}
</td>
<td class="${color }">
${policeRelation.policeLevel}
</td>
<td class="${color }">
<c:if test="${policeRelation.policeEmergent=='0' }">i18n_prl.message.emergent_n81i</c:if>
<c:if test="${policeRelation.policeEmergent=='1' }">i18n_prl.message.nonEmergent_n81i</c:if>
</td>
<td class="${color }">
<c:if test="${policeRelation.policeState=='0' }">i18n_prl.message.active_n81i</c:if>
<c:if test="${policeRelation.policeState=='1' }"><font color="red">i18n_prl.message.invalid_n81i</font></c:if>
</td>
<td class="${color_end }" title="${policeRelation.policeShowInfo }">
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<%-- <c:if test="${fn:length(policeRelation.policeShowInfo) >= 25}">
<c:out value="${fn:substring(policeRelation.policeShowInfo,0,25)}..." default=""/>
</c:if>
<c:if test="${fn:length(policeRelation.policeShowInfo) < 25}">
<c:out value="${policeRelation.policeShowInfo}" default=""/>
</c:if> --%>
${policeRelation.policeShowInfo}
</span>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="13" height="20" class="color_6" align="center">
i18n_prl.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty dataPoliceRelationList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_prl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
</head>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_prl.message.success_n81i");
}else if(msg=='2'){
alert("i18n_prl.message.faild_n81i");
}
//查询记录
function qry(){
document.form3.action = "<%=path%>/detection/policeSet.do?action=query";
document.form3.submit();
}
function checkZF(id){
if(containSpecial($("#"+id).val())){
alert('i18n_prl.message.hasSpecialChar_n81i');
$("#"+id).val('');
return;
}
}
//添加记录
function add(){
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openAdd";
document.form3.submit();
}
//修改记录
function upd(){
if(!isRigthCheck("ids", "edit")){
alert("i18n_prl.message.select_n81i");
}else{
var detectionSetInfoId = $("input:checked").next().val();
var policeRelationId = $("input:checked").val();
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openUpdate&detectionSetInfoId="+detectionSetInfoId+"&policeRelationId="+policeRelationId;
document.form3.submit();
}
}
function goBack(){
window.location="<%=path%>/detection/detectionSet.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&ip="+'${ip}'+"&ctn="+'${ctn}'+"&pIden="+'${pIden}';
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
if('${setId}'==null||'${setId}'==""){
$("input[type=hidden][name=pIden]").remove();
$("input[type=hidden][name=ctn]").remove();
$("input[type=hidden][name=ip]").remove();
}
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
$(function(){
var spanObj=$("span[class='STYLE1']");
for(var i=0;i<spanObj.length;i++){
var spanVal=$(spanObj[i]).text().trim();;
console.log(spanVal);
if(spanVal.length>=25){
$(spanObj[i]).text(spanVal.substring(0,25)).append("...");
}else{
$(spanObj[i]).text(spanVal);
}
}
});
</script>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/policeSet.do?action=query'/>" method="post">
<input type="hidden" name="setId" value="${setId }"/>
<input type="hidden" name="pIden" value="${pIden }"/>
<input type="hidden" name="ctn" value="${ctn }"/>
<input type="hidden" name="ip" value="${ip }"/>
<div id="divTop">
<c:if test="${operator eq 'all'}">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_prl.text.checkTypeName_n81i</font>
<select style="width:140px;" name="ctn" id="checkTypeId">
<option value="">
--i18n_prl.message.checkTypeDefault_n81i--
</option>
<c:if test="${fn:length(allCheckTypeInfo) > 0}">
<c:set var="isSchedule0" value="0"/>
<c:forEach items="${allCheckTypeInfo}" var="checkType">
<c:if test="${checkType.isSchedule != isSchedule0 }">
<option style="height: 2px;" disabled="disabled">--------------------</option>
<c:set var="isSchedule0" value="${checkType.isSchedule}"/>
</c:if>
<option value="${checkType.id}"
<c:if test="${ctn == checkType.id }">selected="selected"</c:if>>
${checkType.checkTypeName1}
</option>
</c:forEach>
</c:if>
</select></label>
<label class="divTopText"><font class="selectText">i18n_prl.text.processIdenName_n81i </font>
<input type="text" id="pIden" style="width: 160px"
name="pIden"
title="i18n_prl.message.processIdenName_n81i"
value="${pIden}" size="49" onkeyup="checkZF('pIden');"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle3" onclick="javascript:qry();" />
&nbsp;
</div>
</c:if>
<div class="box_2">
<c:if test="${operator ne 'all'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_prl.button.add_n81i"/>
&nbsp;
</c:if>
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_prl.button.update_n81i"/>
&nbsp;
<c:if test="${operator ne 'all'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_prl.button.back_n81i"/>
</c:if>
</div>
</div>
<div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="5%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_prl.text.index_n81i
</td>
<td width="10%" class="color_top" nowrap>
i18n_prl.text.checkTypeName_n81i
</td>
<td width="10%" class="color_top" nowrap>
i18n_prl.text.processIdenName_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.checkGap_n81i
</td>
<td width="12%" class="color_top" nowrap>
i18n_prl.text.filedName_n81i
</td>
<td width="12%" class="color_top" nowrap>
i18n_prl.text.filedComments_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeValue_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeUnit_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeSymbols_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.policeLevel_n81i
</td>
<td width="8%" class="color_top">
i18n_prl.text.policeEmergent_n81i
</td>
<td width="8%" class="color_top" nowrap>
i18n_prl.text.state_n81i
</td>
<td width="20%" class="color_top" nowrap>
i18n_prl.text.policeShowInfo_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(dataPoliceRelationList) > 0}">
<c:forEach items="${dataPoliceRelationList}" var="policeRelation" varStatus="vs">
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
<input type="checkbox" name="ids" id="ids"
value="${policeRelation.id}" />
<input type="hidden" value="${policeRelation.detectionSetInfo.id}">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.checkTypeInfo.checkTypeName1}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.processIdenName}
</td>
<td class="${color }">
${policeRelation.detectionSetInfo.checkGap}
</td>
<td class="${color }">
${policeRelation.metadata.filedName}
</td>
<td class="${color }">
${policeRelation.metadata.filedComments}
</td>
<td class="${color }">
${policeRelation.policeValue}
</td>
<td class="${color }">
${policeRelation.policeUnit}
</td>
<td class="${color }">
${policeRelation.policeSymbols}
</td>
<td class="${color }">
${policeRelation.policeLevel}
</td>
<td class="${color }">
<c:if test="${policeRelation.policeEmergent=='0' }">i18n_prl.message.emergent_n81i</c:if>
<c:if test="${policeRelation.policeEmergent=='1' }">i18n_prl.message.nonEmergent_n81i</c:if>
</td>
<td class="${color }">
<c:if test="${policeRelation.policeState=='0' }">i18n_prl.message.active_n81i</c:if>
<c:if test="${policeRelation.policeState=='1' }"><font color="red">i18n_prl.message.invalid_n81i</font></c:if>
</td>
<td class="${color_end }" title="${policeRelation.policeShowInfo }">
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<%-- <c:if test="${fn:length(policeRelation.policeShowInfo) >= 25}">
<c:out value="${fn:substring(policeRelation.policeShowInfo,0,25)}..." default=""/>
</c:if>
<c:if test="${fn:length(policeRelation.policeShowInfo) < 25}">
<c:out value="${policeRelation.policeShowInfo}" default=""/>
</c:if> --%>
${policeRelation.policeShowInfo}
</span>
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="13" height="20" class="color_6" align="center">
i18n_prl.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty dataPoliceRelationList}">
<div id="divBoot">
<jsp:include page="/common/page.jsp" />
</div>
</c:if>
</form>
</div>
</body>
</html>

View File

@@ -1,332 +1,332 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_upr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function upd(){
if($id("policeValue","","i18n_upr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_upr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_upr.message.policeSymbols_n81i")
&& $id("policeLevel","sz","i18n_upr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val();
var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){
boo = true;
}else{
$("#pl").text("i18n_upr.message.policeLevelInfo_n81i");
return;
}
}
if(boo){
if(poliMsg!=""){
if(poliMsg.length >200){
$("#Msg").text("i18n_upr.message.inputInfo_n81i");
return;
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit();
}
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit();
}
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit();
}
jQuery(function(){
var filedType = $("#metadaFType").val();
if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").find("option[class='notTxt']").remove();
}else{
$("#policeSymbols").find("option[class='isTxt']").remove();
}
initEmergent();//初始化级别的显示与隐藏
initMarker();//初始化过滤标识及对应字段的显示与隐藏
})
function initEmergent() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val('');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function initMarker() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
}
function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
jQuery('#marker').val('');
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${policeRelationId}" name="policeRelationId"/>
<input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${detectionSetInfoId}" name="detectionSetInfoId"/>
<input type="hidden" value="${ip}" name="ip"/>
<input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${dataPoliceRelation.id}" name="dataPoliceRelation.id"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_upr.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_upr.text.metadata_n81i
</td>
<td class="color_6" width="30%" align="left" >
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<c:if test="${metadata.id == dataPoliceRelation.metadata.id }">
<input type="text" name="filedName" readonly="readonly" value="${metadata.filedComments}"/>
<input type="hidden" id="metadaFType" value="${metadata.filedType }" />
</c:if>
</c:forEach>
</c:if>
<input type="hidden" name="dataPoliceRelation.metadata.id" id="metadaId" value="${dataPoliceRelation.metadata.id }" />
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_upr.text.policeState_n81i
</td>
<td class="color_6" width="35%" align="left">
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" <c:if test="${dataPoliceRelation.policeState == '0' }">checked="checked"</c:if>/>i18n_upr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" <c:if test="${dataPoliceRelation.policeState == '1' }">checked="checked"</c:if>/>i18n_upr.message.invalid_n81i
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_upr.text.markerFiled_n81i
</td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz">
i18n_upr.message.markerFiledDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}"
<c:if test="${dataPoliceRelation.markerFiledId == metadata.id}">selected="selected"</c:if> >
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
</td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_upr.text.marker_n81i
</td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker"
id="marker" value="${dataPoliceRelation.marker}"/><font color="red" >i18n_upr.message.marker_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_upr.text.policeEmergent_n81i
</td>
<td class="color_3" align="left" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value="0" <c:if test="${dataPoliceRelation.policeEmergent == 0}">selected="selected"</c:if> >
i18n_upr.message.emergent_n81i
</option>
<option value="1" <c:if test="${dataPoliceRelation.policeEmergent == 1}">selected="selected"</c:if>>
i18n_upr.message.nonEmergent_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="levelTitleTd" >
i18n_upr.text.policeLevel_n81i
</td>
<td class="color_3" align="left" id="levelValTd">
<input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value="${dataPoliceRelation.policeLevel}"/>
<font id="pl" color="red">*i18n_upr.message.policeLevelInfo_n81i</font>
</td>
</tr>
<tr id = "pv">
<td class="color_1" align="right">
i18n_upr.text.policeValue_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value="${dataPoliceRelation.policeValue}"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_upr.text.policeUnit_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value="${dataPoliceRelation.policeUnit}"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_upr.message.policeSymbols_n81i
</td>
<td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value="">
i18n_upr.message.markerFiledDefault_n81i
</option>
<option value=">" <c:if test="${dataPoliceRelation.policeSymbols == '>' }">selected="selected"</c:if> class="notTxt">
&gt;
</option>
<option value="<" <c:if test="${dataPoliceRelation.policeSymbols == '<' }"> selected="selected" </c:if> class="notTxt">
&lt;
</option>
<option value=">=" <c:if test="${dataPoliceRelation.policeSymbols == '>=' }">selected="selected"</c:if> class="notTxt">
&gt;=
</option>
<option value="<=" <c:if test="${dataPoliceRelation.policeSymbols == '<=' }">selected="selected"</c:if> class="notTxt">
&lt;=
</option>
<option value="=" <c:if test="${dataPoliceRelation.policeSymbols == '=' }">selected="selected"</c:if> class="notTxt">
=
</option>
<option value="equals" <c:if test="${dataPoliceRelation.policeSymbols == 'equals' }">selected="selected"</c:if> class="isTxt">
equals
</option>
<option value="include" <c:if test="${dataPoliceRelation.policeSymbols == 'include' }">selected="selected"</c:if>class="isTxt">
include
</option>
<option value="exclude" <c:if test="${dataPoliceRelation.policeSymbols == 'exclude' }">selected="selected"</c:if>class="isTxt">
exclude
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_upr.text.policeShowInfo_n81i
</td>
<td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo">${dataPoliceRelation.policeShowInfo}</textarea>
<div><font color="red" id="Msg">i18n_upr.message.policeShowInfo_n81i</font></div>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_upr.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_upr.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_upr.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_upr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script>
</head>
<script language="javascript" type="text/javascript">
function upd(){
if($id("policeValue","","i18n_upr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_upr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_upr.message.policeSymbols_n81i")
&& $id("policeLevel","sz","i18n_upr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val();
var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){
boo = true;
}else{
$("#pl").text("i18n_upr.message.policeLevelInfo_n81i");
return;
}
}
if(boo){
if(poliMsg!=""){
if(poliMsg.length >200){
$("#Msg").text("i18n_upr.message.inputInfo_n81i");
return;
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit();
}
}else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit();
}
}
}
}
function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit();
}
jQuery(function(){
var filedType = $("#metadaFType").val();
if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").find("option[class='notTxt']").remove();
}else{
$("#policeSymbols").find("option[class='isTxt']").remove();
}
initEmergent();//初始化级别的显示与隐藏
initMarker();//初始化过滤标识及对应字段的显示与隐藏
})
function initEmergent() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') {
jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val('');
}else {
jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0');
}
}
function initMarker() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
}
function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段
jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1');
}
jQuery('#marker').val('');
}
</script>
<body>
<div class="middle_list" >
<form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${policeRelationId}" name="policeRelationId"/>
<input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${detectionSetInfoId}" name="detectionSetInfoId"/>
<input type="hidden" value="${ip}" name="ip"/>
<input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${dataPoliceRelation.id}" name="dataPoliceRelation.id"/>
<div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td colspan="4" class="color_8">
<strong>i18n_upr.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_upr.text.metadata_n81i
</td>
<td class="color_6" width="30%" align="left" >
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<c:if test="${metadata.id == dataPoliceRelation.metadata.id }">
<input type="text" name="filedName" readonly="readonly" value="${metadata.filedComments}"/>
<input type="hidden" id="metadaFType" value="${metadata.filedType }" />
</c:if>
</c:forEach>
</c:if>
<input type="hidden" name="dataPoliceRelation.metadata.id" id="metadaId" value="${dataPoliceRelation.metadata.id }" />
<font color="red">*</font>
</td>
<td class="color_1" width="15%" align="right">
i18n_upr.text.policeState_n81i
</td>
<td class="color_6" width="35%" align="left">
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" <c:if test="${dataPoliceRelation.policeState == '0' }">checked="checked"</c:if>/>i18n_upr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" <c:if test="${dataPoliceRelation.policeState == '1' }">checked="checked"</c:if>/>i18n_upr.message.invalid_n81i
</td>
</tr>
<tr>
<td class="color_1" width="20%" align="right">
i18n_upr.text.markerFiled_n81i
</td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz">
i18n_upr.message.markerFiledDefault_n81i
</option>
<c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}"
<c:if test="${dataPoliceRelation.markerFiledId == metadata.id}">selected="selected"</c:if> >
${metadata.filedComments}
</option>
</c:forEach>
</c:if>
</select>
</td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_upr.text.marker_n81i
</td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker"
id="marker" value="${dataPoliceRelation.marker}"/><font color="red" >i18n_upr.message.marker_n81i</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_upr.text.policeEmergent_n81i
</td>
<td class="color_3" align="left" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value="0" <c:if test="${dataPoliceRelation.policeEmergent == 0}">selected="selected"</c:if> >
i18n_upr.message.emergent_n81i
</option>
<option value="1" <c:if test="${dataPoliceRelation.policeEmergent == 1}">selected="selected"</c:if>>
i18n_upr.message.nonEmergent_n81i
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" id="levelTitleTd" >
i18n_upr.text.policeLevel_n81i
</td>
<td class="color_3" align="left" id="levelValTd">
<input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value="${dataPoliceRelation.policeLevel}"/>
<font id="pl" color="red">*i18n_upr.message.policeLevelInfo_n81i</font>
</td>
</tr>
<tr id = "pv">
<td class="color_1" align="right">
i18n_upr.text.policeValue_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value="${dataPoliceRelation.policeValue}"/>
<font color="red">*</font>
</td>
<td class="color_1" align="right">
i18n_upr.text.policeUnit_n81i
</td>
<td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value="${dataPoliceRelation.policeUnit}"/>
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_upr.message.policeSymbols_n81i
</td>
<td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value="">
i18n_upr.message.markerFiledDefault_n81i
</option>
<option value=">" <c:if test="${dataPoliceRelation.policeSymbols == '>' }">selected="selected"</c:if> class="notTxt">
&gt;
</option>
<option value="<" <c:if test="${dataPoliceRelation.policeSymbols == '<' }"> selected="selected" </c:if> class="notTxt">
&lt;
</option>
<option value=">=" <c:if test="${dataPoliceRelation.policeSymbols == '>=' }">selected="selected"</c:if> class="notTxt">
&gt;=
</option>
<option value="<=" <c:if test="${dataPoliceRelation.policeSymbols == '<=' }">selected="selected"</c:if> class="notTxt">
&lt;=
</option>
<option value="=" <c:if test="${dataPoliceRelation.policeSymbols == '=' }">selected="selected"</c:if> class="notTxt">
=
</option>
<option value="equals" <c:if test="${dataPoliceRelation.policeSymbols == 'equals' }">selected="selected"</c:if> class="isTxt">
equals
</option>
<option value="include" <c:if test="${dataPoliceRelation.policeSymbols == 'include' }">selected="selected"</c:if>class="isTxt">
include
</option>
<option value="exclude" <c:if test="${dataPoliceRelation.policeSymbols == 'exclude' }">selected="selected"</c:if>class="isTxt">
exclude
</option>
</select>
<font color="red">*</font>
</td>
<td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_upr.text.policeShowInfo_n81i
</td>
<td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo">${dataPoliceRelation.policeShowInfo}</textarea>
<div><font color="red" id="Msg">i18n_upr.message.policeShowInfo_n81i</font></div>
</td>
</tr>
<tr>
<td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_upr.button.submit_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_upr.button.reset_n81i"/>
&nbsp;
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_upr.button.back_n81i"/>
&nbsp;
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -1,176 +1,176 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<!-- 弹出对话框 -->
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<link rel="stylesheet" href="<c:url value='/css/themes/base/jquery.ui.all.css'/>" />
</head>
<script language="javascript" type="text/javascript">
$(function() {
$( "#downloadDialog" ).dialog({
autoOpen: true,
minWidth: 240,
modal: true,
//隐藏右上角的关闭按钮以下2行
closeOnEscape:false,
open:function(event,ui){$(".ui-dialog-titlebar-close").hide();},
resizable:false//大小固定
});
});
function toConfigDevice(){
var seqId = jQuery("select[id=seqId] option:selected").val();
var deviceBrandCode = jQuery("select[id=deviceBrandCode] option:selected").val();
var deviceBrandTypeCode = jQuery("select[id=deviceBrandTypeCode] option:selected").val();
var maxDevNum = jQuery("select[id=maxDevNum] option:selected").val();//最大叠加数
if(isBlank(maxDevNum)) {
maxDevNum = 1;
}
if(isNotBlankAndTip(seqId,"i18n_snadt.message.seqId_n81i","seqId")&&isNotBlankAndTip(deviceBrandCode,"i18n_snadt.message.deviceBrandCode_n81i","deviceBrandCode")&&isNotBlankAndTip(deviceBrandTypeCode,"i18n_snadt.message.deviceBrandTypeCode_n81i","deviceBrandTypeCode")) {
document.toConfigDevForm.action="<%=path%>/detection/switchDetection.do?action=configSpecialDevice&seqId="+seqId+"&deviceBrandCode="+deviceBrandCode+"&deviceBrandTypeCode="+deviceBrandTypeCode+"&maxDevNum="+maxDevNum;
document.toConfigDevForm.submit();
}
}
function isNotBlankAndTip(obj,tip,id) {
if(obj!="" && obj!=null && obj!='undefined') {
jQuery("#"+id).next().html('*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
return true;
}else {
jQuery("#"+id).next().html(tip);
return false;
}
}
function isNotBlank(obj) {
if(obj!="" && obj!=null && obj!='undefined') {
return true;
}else {
return false;
}
}
function isBlank(obj) {
if(obj=="" || obj==null || obj=='undefined') {
return true;
}else {
return false;
}
}
//选择品牌时,型号为当前品牌下的型号
function changeDevBrand() {
jQuery("select[id='deviceBrandTypeCode']").empty();
var selecVal = jQuery("select[id='deviceBrandCode'] option:selected").val();
if(isNotBlank(selecVal)) {
jQuery("select[id='deviceBrandTypeCode']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>');
<c:forEach items="${deviceBrandTypeList}" var="brandType" >
if('${brandType.deviceRandCode}'==selecVal) {
var htmlStr = '<option value="${brandType.deviceTypeCode}" >${brandType.deviceTypeCode}</option>';
jQuery("select[id='deviceBrandTypeCode']").append(htmlStr);
}
</c:forEach>
jQuery("#devBradnType").show();
}else {
jQuery("#devBradnType").hide();
}
jQuery("#maxDevNumDiv").hide();
}
//选择设备型号时如果最大叠加数大于1则显示选择叠加数否则不显示
function changeMaxDevNum() {
jQuery("select[id='maxDevNum']").empty();//清空叠加数
var selecVal = jQuery("select[id='deviceBrandTypeCode'] option:selected").val();//选中的型号
if(isNotBlank(selecVal)) {
var seleTypeMaxDevNum = 1;
<c:forEach items="${deviceBrandTypeList}" var="brandType" >
if('${brandType.deviceTypeCode}'==selecVal) {
seleTypeMaxDevNum = '${brandType.maxDeviceNum}';
}
</c:forEach>
jQuery("select[id='maxDevNum']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>');
if(seleTypeMaxDevNum>1) {
for(var i=1;i<=seleTypeMaxDevNum;i++) {
var htmlStr = '<option value="'+i+'" >'+i+'</option>';
jQuery("select[id='maxDevNum']").append(htmlStr);
}
jQuery("#maxDevNumDiv").show();
}else {
jQuery("#maxDevNumDiv").hide();
}
}else {
jQuery("#maxDevNumDiv").hide();
}
}
</script>
<body>
<form id="toConfigDevForm" action="<%=path%>/detection/switchDetection.do?action=toConfigSpecialDevice" name="toConfigDevForm" method="post">
<div id="downloadDialog" style="display: none;font-size:14px;margin-top:10px;" title="i18n_snadt.message.selectDefault_n81i" align="center">
<div style="font-size: 12px;">
i18n_snadt.text.seqId_n81i<select id="seqId" name="" style="width: 100px;">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
<c:forEach items="${switcheNodeList}" var="switchNode" >
<option value="${switchNode[1]}" >${switchNode[0]}</option>
</c:forEach>
</select><font color="red">*</font>
<br/><br/>
i18n_snadt.text.deviceBrandCode_n81i<select id="deviceBrandCode" name="" style="width: 100px;" onchange="changeDevBrand();">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
<c:forEach items="${deviceBrandList}" var="brand" >
<option value="${brand[0]}" >${brand[1]}</option>
</c:forEach>
</select><font color="red">*</font>
<br/><br/>
<div id="devBradnType" style="display: none;">
i18n_snadt.text.deviceBrandTypeCode_n81i<select id="deviceBrandTypeCode" name="" style="width: 100px;" onchange="changeMaxDevNum();">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
</select><font color="red">*</font>
<div id="maxDevNumDiv" style="display: none;">
<br/>
i18n_snadt.text.maxDevNum_n81i<select id="maxDevNum" name="" style="width: 100px;">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
</select><font color="red"></font>
</div>
</div>
</div>
<div style="font-size: 12px;margin-top: 10px;" align="center">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="toConfigDevice()" value="i18n_snadt.button.ok_n81i"/>
</div>
</div>
</form>
</body>
</html>
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<!-- 弹出对话框 -->
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<link rel="stylesheet" href="<c:url value='/css/themes/base/jquery.ui.all.css'/>" />
</head>
<script language="javascript" type="text/javascript">
$(function() {
$( "#downloadDialog" ).dialog({
autoOpen: true,
minWidth: 240,
modal: true,
//隐藏右上角的关闭按钮以下2行
closeOnEscape:false,
open:function(event,ui){$(".ui-dialog-titlebar-close").hide();},
resizable:false//大小固定
});
});
function toConfigDevice(){
var seqId = jQuery("select[id=seqId] option:selected").val();
var deviceBrandCode = jQuery("select[id=deviceBrandCode] option:selected").val();
var deviceBrandTypeCode = jQuery("select[id=deviceBrandTypeCode] option:selected").val();
var maxDevNum = jQuery("select[id=maxDevNum] option:selected").val();//最大叠加数
if(isBlank(maxDevNum)) {
maxDevNum = 1;
}
if(isNotBlankAndTip(seqId,"i18n_snadt.message.seqId_n81i","seqId")&&isNotBlankAndTip(deviceBrandCode,"i18n_snadt.message.deviceBrandCode_n81i","deviceBrandCode")&&isNotBlankAndTip(deviceBrandTypeCode,"i18n_snadt.message.deviceBrandTypeCode_n81i","deviceBrandTypeCode")) {
document.toConfigDevForm.action="<%=path%>/detection/switchDetection.do?action=configSpecialDevice&seqId="+seqId+"&deviceBrandCode="+deviceBrandCode+"&deviceBrandTypeCode="+deviceBrandTypeCode+"&maxDevNum="+maxDevNum;
document.toConfigDevForm.submit();
}
}
function isNotBlankAndTip(obj,tip,id) {
if(obj!="" && obj!=null && obj!='undefined') {
jQuery("#"+id).next().html('*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
return true;
}else {
jQuery("#"+id).next().html(tip);
return false;
}
}
function isNotBlank(obj) {
if(obj!="" && obj!=null && obj!='undefined') {
return true;
}else {
return false;
}
}
function isBlank(obj) {
if(obj=="" || obj==null || obj=='undefined') {
return true;
}else {
return false;
}
}
//选择品牌时,型号为当前品牌下的型号
function changeDevBrand() {
jQuery("select[id='deviceBrandTypeCode']").empty();
var selecVal = jQuery("select[id='deviceBrandCode'] option:selected").val();
if(isNotBlank(selecVal)) {
jQuery("select[id='deviceBrandTypeCode']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>');
<c:forEach items="${deviceBrandTypeList}" var="brandType" >
if('${brandType.deviceRandCode}'==selecVal) {
var htmlStr = '<option value="${brandType.deviceTypeCode}" >${brandType.deviceTypeCode}</option>';
jQuery("select[id='deviceBrandTypeCode']").append(htmlStr);
}
</c:forEach>
jQuery("#devBradnType").show();
}else {
jQuery("#devBradnType").hide();
}
jQuery("#maxDevNumDiv").hide();
}
//选择设备型号时如果最大叠加数大于1则显示选择叠加数否则不显示
function changeMaxDevNum() {
jQuery("select[id='maxDevNum']").empty();//清空叠加数
var selecVal = jQuery("select[id='deviceBrandTypeCode'] option:selected").val();//选中的型号
if(isNotBlank(selecVal)) {
var seleTypeMaxDevNum = 1;
<c:forEach items="${deviceBrandTypeList}" var="brandType" >
if('${brandType.deviceTypeCode}'==selecVal) {
seleTypeMaxDevNum = '${brandType.maxDeviceNum}';
}
</c:forEach>
jQuery("select[id='maxDevNum']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>');
if(seleTypeMaxDevNum>1) {
for(var i=1;i<=seleTypeMaxDevNum;i++) {
var htmlStr = '<option value="'+i+'" >'+i+'</option>';
jQuery("select[id='maxDevNum']").append(htmlStr);
}
jQuery("#maxDevNumDiv").show();
}else {
jQuery("#maxDevNumDiv").hide();
}
}else {
jQuery("#maxDevNumDiv").hide();
}
}
</script>
<body>
<form id="toConfigDevForm" action="<%=path%>/detection/switchDetection.do?action=toConfigSpecialDevice" name="toConfigDevForm" method="post">
<div id="downloadDialog" style="display: none;font-size:14px;margin-top:10px;" title="i18n_snadt.message.selectDefault_n81i" align="center">
<div style="font-size: 12px;">
i18n_snadt.text.seqId_n81i<select id="seqId" name="" style="width: 100px;">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
<c:forEach items="${switcheNodeList}" var="switchNode" >
<option value="${switchNode[1]}" >${switchNode[0]}</option>
</c:forEach>
</select><font color="red">*</font>
<br/><br/>
i18n_snadt.text.deviceBrandCode_n81i<select id="deviceBrandCode" name="" style="width: 100px;" onchange="changeDevBrand();">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
<c:forEach items="${deviceBrandList}" var="brand" >
<option value="${brand[0]}" >${brand[1]}</option>
</c:forEach>
</select><font color="red">*</font>
<br/><br/>
<div id="devBradnType" style="display: none;">
i18n_snadt.text.deviceBrandTypeCode_n81i<select id="deviceBrandTypeCode" name="" style="width: 100px;" onchange="changeMaxDevNum();">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
</select><font color="red">*</font>
<div id="maxDevNumDiv" style="display: none;">
<br/>
i18n_snadt.text.maxDevNum_n81i<select id="maxDevNum" name="" style="width: 100px;">
<option value="" >i18n_snadt.message.selectDefault_n81i</option>
</select><font color="red"></font>
</div>
</div>
</div>
<div style="font-size: 12px;margin-top: 10px;" align="center">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="toConfigDevice()" value="i18n_snadt.button.ok_n81i"/>
</div>
</div>
</form>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,466 +1,466 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="nis.nms.util.MyNumberFormat"%>
<%@page import="nis.nms.bean.SwitchPortInfo"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_sil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script src="<c:url value='/js/lockTableHeader.js'/>" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_sil.message.success_n81i");
}else if(msg=='2'){
alert("i18n_sil.message.faild_n81i");
}
//添加记录
function add(id){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id;
document.form3.submit();
}
//批量修改记录:
function upd(){
if(!isRigthCheck("ids", "remove")){
alert("i18n_sil.message.selectInfo1_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList";
document.form3.submit();
}
}
//修改记录,暂时不用
function updOld(){
//alert(1);
if(!isRigthCheck("ids", "edit")){
alert("i18n_sil.message.selectInfo2_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd";
document.form3.submit();
}
}
//生成数据表
function createTable(){
if(confirm("i18n_sil.message.sureToCreate_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab";
document.form3.submit();
}
}
//向数据表添加字段
function addFiled(){
if(confirm("i18n_sil.message.sureToAdd_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled";
document.form3.submit();
}
}
//停用:将METADATA表中的STATE字段置为1
function startUpOrStop(type) {
if(!isRigthCheck("ids", "remove")){
alert("i18n_sil.message.selectInfo1_n81i");
}else {
var num = jQuery("input[name='ids']:checked").size();
var mids = new Array(num);
jQuery("input[name='ids']:checked").each(function(i){
mids[i]=$(this).val();
});
jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json");
}
}
function checkIsState(datas,type) {
if(datas!=null && datas.length>0) {
if(type=='1'){//停用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop";
document.form3.submit();
}else{//启用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=start";
document.form3.submit();
}
}
}
function goBack(){
document.form3.action ="<%=path%>/detection/switchDetection.do?action=query";
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
//程辉 2013-5-8 新增 导出
function emportXls() {
document.form3.action = "<c:url value='/'/>/detection/switchDetection.do?action=emportXls&detectId="+'${detectId}'+"&seqId="+'${seqId}'+"&checkDate="+'${checkDate}';
document.form3.submit();
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
//tableHeaderNavigator('I3','info');
});
</script>
</head>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/switchDetection.do?action=singleSwitchInfo'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="networElementType" id="networElementType" value="${networElementType }" />
<!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<input type="hidden" name="nodeIp" value="${nodeIp }" />
<!-- 来源于拓扑图 end -->
<div id="divTop">
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="emportXls()" value="i18n_sil.button.export_n81i"/>
<c:if test="${isSch=='0'&& isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 -->
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
<c:if test="${isSch=='0' && isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_sil.button.update_n81i" disabled="disabled"/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_sil.button.update_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
<c:if test="${isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="createTable()" value="i18n_sil.button.createTable_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(1)" value="i18n_sil.button.stop_n81i"/> <!-- 非预置的表才有停用 -->
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(0);" value="i18n_sil.button.start_n81i"/> <!-- 非预置的表才有启用 -->
</c:if>
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_sil.button.back_n81i"/>
</div>
</div>
<div id="maindiv">
<c:if test="${si ne null}">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="switchInfo">
<tr >
<td colspan="4" class="color_8">
<strong>i18n_sil.text.switchIp_n81i:${switchIp } i18n_sil.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_sil.text.sysDescr_n81i
</td>
<td class="color_3" align="left" >
${si.sysDescr}
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_sil.text.sysObjectID_n81i
</td>
<td class="color_3" align="left" >
${si.sysObjectID}
</td>
</tr>
<tr>
<td class="color_1" align="right" >
i18n_sil.text.upTimeStr_n81i
</td>
<td class="color_3" align="left" >
${si.upTimeStr}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysContact_n81i
</td>
<td class="color_3" align="left">
${si.sysContact}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysName_n81i
</td>
<td class="color_3" align="left">
${si.sysName}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysLocation_n81i
</td>
<td class="color_3" align="left">
${si.sysLocation}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysServices_n81i
</td>
<td class="color_3"align="left">
${si.sysServices}
<fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.checkedTimeStr_n81i
</td>
<td class="color_3" align="left">
${si.checkedTimeStr}
<fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
</table>
</c:if>
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="3%" class="color_top">
i18n_sil.text.index_n81i
</td>
<td width="5%" class="color_top">
i18n_sil.text.ifDescr_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifHighSpeed_n81i
</td>
<td width="5%" class="color_top">
i18n_sil.text.ifOperStatus_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifInOctetsSpeed_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.inpktsspeed_n81i
</td>
<!--
<td width="7%" class="color_top">
输入丢包率(%)
</td>
<td width="7%" class="color_top">
输入差错率(pps)
</td>
-->
<td width="7%" class="color_top">
i18n_sil.text.ifindiscardsVary_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifinerrorsVary_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifOutOctetsSpeed_n81i
</td>
<td width="8%" class="color_top">
i18n_sil.text.outpktsspeed_n81i
</td>
<!--
<td width="7%" class="color_top">
输出丢包率(%)
</td>
<td width="7%" class="color_top">
输出差错率(pps)
</td>
-->
<td width="7%" class="color_top">
i18n_sil.text.ifoutdiscardsVary_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifouterrorsVary_n81i
</td>
<td width="13%" class="color_top">
i18n_sil.text.lastStringTime_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<%
List<SwitchPortInfo> siList = (List<SwitchPortInfo>) request.getAttribute("totalSiList");
if(siList!=null && siList.size()>0){
int vs = -1;
for(SwitchPortInfo si : siList){
vs++;
pageContext.setAttribute("vs",vs);
pageContext.setAttribute("si",si);
%>
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${si.ifDescr}
</td>
<td class="${color }">
<%=(si.getIfHighSpeed() ==null?MyNumberFormat.formatStr1(new BigDecimal(si.getIfSpeed()),0,1000):si.getIfHighSpeed()+"Mbps") %>
</td>
<td class="${color }">
${si.ifOperStatus}
</td>
<td class="${color }">
<%=MyNumberFormat.formatStr1(si.getIfInOctetsSpeed()==null?null:(new BigDecimal(si.getIfInOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %>
</td>
<td class="${color }">
<c:if test="${si.inpktsspeed ne null }">
<%=new BigDecimal(si.getInpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps
</c:if>
</td>
<td class="${color }">
${si.ifindiscardsVary}
</td>
<td class="${color }">
${si.ifinerrorsVary}
</td>
<!--
<td class="${color }">
${si.ifInErrorsScale}
</td>
<td class="${color }">
${si.ifInErrorsScale}
</td>
-->
<td class="${color }">
<%=MyNumberFormat.formatStr1(si.getIfOutOctetsSpeed()==null?null:(new BigDecimal(si.getIfOutOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %>
</td>
<td class="${color }">
<c:if test="${si.outpktsspeed ne null }">
<%=new BigDecimal(si.getOutpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps
</c:if>
</td>
<td class="${color }">
${si.ifoutdiscardsVary}
</td>
<td class="${color }">
${si.ifouterrorsVary}
</td>
<td class="${color }">
${si.lastStringTime}
</td>
</tr>
<c:set var="index" value="${index + 1}" />
<%
}
}else{
%>
<tr>
<td colspan="13" class="color_6" align="center">
i18n_sil.text.noRecord_n81i
</td>
</tr>
<%
}
%>
</table>
</div>
<!-- <div id="divBoot">
<---jsp:include page="/common/page.jsp" />
</div> -->
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="nis.nms.util.MyNumberFormat"%>
<%@page import="nis.nms.bean.SwitchPortInfo"%>
<%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_sil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script src="<c:url value='/js/lockTableHeader.js'/>" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
var msg = '${MSG}';
if(msg=='1'){
alert("i18n_sil.message.success_n81i");
}else if(msg=='2'){
alert("i18n_sil.message.faild_n81i");
}
//添加记录
function add(id){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id;
document.form3.submit();
}
//批量修改记录:
function upd(){
if(!isRigthCheck("ids", "remove")){
alert("i18n_sil.message.selectInfo1_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList";
document.form3.submit();
}
}
//修改记录,暂时不用
function updOld(){
//alert(1);
if(!isRigthCheck("ids", "edit")){
alert("i18n_sil.message.selectInfo2_n81i");
}else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd";
document.form3.submit();
}
}
//生成数据表
function createTable(){
if(confirm("i18n_sil.message.sureToCreate_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab";
document.form3.submit();
}
}
//向数据表添加字段
function addFiled(){
if(confirm("i18n_sil.message.sureToAdd_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled";
document.form3.submit();
}
}
//停用:将METADATA表中的STATE字段置为1
function startUpOrStop(type) {
if(!isRigthCheck("ids", "remove")){
alert("i18n_sil.message.selectInfo1_n81i");
}else {
var num = jQuery("input[name='ids']:checked").size();
var mids = new Array(num);
jQuery("input[name='ids']:checked").each(function(i){
mids[i]=$(this).val();
});
jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json");
}
}
function checkIsState(datas,type) {
if(datas!=null && datas.length>0) {
if(type=='1'){//停用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop";
document.form3.submit();
}else{//启用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=start";
document.form3.submit();
}
}
}
function goBack(){
document.form3.action ="<%=path%>/detection/switchDetection.do?action=query";
document.form3.submit();
}
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
//程辉 2013-5-8 新增 导出
function emportXls() {
document.form3.action = "<c:url value='/'/>/detection/switchDetection.do?action=emportXls&detectId="+'${detectId}'+"&seqId="+'${seqId}'+"&checkDate="+'${checkDate}';
document.form3.submit();
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
//tableHeaderNavigator('I3','info');
});
</script>
</head>
<body>
<div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType"
action="<c:url value='/detection/switchDetection.do?action=singleSwitchInfo'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="networElementType" id="networElementType" value="${networElementType }" />
<!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<input type="hidden" name="nodeIp" value="${nodeIp }" />
<!-- 来源于拓扑图 end -->
<div id="divTop">
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="emportXls()" value="i18n_sil.button.export_n81i"/>
<c:if test="${isSch=='0'&& isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 -->
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
<c:if test="${isSch=='0' && isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_sil.button.update_n81i" disabled="disabled"/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_sil.button.update_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if>
<c:if test="${isHaveTable=='no'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="createTable()" value="i18n_sil.button.createTable_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
/>
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(1)" value="i18n_sil.button.stop_n81i"/> <!-- 非预置的表才有停用 -->
</c:if>
<c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(0);" value="i18n_sil.button.start_n81i"/> <!-- 非预置的表才有启用 -->
</c:if>
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_sil.button.back_n81i"/>
</div>
</div>
<div id="maindiv">
<c:if test="${si ne null}">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="switchInfo">
<tr >
<td colspan="4" class="color_8">
<strong>i18n_sil.text.switchIp_n81i:${switchIp } i18n_sil.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_sil.text.sysDescr_n81i
</td>
<td class="color_3" align="left" >
${si.sysDescr}
</td>
</tr>
<tr>
<td class="color_1" align="right" width="20%">
i18n_sil.text.sysObjectID_n81i
</td>
<td class="color_3" align="left" >
${si.sysObjectID}
</td>
</tr>
<tr>
<td class="color_1" align="right" >
i18n_sil.text.upTimeStr_n81i
</td>
<td class="color_3" align="left" >
${si.upTimeStr}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysContact_n81i
</td>
<td class="color_3" align="left">
${si.sysContact}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysName_n81i
</td>
<td class="color_3" align="left">
${si.sysName}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysLocation_n81i
</td>
<td class="color_3" align="left">
${si.sysLocation}
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.sysServices_n81i
</td>
<td class="color_3"align="left">
${si.sysServices}
<fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_sil.text.checkedTimeStr_n81i
</td>
<td class="color_3" align="left">
${si.checkedTimeStr}
<fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
</table>
</c:if>
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr>
<td width="3%" class="color_top">
i18n_sil.text.index_n81i
</td>
<td width="5%" class="color_top">
i18n_sil.text.ifDescr_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifHighSpeed_n81i
</td>
<td width="5%" class="color_top">
i18n_sil.text.ifOperStatus_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifInOctetsSpeed_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.inpktsspeed_n81i
</td>
<!--
<td width="7%" class="color_top">
输入丢包率(%)
</td>
<td width="7%" class="color_top">
输入差错率(pps)
</td>
-->
<td width="7%" class="color_top">
i18n_sil.text.ifindiscardsVary_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifinerrorsVary_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifOutOctetsSpeed_n81i
</td>
<td width="8%" class="color_top">
i18n_sil.text.outpktsspeed_n81i
</td>
<!--
<td width="7%" class="color_top">
输出丢包率(%)
</td>
<td width="7%" class="color_top">
输出差错率(pps)
</td>
-->
<td width="7%" class="color_top">
i18n_sil.text.ifoutdiscardsVary_n81i
</td>
<td width="7%" class="color_top">
i18n_sil.text.ifouterrorsVary_n81i
</td>
<td width="13%" class="color_top">
i18n_sil.text.lastStringTime_n81i
</td>
</tr>
<c:set var="index" value="${1}" />
<%
List<SwitchPortInfo> siList = (List<SwitchPortInfo>) request.getAttribute("totalSiList");
if(siList!=null && siList.size()>0){
int vs = -1;
for(SwitchPortInfo si : siList){
vs++;
pageContext.setAttribute("vs",vs);
pageContext.setAttribute("si",si);
%>
<c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/>
<c:if test="${vs%2!=0 }">
<c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/>
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${si.ifDescr}
</td>
<td class="${color }">
<%=(si.getIfHighSpeed() ==null?MyNumberFormat.formatStr1(new BigDecimal(si.getIfSpeed()),0,1000):si.getIfHighSpeed()+"Mbps") %>
</td>
<td class="${color }">
${si.ifOperStatus}
</td>
<td class="${color }">
<%=MyNumberFormat.formatStr1(si.getIfInOctetsSpeed()==null?null:(new BigDecimal(si.getIfInOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %>
</td>
<td class="${color }">
<c:if test="${si.inpktsspeed ne null }">
<%=new BigDecimal(si.getInpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps
</c:if>
</td>
<td class="${color }">
${si.ifindiscardsVary}
</td>
<td class="${color }">
${si.ifinerrorsVary}
</td>
<!--
<td class="${color }">
${si.ifInErrorsScale}
</td>
<td class="${color }">
${si.ifInErrorsScale}
</td>
-->
<td class="${color }">
<%=MyNumberFormat.formatStr1(si.getIfOutOctetsSpeed()==null?null:(new BigDecimal(si.getIfOutOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %>
</td>
<td class="${color }">
<c:if test="${si.outpktsspeed ne null }">
<%=new BigDecimal(si.getOutpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps
</c:if>
</td>
<td class="${color }">
${si.ifoutdiscardsVary}
</td>
<td class="${color }">
${si.ifouterrorsVary}
</td>
<td class="${color }">
${si.lastStringTime}
</td>
</tr>
<c:set var="index" value="${index + 1}" />
<%
}
}else{
%>
<tr>
<td colspan="13" class="color_6" align="center">
i18n_sil.text.noRecord_n81i
</td>
</tr>
<%
}
%>
</table>
</div>
<!-- <div id="divBoot">
<---jsp:include page="/common/page.jsp" />
</div> -->
</form>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,83 +1,83 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:choose>
<c:when test="${fn:length(datasList) > 0}">
<c:forEach items="${datasList}" var="typeData">
<c:forEach items="${typeData}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="3" end="8">
<c:set var="dsiId" value="${rowData[1] }" />
<c:set var="seqId" value="${rowData[2] }" />
<c:set var="nodeIp" value="${rowData[4] }" />
<c:set var="checkDate" value="${rowData[9] }" />
<c:choose>
<c:when test="${ind.index eq 3}">
<td class="color_1_1" rowspan="${fn:length(typeData)}"
valign="top">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
<c:out value="${cellData}" default="" /> </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
<td class="color_1_1">
<a href='##showGrap'
onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');">
i18n_sitlc.text.showGrap_n81i</a>
<a
href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'>
i18n_sitlc.text.showList_n81i </a>
</td>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="3" end="8">
<c:set var="dsiId" value="${rowData[1] }" />
<c:set var="seqId" value="${rowData[2] }" />
<c:set var="nodeIp" value="${rowData[4] }" />
<c:set var="checkDate" value="${rowData[9] }" />
<c:choose>
<c:when test="${ind.index eq 3}">
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
<c:out value="${cellData}" default="" /> </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
<td class="color_1_1">
<a href='##showGrap'
onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');">
i18n_sitlc.text.showGrap_n81i </a>
<a
href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'>
i18n_sitlc.text.showList_n81i</a>
</td>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:choose>
<c:when test="${fn:length(datasList) > 0}">
<c:forEach items="${datasList}" var="typeData">
<c:forEach items="${typeData}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="3" end="8">
<c:set var="dsiId" value="${rowData[1] }" />
<c:set var="seqId" value="${rowData[2] }" />
<c:set var="nodeIp" value="${rowData[4] }" />
<c:set var="checkDate" value="${rowData[9] }" />
<c:choose>
<c:when test="${ind.index eq 3}">
<td class="color_1_1" rowspan="${fn:length(typeData)}"
valign="top">
<c:out value="${cellData}" default="" />
</td>
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
<c:out value="${cellData}" default="" /> </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
<td class="color_1_1">
<a href='##showGrap'
onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');">
i18n_sitlc.text.showGrap_n81i</a>
<a
href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'>
i18n_sitlc.text.showList_n81i </a>
</td>
</tr>
</c:if>
<c:if test="${!flag}">
<tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="3" end="8">
<c:set var="dsiId" value="${rowData[1] }" />
<c:set var="seqId" value="${rowData[2] }" />
<c:set var="nodeIp" value="${rowData[4] }" />
<c:set var="checkDate" value="${rowData[9] }" />
<c:choose>
<c:when test="${ind.index eq 3}">
</c:when>
<c:otherwise>
<td class="color_1_1">
<span class="STYLE1" style="word-break: break-all">
<c:out value="${cellData}" default="" /> </span>
</td>
</c:otherwise>
</c:choose>
</c:forEach>
<td class="color_1_1">
<a href='##showGrap'
onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');">
i18n_sitlc.text.showGrap_n81i </a>
<a
href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'>
i18n_sitlc.text.showList_n81i</a>
</td>
</tr>
</c:if>
</c:forEach>
</c:forEach>
</c:when>
</c:choose>

View File

@@ -1,326 +1,326 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
response.setHeader("Pragma", "No-Cache");
response.setHeader("Cache-Control", "No-Cache");
response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<title>i18n_tcp.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script>
<script type="text/javascript">
function qry(){
document.form3.action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>";
document.form3.submit();
}
function save(index){
document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort&index="+index+"'/>";
document.form3.submit();
}
function batchSave(){
/*var length = $("input[name=selectOne]").filter(":checked").length;
if(length <= 0){
alert("请至少选择一条记录");
return;
}*/
document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort'/>";
document.form3.submit();
}
function batchAllUpDown(num){
var checks = document.getElementsByTagName("input");
if(num == 1){
for(i=0;i<checks.length;i++){
if(checks[i].type=='radio' && checks[i].value=='1'){
checks[i].checked='checked';
}else if(checks[i].type=='radio' && checks[i].value=='2'){
checks[i].checked='';
}else if(checks[i].type=='checkbox' && checks[i].value=='DOWN'){
checks[i].checked='';
}
}
}else if(num == 2){
for(i=0;i<checks.length;i++){//alert(checks[i].type);alert(checks[i].value);
if(checks[i].type=='radio' && checks[i].value=='2'){
checks[i].checked='checked';
}else if(checks[i].type=='radio' && checks[i].value=='1'){
checks[i].checked='';
}else if(checks[i].type=='checkbox' && checks[i].value=='UP'){
checks[i].checked='';
}
}
}
}
//全选
$("input[ name='selectAll']").click(function(){
$("input[name=selectOne]").attr('checked',$(this).attr('checked'));
});
// 单选
$("input[name=selectOne]").click(function(){
$("input[ name='selectAll']").attr('checked',$("input[name=selectOne]").length ==$("input[name=selectOne]").filter(":checked").length);
});
var set_Id;
var ajaxProperties = "";
var ajaxTableName = "";
var ajaxType = "";
var id = "";
var returnDiv = "";
var ajaxValue = "";
function lianxiangkeydown() {
clearTimeout(set_Id);
}
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2")
{
if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1;
id = id1;
returnDiv = returnDiv1;
if(!checkStrNoDian(ajaxValue1)){
ajaxValue = ajaxValue1;
}else{
clearTimeout(set_Id);
alert('i18n_tcp.message.inputInfo_n81i');
$("#"+id).val('');
return;
}
clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500);
}
}
function ajaxForLianxiang()
{
jQuery.post("<%=path%>/detection/switchDetection!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{
var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
if(lianxiangList == ''){
$("#"+id).css("color","#CBC0B6");
}else{
$("#"+id).css("color","#000000");
}
});
}
</script>
<script type="text/javascript">
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var memoryData ;
var intervalID ;
var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数
$(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
}else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID);
}
}
function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var nodeIp= $("#nodeIp").val();
var url2 = encodeURI("<c:url value='/detection/switchDetection.do?action=toConfigPortChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&nodeIp="+nodeIp);
$.ajax({
url:url2,
type : "get",
async:false,
success : function(data) {
$("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint);
}
});
loadButton();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
</script>
</head>
<body>
<div class="middle_list" id="box">
<!--中间部分右边开始-->
<form name="form3" id="form3"
action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>"
method="post" enctype="multipart/form-data">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_tcp.text.nodeIp_n81i</font>
<input type="text" id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_tcp.message.nodeIp_n81i" value="${nodeIp}" size="20" />
<div id='suggest1' class="ac_results"></div></label>
<img id="queryBut" src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:batchSave();" value="i18n_tcp.button.batchSave_n81i" />
</div>
<div id="maindiv">
<table width="90%" border="0" cellpadding="0" cellspacing="0"
class="table" align="center" style="clear: both" id="info">
<tr>
<td class="color_top" width="10%">
i18n_tcp.text.index_n81i
</td>
<td class="color_top" width="30%">
i18n_tcp.text.processIdenName_n81i
</td>
<td class="color_top" width="30%">
i18n_tcp.text.portState_n81i&nbsp;
<input type="checkbox" onclick="javascript:batchAllUpDown(1);"
value="UP" id="UP"/>
UP&nbsp;
<input type="checkbox" onclick="javascript:batchAllUpDown(2);"
value="DOWN" id="DOWN"/>
DOWN
</td>
<td class="color_top" width="30%">
i18n_tcp.text.option_n81i
</td>
</tr>
<c:choose>
<c:when test="${fn:length(nodeFigureInfoList) > 0}">
<c:set var="index" value="${1}" />
<c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo"
varStatus="vs">
<c:set var="color" value="color_1" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${nodeFigureInfo.nameFlag}
</td>
<td class="${color }">
<input type="hidden"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id"
value="${nodeFigureInfo.id }" />
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState"
value="1"
<c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> />
<font color="green">UP</font>
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState"
value="2"
<c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> />
<font color="red">DOWN</font>
</td>
<td class="${color }">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcp.button.save_n81i" />
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="4" height="20" class="color_6" align="center"
style="color: #000000;">
i18n_tcp.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty nodeFigureInfoList}">
<jsp:include page="/common/page.jsp" />
</c:if>
<!--中间部分右边结束-->
</form>
</div>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
response.setHeader("Pragma", "No-Cache");
response.setHeader("Cache-Control", "No-Cache");
response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<title>i18n_tcp.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" />
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script>
<script type="text/javascript">
function qry(){
document.form3.action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>";
document.form3.submit();
}
function save(index){
document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort&index="+index+"'/>";
document.form3.submit();
}
function batchSave(){
/*var length = $("input[name=selectOne]").filter(":checked").length;
if(length <= 0){
alert("请至少选择一条记录");
return;
}*/
document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort'/>";
document.form3.submit();
}
function batchAllUpDown(num){
var checks = document.getElementsByTagName("input");
if(num == 1){
for(i=0;i<checks.length;i++){
if(checks[i].type=='radio' && checks[i].value=='1'){
checks[i].checked='checked';
}else if(checks[i].type=='radio' && checks[i].value=='2'){
checks[i].checked='';
}else if(checks[i].type=='checkbox' && checks[i].value=='DOWN'){
checks[i].checked='';
}
}
}else if(num == 2){
for(i=0;i<checks.length;i++){//alert(checks[i].type);alert(checks[i].value);
if(checks[i].type=='radio' && checks[i].value=='2'){
checks[i].checked='checked';
}else if(checks[i].type=='radio' && checks[i].value=='1'){
checks[i].checked='';
}else if(checks[i].type=='checkbox' && checks[i].value=='UP'){
checks[i].checked='';
}
}
}
}
//全选
$("input[ name='selectAll']").click(function(){
$("input[name=selectOne]").attr('checked',$(this).attr('checked'));
});
// 单选
$("input[name=selectOne]").click(function(){
$("input[ name='selectAll']").attr('checked',$("input[name=selectOne]").length ==$("input[name=selectOne]").filter(":checked").length);
});
var set_Id;
var ajaxProperties = "";
var ajaxTableName = "";
var ajaxType = "";
var id = "";
var returnDiv = "";
var ajaxValue = "";
function lianxiangkeydown() {
clearTimeout(set_Id);
}
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2")
{
if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1;
id = id1;
returnDiv = returnDiv1;
if(!checkStrNoDian(ajaxValue1)){
ajaxValue = ajaxValue1;
}else{
clearTimeout(set_Id);
alert('i18n_tcp.message.inputInfo_n81i');
$("#"+id).val('');
return;
}
clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500);
}
}
function ajaxForLianxiang()
{
jQuery.post("<%=path%>/detection/switchDetection!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{
var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
if(lianxiangList == ''){
$("#"+id).css("color","#CBC0B6");
}else{
$("#"+id).css("color","#000000");
}
});
}
</script>
<script type="text/javascript">
function ieBrowser(){
if($.browser.msie){
if($.browser.version.split('.')[0]<=7){
return false;
}else{
return true;//ie8+
}
}
}
$(function(){
var dh = document.body.clientHeight;
var dhh = dh-60+"px;";
var tableHeight = $("#info").height();
if(tableHeight > dh-60){
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){
$("#info").attr("style","width:100%;");
}else{
$("#info").attr("style","width:98.5%;");
}
}else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
$("#info").attr("style","width:100%;");
}
$("#info").floatHeaderDiv();
});
window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
}
/*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo};
var memoryData ;
var intervalID ;
var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数
$(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
});
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){
currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。
}
}else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID);
}
}
function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。
var nodeIp= $("#nodeIp").val();
var url2 = encodeURI("<c:url value='/detection/switchDetection.do?action=toConfigPortChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&nodeIp="+nodeIp);
$.ajax({
url:url2,
type : "get",
async:false,
success : function(data) {
$("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint);
}
});
loadButton();
}
});
/*------ 滚动条滚动 延迟加载页面操作--------------*/
</script>
</head>
<body>
<div class="middle_list" id="box">
<!--中间部分右边开始-->
<form name="form3" id="form3"
action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>"
method="post" enctype="multipart/form-data">
<div class="box_1">
<label class="divTopText"><font class="selectText">i18n_tcp.text.nodeIp_n81i</font>
<input type="text" id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_tcp.message.nodeIp_n81i" value="${nodeIp}" size="20" />
<div id='suggest1' class="ac_results"></div></label>
<img id="queryBut" src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" />
</div>
<div class="box_2">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:batchSave();" value="i18n_tcp.button.batchSave_n81i" />
</div>
<div id="maindiv">
<table width="90%" border="0" cellpadding="0" cellspacing="0"
class="table" align="center" style="clear: both" id="info">
<tr>
<td class="color_top" width="10%">
i18n_tcp.text.index_n81i
</td>
<td class="color_top" width="30%">
i18n_tcp.text.processIdenName_n81i
</td>
<td class="color_top" width="30%">
i18n_tcp.text.portState_n81i&nbsp;
<input type="checkbox" onclick="javascript:batchAllUpDown(1);"
value="UP" id="UP"/>
UP&nbsp;
<input type="checkbox" onclick="javascript:batchAllUpDown(2);"
value="DOWN" id="DOWN"/>
DOWN
</td>
<td class="color_top" width="30%">
i18n_tcp.text.option_n81i
</td>
</tr>
<c:choose>
<c:when test="${fn:length(nodeFigureInfoList) > 0}">
<c:set var="index" value="${1}" />
<c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo"
varStatus="vs">
<c:set var="color" value="color_1" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${nodeFigureInfo.nameFlag}
</td>
<td class="${color }">
<input type="hidden"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id"
value="${nodeFigureInfo.id }" />
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState"
value="1"
<c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> />
<font color="green">UP</font>
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState"
value="2"
<c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> />
<font color="red">DOWN</font>
</td>
<td class="${color }">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcp.button.save_n81i" />
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="4" height="20" class="color_6" align="center"
style="color: #000000;">
i18n_tcp.text.noRecord_n81i
</td>
</tr>
</c:otherwise>
</c:choose>
</table>
</div>
<c:if test="${!empty nodeFigureInfoList}">
<jsp:include page="/common/page.jsp" />
</c:if>
<!--中间部分右边结束-->
</form>
</div>
</body>
</html>

View File

@@ -1,48 +1,48 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeFigureInfoList) > 0}">
<c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo" varStatus="vs">
<c:set var="color" value="color_1" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${nodeFigureInfo.nameFlag}
</td>
<td class="${color }">
<input type="hidden" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id"
value="${nodeFigureInfo.id }" />
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="1"
<c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> />
<font color="green">UP</font>
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="2"
<c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> />
<font color="red">DOWN</font>
</td>
<td class="${color }">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcpc.button.save_n81i" />
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<c:set var="index" value="${1}" />
<c:choose>
<c:when test="${fn:length(nodeFigureInfoList) > 0}">
<c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo" varStatus="vs">
<c:set var="color" value="color_1" />
<c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" />
</c:if>
<tr>
<td class="${color }">
${index+(pageNo-1)*pageSize}
</td>
<td class="${color }">
${nodeFigureInfo.nameFlag}
</td>
<td class="${color }">
<input type="hidden" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id"
value="${nodeFigureInfo.id }" />
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="1"
<c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> />
<font color="green">UP</font>
<input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="2"
<c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> />
<font color="red">DOWN</font>
</td>
<td class="${color }">
<input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'"
onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcpc.button.save_n81i" />
</td>
</tr>
<c:set var="index" value="${index + 1}" />
</c:forEach>
</c:when>
</c:choose>

File diff suppressed because it is too large Load Diff