AddressListLink.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"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int intAddressListId = m_request.GetInt("ID");
  7. if(intAddressListId<1)
  8. {
  9. %>
  10. <script language="JavaScript" type="text/JavaScript">
  11. alert("请选择正确的通讯录,查看资料失败!");
  12. history.back();
  13. </script>
  14. <%
  15. }
  16. else
  17. {
  18. int intUserID = m_session.GetInt("UserID");
  19. Vector vt = AddressListManager.getRecordByID(intAddressListId,intUserID);
  20. if(vt.size()==1)
  21. {
  22. %>
  23. <html>
  24. <head>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  26. <title>个人资料-- GForce OA 2.0</title>
  27. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  28. </head>
  29. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  30. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  31.     <tr>
  32.         <td align="center" valign="top">
  33. <table width="90%"  border="0" cellpadding="0" cellspacing="5">
  34.         <tr>
  35.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">姓名:</font></td>
  36.                     <td align="left" valign="middle" nowrap>
  37.                        <%=((Vector)vt.get(0)).get(1).toString()%>
  38.                     </td>
  39.                 </tr>
  40.                 <tr>
  41.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">性别:</font></td>
  42.                     <td align="left" valign="middle" nowrap>
  43.                         <%=((Vector)vt.get(0)).get(2).toString()%>
  44.                    </td>
  45.                 </tr>
  46.                 <tr>
  47.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">出生日期:</font></td>
  48.                     <td align="left" valign="middle" nowrap>
  49.                        <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd")%>
  50.                    </td>
  51.                 </tr>
  52.                 <tr>
  53.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">通讯录分类:</font></td>
  54.                     <td align="left" valign="middle" nowrap>
  55. <%
  56. Vector vtKinds = AddressKindManager.getAllRecord(intUserID);
  57. for(int i=0;i<vtKinds.size();i++)
  58. {
  59.     if(((Vector)vtKinds.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(5).toString()))
  60.         out.println(((Vector)vtKinds.get(i)).get(1).toString());
  61. }
  62. %>
  63.                     </td>
  64.                 </tr>
  65.                 <tr>
  66.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">是否公开:</font></td>
  67.                     <td align="left" valign="middle" nowrap>
  68.                        <%
  69.                           if(((Vector)vt.get(0)).get(6).toString().equalsIgnoreCase("true"))
  70.                              out.print("公开共享");
  71.                           else
  72.                              out.print("私人保密");
  73.                        %>
  74.                 </tr>
  75.                 <tr>
  76.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">电子信箱:</font></td>
  77.                     <td align="left" valign="middle" nowrap>
  78.                        <%=((Vector)vt.get(0)).get(12).toString()%>
  79.                    </td>
  80.                 </tr>
  81.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">单位名称:</font></td>
  82.                     <td align="left" valign="middle" nowrap>
  83.                        <%=((Vector)vt.get(0)).get(4).toString()%>
  84.                    </td>
  85.                 </tr>
  86.                 <tr>
  87.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">单位电话:</font></td>
  88.                     <td align="left" valign="middle" nowrap>
  89.                       <%=((Vector)vt.get(0)).get(9).toString()%>
  90.                    </td>
  91.                 </tr>
  92.                 <tr>
  93.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">传真号码:</font></td>
  94.                     <td align="left" valign="middle" nowrap>
  95.                       <%=((Vector)vt.get(0)).get(11).toString()%>
  96.                    </td>
  97.                 </tr>
  98.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">职务:</font></td>
  99.                     <td align="left" valign="middle" nowrap>
  100.                         <%=((Vector)vt.get(0)).get(7).toString()%>
  101.                    </td>
  102.                 </tr>
  103.                 <tr>
  104.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">移动电话:</font></td>
  105.                     <td align="left" valign="middle" nowrap>
  106.                       <%=((Vector)vt.get(0)).get(10).toString()%>
  107.                    </td>
  108.                 </tr>
  109.                 <tr>
  110.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">单位地址:</font></td>
  111.                     <td align="left" valign="middle" nowrap>
  112.                       <%=((Vector)vt.get(0)).get(13).toString()%>
  113.                    </td>
  114.                 </tr>
  115.                 <tr>
  116.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭电话:</font></td>
  117.                     <td align="left" valign="middle" nowrap>
  118.                       <%=((Vector)vt.get(0)).get(8).toString()%>
  119.                    </td>
  120.                 </tr>
  121.                 <tr>
  122.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭地址:</font></td>
  123.                     <td align="left" valign="middle" nowrap>
  124.                       <%=((Vector)vt.get(0)).get(14).toString()%>
  125.                    </td>
  126.                 </tr>
  127.                 <tr>
  128.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">QQ号码:</font></td>
  129.                     <td align="left" valign="middle" nowrap>
  130.                       <%=((Vector)vt.get(0)).get(15).toString()%>
  131.                    </td>
  132.                 </tr>
  133.                 <tr>
  134.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">MSN号码:</font></td>
  135.                     <td align="left" valign="middle" nowrap>
  136.                       <%=((Vector)vt.get(0)).get(16).toString()%>
  137.                    </td>
  138.                 </tr>
  139.                 <tr>
  140.           <td width="80" align="right" valign="middle" nowrap><font color="#0A0A0A">备  注:</font></td>
  141.                     <td align="left" valign="middle" nowrap>
  142.                       <%=((Vector)vt.get(0)).get(17).toString()%>
  143.                    </td>
  144.                 </tr>
  145.                 <tr>
  146.           <td width="80" align="right" valign="middle" nowrap>&nbsp;</td>
  147.           <td align="right" valign="middle" nowrap>
  148.             <input type="button" value="关闭" onclick="window.close()">
  149.           </td>
  150.                 </tr>
  151.             </table>
  152.             </form>
  153.         </td>
  154.     </tr>
  155. </table>
  156. </body>
  157. </html>
  158. <%
  159. }
  160. else
  161. {
  162. %>
  163. <script language="JavaScript" type="text/JavaScript">
  164. alert("该记录已经被删除或者您没有权限查看此记录,查看资料失败!");
  165. history.back();
  166. </script>
  167. <%
  168. }
  169. }
  170. %>