⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 neworglist.jsp

📁 java jsp教程
💻 JSP
字号:
<!-- /jsp/common/logList.jsp by cuixg 2005-8-17 -->
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.List" %>

<%@ page import="com.icss.resourceone.sdk.framework.Organization" %>
<%@ page import="com.icss.cnpc.base.vo.TexorginfoVO" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
String parentOrgid =(String) request.getAttribute("parentOrgid");
System.out.println("newOrgList.jsp中的parentOrgid---->"+parentOrgid);
List bmList =(List) request.getAttribute("bmList");
List exOrgList =(List) request.getAttribute("exOrgList");
List selectOrgUuid =(List) request.getAttribute("selectOrgUuid");
String personUuid =(String) request.getAttribute("personUuid");
String orgName = (String) request.getAttribute("orgName");
String rightType = (String) request.getAttribute("rightType");
System.out.println("[check]newOrgList.jsp--rightType---->"+rightType);
String cnpcAvailable = (String) request.getAttribute("cnpcAvailable");
System.out.println("[check]newOrgList.jsp--cnpcAvailable---->"+cnpcAvailable);
%>
<html>
<head>
<title>授权个人察看部门</title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script language="JavaScript" src="<%=request.getContextPath()%>/common/common.js"></script>
<script language="JavaScript">
function _selectAll(){
	var sForm = document.form1;
  	if(sForm.all.checked==true){
	  if(sForm.orgUuids.length!=null){
		for(var i=0;i<sForm.orgUuids.length;i++){
			if(sForm.orgUuids[i].type=="checkbox" && sForm.orgUuids[i].disabled==false){
		 		sForm.orgUuids[i].checked=true;
	 		 }
	 	}
	  }
	  else{
		sForm.orgUuids.checked=true;
	  }
   }else{
 	if(sForm.orgUuids.length!=null){
    	for(var i=0;i<sForm.orgUuids.length;i++){
      		if(sForm.orgUuids[i].type=="checkbox"){
        		sForm.orgUuids[i].checked=false;
	 		}
	 	}
	 }
 	else{
		 sForm.orgUuids.checked=false;
	}
  }
}

function checkdel(sub_nobody){
  var chosed = 0; 
  with(document.all.tags("INPUT")){
    for(i = 0; i < length; i++ ){
      if( item(i).checked == true && item(i).type == 'checkbox' ){
		  if(item(i).name != "all")
			chosed++;
      }
    }
  }
  if( chosed == 0 ){
    alert( sub_nobody );
    return false;
  }else{
    return true;
  }
}

function _createNew(){
	if(checkdel("请选择组织")){
	var returnValues="<%=parentOrgid%>"+"$";
	var OrgUuids = document.all.item('orgUuids');
	if(OrgUuids!=null){
		if(OrgUuids.length!=null){
			for(var i=0;i<OrgUuids.length;i++){
				if(OrgUuids[i].checked==true)
					returnValues+=OrgUuids[i].value+"$";
			}
		}
		else{
			if(OrgUuids.checked==true)
			returnValues+=OrgUuids.value+"$";
		}
	}
	form1.action="<%=request.getContextPath()%>/servlet/PersonOrgOperateServlet?oprate=add&personUuid=<%=personUuid%>&rightType=<%=rightType%>&orgUuid="+returnValues;
	form1.submit();
	<!--parent.opener.location.reload();-->
	}
}

function _createNewTest()
{
	var returnValues="<%=parentOrgid%>"+"$";
	var OrgUuids = document.all.item('orgUuids');
	if(OrgUuids!=null){
		if(OrgUuids.length!=null){
			for(var i=0;i<OrgUuids.length;i++){
				if(OrgUuids[i].checked==true)
					returnValues+=OrgUuids[i].value+"$";
			}
		}
		else{
			if(OrgUuids.checked==true)
			returnValues+=OrgUuids.value+"$";
		}
	}
myframe.location = "<%=request.getContextPath()%>/servlet/PersonOrgOperateServlet?oprate=add&personUuid=<%=personUuid%>&rightType=<%=rightType%>&orgUuid="+returnValues;
opener.location.reload();
}

function _close(){
	window.top.close();		
}
</script>
</head>
<body onLoad="parent.opener.location.reload();"leftmargin="0" topmargin="10" text="#000000" bgcolor="#FFFFFF" background=<%=request.getContextPath()%>/images/grid.gif >
<iframe width="0" height="0" name = "myframe"></iframe>
<form name="form1" method=post>
<input type="hidden" name="personUuid" value="<%=personUuid%>">
<input type="hidden" name="oprate" value="">
<br>
	 
    
	  
	    <table width="95%" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#426199"> 
        <tr>
        <td bgcolor="#A6D0F2" align="center" height="25" colspan="3"><%=orgName%>&nbsp;组织列表    <a href="<%=request.getContextPath()%>/servlet/NewOrgListServletDistrbute?personUuid=<%=personUuid%>&rightType=<%=rightType%>"><font size="0" face="Verdana, Arial, Helvetica, sans-serif">返回顶级</font></a></td>
        </tr>
		<tr bgColor="#EEF4FF" height="25">	
		<td align="center" height="25" bgColor=#eef4ff width="8%"><%if(cnpcAvailable != "0"){%><input type="checkbox" class="radio1" name="all" onClick="_selectAll()"><%}%></td>
		<td align="center" height="25" bgColor=#eef4ff width="13%">序号</td>
		<td align="center" height="25" bgColor=#eef4ff>组织名称</td>		
		</tr>
		

		 <%
		 int i = 0;
		 for(Iterator ex = exOrgList.iterator();ex.hasNext();)
		 {TexorginfoVO vo = (TexorginfoVO)ex.next();
		 String name = vo.getUnitname();
		 String orgUuid = vo.getOrguuid();
		 String isAudit = vo.getIsaudit();
		 i++;
		 %>
		 <tr onmouseover="this.bgColor='#EBEBEB';" onmouseout="this.bgColor='#EEF4FF';" bgColor=#eef4ff>
		<td align="center" height="25"><%if(cnpcAvailable != "0"){%><input type="checkbox" class="radio" name="orgUuids" id="check_<%=i%>" value="<%=orgUuid%>"><%}%></td>
		<td align="center" height="25"><%=i%></td>
		<td align="center" height="25" ><a href="<%=request.getContextPath()%>/servlet/NewOrgListServlet?rightType=<%=rightType%>&orgid=<%=orgUuid%>&personUuid=<%=personUuid%>"><%=name%></a></td>
		</tr>
		<%}%>
	 </table>
	 <br>
	 <center>
	 		<img border="0" src="<%=request.getContextPath()%>/images/conform.gif" onclick = '_createNew()' style ="cursor:hand"> 
			<img border="0" src="<%=request.getContextPath()%>/images/cancel.gif" onclick ="_close()"  style ="cursor:hand">
</center>

 </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -