LeaveApplyCheck.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. int intUserID = m_session.GetInt("UserID");
  6. Request m_request = new Request(request);
  7. int iSysDirID = m_request.GetInt("SysDirID");
  8. int intLeaveApplyID = m_request.GetInt("ID");
  9. String strApproveType = m_request.GetString("ApproveType");
  10. if(intLeaveApplyID<1)
  11. {
  12. %>
  13. <script language="JavaScript" type="text/JavaScript">
  14. alert("请选择正确的请假申请,修改失败!");
  15. history.back();
  16. </script>
  17. <%
  18. }
  19. else
  20. {
  21. Vector vt = ErrandApplyManager.getRecordByID(intLeaveApplyID);
  22. if(vt.size()==1)
  23. {
  24. %>
  25. <html>
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  28. <title>请假申请管理-- GForce OA 2.0</title>
  29. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  30. </head>
  31. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  32. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  33.     <tr>
  34.         <td align="center" valign="top"><p>&nbsp;</p>
  35.             <form name="EditLeaveApply" action="/Operation/LeaveApplyCheckAction.jsp?SysDirID=<%=iSysDirID%>&ApproveType=<%=strApproveType%>" method="post">
  36.         <table  border="0" cellpadding="0" cellspacing="2" width="90%">
  37.           <tr>
  38.                     <td align="right" valign="middle"><font color="#0A0A0A">申请人:</font></td>
  39.                     <td align="left" valign="middle" nowrap>
  40.                        <%=((Vector)vt.get(0)).get(16).toString()%>
  41.                         <input name="ID" type="Hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>" >
  42.                     </td>
  43.                 </tr>
  44.                 <tr>
  45.                     <td align="right" valign="middle"><font color="#0A0A0A">申请时间:</font></td>
  46.                     <td align="left" valign="middle" nowrap>
  47.                     <%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy年MM月dd日 HH时mm分")%>
  48.                     </td>
  49.                 </tr>
  50.                 <tr>
  51.                     <td align="right" valign="middle"><font color="#0A0A0A">请假事由:</font></td>
  52.                     <td align="left" valign="middle" nowrap>
  53.                        <%=((Vector)vt.get(0)).get(7).toString()%>
  54.                     </td>
  55.                 </tr>
  56.                 <tr>
  57.                     <td align="right" valign="middle"><font color="#0A0A0A">请假事由描述:</font></td>
  58.                     <td align="left" valign="middle" nowrap>
  59.                      <%=((Vector)vt.get(0)).get(8).toString()%>
  60.                     </td>
  61.                 </tr>
  62.                 <tr>
  63.                     <td align="right" valign="middle"><font color="#0A0A0A">计划开始时间:</font></td>
  64.                     <td align="left" valign="middle" nowrap>
  65.                   <%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy年MM月dd日 HH时")%>
  66.                 </tr>
  67.                 <tr>
  68.                     <td align="right" valign="middle"><font color="#0A0A0A">计划结束时间:</font></td>
  69.                     <td align="left" valign="middle" nowrap>
  70.                 <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日 HH时")%>
  71.                 </tr>
  72.                 <tr>
  73.                     <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
  74.                     <td align="left" valign="middle" nowrap>
  75.                       <%=((Vector)vt.get(0)).get(10).toString()%>
  76.                     </td>
  77.                 </tr>
  78.           <tr>
  79.             <td align="right" valign="middle">&nbsp;</td>
  80.           <tr>
  81.             <td align="right" valign="middle"><strong>是否同意:</strong></td>
  82.             <td align="left" valign="middle" nowrap> <p>
  83.                 <label>
  84.                 <input type="radio" name="ISAgreed" value="1" >
  85.                 同意 </label>
  86.                 <label>
  87.                 <input type="radio" name="ISAgreed" value="0" checked>
  88.                 </label>
  89.                 不同意 <br>
  90.               </p> </td>
  91.           </tr>
  92.           <tr>
  93.             <td align="right" valign="middle"><strong>审批意见</strong>:</td>
  94.             <td align="left" valign="middle" nowrap>
  95.               <input type="text" name="Content">
  96.             </td>
  97.           </tr>
  98.           <tr>
  99.           <td align="left" valign="middle" nowrap></td>
  100.             <td align="right" valign="middle" nowrap>
  101.               <input name="submit" type="submit" value="确定">
  102.               <input name="button" type="button" onClick="window.close()" value="关闭"></td>
  103.           </tr>
  104.             </table>
  105.             </form>
  106.         </td>
  107.     </tr>
  108. </table>
  109. </body>
  110. </html>
  111. <%
  112. }
  113. else
  114. {
  115. %>
  116. <script language="JavaScript" type="text/JavaScript">
  117. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  118. history.back();
  119. </script>
  120. <%
  121. }
  122. }
  123. %>