AssetInOutLink.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 intErrandApplyID = m_request.GetInt("ID");
  7. if(intErrandApplyID<1)
  8. {
  9. %>
  10. <script language="JavaScript" type="text/JavaScript">
  11. alert("请选择正确的出差申请,修改失败!");
  12. history.back();
  13. </script>
  14. <%
  15. }
  16. else
  17. {
  18. Vector vt = ErrandApplyManager.getRecordByID(intErrandApplyID);
  19. if(vt.size()==1)
  20. {
  21. %>
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  25. <title>出差申请管理-- GForce OA 2.0</title>
  26. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  27. </head>
  28. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  29. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  30.     <tr>
  31.         <td align="center" valign="top"><p>&nbsp;</p>
  32.             <form name="EditErrandApply" action="/Operation/EditErrandApplyAction.jsp" method="post" onSubmit="javascript:return checkEditErrandApply();">
  33.         <table  border="0" cellpadding="0" cellspacing="2" width="90%">
  34.           <tr>
  35.                     <td align="right" valign="middle"><font color="#0A0A0A">申请用户:</font></td>
  36.                     <td align="left" valign="middle" nowrap>
  37.                        <%=((Vector)vt.get(0)).get(15).toString()%>
  38.                     </td>
  39.                 </tr>
  40.                 <tr>
  41.                     <td align="right" valign="middle"><font color="#0A0A0A">批准用户:</font></td>
  42.                     <td align="left" valign="middle" nowrap>
  43. <%
  44. if (((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(13).toString()))
  45.  out.println("未审批"); else
  46.  out.println(((Vector)vt.get(0)).get(14).toString());
  47. %>
  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.                     <%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy年MM月dd日 HH时mm分")%>
  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(5).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.                        <%=((Vector)vt.get(0)).get(6).toString()%>
  66.                     </td>
  67.                 </tr>
  68.                 <tr>
  69.                     <td align="right" valign="middle"><font color="#0A0A0A">出差事由:</font></td>
  70.                     <td align="left" valign="middle" nowrap>
  71.                        <%=((Vector)vt.get(0)).get(7).toString()%>
  72.                     </td>
  73.                 </tr>
  74.                 <tr>
  75.                     <td align="right" valign="middle"><font color="#0A0A0A">出差事由描述:</font></td>
  76.                     <td align="left" valign="middle" nowrap>
  77.                      <%=((Vector)vt.get(0)).get(8).toString()%>
  78.                     </td>
  79.                 </tr>
  80.                 <tr>
  81.                     <td align="right" valign="middle"><font color="#0A0A0A">出差人员:</font></td>
  82.                     <td align="left" valign="middle" nowrap>
  83.                        <%=((Vector)vt.get(0)).get(9).toString()%>
  84.                     </td>
  85.                 </tr>
  86.                 <tr>
  87.                     <td align="right" valign="middle"><font color="#0A0A0A">计划开始时间:</font></td>
  88.                     <td align="left" valign="middle" nowrap>
  89.                   <%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy年MM月dd日 HH时")%>
  90.                 </tr>
  91.                 <tr>
  92.                     <td align="right" valign="middle"><font color="#0A0A0A">计划结束时间:</font></td>
  93.                     <td align="left" valign="middle" nowrap>
  94.                 <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日 HH时")%>
  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(10).toString()%>
  100.                     </td>
  101.                 </tr>
  102.                  <tr>
  103.                     <td align="right" valign="middle">&nbsp;</td>
  104.                     <td align="left" valign="middle" nowrap>
  105.                     </td>
  106.                 </tr>
  107.                 <tr>
  108.                     <td align="right" valign="middle">&nbsp;</td>
  109.                     <td align="right" valign="middle" nowrap>
  110.                    <input type="button" value="关闭" onclick="window.close()">
  111.                    </td>
  112.                 </tr>
  113.             </table>
  114.             </form>
  115.         </td>
  116.     </tr>
  117. </table>
  118. </body>
  119. </html>
  120. <%
  121. }
  122. else
  123. {
  124. %>
  125. <script language="JavaScript" type="text/JavaScript">
  126. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  127. history.back();
  128. </script>
  129. <%
  130. }
  131. }
  132. %>