SysManageUser.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:9k
源码类别:

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="sysManage_SysManageUser, App_Web_2n6c6zuv" theme="Normal" %>
  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.     <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
  7.     <script>
  8.   
  9.     function modelesswin(url,mwidth,mheight)
  10.      {
  11.        if (document.all&&window.print) 
  12.           window.showModalDialog(url,"","help:0;dialogWidth=500px;dialogHeight=350px,scroll=no;");
  13.       }
  14.    
  15.     function confi()
  16.      {
  17.       
  18.        if (!confirm('系统提示:确认重置吗?'))
  19.          return;
  20.      
  21.     }
  22.     </script> 
  23. </head>
  24. <body>
  25.     <form id="form1" runat="server">
  26.     
  27.      <TABLE width="100%" border="0" cellPadding="0" cellSpacing="0" >
  28.        <tr>
  29.           <td bgColor="#f7f7f7" width="100%" height="25px">
  30.              <strong>&nbsp;&nbsp;    用 户 管 理   </strong>
  31.            </td>
  32.        </tr>
  33.        <tr>
  34.          <td background="../Images/toolbarbg.jpg" height="25">
  35.             <img src="../Images/add.gif" height="15" align="absmiddle">
  36.             
  37.             <a href="javascript: modelesswin('UserAdd.aspx',450,450)">新建用户</a>
  38.            
  39.           </td> 
  40.        </tr>
  41.         <tr>
  42.          <td valign="bottom">  
  43.              <asp:DropDownList ID="DDL_Condition" runat="server" Width="100px">
  44.                 <asp:ListItem Value="1" Text="帐号"></asp:ListItem>
  45.                 <asp:ListItem Value="2" Text="职工姓名"></asp:ListItem>
  46.                 <asp:ListItem Value="3" Text="部门"></asp:ListItem>
  47.              </asp:DropDownList>
  48.              &nbsp;
  49.              <asp:TextBox ID="TB_Condition" runat="server" Width="250px"></asp:TextBox>
  50.             
  51.             <asp:CheckBox ID="CB_Blur" runat="server" Text="模糊查询" />
  52.              <asp:ImageButton ID="IB_Search"  ImageUrl="~/Images/Search.gif" ToolTip=" 查找"   runat="server"   OnClick="IB_Search_Click" />
  53.          </td> 
  54.        </tr>
  55.        <tr>
  56.         <td width="100%" valign="top">
  57.           
  58.              <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="UserID" BackColor="#CDCDCF" BorderWidth="0px"
  59.              CssClass="Grid"  SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  60.   FooterStyle-CssClass="GridFooter"  ShowFooter="true" CellSpacing="1" CellPadding="0" 
  61.              
  62.               OnRowDataBound="GridView1_RowDataBound"  Width="100%" 
  63.                         OnRowDeleting="GridView1_RowDeleting"  OnRowEditing="GridView1_RowEditing"  
  64.                         HeaderStyle-ForeColor="black"   HeaderStyle-Font-Size="12px"  HeaderStyle-Font-Underline="false"   AllowPaging="True" AllowSorting="True" OnSorting="GridView1_Sorting"  OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowCommand="GridView1_RowCommand" OnRowCreated="GridView1_RowCreated">
  65.                            
  66.                            <AlternatingRowStyle BackColor="#F0F0F0" />
  67. <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
  68.                                <Columns>
  69.                                        
  70.                                          <asp:BoundField   DataField="UserID" >
  71.                                         </asp:BoundField>
  72.                                         <asp:BoundField DataField="UserAccount"  HeaderText="帐  号">
  73.                                            <HeaderStyle Width="15%"/> 
  74.                                         </asp:BoundField>
  75.                                         <asp:BoundField DataField="EmpName" HeaderText="职工姓名">
  76.                                             <HeaderStyle Width="15%"/>
  77.                                         </asp:BoundField> 
  78.                                         <asp:BoundField DataField="OrgName" HeaderText="部  门">
  79.                                             <HeaderStyle Width="25%" />
  80.                                         </asp:BoundField>
  81.                                         <asp:BoundField DataField="UserDecs" HeaderText="描  述">
  82.                                             <HeaderStyle Width="30%"/>
  83.                                         </asp:BoundField>
  84.                                      
  85.                                
  86.                                         <asp:TemplateField HeaderText="   操 作" >
  87.                                             <ItemTemplate> &nbsp; &nbsp;
  88.                                             <asp:ImageButton ToolTip="重置密码" ID="IB_Key" runat="server" CommandName="key2"  ImageUrl="~/Images/key.gif"
  89.                                                     OnClientClick='<%#"return confirm("确认要重置该用户的密码吗?");" %>' OnClick="IB_Key_Click"/>
  90.                                          
  91.                                          
  92.                                             &nbsp;&nbsp;  &nbsp;<asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/> &nbsp; &nbsp;
  93.                                                 <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
  94.                                                     OnClientClick='<%#"return confirm("确认删除职工为『"+Eval("EmpName")+"』的记录吗?");" %>'/>
  95.                                                   &nbsp; &nbsp;
  96.                                               
  97.                                             </ItemTemplate>
  98.                                             <HeaderStyle Width="17%" HorizontalAlign="Center"  BorderWidth="0px"/>
  99.                                             <ItemStyle HorizontalAlign="Left"  BorderWidth="0px"/>
  100.                                         </asp:TemplateField>
  101.                                     
  102.                                    </Columns>
  103.                                  <FooterStyle CssClass="GridFooter" />
  104. <PagerStyle CssClass="GridPage" />
  105.             <PagerTemplate>
  106.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  107.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  108.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  109.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  110.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  111.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  112.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  113.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  114.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  115.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  116.             </PagerTemplate>
  117.  
  118.                                    <EmptyDataTemplate>
  119.                                      <center class="EmpetyData"> 系统提示:请输入查询条件,也可以新增用户数据。</center>
  120.                                    </EmptyDataTemplate>
  121.                  <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  122.                  <SelectedRowStyle CssClass="SelectedRow" />
  123.                    
  124.  
  125.             </asp:GridView>
  126.            
  127.             <input type="hidden" id="txt_confirm" name="txt_confirm"   runat="server">
  128.         </td>
  129.        </tr>
  130.        
  131.     </TABLE>
  132.     
  133.     </form>
  134. </body>
  135. </html>