LeaveApplyCheckLink.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 iSysDirID = m_request.GetInt("SysDirID");
  7. int intLeaveApplyID = m_request.GetInt("ID");
  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. </head>
  29. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  30. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  31.     <tr>
  32.         <td align="center" valign="top"><p>&nbsp;</p>
  33.             <form name="EditLeaveApply" action="/Operation/EditLeaveApplyAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditLeaveApply();">
  34.         <table  border="0" cellpadding="0" cellspacing="2" width="90%">
  35.           <tr>
  36.                     <td align="right" valign="middle"><font color="#0A0A0A">申请人:</font></td>
  37.                     <td align="left" valign="middle" nowrap>
  38.                        <%=((Vector)vt.get(0)).get(16).toString()%>
  39.                     </td>
  40.                 </tr>
  41.                 <tr>
  42.                     <td align="right" valign="middle"><font color="#0A0A0A">批准用户:</font></td>
  43.                     <td align="left" valign="middle" nowrap>
  44. <%
  45. if (((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(13).toString()))
  46.  out.println("未审批"); else
  47.  out.println(((Vector)vt.get(0)).get(15).toString());
  48. %>
  49.                     </td>
  50.                 </tr>
  51.                 <tr>
  52.                     <td align="right" valign="middle"><font color="#0A0A0A">申请时间:</font></td>
  53.                     <td align="left" valign="middle" nowrap>
  54.                     <%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy年MM月dd日 HH时mm分")%>
  55.                     </td>
  56.                 </tr>
  57.                 <tr>
  58.                     <td align="right" valign="middle"><font color="#0A0A0A">请假事由:</font></td>
  59.                     <td align="left" valign="middle" nowrap>
  60.                        <%=((Vector)vt.get(0)).get(7).toString()%>
  61.                     </td>
  62.                 </tr>
  63.                 <tr>
  64.                     <td align="right" valign="middle"><font color="#0A0A0A">请假事由描述:</font></td>
  65.                     <td align="left" valign="middle" nowrap>
  66.                      <%=((Vector)vt.get(0)).get(8).toString()%>
  67.                     </td>
  68.                 </tr>
  69.                 <tr>
  70.                     <td align="right" valign="middle"><font color="#0A0A0A">计划开始时间:</font></td>
  71.                     <td align="left" valign="middle" nowrap>
  72.                   <%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy年MM月dd日 HH时")%>
  73.                 </tr>
  74.                 <tr>
  75.                     <td align="right" valign="middle"><font color="#0A0A0A">计划结束时间:</font></td>
  76.                     <td align="left" valign="middle" nowrap>
  77.                 <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日 HH时")%>
  78.                 </tr>
  79.                 <tr>
  80.                     <td align="right" valign="middle"><font color="#0A0A0A">实际开始时间:</font></td>
  81.                     <td align="left" valign="middle" nowrap>
  82.                   <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy年MM月dd日 HH时")%>
  83.                 </tr>
  84.                 <tr>
  85.                     <td align="right" valign="middle"><font color="#0A0A0A">实际结束时间:</font></td>
  86.                     <td align="left" valign="middle" nowrap>
  87.                 <%=StringNew.GetDateString(((Vector)vt.get(0)).get(4).toString(),"yyyy年MM月dd日 HH时")%>
  88.                 </tr>
  89.                 <tr>
  90.                     <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
  91.                     <td align="left" valign="middle" nowrap>
  92.                       <%=((Vector)vt.get(0)).get(10).toString()%>
  93.                     </td>
  94.                 </tr>
  95.                  <tr>
  96.                     <td align="right" valign="middle">&nbsp;</td>
  97.                     <td align="left" valign="middle" nowrap>
  98.                     </td>
  99.                 </tr>
  100.                 <tr>
  101.                     <td align="right" valign="middle">&nbsp;</td>
  102.                     <td align="right" valign="middle" nowrap>
  103.                    <input type="button" value="关闭" onclick="window.close()">
  104.                    </td>
  105.                 </tr>
  106.             </table>
  107.             </form>
  108.         </td>
  109.     </tr>
  110. </table>
  111. </body>
  112. </html>
  113. <%
  114. }
  115. else
  116. {
  117. %>
  118. <script language="JavaScript" type="text/JavaScript">
  119. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  120. history.back();
  121. </script>
  122. <%
  123. }
  124. }
  125. %>