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

📄 index.jsp

📁 企业员工信息管理系统
💻 JSP
字号:

<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="oa.main.DealString,java.util.Vector"%>
<%@include file="../../inc.jsp"%>
<%
try{
	DealString ds = new DealString();

	session.setAttribute("zgbh","1");
	//取得菜单类别
	String strType = ds.toString((String)request.getParameter("txt_type"));
	if(strType.equals(""))strType = "1";

	//错误码
	String errcode = ds.toString((String)request.getParameter("errcode"));
	int tag =0;
	if(errcode.equals("0"))tag=1;
	if(errcode.equals(""))errcode = "0";
	else if(errcode.equals("7")){
%>
<script>
	alert("原密码有误!");
	</script>
<%
	}
	else if(errcode.equals("-1"))
	{
%>
<script>
	alert("职务有人担当,不能删除职务!");
	</script>
<%
	}
	else if(!errcode.equals("0"))response.sendRedirect("../err.jsp?ip=organization/index.jsp&txt_type="+strType+"&errcode="+errcode);

	//组织机构编号
	String strOrgNO = ds.toString((String)request.getParameter("txt_orgno"));

	//职务编号
	String strDutyNO = ds.toString((String)request.getParameter("txt_dutyno"));

	//增删改类型
	String strEdit = ds.toString((String)request.getParameter("txt_edit"));
	//职工人员编号
	String strPersonNO = ds.toString((String)request.getParameter("txt_personno"));
	//按什么字段排序
	String strPaixu = ds.toString((String)request.getParameter("txt_paixu"));
	//按什么字段排序
	String strSrchZD = ds.toString((String)request.getParameter("txt_srch"));
	//第几页
	String strPage = ds.toString((String)request.getParameter("txt_page"));
	//管理部门文章类别
	String strbmbh = ds.toString((String)request.getParameter("bmbh"));
	String strPid = ds.toString((String)request.getParameter("txt_pid"));
	String strId = ds.toString((String)request.getParameter("txt_id"));
	String childfile = "";
	String addr = "?txt_orgno="+strOrgNO+"&txt_type="+strType+"&txt_dutyno="+strDutyNO+"&txt_edit="+strEdit+"&txt_personno="+strPersonNO+"&txt_page="+strPage;
	if(strType.equals("1"))
	{
		childfile = "deptree1.jsp"+addr;
		if(strEdit.equals("1")||strEdit.equals("2"))childfile = "deptree_edit.jsp"+addr;
	}
	else if(strType.equals("2"))
	{
		childfile = "duty1.jsp"+addr;
		if(strEdit.equals("1")||strEdit.equals("2"))childfile = "duty_edit.jsp"+addr;
	}
	else if(strType.equals("3"))
	{
		childfile = "display.jsp"+addr;
		if(strEdit.equals("1"))childfile = "addInf.jsp"+addr;
		if(strEdit.equals("2"))childfile = "modInf.jsp"+addr;
		if(strEdit.equals("3"))childfile = "display0.jsp"+addr+"&tag="+tag;//个人基本信息
		if(strEdit.equals("4"))childfile = "display0.jsp"+addr;//人员列表姓名连接
		if(strEdit.equals("5"))childfile = "dipwaste.jsp"+addr;
		if(strEdit.equals("6"))childfile = "modbaseinf.jsp"+addr;
		if(strEdit.equals("7"))childfile = "modpsw.jsp"+addr;
	}
	else if(strType.equals("4"))
	{
		childfile = "PersonDuty.jsp"+addr;
		if(strEdit.equals("4"))childfile = "PersonDuty_son.jsp"+addr;
	}
%>
<HTML>
<head><title>组织机构</title>
<link href="../css/person.css" type=text/css rel=stylesheet>
<script language="javascript" src="../scripts/department.js"></script>
<script src="Popup.js"></script>
</head>
<BODY leftMargin=0 topMargin=0 oncontextmenu="onclickhide()">

<form name=form1 action="index.jsp" method=post>

<input type=hidden name="txt_test" value="">
<input type=hidden name="txt_type" value="<%=strType%>">
<input type=hidden name="txt_orgno" value="<%=strOrgNO%>">
<input type=hidden name="txt_dutyno" value="<%=strDutyNO%>">
<input type=hidden name="txt_edit" value="<%=strEdit%>">
<input type=hidden name="txt_personno" value="<%=strPersonNO%>">
<input type=hidden name="txt_paixu" value="<%=strPaixu%>">
<input type=hidden name="txt_srch" value="<%=strSrchZD%>">
<input type=hidden name="txt_page" value="<%=strPage%>">
<input type=hidden name="bmbh" value="<%=strbmbh%>">
<input type=hidden name="txt_pid" value="<%=strPid%>">
<input type=hidden name="txt_id" value="<%=strId%>">

<%
String psno = (String)session.getAttribute("zgbh");
%>

<!--
<TABLE cellSpacing=0 cellPadding=0 width="100%">
  <TBODY>
  <TR>
    <TD>
	  <A onclick="changepage('1');" style="cursor:hand;"><FONT 
      color="<%//=color[0]%>">部门列表</FONT></A> &gt;&gt; 
	  <A onclick="changepage('2');" style="cursor:hand;"><FONT 
      color="<%//=color[1]%>">职务列表</FONT></A> &gt;&gt; 
	  <A onclick="changepage('3');" style="cursor:hand;"><FONT 
      color="<%//=color[2]%>">人员列表</FONT></A> &gt;&gt;
	  <A onclick="changepage('4');" style="cursor:hand;"><FONT 
      color="<%//=color[3]%>">人员职务列表</FONT></A>
	  <BR><BR>
    </TD>
   </TR>
   </TBODY>
</TABLE>
//-->


<jsp:include page="popmenu.jsp"/>
<jsp:include page="<%=childfile%>"/>

<script>
	function changepage(type)
	{
		document.all.txt_type.value = type;
		document.all.txt_edit.value = "";
		document.all.txt_personno.value = "";
		document.all.txt_paixu.value = "";
		document.all.txt_srch.value = "";
		document.all.txt_page.value = "";
		document.all.form1.action = "index.jsp";
		document.all.form1.submit();
	}
</script>

</form>
</BODY>
</HTML>
<%}finally{
}%>

⌨️ 快捷键说明

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