initial commit
This commit is contained in:
224
WebRoot/page/systemManage/nodegroup/addNodegroupInfo.jsp
Normal file
224
WebRoot/page/systemManage/nodegroup/addNodegroupInfo.jsp
Normal file
@@ -0,0 +1,224 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_angi.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/onmouse.js'/>"></script>
|
||||
<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/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">
|
||||
function add(){
|
||||
//去空格
|
||||
$("#groupName").val($.trim($("#groupName").val()));
|
||||
//验证不能空与长度限制
|
||||
if($id("groupName","","i18n_angi.text.groupName_n81i") && $("#groupName").checkByteLength(64,"i18n_angi.text.groupName_n81i") && $id("mkid","","i18n_angi.text.systemId_n81i")){
|
||||
if(jQuery("#viewLevel2").attr('checked')==true){
|
||||
if($("#usergroupId option").length<=1){
|
||||
alert('i18n_angi.message.noGroupBelong_n81i');
|
||||
return;
|
||||
}else if($("#usergroupId").val()==''){//$("#usergroupIdTmp option:selected").length<=0
|
||||
alert('i18n_angi.message.groupSelect_n81i');
|
||||
return;
|
||||
}
|
||||
}
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=doAdd";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
|
||||
jQuery(function(){
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
//-- 查看权限事件绑定
|
||||
jQuery("input[type=radio][name=nodeGroup.viewLevel]").click(function(){
|
||||
if(jQuery(this).val() == 2){ //用户组显示且必选
|
||||
jQuery("td[id=usergroup]").show();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',1).addClass('color_3').removeClass('td_6');
|
||||
}else{ //用户组隐藏
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("#usergroupId").val("");
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Ngform" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nodeGroup.groupId"
|
||||
value="${nodeGroup.groupId }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
<!-- <div class="box_1">
|
||||
<img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" />
|
||||
你现在所在的位置是: 业务系统管理 -> 添加节点组
|
||||
</div> -->
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_angi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_angi.text.groupName_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeGroup.groupName" id="groupName" />
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_angi.text.groupType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="0" checked />i18n_angi.message.groupType0_n81i
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="1" />i18n_angi.message.groupType1_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.systemId_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${ADMFlag eq true}" var="flag">
|
||||
<select name="mkid" id="mkid" >
|
||||
<option selected="selected" value="">
|
||||
i18n_angi.message.systemId_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(systemList)>0 }">
|
||||
<c:forEach items="${systemList }" var="system">
|
||||
<option value="${system.systemId }">
|
||||
${system.systemName }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
</c:if>
|
||||
<c:if test="${!flag}">
|
||||
<input type="hidden" name="mkid" id="mkid"
|
||||
value="${system.systemId }" />
|
||||
<input type="text" name="mkName" id="mkName"
|
||||
value="${system.systemName }" readonly
|
||||
/>
|
||||
</c:if>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.isValid_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="1" checked />
|
||||
i18n_angi.message.isValid_n81i
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="0" />
|
||||
<font color="red">i18n_angi.message.isValid_n81i</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" id="viewLevel">
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel1"
|
||||
value="1" checked="checked" />
|
||||
i18n_angi.message.publisher_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel2"
|
||||
value="2" />
|
||||
i18n_angi.message.publisherGroup_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel3"
|
||||
value="3" />
|
||||
i18n_angi.message.allInSys_n81i
|
||||
</td>
|
||||
<td class="color_1" align="right" id="usergroup">
|
||||
i18n_angi.text.usergroup_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" id="usergroup">
|
||||
<select name="nodeGroup.createUsergroupId" id="usergroupId" >
|
||||
<option selected="selected" value="">
|
||||
i18n_angi.message.usergroup_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(allUserGroup)>0 }">
|
||||
<c:forEach items="${allUserGroup }" var="userG">
|
||||
<option value="${userG.jsbh }">
|
||||
${userG.jsmc }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.groupDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" colspan="3" align="left">
|
||||
<textarea rows="4" cols="80" name="nodeGroup.groupDesc"
|
||||
id="groupDesc" style="width: 360px" ></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_angi.text.submit_n81i"/>
|
||||
|
||||
<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['Ngform'].reset()"
|
||||
value="i18n_angi.text.reset_n81i"/>
|
||||
|
||||
<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_angi.text.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
191
WebRoot/page/systemManage/nodegroup/detailNodegroupInfo.jsp
Normal file
191
WebRoot/page/systemManage/nodegroup/detailNodegroupInfo.jsp
Normal file
@@ -0,0 +1,191 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_dngi.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 type="text/javascript">
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Nodeform" method="post"
|
||||
style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<div style="clear: both" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_dngi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dngi.text.groupName_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" width="30%">
|
||||
${nodeGroup.groupName }
|
||||
</td>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dngi.text.groupType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:if test="${nodeGroup.groupType==0 }">i18n_dngi.message.groupType0_n81i</c:if>
|
||||
<c:if test="${nodeGroup.groupType==1 }">i18n_dngi.message.groupType1_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${nodeGroup.viewLevel==1 }">i18n_dngi.message.publisher_n81i</c:if>
|
||||
<c:if test="${nodeGroup.viewLevel==2 }">i18n_dngi.message.publisherGroup_n81i</c:if>
|
||||
<c:if test="${nodeGroup.viewLevel==3 }">i18n_dngi.message.allInSys_n81i</c:if>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.isValid_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:if test="${nodeGroup.isValid==1 }">i18n_dngi.message.valid_n81i</c:if>
|
||||
<c:if test="${nodeGroup.isValid==0 }"><font color="red">i18n_dngi.message.invalid_n81i</font></c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.systemId_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${nodeGroup.systemIdName }
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.createTime_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<fmt:formatDate value='${nodeGroup.groupCreatetime}' type='both' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.userGroupIdName_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${nodeGroup.userGroupIdName }
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.groupDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${nodeGroup.groupDesc }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_9" colspan="4">
|
||||
<strong>i18n_dngi.text.nodeList_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" colspan="4">
|
||||
<table width="100%" align="center" border="0" cellpadding="0"
|
||||
cellspacing="0">
|
||||
<tr>
|
||||
<td width="4%" class="color_1">
|
||||
i18n_dngi.text.index_n81i
|
||||
</td>
|
||||
<td width="10%" class="color_1">
|
||||
i18n_dngi.text.nodeIp_n81i
|
||||
</td>
|
||||
<td width="15%" class="color_1">
|
||||
i18n_dngi.text.nodeName_n81i
|
||||
</td>
|
||||
<td width="20%" class="color_1">
|
||||
i18n_dngi.text.nodeDesc_n81i
|
||||
</td>
|
||||
<td width="12%" class="color_1">
|
||||
i18n_dngi.text.createTime_n81i
|
||||
</td>
|
||||
<td width="8%" class="color_7">
|
||||
i18n_dngi.text.nodeState_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(nodeList) > 0}">
|
||||
<c:forEach items="${nodeList}" var="node" varStatus="nodeVar">
|
||||
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${nodeVar.count}
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
${node.nodeIp}
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
${node.nodeName}
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
<c:if test="${fn:length(node.nodeDesc)>16}">
|
||||
${fn:substring(node.nodeDesc,0,16) }...
|
||||
</c:if>
|
||||
<c:if test="${fn:length(node.nodeDesc)<=16}">
|
||||
${node.nodeDesc }
|
||||
</c:if>
|
||||
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
<fmt:formatDate value="${node.nodeCreatetime}" type="both" />
|
||||
</td>
|
||||
<td class="color_6">
|
||||
<c:if test="${node.nodeState==0 }">i18n_dngi.message.nodeState0_n81i</c:if>
|
||||
<c:if test="${node.nodeState==1 }"><font color="red">i18n_dngi.message.nodeState1_n81i</font></c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="7" height="20" align="center" class="color_6">
|
||||
i18n_dngi.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</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="goBack()" value="i18n_dngi.text.back_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
87
WebRoot/page/systemManage/nodegroup/nodeMgmtList.jsp
Normal file
87
WebRoot/page/systemManage/nodegroup/nodeMgmtList.jsp
Normal file
@@ -0,0 +1,87 @@
|
||||
<%@ 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 + "/";
|
||||
%>
|
||||
<script>
|
||||
document.location.href= "<%=path%>/sysManage/nodeManage!executeAction.do?action=query&nodeGroupId=${nodeGroup.groupId }";
|
||||
</script>
|
||||
|
||||
<!--
|
||||
<!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 type="text/javascript">
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$("#win").load(function(){
|
||||
$(this).height($(this).contents().height());
|
||||
});
|
||||
$(window).resize(function(){
|
||||
$("#win").height($("#win").contents().height());
|
||||
});
|
||||
})
|
||||
|
||||
function iLoad(){
|
||||
$("#win").height($("#win").contents().height());
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="iLoad();">
|
||||
<div class="middle_list">
|
||||
<form action="" name="Nodeform" method="post"
|
||||
style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
</form>
|
||||
<div style="clear: both" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td class="color_8">
|
||||
<strong>${nodeGroup.groupName }下的节点管理</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_6" align="center">
|
||||
<iframe name="win" scrolling="no" width="100%"
|
||||
frameborder="0" marginwidth="0" id="win"
|
||||
src="${pageContext.request.contextPath }/sysManage/nodeManage!executeAction.do?action=query&nodeGroupId=${nodeGroup.groupId }">
|
||||
</iframe>
|
||||
</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="goBack()"
|
||||
value="返回" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
-->
|
||||
246
WebRoot/page/systemManage/nodegroup/nodegroupInfoList.jsp
Normal file
246
WebRoot/page/systemManage/nodegroup/nodegroupInfoList.jsp
Normal file
@@ -0,0 +1,246 @@
|
||||
<%@ 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_ngil.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">
|
||||
var msg = '${MSG}';
|
||||
if(msg=='1'){
|
||||
alert("i18n_ngil.message.success_n81i");
|
||||
}else if(msg=='2'){
|
||||
alert("i18n_ngil.message.faild_n81i");
|
||||
}
|
||||
|
||||
//添加记录
|
||||
function addNodeGroup(){
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=openAdd";
|
||||
document.form3.submit();
|
||||
}
|
||||
//修改记录
|
||||
function updateNodeGroup(){
|
||||
if(!isRigthCheck("ids", "edit")){
|
||||
alert("i18n_ngil.message.updateNodeGroup_n81i");
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=openUpdate";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
//停用
|
||||
function stopNodeGroup(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_ngil.message.SelectOne_n81i");
|
||||
}else{//0是失效,1是生效
|
||||
if(isOperation("ids", 0)){//当前状态是0,不能停用操作
|
||||
alert('i18n_ngil.message.includeUnusingNode_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=stop";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//启用
|
||||
function startNodeGroup(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_ngil.message.SelectOne_n81i");
|
||||
}else{//0是失效,1是生效
|
||||
if(isOperation("ids", 1)){//当前状态是1,不能启用操作
|
||||
alert('i18n_ngil.message.startNodeGroup_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=start";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//查询记录
|
||||
function qry(){
|
||||
document.form3.action = "<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//查看详情
|
||||
function showRecord(id){
|
||||
document.form3.action = "<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=detail&nodeGroupId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
//管理节点
|
||||
function nodeMgmt(){
|
||||
if(!isRigthCheck("ids", "edit")){
|
||||
alert("i18n_ngil.message.updateNodeGroup_n81i");
|
||||
}else{
|
||||
document.form3.action = "<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=nodeMgmt";
|
||||
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;
|
||||
|
||||
if(!containSpecial(ajaxValue1)){
|
||||
ajaxValue = ajaxValue1;
|
||||
}else{
|
||||
alert('i18n_ngil.message.inputInfo_n81i');
|
||||
$("#"+id).val('');
|
||||
return;
|
||||
}
|
||||
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>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<!--中间部分右边开始-->
|
||||
<form name=form3 id="frmArticleType"
|
||||
action="<c:url value='/sysManage/nodeGroupManage.do'/>"
|
||||
method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<div class="box_1">
|
||||
i18n_ngil.text.groupName_n81i
|
||||
<input type="text" id="nameVo"
|
||||
onkeyup="lianxiangkeyup('groupName','NodegroupTable','String','groupName','suggest1',this.value);"
|
||||
name="nameVo" title="i18n_ngil.message.groupName_n81i" value="${nameVo}" size="20" />
|
||||
<div id='suggest1' class="ac_results"></div>
|
||||
|
||||
<div id='suggest2' class="ac_results"></div>
|
||||
<img src="<c:url value='/images/button_chaxun.png'/>"
|
||||
class="img_middle" onclick="javascript:qry();" />
|
||||
</div>
|
||||
|
||||
<div class="box_2">
|
||||
<c:if test="${ADMFlag ne true}">
|
||||
<jsp:include page="/include/include.jsp" />
|
||||
</c:if>
|
||||
</div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td class="color_top" width="4%">
|
||||
<input type="checkbox" name="checkbox62" value="checkbox"
|
||||
onClick="checkAll(this)" ${ADMFlag ? "disabled='disabled'":""}/>
|
||||
i18n_ngil.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_ngil.text.nodeGroup_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_ngil.text.nodeGroupType_n81i
|
||||
</td>
|
||||
<td class="color_top" width="12%">
|
||||
i18n_ngil.text.viewLevel_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_ngil.text.createTime_n81i
|
||||
</td>
|
||||
<td class="color_8" width="6%">
|
||||
i18n_ngil.text.state_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(nodeGroupList) > 0}">
|
||||
<c:forEach items="${nodeGroupList}" var="group" varStatus="vs">
|
||||
<input type="hidden" id="yxbz${group.groupId }"
|
||||
name="yxbz${group.groupId }" value="${group.isValid}" />
|
||||
<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="${group.groupId}" ${ADMFlag ? "disabled='disabled'":""}/>
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${group.groupId }')">${group.groupName}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${group.groupType==0 }">i18n_ngil.message.nodeGroupType0_n81i</c:if>
|
||||
<c:if test="${group.groupType==1 }">i18n_ngil.message.nodeGroupType1</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${group.viewLevel==1 }">i18n_ngil.message.publisher_n81i</c:if>
|
||||
<c:if test="${group.viewLevel==2 }">i18n_ngil.message.publisherGroup_n81i</c:if>
|
||||
<c:if test="${group.viewLevel==3 }">i18n_ngil.message.allInSys_n81i</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<fmt:formatDate value="${group.groupCreatetime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="${color_end }">
|
||||
<c:if test="${group.isValid==1 }">i18n_ngil.message.isValid0_n81i</c:if>
|
||||
<c:if test="${group.isValid==0 }"><font color="red">i18n_ngil.message.isValid1_n81i</font></c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="6" height="35" class="color_6" align="center">
|
||||
i18n_ngil.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
<c:if test="${!empty nodeGroupList}">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</c:if>
|
||||
<!--中间部分右边结束-->
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
232
WebRoot/page/systemManage/nodegroup/updateNodegroupInfo.jsp
Normal file
232
WebRoot/page/systemManage/nodegroup/updateNodegroupInfo.jsp
Normal file
@@ -0,0 +1,232 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_ungi.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/onmouse.js'/>"></script>
|
||||
<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/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">
|
||||
function add(){
|
||||
//去空格
|
||||
$("#groupName").val($.trim($("#groupName").val()));
|
||||
//验证不能空与长度限制
|
||||
//验证不能空与长度限制
|
||||
if($id("groupName","","i18n_ungi.text.groupName_n81i") && $("#groupName").checkByteLength(64,"i18n_ungi.text.groupName_n81i") && $id("mkid","","i18n_ungi.text.systemId_n81i")){
|
||||
if(jQuery("#viewLevel2").attr('checked')==true){
|
||||
if($("#usergroupId option").length<=1){
|
||||
alert('i18n_ungi.message.noGroupBelong_n81i');
|
||||
return;
|
||||
}else if($("#usergroupId").val()==''){
|
||||
alert('i18n_ungi.message.selectGroup_n81i');
|
||||
return;
|
||||
}
|
||||
}
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=doUpdate";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
|
||||
|
||||
jQuery(function(){
|
||||
if(jQuery("#viewLevel2").attr('checked')==true){
|
||||
jQuery("td[id=usergroup]").show();
|
||||
}else{
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
}
|
||||
|
||||
//-- 查看权限事件绑定
|
||||
jQuery("input[type=radio][name=nodeGroup.viewLevel]").click(function(){
|
||||
if(jQuery(this).val() == 2){ //用户组显示且必选
|
||||
jQuery("td[id=usergroup]").show();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',1).addClass('color_3').removeClass('td_6');
|
||||
}else{ //用户组隐藏
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("#usergroupId").val("");
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Ngform" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroup.groupId"
|
||||
value="${nodeGroup.groupId }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<!-- <div class="box_1">
|
||||
<img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" />
|
||||
你现在所在的位置是: 业务系统管理 -> 修改节点组
|
||||
</div> -->
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_ungi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_ungi.text.groupName_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeGroup.groupName" value="${nodeGroup.groupName }" id="groupName" />
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_ungi.text.groupType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="0" <c:if test="${nodeGroup.groupType==0 }">checked</c:if> />i18n_ungi.message.groupType0_n81i
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="1" <c:if test="${nodeGroup.groupType==1 }">checked</c:if>/>i18n_ungi.message.groupType1_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.systemId_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${ADMFlag eq true}" var="flag">
|
||||
<select name="mkid" id="mkid" >
|
||||
<option selected="selected" value="">
|
||||
i18n_ungi.message.systemId_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(systemList)>0 }">
|
||||
<c:forEach items="${systemList }" var="system">
|
||||
<option value="${system.systemId }" <c:if test="${system.systemId==nodeGroup.systemId }">selected</c:if>>
|
||||
${system.systemName }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
</c:if>
|
||||
<c:if test="${!flag}">
|
||||
<input type="hidden" name="mkid" id="mkid"
|
||||
value="${system.systemId }" />
|
||||
<input type="text" name="mkName" id="mkName"
|
||||
value="${system.systemName }" readonly
|
||||
/>
|
||||
</c:if>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.isValid_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="1" <c:if test="${nodeGroup.isValid==1 }">checked</c:if> />
|
||||
i18n_ungi.message.valid_n81i
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="0" <c:if test="${nodeGroup.isValid==0 }">checked</c:if>/>
|
||||
<font color="red">i18n_ungi.message.invalid_n81i</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" id="viewLevel">
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel1"
|
||||
value="1" <c:if test="${nodeGroup.viewLevel==1 }">checked</c:if> />
|
||||
i18n_ungi.message.publisher_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel2"
|
||||
value="2" <c:if test="${nodeGroup.viewLevel==2 }">checked</c:if> />
|
||||
i18n_ungi.message.publisherGroup_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel3"
|
||||
value="3" <c:if test="${nodeGroup.viewLevel==3 }">checked</c:if> />
|
||||
i18n_ungi.message.allInSys_n81i
|
||||
</td>
|
||||
<td class="color_1" align="right" id="usergroup">
|
||||
i18n_ungi.text.usergroup_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" id="usergroup">
|
||||
<select name="nodeGroup.createUsergroupId" id="usergroupId" >
|
||||
<option value="">
|
||||
i18n_ungi.message.usergroup_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(allUserGroup)>0 }">
|
||||
<c:forEach items="${allUserGroup }" var="userG">
|
||||
<option value="${userG.jsbh }"
|
||||
<c:if test="${userG.jsbh==nodeGroup.createUsergroupId }">selected</c:if>>
|
||||
${userG.jsmc }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.groupDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" colspan="3" align="left">
|
||||
<textarea rows="4" cols="80" name="nodeGroup.groupDesc"
|
||||
id="groupDesc" style="width: 360px" >${nodeGroup.groupDesc }</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_ungi.button.submit_n81i"/>
|
||||
|
||||
<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['Ngform'].reset()"
|
||||
value="i18n_ungi.button.reset_n81i"/>
|
||||
|
||||
<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_ungi.button.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user