📄 dailyarragementlist.jsp
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.util.Date,java.text.*,oa.main.DealString"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title> 个人日程安排 </title>
<link href="../css/css1.css" type=text/css rel=stylesheet>
<script language="javascript" src="../scripts/department.js"></script>
</head>
<%
oa.bean.dailyArragement myBean = null;
try{
myBean = new oa.bean.dailyArragement();
DealString ds=new DealString();
//取得菜单类别
String strType = ds.toString((String)request.getParameter("txt_type"));
//职工编号
String strPersonNo = ds.toString((String)request.getParameter("txt_personno"));
if(strPersonNo.equals(""))
{
strPersonNo = (String)session.getAttribute("zgbh");
}
//增删改类型
String strEdit = ds.toString((String)request.getParameter("txt_edit"));
//错误码
String errcode = ds.toString((String)request.getParameter("errcode"));
if(errcode.equals(""))errcode = "0";
if(!errcode.equals("0")){
response.sendRedirect("../err.jsp?ip=person/dailyArragementList.jsp&txt_type="+strType+"&errcode="+errcode);
}
String title = "查看详细信息";
%>
<center>
<body class="bgl">
<br>
<br>
<TABLE class="tab" border="0" width="95%" cellspacing="0" cellpadding="0" height="22" bgcolor=#ffffff>
<TR align=left> <%//tab 用来指定背景类别%>
<TD>
<a onclick="changepage11('5');" style="cursor:hand;">
<FONT color="#99cc00">日历查看</FONT></a> >>
<FONT color="#ffcc00">列表查看</FONT> >>
</TD>
</TR>
</TABLE>
<table class="tab" width="95%" align="center" cellSpacing=1 cellPadding=5 bgColor=#999999
style="word-break:break-all;">
<!--hr color=yellow--->
<TR bgcolor="#2969b5" height="22">
<!--TD align=center width=60 >
<font color="#ffffff"><B>姓名</B></font></td--->
<td width=20> </td>
<TD align=center width="50%" ><font color="#ffffff"><B>日程主题</B></font></td>
<TD align=center width="30%"><font color="#ffffff"><B>日程时间</B></font></td>
<TD align=center width="20%" colspan=2><font color="#ffffff"><B>操作</B></font></td>
</TR>
<TR bgColor=#ffffff>
<TD colSpan=3 height=15></TD><!-----colSpan=3----->
<TD title="新增日程" align="center"><FONT color="#FF6600">
<A onclick="changepage11('1');" style="cursor:hand;">新增日程安排</A> </FONT></TD>
</TR>
<%
String bgcolor = "";
Vector vect = (Vector)myBean.getData(strPersonNo);
int size = vect.size();
for(int i=size-1;i>=0;i--)
{
if((size-i)%2 == 1)
bgcolor = "#ffffff";
else
bgcolor = "#d0e7ff";
Hashtable hash = (Hashtable)vect.get(i);
String strZGBH = (String)hash.get("ZGBH");
String strZGXM = myBean.getPersonName(strZGBH);
String strXH = (String)hash.get("RCXH");
String strBT = (String)hash.get("BT");
String strSJ = (String)hash.get("SJ");
%>
<TR bgcolor="<%=bgcolor%>" height="22">
<td><input type=checkbox name=checkboxid value="<%=strXH%>"></td>
<!---TD align=center><%=strZGXM%></td---->
<TD align=center><a title=<%=title%> onmouseover="this.style.color='#6600FF';this.style.textDecoration='underline';" onmouseout="this.style.color='#660099';this.style.textDecoration='none';" href="showDailyArray.jsp?txt_personno=<%=strZGBH%>&txt_rcxh=<%=strXH%>" style="color:#660099;cursor:hand;">
<%=strBT%></a></td>
<TD align=center><%=strSJ%></td>
<TD align="center"><FONT color="#99cc00">
<A onclick="mod('<%=strXH%>');" style="cursor:hand;">修改</A> |
<A onclick="del('<%=strXH%>');" style="cursor:hand;">删除</A></FONT></TD></TR>
<% }
if(size>=1){%>
<tr>
<TD align=left colspan=20>
<%if(size>=2){%>
<input type=button value="全选" name=selall onclick="selectall();" style="cursor:hand;">   
<%}%>
<input type=button value="删除" onclick="return remove();" style="cursor:hand;">
<input type=button value="清空日程安排" onclick="clear_rc();" style="cursor:hand;"></td>
</tr>
<%}%>
</table>
<br><br>
</center>
<script>
function changepage11(type)
{
document.all.txt_type.value = "2";
document.all.txt_edit.value = type;// 1:添加 2:修改 3:删除 4:列表查看 5:日历查看
document.all.form1.action = "person.jsp";//将txt_type.value, txt_edit.value提交给person.jsp
document.all.form1.submit();
}
function mod(rcxh)
{
document.all.txt_type.value = "2";
document.all.txt_edit.value = "2";
document.all.txt_rcxh.value = rcxh;
document.all.form1.action = "person.jsp";//将txt_type, txt_edit, txt_rcxh的值提交给person.jsp
document.all.form1.submit();
}
function del(rcxh)
{
if(confirm("真的要删除吗?"))
{
document.all.txt_type.value = "2";
document.all.txt_edit.value = "3";
document.all.txt_rcxh.value = rcxh;
document.all.form1.action = "../../PerSvlt";//将txt_type, txt_edit, txt_rcxh的值提交给PersonServlet.java
document.all.form1.submit();
}
}
function selectall()
{
var num = document.all.checkboxid.length;
if(document.all.selall.value == "全选")
{
for(var i=0;i<num;i++)
{
document.all.checkboxid[i].checked = true;
}
document.all.selall.value = "取消全选";
}
else
{
for(var i=0;i<num;i++)
{
document.all.checkboxid[i].checked = false;
}
document.all.selall.value = "全选";
}
}
function remove()
{
var delid = "";
var num = <%=size%>;
if(num==1)
{
if(document.all.checkboxid.checked==true)
delid = document.all.checkboxid.value;
}
if(num>=2)
{
var numid = document.all.checkboxid.length;
for(var i=0;i<numid;i++)
{
if(document.all.checkboxid[i].checked == true)
{
if(delid == "")
{
delid = document.all.checkboxid[i].value;
}
else
{
delid = delid+","+document.all.checkboxid[i].value;
}
}
}
}
if(delid=="")
{
alert("请选择要删除的日程安排!");
return false;
}
if(!confirm("是否真的要删除?"))
{
return false;
}
document.all.txt_type.value = "2";
document.all.txt_edit.value = "3";
document.all.txt_rcxh.value = delid;
document.all.form1.action = "../../PerSvlt";
document.all.form1.submit();
}
function clear_rc(){
if(!confirm("是否真的要删除所有的日程安排?"))
{
return false;
}
document.all.txt_type.value = "2";
document.all.txt_edit.value = "4";
document.all.form1.action = "../../PerSvlt";
document.all.form1.submit();
}
</script>
</BODY>
</HTML>
<%}finally{
if(myBean!=null)myBean.closeConn();
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -