AddressListLink.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:7k
源码类别:
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 intAddressListId = m_request.GetInt("ID");
- if(intAddressListId<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的通讯录,查看资料失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- int intUserID = m_session.GetInt("UserID");
- Vector vt = AddressListManager.getRecordByID(intAddressListId,intUserID);
- 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">
- <table width="90%" border="0" cellpadding="0" cellspacing="5">
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">姓名:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(1).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">性别:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(2).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">出生日期:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd")%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">通讯录分类:</font></td>
- <td align="left" valign="middle" nowrap>
- <%
- Vector vtKinds = AddressKindManager.getAllRecord(intUserID);
- for(int i=0;i<vtKinds.size();i++)
- {
- if(((Vector)vtKinds.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(5).toString()))
- out.println(((Vector)vtKinds.get(i)).get(1).toString());
- }
- %>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">是否公开:</font></td>
- <td align="left" valign="middle" nowrap>
- <%
- if(((Vector)vt.get(0)).get(6).toString().equalsIgnoreCase("true"))
- out.print("公开共享");
- else
- out.print("私人保密");
- %>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">电子信箱:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(12).toString()%>
- </td>
- </tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">单位名称:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(4).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">单位电话:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(9).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">传真号码:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(11).toString()%>
- </td>
- </tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">职务:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(7).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">移动电话:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(10).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">单位地址:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(13).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭电话:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(8).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭地址:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(14).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">QQ号码:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(15).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">MSN号码:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(16).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">备 注:</font></td>
- <td align="left" valign="middle" nowrap>
- <%=((Vector)vt.get(0)).get(17).toString()%>
- </td>
- </tr>
- <tr>
- <td width="80" align="right" valign="middle" nowrap> </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>
- <%
- }
- }
- %>