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

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 iSysDirID = m_request.GetInt("SysDirID");
  8. int intUserID = m_session.GetInt("UserID");
  9. Vector vt = ErrandApplyManager.getByUserIDRecord(iSysDirID,intUserID);%>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  13. <title>出差申请管理-- GForce OA 2.0</title>
  14. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  15. <script language="JavaScript" src="/js/changestyle.js"></script>
  16. </head>
  17. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  18. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  19.     <tr>
  20.     <td align="center" valign="top">
  21.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  22.         <tr>
  23.           <td height="50" valign="top" background="../images/dy-back.gif">
  24.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  25.               <tr valign="middle">
  26.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  27.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">出差申请</font></strong></td>
  28.                 <td align="right" nowrap="nowrap" valign="bottom">
  29.                   <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  30.                     <a href="AddErrandApply.jsp?SysDirID=<%=iSysDirID%>"><img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"></a>&nbsp;
  31.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  32.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  33.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  34.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  35.                 </td>
  36.               </tr>
  37.             </table>
  38.           </td>
  39.         </tr>
  40.       </table><br>
  41. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  42.     <tr>
  43.         <td align="center" valign="top"><p>&nbsp;</p>
  44.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  45.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  46.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  47.                     <th width="8%" nowrap><font color="#000000">序号</font></th>
  48.                     <th width="40%" nowrap><font color="#000000">目的单位名称</font></th>
  49.                     <th width="10%" nowrap><font color="#000000">申请时间</font></th>
  50.                     <th width="10%" nowrap><font color="#000000">计划开始时间</font></th>
  51.                     <th width="10%" nowrap><font color="#000000">计划结束时间</font></th>
  52.                     <th width="10%" nowrap><font color="#000000">审批状态</font></th>
  53.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  54.                     <th width="11%" nowrap><font color="#000000">删除</font></th>
  55.                 </tr>
  56. <%
  57. for(int i=0;i<vt.size();i++)
  58. {
  59.     String strID = ((Vector)vt.get(i)).get(0).toString();
  60.     if(i % 2 == 0)
  61.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  62.     else
  63.     out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  64.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  65.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  66.     out.println("<td align="left" valign="middle" nowrap title="" + ((Vector)vt.get(i)).get(5).toString() + "" onclick="window.open('ErrandApplyLink.jsp?SysDirID=" + iSysDirID + "&ID=" + strID + "','_blank')"><a href="#" onclick="return false;">" + ((Vector)vt.get(i)).get(5).toString() + "</a></td>");
  67.     out.println("<td align="center" valign="middle" nowrap>" +  StringNew.GetDateString(((Vector)vt.get(i)).get(12).toString(),"MM月dd日HH时mm分") + "</td>");
  68.   if (((Vector)vt.get(i)).get(1).toString().equalsIgnoreCase(""))
  69.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");else
  70.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(1).toString(),"yyyy年MM月dd日HH时") + "</td>");
  71.   if (((Vector)vt.get(i)).get(2).toString().equalsIgnoreCase(""))
  72.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");else
  73.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(2).toString(),"yyyy年MM月dd日HH时") + "</td>");
  74. //**********增加审批状态
  75.     Vector vtApproveRecord = ApproveRecordManager.getRecordByRecordID(Integer.parseInt(strID),"出差申请");
  76.     out.println("<td align="center" valign="middle" nowrap>");
  77.     if (vtApproveRecord.size() > 0 )
  78.     for (int j = 0; j < vtApproveRecord.size() ;j++)
  79.     {
  80.       if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase(""))
  81.       {
  82.       out.println("未审批");
  83.       }else
  84.       if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase("true"))
  85.       {
  86.       out.println("同意");
  87.       }else
  88.       if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase("false"))
  89.       {
  90.       out.println("不同意");
  91.       }
  92.       out.println("["+UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vtApproveRecord.get(j)).get(3).toString())) + "]<br>");
  93.     }
  94.     else
  95.     out.println("&nbsp;");
  96.     out.println("</td>");
  97.   if(ApproveRecordManager.getISConfirmByRecordID("出差申请",Integer.parseInt(strID)))
  98.   {
  99.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  100.     out.println("<td align="center" valign="middle" nowrap>&nbsp;</td>");
  101.   }
  102.   else
  103.   {
  104.     out.println("<td align="center" valign="middle" nowrap><a href="EditErrandApply.jsp?SysDirID="+ iSysDirID +"&ID=" + strID + "">修改</a></td>");
  105.     out.println("<td align="center" valign="middle" nowrap><a href="DelErrandApply.jsp?SysDirID="+ iSysDirID +"&ID=" + strID + "" onclick="return confirm('您确实要删除该出差申请吗?');">删除</a></td>");
  106.   }
  107. //***************
  108.     out.println("</tr>");
  109. }
  110. %>
  111.     </table>
  112.     </td>
  113.     </tr>
  114. </table>
  115. </body>
  116. </html>