ErrandApplyLink.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:6k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intErrandApplyID = m_request.GetInt("ID");
- int iSysDirID = m_request.GetInt("SysDirID");
- if(intErrandApplyID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的出差申请!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = ErrandApplyManager.getRecordByID(intErrandApplyID);
- if(vt.size()==1)
- {
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>出差申请管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="EditErrandApply" action="/Operation/EditErrandApplyAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditErrandApply();">
- <table border="0" cellpadding="0" cellspacing="2" width="90%">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">申请人:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(16).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">审批状态:</font></td>
- <td align="left" valign="middle" nowrap>
- <%
- Vector vtApproveRecord = ApproveRecordManager.getRecordByRecordID(intErrandApplyID,"出差申请");
- if (vtApproveRecord.size() > 0 )
- {
- for (int j = 0; j < vtApproveRecord.size() ;j++)
- {
- if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase(""))
- {
- out.println("未审批");
- }
- else if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase("true"))
- {
- out.println("同意");
- }
- else if (((Vector)vtApproveRecord.get(j)).get(4).toString().equalsIgnoreCase("false"))
- {
- out.println("不同意");
- }
- out.println("["+UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vtApproveRecord.get(j)).get(3).toString())) + "]<br>");
- }
- }
- else
- {
- out.println(" ");
- }
- %>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">申请时间:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=StringNew.GetDateString(((Vector)vt.get(0)).get(12).toString(),"yyyy年MM月dd日 HH时mm分")%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">目的单位名称:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(5).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">目的城市:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(6).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出差事由:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(7).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出差事由描述:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(8).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出差人员:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(9).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">计划开始时间:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=StringNew.GetDateString(((Vector)vt.get(0)).get(1).toString(),"yyyy年MM月dd日 HH时")%>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">计划结束时间:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy年MM月dd日 HH时")%>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">备注:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(10).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="right" valign="middle" nowrap>
- <input type="button" value="关闭" onclick="window.close()">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>