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

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 intAssetApplyID = m_request.GetInt("ID");
  8. String strApproveType = m_request.GetString("ApproveType");
  9. if(intAssetApplyID<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 = AssetInOutManager.getRecordByID(intAssetApplyID);
  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="EditAssetApply" action="/Asset/AssetApplyCheckAction.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(5).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> <%=((Vector)vt.get(0)).get(8).toString()%> </td>
  45.           </tr>
  46.           <tr>
  47.             <td align="right" valign="middle"><font color="#0A0A0A">预计使用时间:</font></td>
  48.            <td align="left" valign="middle" nowrap> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日")%> </td>
  49.           </tr>
  50.          </tr>
  51.           <tr>
  52.             <td align="right" valign="middle">&nbsp;</td>
  53.           <tr>
  54.             <td align="right" valign="middle"><strong>是否同意:</strong></td>
  55.             <td align="left" valign="middle" nowrap> <p>
  56.                 <label>
  57.                 <input type="radio" name="ISAgreed" value="1" >
  58.                 同意 </label>
  59.                 <label>
  60.                 <input type="radio" name="ISAgreed" value="0" checked>
  61.                 </label>
  62.                 不同意 <br>
  63.               </p> </td>
  64.           </tr>
  65.           <tr>
  66.             <td align="right" valign="middle"><strong>审批意见</strong>:</td>
  67.             <td align="left" valign="middle" nowrap>
  68.               <input type="text" name="Content">
  69.             </td>
  70.           </tr>
  71.   <tr>
  72.   <td align="left" valign="middle" nowrap></td>
  73.           <td align="right" valign="middle" nowrap>
  74.               <input name="submit" type="submit" value="确定">
  75.               <input name="button" type="button" onClick="window.close()" value="关闭"></td>
  76.           </tr>
  77.         </table>
  78.             </form>
  79.         </td>
  80.     </tr>
  81. </table>
  82. </body>
  83. </html>
  84. <%
  85. }
  86. else
  87. {
  88. %>
  89. <script language="JavaScript" type="text/JavaScript">
  90. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  91. history.back();
  92. </script>
  93. <%
  94. }
  95. }
  96. %>