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

📄 seldadbm_up.jsp

📁 “JSP数据库项目案例导航”一书从第一章到第十一章各章实例的源程序文件以及数据库文件。 注意: 1. 本书中的案例提供的数据库环境不同
💻 JSP
字号:
<%
/**********************************************************
Copyright (C),2003-10-12, Beijing  USTB.
All rights reserved.
Filename: selDadbm_up.jsp
Author:    
Version 1.0
Date:2003-10-12
Description://详细说明此程序文件完成的基本功能,与其他模块的或函数的接口、输出值、取值范围、含义及参数间的控制、顺序、独立或依赖等关系
Other://其它内容说明
Function List://主要方法列表
1.  ...
History://修改历史纪录表,包括修改日期、修改者、修改内容简述
1.  Date:
    Author:
    Modification:
2.  ...
***********************************************************/
%>
<%@page language="java" contentType="text/html;charset=GBK"%>
<%
String flg = (String)request.getParameter("flg");
%>
<html>
<head>
<title>选择上级部门</title>
<link href="../css/person.css" type=text/css rel=stylesheet>
<script language="javascript" src="../scripts/department.js"></script>
<script>
	function Updbm(radsel)//选择部门
	{
		var e2="";
		var e3="";
		var num = radsel.length;
		var flag = false;
		//alert("num="+radsel.length);

		if(radsel.checked)	//数组只有一个元素时 执行此语句,不执行下面的for语句
		{
			flag = true;
			e2 = radsel.value;
			e3 = radsel.id;
		}
		for(var i=0;i<num;i++)
		{
			if(radsel[i].checked)
			{
				flag = true;
				e2 = radsel[i].value;
				e3 = radsel[i].id;
			}
		}
		if(flag == false)
		{
			alert("请选定一个部门或取消!");
			return false;
		}
<%		if(flg.equals("1")){//修改一个部门的上级部门
%>			parent.opener.document.all.txt_lastbm.value = e3;
			parent.opener.document.all.hid_bmno.value = e2;
			parent.close();
<%		}
		else if(flg.equals("2")){//分配人员的职务PersonDuty
%>			parent.opener.document.all.txt_dutyBmName.value = e3;
			parent.opener.document.all.hid_dutybmno.value = e2;
			parent.close();
			parent.opener.form1.submit();
<%		}
		else if(flg.equals("3")){ //修改人员信息
%>			parent.opener.document.all.txt_bmmc.value = e3;
			parent.opener.document.all.txt_bmno.value = e2;
			parent.close();
<%		}
		else if(flg.equals("4"))
		{
%>			parent.opener.document.all.txt_bmmc.value = e3;
			parent.opener.document.all.txt_bmno.value = e2;
			parent.close();
			parent.opener.onOK();
<%		}
%>	return true;
	}
</script>
</head>
<body topmargin=0 leftmargin=0>
    <table id="t1" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="D0E7FF" width="95%" height="2">
       <tr><td>
			<input type="button" value="全部展开" class=fashion onmouseover="msover();" onmouseout="msout();"onclick="allopen()">
			&nbsp;
			<input type="button" value="全部折叠" class=fashion onmouseover="msover();" onmouseout="msout();"onclick="allclose()">
<!------------->
			<input type="button" name="subbtn" value="选定" class=fashion onmouseover="msover();" onmouseout="msout();" onclick="return Updbm(parent.below.formselorg.radsel)"> 
<!------------->
			<input type="button" name="btcancel" value="取消" class=fashion onmouseover="msover();" onmouseout="msout();" onclick="parent.close()"> 
	    </td>
	   </tr>
     </table>
</body>
</html>

⌨️ 快捷键说明

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