EditCalendarPlans.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:12k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intCalendarPlansID = m_request.GetInt("ID");
- if(intCalendarPlansID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的日程计划,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- int intUserID = m_session.GetInt("UserID");
- Vector vt = CalendarPlansManager.getRecordByID(intCalendarPlansID,intUserID);
- if(vt.size()==1)
- {
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>日程计划管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" type="text/javascript">
- function checkEditCalendarPlans()
- {
- if(document.editcalendarplans.PlanTitle.value=='')
- {
- alert("请输入计划主题!");
- document.editcalendarplans.PlanTitle.focus();
- return false;
- }
- if(document.editcalendarplans.PlanBeginDate.value!="")
- {
- if(!isDate(document.editcalendarplans.PlanBeginDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.editcalendarplans.PlanBeginDate.focus();
- return false;
- }
- }
- if(document.editcalendarplans.PlanEndDate.value!="")
- {
- if(!isDate(document.editcalendarplans.PlanEndDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.editcalendarplans.PlanEndDate.focus();
- return false;
- }
- }
- if(document.editcalendarplans.RealBeginDate.value!="")
- {
- if(!isDate(document.editcalendarplans.RealBeginDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.editcalendarplans.PlanBeginDate.focus();
- return false;
- }
- }
- if(document.editcalendarplans.RealEndDate.value!="")
- {
- if(!isDate(document.editcalendarplans.RealEndDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.editcalendarplans.RealEndDate.focus();
- return false;
- }
- }
- if(!isDate(document.editcalendarplans.AddTime.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.editcalendarplans.AddTime.focus();
- return false;
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <table width="90%" border="0" cellpadding="0" cellspacing="0">
- <tr align="center" valign="middle">
- <th nowrap colspan=2 align="center"><font color="#000000">修 改 日 程 计 划</font></th>
- </tr>
- <tr><td> </td>
- </tr>
- </table>
- <form name="editcalendarplans" action="EditCalendarPlansAction.jsp" method="post" onSubmit="javascript:return checkEditCalendarPlans();">
- <table border="1" cellpadding="1" cellspacing="1" width="90%">
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计 划 主 题: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <input name="PlanTitle" type="text" maxlength="50" size="70" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
- <input name="ID" type="Hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>" >
- <input name="UserID" type="hidden" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计 划 内 容: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <textarea name="PlanContent" cols="80" rows="4"><%=((Vector)vt.get(0)).get(3).toString()%></textarea>
- </td>
- </tr>
- <tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">增 加 时 间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="AddTime" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">重 要 等 级: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <select name="ImportLevel" >
- <option value="1" <%if(((Vector)vt.get(0)).get(9).toString().equalsIgnoreCase("1")) out.print("selected");%>>一级</option>
- <option value="2" <%if(((Vector)vt.get(0)).get(9).toString().equalsIgnoreCase("2")) out.print("selected");%>>二级</option>
- <option value="3" <%if(((Vector)vt.get(0)).get(9).toString().equalsIgnoreCase("3")) out.print("selected");%>>三级</option>
- <option value="4" <%if(((Vector)vt.get(0)).get(9).toString().equalsIgnoreCase("4")) out.print("selected");%>>四级</option>
- <option value="5" <%if(((Vector)vt.get(0)).get(9).toString().equalsIgnoreCase("5")) out.print("selected");%>>五级</option>
- </select>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计划开始时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="PlanBeginDate" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">计划结束时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="PlanEndDate" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(6).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">实际开始时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="RealBeginDate" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(7).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">实际结束时间: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <input name="RealEndDate" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(8).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">提醒时间间隔: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <select name="RemindInterval" >
- <option value="1" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("1"))out.print("selected");%>>一小时</option>
- <option value="2" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("2"))out.print("selected");%>>二小时</option>
- <option value="3" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("3"))out.print("selected");%>>三小时</option>
- <option value="4" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("4"))out.print("selected");%>>四小时</option>
- <option value="5" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("5"))out.print("selected");%>>五小时</option>
- <option value="8" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("8"))out.print("selected");%>>八小时</option>
- <option value="10" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("10"))out.print("selected");%>>十小时</option>
- <option value="24" <%if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("24"))out.print("selected");%>>二十四小时</option>
- </select>
- </td>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">是否已经完成: </font></td>
- <td align="left" valign="middle" width="35%" nowrap>
- <font color="#0A0A0A"><input name="IsFinished" type="radio" value="1" <%if(((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase("true"))out.print("checked");%>>已完成 <input name="IsFinished" type="radio" value="0" <%if(((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase("false"))out.print("checked");%>>未完成</font>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle" width="14%"><font color="#0A0A0A">备 注: </font></td>
- <td align="left" valign="middle" colspan="3" nowrap>
- <textarea name="Remark" cols="80" rows="4"><%=((Vector)vt.get(0)).get(12).toString()%></textarea>
- </td>
- </tr>
- </table>
- <table border="0" width="90%">
- <tr>
- <td>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="right" valign="middle" nowrap>
- <input type="submit" value="修 改" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="button" value="返 回" onclick="window.location='CalendarPlansManage.jsp';" style="background-color: #FFFFFF; border: 1 solid #000000">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>