LeaveApplyLink.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"/>
  4. <%
  5. Session m_session = new Session(session);
  6. Request m_request = new Request(request);
  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="" method="post">
  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(5).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(6).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.                        <%=((Vector)vt.get(0)).get(7).toString()%>
  73.                     </td>
  74.                 </tr>
  75.                 <tr>
  76.                     <td align="right" valign="middle"><font color="#0A0A0A">请假事由描述:</font></td>
  77.                     <td align="left" valign="middle" nowrap>
  78.                      <%=((Vector)vt.get(0)).get(8).toString()%>
  79.                     </td>
  80.                 </tr>
  81.                 <tr>
  82.                     <td align="right" valign="middle"><font color="#0A0A0A">请假人员:</font></td>
  83.                     <td align="left" valign="middle" nowrap>
  84.                        <%=((Vector)vt.get(0)).get(9).toString()%>
  85.                     </td>
  86.                 </tr>
  87.                 <tr>
  88.                     <td align="right" valign="middle"><font color="#0A0A0A">计划开始时间:</font></td>
  89.                     <td align="left" valign="middle" nowrap>
  90.                   <%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy年MM月dd日 HH时")%>
  91.                 </tr>
  92.                 <tr>
  93.                     <td align="right" valign="middle"><font color="#0A0A0A">计划结束时间:</font></td>
  94.                     <td align="left" valign="middle" nowrap>
  95.                 <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日 HH时")%>
  96.                 </tr>
  97.                 <tr>
  98.                     <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
  99.                     <td align="left" valign="middle" nowrap>
  100.                       <%=((Vector)vt.get(0)).get(10).toString()%>
  101.                     </td>
  102.                 </tr>
  103.                  <tr>
  104.                     <td align="right" valign="middle">&nbsp;</td>
  105.                     <td align="left" valign="middle" nowrap>
  106.                     </td>
  107.                 </tr>
  108.                 <tr>
  109.                     <td align="right" valign="middle">&nbsp;</td>
  110.                     <td align="right" valign="middle" nowrap>
  111.                    <input type="button" value="关闭" onclick="window.close()">
  112.                    </td>
  113.                 </tr>
  114.             </table>
  115.             </form>
  116.         </td>
  117.     </tr>
  118. </table>
  119. </body>
  120. </html>
  121. <%
  122. }
  123. else
  124. {
  125. %>
  126. <script language="JavaScript" type="text/JavaScript">
  127. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  128. history.back();
  129. </script>
  130. <%
  131. }
  132. }
  133. %>