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

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 intErrandApplyID = m_request.GetInt("ID");
  7. int iSysDirID = m_request.GetInt("SysDirID");
  8. if(intErrandApplyID<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(intErrandApplyID);
  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="EditErrandApply" action="/Operation/EditErrandApplyAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditErrandApply();">
  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. Vector vtApproveRecord = ApproveRecordManager.getRecordByRecordID(intErrandApplyID,"出差申请");
  46. if (vtApproveRecord.size() > 0 )
  47. {
  48.   for (int j = 0; j < vtApproveRecord.size() ;j++)
  49.   {
  50.     if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase(""))
  51.     {
  52.       out.println("未审批");
  53.     }
  54.     else if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase("true"))
  55.     {
  56.       out.println("同意");
  57.     }
  58.     else if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase("false"))
  59.     {
  60.       out.println("不同意");
  61.     }
  62.     out.println("["+UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vtApproveRecord.get(j)).get(3).toString())) + "]<br>");
  63.   }
  64. }
  65. else
  66. {
  67.   out.println("&nbsp;");
  68. }
  69. %>
  70.                     </td>
  71.                 </tr>
  72.                 <tr>
  73.                     <td align="right" valign="middle"><font color="#0A0A0A">申请时间:</font></td>
  74.                     <td align="left" valign="middle" nowrap>
  75.                     <%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy年MM月dd日 HH时mm分")%>
  76.                     </td>
  77.                 </tr>
  78.                 <tr>
  79.                     <td align="right" valign="middle"><font color="#0A0A0A">目的单位名称:</font></td>
  80.                     <td align="left" valign="middle" nowrap>
  81.                      <%=((Vector)vt.get(0)).get(5).toString()%>
  82.                     </td>
  83.                 </tr>
  84.                 <tr>
  85.                     <td align="right" valign="middle"><font color="#0A0A0A">目的城市:</font></td>
  86.                     <td align="left" valign="middle" nowrap>
  87.                        <%=((Vector)vt.get(0)).get(6).toString()%>
  88.                     </td>
  89.                 </tr>
  90.                 <tr>
  91.                     <td align="right" valign="middle"><font color="#0A0A0A">出差事由:</font></td>
  92.                     <td align="left" valign="middle" nowrap>
  93.                        <%=((Vector)vt.get(0)).get(7).toString()%>
  94.                     </td>
  95.                 </tr>
  96.                 <tr>
  97.                     <td align="right" valign="middle"><font color="#0A0A0A">出差事由描述:</font></td>
  98.                     <td align="left" valign="middle" nowrap>
  99.                      <%=((Vector)vt.get(0)).get(8).toString()%>
  100.                     </td>
  101.                 </tr>
  102.                 <tr>
  103.                     <td align="right" valign="middle"><font color="#0A0A0A">出差人员:</font></td>
  104.                     <td align="left" valign="middle" nowrap>
  105.                        <%=((Vector)vt.get(0)).get(9).toString()%>
  106.                     </td>
  107.                 </tr>
  108.                 <tr>
  109.                     <td align="right" valign="middle"><font color="#0A0A0A">计划开始时间:</font></td>
  110.                     <td align="left" valign="middle" nowrap>
  111.                   <%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy年MM月dd日 HH时")%>
  112.                 </tr>
  113.                 <tr>
  114.                     <td align="right" valign="middle"><font color="#0A0A0A">计划结束时间:</font></td>
  115.                     <td align="left" valign="middle" nowrap>
  116.                 <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日 HH时")%>
  117.                 </tr>
  118.                 <tr>
  119.                     <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
  120.                     <td align="left" valign="middle" nowrap>
  121.                       <%=((Vector)vt.get(0)).get(10).toString()%>
  122.                     </td>
  123.                 </tr>
  124.                  <tr>
  125.                     <td align="right" valign="middle">&nbsp;</td>
  126.                     <td align="left" valign="middle" nowrap>
  127.                     </td>
  128.                 </tr>
  129.                 <tr>
  130.                     <td align="right" valign="middle">&nbsp;</td>
  131.                     <td align="right" valign="middle" nowrap>
  132.                    <input type="button" value="关闭" onclick="window.close()">
  133.                    </td>
  134.                 </tr>
  135.             </table>
  136.             </form>
  137.         </td>
  138.     </tr>
  139. </table>
  140. </body>
  141. </html>
  142. <%
  143. }
  144. else
  145. {
  146. %>
  147. <script language="JavaScript" type="text/JavaScript">
  148. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  149. history.back();
  150. </script>
  151. <%
  152. }
  153. }
  154. %>