This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-nmsweb/WebRoot/page/system/usergroup/giveGrouppermission/geivegroupperm.jsp
wangwenrui dc168fa9b9 1.事务添加
2.亦庄bug修改
3.业务系统添加逻辑变更
2018-09-29 09:52:11 +08:00

189 lines
7.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<%@ page import="nis.nms.core.*" %>
<!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_ggrp.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/WebCalendar.js'/>"></script>
<!-- <link rel="StyleSheet" href="<c:url value='/dtree/css/dtree.css" type="text/css'/>" /> -->
<link href="<c:url value='/js//dtree/css/dtree.css'/>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<c:url value='/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript">
function checkUpdate(){
var type;
$.ajax({
url:"<c:url value='/'/>sysManage/userGroupPerssion.do?action=checkUpdate",
type : "POST",
async:false,
data:$('#jsForm').serialize(),
success : function(data) {
if(data == "error"){
alert("i18n_ggrp.message.jsFormError_n81i");
type = false;
}else if(data == "exception"){
alert("i18n_ggrp.message.jsFormException_n81i");
type = false;
}else if(data =="success"){
type = true;
}
}
});
return type;
}
function update(){
if($id("jsmc","","i18n_ggrp.text.jsmc_n81i")){
if(checkSpecial($.trim($("#jsmc").val()))){
$("#jsmc").next().html("i18n_ggrp.message.jsmc_n81i");
return;
}
var values=document.getElementsByName("mkid");
var checkedValues='';
for( var i = 0; i < values.length; i++ ){
if (values[i].checked==true ){
checkedValues +=values[i].value+",";
}
}
if(checkedValues==''){
$("#sys").html('i18n_ggrp.message.jsmc_n81i');
return ;
}
if(checkUpdate()){
document.jsForm.action="<c:url value='/'/>sysManage/userGroupPerssion.do?action=update";
document.jsForm.submit();
}
}
}
function goBack(){
document.jsForm.action="<c:url value='/'/>/sysManage/userGroupPerssion.do?action=query";
document.jsForm.submit();
}
</script>
</head>
<body>
<div class="middle_list">
<div class="box_2">
<input type="button" value="i18n_ggrp.button.back_n81i" class=btn3_mouseout
onclick="javaScript:goBack();"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" />
</div>
<div style="height: 25px"></div>
<form action="" name="jsForm" id="jsForm" method="post">
<input type="hidden" name="position" value="${position }" />
<input type="hidden" name="userGroup.jsbh"
value="${listJsInfo[0].jsbh }" />
<input type="hidden" id="na" value="${listJsInfo[0].jsmc }" />
<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">
<tr>
<td class="color_top" colspan="2">
<strong>i18n_ggrp.text.title_n81i</strong>
</td>
</tr>
<tr>
<td class="color_1" align="right" width="30%">
i18n_ggrp.text.userGroup_n81i
</td>
<td class="color_3" align="left">
<input name="role.jsbh" value="${listJsInfo[0].jsbh }"
type="hidden" />
<input type="text" name="role.jsmc" id="jsmc"
value="${listJsInfo[0].jsmc }" />
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ggrp.message.userGroupDesc_n81i
</td>
<td class="color_3" align="left">
<textarea name="role.jsms" rows="4" cols="40" >${listJsInfo[0].jsms}</textarea>
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ggrp.text.state_n81i
</td>
<td class="color_3" align="left">
<input name="role.type" value="1" type="hidden" />
<input type="radio" name="role.zxbz" value="0"
<c:if test="${listJsInfo[0].zxbz==0}"> checked </c:if> />
<font size=2>i18n_ggrp.message.state0_n81i</font>&nbsp;
<input type="radio" name="role.zxbz" value="1"
<c:if test="${listJsInfo[0].zxbz==1}"> checked </c:if> />
<font size=2>i18n_ggrp.message.state1_n81i</font>&nbsp;
</td>
</tr>
<tr>
<td class="color_1" align="right">
i18n_ggrp.text.systemId_n81i<font color="red">*</font>
</td>
<td class="color_3" valign="top" align="left">
<font color="red" id="sys"></font>
<div id="tree" name="tree" align="left"
style="OVERFLOW-Y: auto; width: 100%;">
<script type="text/javascript">
d = new dTree('d');
d.add('0','-1','i18n_ggrp.text.systemList_n81i');
<%
List treeList = (List)request.getAttribute("listresources");
List list = MakeTree.getAllResourceList(treeList);
if(list != null && list.size() > 0){
Resource resource = new Resource();
for( int i = 0 ; i < list.size() ; i++ ){
resource = (Resource) list.get(i);
if(resource.getChecked()!=null && !"".equals(resource.getChecked())){
%>
d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','checked');
<%
}else{
%>
d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','');
<%
}
}
}
%>
document.write(d);
</script>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="right" class="color_1">
<input type="button" onclick="update()" value="i18n_ggrp.button.submit_n81i"
class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" />
&nbsp;
<input type="button" value="i18n_ggrp.button.reset_n81i" class=btn3_mouseout
onclick="javascript:jQuery('#jsForm')[0].reset();"
onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" />
</td>
</tr>
</table>
</form>
</div>
</body>
</html>