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