EditLeaveApplyCheck.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int intLeaveApplyID = m_request.GetInt("ID");
  7. int iSysDirID = m_request.GetInt("SysDirID");
  8. if(intLeaveApplyID<1)
  9. {
  10. %>
  11. <script language="JavaScript" type="text/JavaScript">
  12. alert("请选择正确的请假申请,修改失败!");
  13. history.back();
  14. </script>
  15. <%
  16. }
  17. else
  18. {
  19. Vector vt = ErrandApplyManager.getRecordByID(intLeaveApplyID);
  20. if(vt.size()==1)
  21. {
  22. %>
  23. <html>
  24. <head>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  26. <title>请假管理-- GForce OA 2.0</title>
  27. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  28. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  29. <script language="JavaScript" type="text/javascript">
  30. </script>
  31. </head>
  32. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  33. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  34.     <tr>
  35.         <td align="center" valign="top"><p>&nbsp;</p>
  36.             <form name="EditLeaveApply" action="/Operation/EditLeaveApplyCheckAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditLeaveApply();">
  37.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  38.                         <input name="ID" type="Hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>" >
  39.                         <input name="ApplyUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
  40.                         <input name="SysDirID" type="hidden" value="<%=((Vector)vt.get(0)).get(14).toString()%>">
  41.                         <input name="ConfirmUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(13).toString()%>">
  42.                         <input name="ApplyTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  43.                         <input name="RealStartTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  44.                         <input name="PlanStartTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  45.                         <input name="RealEndTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  46.                         <input name="PlanEndTime" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy-MM-dd HH:mm:ss")%>">
  47.                         <input name="CompanyTo" type="hidden" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
  48.                         <input name="CityTo" type="hidden" value="<%=((Vector)vt.get(0)).get(6).toString()%>">
  49.                 <tr>
  50.                     <td align="right" valign="middle"><font color="#0A0A0A">请假事由:</font></td>
  51.                     <td align="left" valign="middle" nowrap>
  52.                         <input name="ErrandTitle" type="text" maxlength="150" size="37" value="<%=((Vector)vt.get(0)).get(7).toString()%>">
  53.                     </td>
  54.                 </tr>
  55.                 <tr>
  56.                     <td align="right" valign="middle"><font color="#0A0A0A">请假事由描述:</font></td>
  57.                     <td align="left" valign="middle" nowrap>
  58.                       <textarea name="ErrandContent" cols="30" rows="2"><%=((Vector)vt.get(0)).get(8).toString()%></textarea>
  59.                     </td>
  60.                 </tr>
  61.                      <input name="Personnels" type="hidden" value="<%=((Vector)vt.get(0)).get(9).toString()%>">
  62.                <tr>
  63.                     <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
  64.                     <td align="left" valign="middle" nowrap>
  65.                       <textarea name="Remark" cols="30" rows="2"><%=((Vector)vt.get(0)).get(10).toString()%></textarea>
  66.                     </td>
  67.                 </tr>
  68.                  <tr>
  69.                     <td align="right" valign="middle">&nbsp;</td>
  70.                     <td align="left" valign="middle" nowrap>
  71.                     </td>
  72.                 </tr>
  73.                 <tr>
  74.                     <td align="right" valign="middle">&nbsp;</td>
  75.                     <td align="left" valign="middle" nowrap>
  76.                         <input type="submit" value="修改">&nbsp;&nbsp; <input type="reset" value="重填">&nbsp;&nbsp; <input type="button" value="返回" onclick="window.location='LeaveApplyCheckManage.jsp?SysDirID=<%=iSysDirID%>';">
  77.                    </td>
  78.                 </tr>
  79.             </table>
  80.             </form>
  81.         </td>
  82.     </tr>
  83. </table>
  84. </body>
  85. </html>
  86. <%
  87. }
  88. else
  89. {
  90. %>
  91. <script language="JavaScript" type="text/JavaScript">
  92. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  93. history.back();
  94. </script>
  95. <%
  96. }
  97. }
  98. %>