EditLeaveApplyRecord.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:9k
源码类别:
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 iSysDirID = m_request.GetInt("SysDirID");
- int intLeaveApplyID = m_request.GetInt("ID");
- if(intLeaveApplyID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的请假申请,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = ErrandApplyManager.getRecordByID(intLeaveApplyID);
- 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 checkEditLeaveApply()
- {
- if(!isDate(document.EditLeaveApply.RealStartDateD.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.EditLeaveApply.RealStartDateD.focus();
- return false;
- }
- if(!isDate(document.EditLeaveApply.RealEndDateD.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.EditLeaveApply.RealEndDateD.focus();
- return false;
- }
- //计划开始时间,结束时间合成
- document.EditLeaveApply.RealStartTime.value = document.EditLeaveApply.RealStartDateD.value + " "+
- document.EditLeaveApply.RealStartDateT.value + ":00:00";
- document.EditLeaveApply.RealEndTime.value = document.EditLeaveApply.RealEndDateD.value + " "+
- document.EditLeaveApply.RealEndDateT.value + ":00:00";
- }
- </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>
- <form name="EditLeaveApply" action="/Operation/EditLeaveApplyRecordAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditLeaveApply();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <input name="SysDirID" type="Hidden" value="<%=((Vector)vt.get(0)).get(14).toString()%>" >
- <input name="ID" type="Hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>" >
- <input name="ApplyUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
- <input name="ConfirmUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(13).toString()%>">
- <input name="ApplyTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy-MM-dd HH:mm:ss")%>">
- <input name="CompanyTo" type="hidden" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
- <input name="CityTo" type="hidden" value="<%=((Vector)vt.get(0)).get(6).toString()%>">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">请假事由:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="ErrandTitle" type="text" maxlength="150" size="37" value="<%=((Vector)vt.get(0)).get(7).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">请假事由描述:</font></td>
- <td align="left" valign="middle" nowrap>
- <textarea name="ErrandContent" cols="30" rows="2"><%=((Vector)vt.get(0)).get(8).toString()%></textarea>
- </td>
- </tr>
- <input name="Personnels" type="hidden" value="<%=((Vector)vt.get(0)).get(9).toString()%>">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">实际开始时间:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="RealStartTime" type="hidden">
- <input name="PlanStartTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy-MM-dd HH:mm:ss")%>">
- <input name="RealStartDateD" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="12" size="12" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- <select name="RealStartDateT">
- <option value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"H")%>" selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"H")%></option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9"<%if (StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"H").equalsIgnoreCase("")) out.print("selected");%>>9</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17">17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- </select>
- <font color="#0A0A0A">时</font></td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">实际结束时间:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="RealEndTime" type="hidden">
- <input name="PlanEndTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy-MM-dd HH:mm:ss")%>">
- <input name="RealEndDateD" type="text" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" maxlength="12" size="12" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">
- <select name="RealEndDateT">
- <option value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"H")%>" selected><%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"H")%></option>
- <option value="6">6</option>
- <option value="7">7</option>
- <option value="8">8</option>
- <option value="9">9</option>
- <option value="10">10</option>
- <option value="11">11</option>
- <option value="12">12</option>
- <option value="13">13</option>
- <option value="14">14</option>
- <option value="15">15</option>
- <option value="16">16</option>
- <option value="17"<%if (StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"H").equalsIgnoreCase("")) out.print("selected");%>>17</option>
- <option value="18">18</option>
- <option value="19">19</option>
- <option value="20">20</option>
- </select>
- <font color="#0A0A0A">时</font></td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
- <td align="left" valign="middle" nowrap>
- <textarea name="Remark" cols="30" rows="2"><%=((Vector)vt.get(0)).get(10).toString()%></textarea>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- <input type="submit" value="修改"> <input type="reset" value="重填"> <input type="button" value="返回" onclick="window.location='LeaveApplyRecordManage.jsp?SysDirID=<%=iSysDirID%>';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>