?? index.jsp
字號(hào):
<%@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";
//錯(cuò)誤碼
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("職務(wù)有人擔(dān)當(dāng),不能刪除職務(wù)!");
</script>
<%
}
else if(!errcode.equals("0"))response.sendRedirect("../err.jsp?ip=organization/index.jsp&txt_type="+strType+"&errcode="+errcode);
//組織機(jī)構(gòu)編號(hào)
String strOrgNO = ds.toString((String)request.getParameter("txt_orgno"));
//職務(wù)編號(hào)
String strDutyNO = ds.toString((String)request.getParameter("txt_dutyno"));
//增刪改類型
String strEdit = ds.toString((String)request.getParameter("txt_edit"));
//職工人員編號(hào)
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"));
//第幾頁(yè)
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;//個(gè)人基本信息
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>組織機(jī)構(gòu)</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> >>
<A onclick="changepage('2');" style="cursor:hand;"><FONT
color="<%//=color[1]%>">職務(wù)列表</FONT></A> >>
<A onclick="changepage('3');" style="cursor:hand;"><FONT
color="<%//=color[2]%>">人員列表</FONT></A> >>
<A onclick="changepage('4');" style="cursor:hand;"><FONT
color="<%//=color[3]%>">人員職務(wù)列表</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{
}%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -