UserManager.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserManager.aspx.cs" Inherits="UserManager" %>
  2. <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <html>
  5. <head runat="server">
  6.     <link href="../css/main.css" type="text/css" rel="stylesheet">
  7. </head>
  8. <script>
  9. function RtValue(rtstr)
  10. {
  11. window.returnValue=rtstr;
  12. window.close()
  13. }
  14.  
  15. </script>
  16. <script language =javascript type="text/javascript">  
  17.    function OnTreeNodeChecked()   
  18.      {        
  19.               var Obj=event.srcElement; 
  20.               if(Obj.tagName == "A" || Obj.tagName== "a")    
  21.                    {          
  22.                       alert(Obj.id);//访问被点击结点的值,同样可以通过Obj.innerText设置它的值   
  23.                       window.returnValue=Obj.id; 
  24.                       window.close()
  25.                       return;
  26.                     }   
  27.       }  
  28.                                </script>
  29. <body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
  30. <form runat="server" id="fm1">
  31.     <table border="0" cellpadding="0" cellspacing="0" style="width: 441px; height: 221px;" >
  32.         <tr>
  33.             <td style="width: 11px" valign="top">
  34.             <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center"
  35.         border="0">
  36.                 <tr>
  37.                     <th colspan="3" style="height: 25px">
  38.                         部门结构</th>
  39.                 </tr>
  40.                 <tr>
  41.                     <td class="usertablerow2" align="left" style="width: 153px; height: 279px;">
  42.                        <DIV style="OVERFLOW: auto; width:184px;  HEIGHT: 270px; " id="MyOutDiv"    align=left>
  43.                            <asp:TreeView ID="TreeView1" runat="server" Width="158px">
  44.                                <Nodes>
  45.                                    <asp:TreeNode Text="技术公司" Value="技术公司">
  46.                                        <asp:TreeNode Text="技术开发" Value="技术开发"></asp:TreeNode>
  47.                                        <asp:TreeNode Text="技术保证" Value="技术保证"></asp:TreeNode>
  48.                                        <asp:TreeNode Text="客户服务" Value="客户服务"></asp:TreeNode>
  49.                                    </asp:TreeNode>
  50.                                    <asp:TreeNode Text="运营公司1" Value="运营公司1"></asp:TreeNode>
  51.                                    <asp:TreeNode Text="运输部1" Value="运输部1"></asp:TreeNode>
  52.                                    <asp:TreeNode Text="后勤公司1" Value="后勤公司1"></asp:TreeNode>
  53.                                              <asp:TreeNode Text="运营公司2" Value="&quot;&quot;运营公司&quot;2&quot;2"></asp:TreeNode>
  54.                                    <asp:TreeNode Text="运输部2" Value="运输部2"></asp:TreeNode>
  55.                         
  56.                                </Nodes>
  57.                 </asp:TreeView>
  58.                 </DIV>
  59.                 </td>
  60.            
  61.             
  62.                 </tr>
  63.             </table>
  64.            
  65.             </td>
  66.             <td style="width: 5px " valign="top">
  67.            
  68.              </td>
  69.            
  70.              <td style="width: 100%" valign="top">  
  71.                    <DIV style="OVERFLOW: auto; width:232px;  HEIGHT: 316px;  " id="z"    align=center>
  72.                 <asp:GridView ID="GridView1" CssClass="usertableborder" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" Width="87%">
  73.                      <Columns>
  74.                          <asp:BoundField DataField="UserId" HeaderText="用户名" DataFormatString="&lt;a style=quot;cursor:pointer quot;  onclick=&quot;winBack('{0}')&quot;&gt;{0}&lt;/a&gt;" HtmlEncode="False">
  75.                              <HeaderStyle Width="200px" />
  76.                              <ItemStyle HorizontalAlign="Center" />
  77.                          </asp:BoundField>
  78.                   
  79.                      </Columns>
  80.                 <RowStyle CssClass="usertablerow2" />
  81.                 <AlternatingRowStyle CssClass="usertablerow1" />
  82.                  </asp:GridView>
  83. </DIV>
  84.                   &nbsp;<webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="20" OnPageChanging="AspNetPager1_PageChanging" NumericButtonCount="5">
  85.                 </webdiyer:AspNetPager>  
  86.                </td>
  87.         </tr>
  88.     </table>
  89.     <br>
  90.     </form>
  91.     
  92. </body>
  93. </html>