qunzu.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="qunzu.aspx.cs" Inherits="qunzu" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>群组页</title>
  6.     <style type="text/css"> 
  7. div.RoundedCorner{background: #5AAE18} 
  8. b.rtop, b.rbottom{display:block;background: #FFF} 
  9. b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
  10. b.r1{margin: 0 4px} 
  11. b.r2{margin: 0 3px} 
  12. b.r3{margin: 0 2px} 
  13. b.rtop b.r4, {margin: 0 1px;height: 1px}
  14. .style1 {
  15. font-size: 13px;
  16. color: #FFFFFF;
  17. font-weight: bold;
  18. </style>
  19. <style type="text/css">
  20. <!--
  21. a:link {
  22. font-size: 12px;
  23. color: #5C9948;
  24. text-decoration: none;
  25. }
  26. a:visited {
  27. font-size: 12px;
  28. color: #5C9948;
  29. text-decoration: none;
  30. }
  31. a:hover {
  32. color: #6699FF;
  33. }
  34. BODY {
  35. font-size: 12px;
  36. }
  37. td {
  38. font-size: 12px;
  39. line-height: 15px;
  40. }
  41. body {
  42. margin-top: 2px;
  43. }
  44. -->
  45. </style>
  46.     <script type="text/javascript">
  47.     function isnodelete(id){
  48.         if(confirm("确定要删除本组么")){
  49.             document.location="deletegroups.aspx?deletequnid="+id;
  50.         }
  51.     }    
  52.     </script>
  53. </head>
  54. <body>
  55. <br />
  56. <br />
  57.     <form id="form1" runat="server">
  58.     <div style="text-align: center">
  59.         <table border="1" style="width: 614px; height: 55px; border-right: #5aae18 1px solid; border-top: #5aae18 1px solid; border-left: #5aae18 1px solid; border-bottom: #5aae18 1px solid;" cellpadding="0" cellspacing="0" bgcolor="#5AAE18">
  60.             <tr bgcolor="#ffffff">
  61.                 <td  colspan="5" align="center">
  62.                      <div class="RoundedCorner"> 
  63.                     <div align="center"><b class="rtop"><b class="r1"></b></b> <span class="style1">我 的 群 组</span></div>
  64.                 </div></td>
  65.             </tr>
  66.             <tr bgcolor="#ffffff">
  67.              <td style="width: 88px; height: 22px;" align="center">   
  68.              <%
  69.                  //取登陆人信息 
  70.                   COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
  71.                   //如果取不到跳转到登陆页
  72.                   if (loginuser == null)
  73.                   {
  74.                       this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
  75.                   }
  76.                   else
  77.                   {
  78.                       //取群ID
  79.                       int group = loginuser.u_g_id;
  80.                       //设置where语句
  81.                       String where = "g_id='{0}'";
  82.                       where = string.Format(where, group);
  83.                       //查询
  84.                       System.Collections.Generic.IList<COM.OA.Entity.groups> list = COM.OA.BLL.groupsBLL.Select(where);
  85.                       COM.OA.Entity.groups gps;
  86.                       if (list.Count != 0)
  87.                       {
  88.                           gps = list[0];
  89.                           this.Response.Write(gps.g_groupname);                
  90.               %>          
  91.              
  92.                 </td>
  93.                 <td align="center" style="width: 125px; height: 22px;">
  94.                     <a href="updatezuming.aspx?groupname=<%=gps.g_groupname %>">修改组名</a></td>
  95.                 <td align="center" style="width: 125px; height: 22px;">
  96.                     <a href="javascript:isnodelete(<%=gps.g_id %>)">删除本组</a></td>
  97.                 <td align="center" style="width: 125px; height: 22px;">
  98.                     <a href="insertchengyuan.aspx?qunming=<%=gps.g_groupname %>&qunid=<%=gps.g_id %>">增加成员</a></td>
  99.                 <td align="center" style="width: 125px; height: 22px;">
  100.                     <a href="deletechengyuan.aspx?<%=gps.g_groupname %>&qunid=<%=gps.g_id %>">删除成员</a></td>
  101.                <% }
  102.               }%>                   
  103.             </tr>       
  104.         </table>
  105.     
  106.     </div>
  107.     
  108.     </form>
  109. </body>
  110. </html>