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