- <%@ page language="C#" autoeventwireup="true" inherits="sysManage_SysManageUser, App_Web_apkz6_0h" theme="Normal" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>无标题页</title>
- <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
- <script>
- function modelesswin(url,mwidth,mheight)
- {
- if (document.all&&window.print)
- window.showModalDialog(url,"","help:0;dialogWidth=500px;dialogHeight=350px,scroll=no;");
- }
- function confi()
- {
- if (!confirm('系统提示:确认重置吗?'))
- return;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <TABLE width="100%" border="0" cellPadding="0" cellSpacing="0" >
- <tr>
- <td bgColor="#f7f7f7" width="100%" height="25px">
- <strong> 用 户 管 理 </strong>
- </td>
- </tr>
- <tr>
- <td background="../Images/toolbarbg.jpg" height="25">
- <img src="../Images/add.gif" height="15" align="absmiddle">
- <a href="javascript: modelesswin('UserAdd.aspx',450,450)">新建用户</a>
- </td>
- </tr>
- <tr>
- <td valign="bottom">
- <asp:DropDownList ID="DDL_Condition" runat="server" Width="100px">
- <asp:ListItem Value="1" Text="帐号"></asp:ListItem>
- <asp:ListItem Value="2" Text="职工姓名"></asp:ListItem>
- <asp:ListItem Value="3" Text="部门"></asp:ListItem>
- </asp:DropDownList>
-
- <asp:TextBox ID="TB_Condition" runat="server" Width="250px"></asp:TextBox>
- <asp:CheckBox ID="CB_Blur" runat="server" Text="模糊查询" />
- <asp:ImageButton ID="IB_Search" ImageUrl="~/Images/Search.gif" ToolTip=" 查找" runat="server" OnClick="IB_Search_Click" />
- </td>
- </tr>
- <tr>
- <td width="100%" valign="top">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="UserID" BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0"
- OnRowDataBound="GridView1_RowDataBound" Width="100%"
- OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
- 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">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
- <Columns>
- <asp:BoundField DataField="UserID" >
- </asp:BoundField>
- <asp:BoundField DataField="UserAccount" HeaderText="帐 号">
- <HeaderStyle Width="15%"/>
- </asp:BoundField>
- <asp:BoundField DataField="EmpName" HeaderText="职工姓名">
- <HeaderStyle Width="15%"/>
- </asp:BoundField>
- <asp:BoundField DataField="OrgName" HeaderText="部 门">
- <HeaderStyle Width="25%" />
- </asp:BoundField>
- <asp:BoundField DataField="UserDecs" HeaderText="描 述">
- <HeaderStyle Width="30%"/>
- </asp:BoundField>
- <asp:TemplateField HeaderText=" 操 作" >
- <ItemTemplate>
- <asp:ImageButton ToolTip="重置密码" ID="IB_Key" runat="server" CommandName="key2" ImageUrl="~/Images/key.gif"
- OnClientClick='<%#"return confirm("确认要重置该用户的密码吗?");" %>' OnClick="IB_Key_Click"/>
- <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/>
- <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
- OnClientClick='<%#"return confirm("确认删除职工为『"+Eval("EmpName")+"』的记录吗?");" %>'/>
-
- </ItemTemplate>
- <HeaderStyle Width="17%" HorizontalAlign="Center" BorderWidth="0px"/>
- <ItemStyle HorizontalAlign="Left" BorderWidth="0px"/>
- </asp:TemplateField>
- </Columns>
- <FooterStyle CssClass="GridFooter" />
- <PagerStyle CssClass="GridPage" />
- <PagerTemplate>
- <asp:Label ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>
- <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>
- <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>
- 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页
- <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
- MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
- <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" />
- </PagerTemplate>
- <EmptyDataTemplate>
- <center class="EmpetyData"> 系统提示:请输入查询条件,也可以新增用户数据。</center>
- </EmptyDataTemplate>
- <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
- <SelectedRowStyle CssClass="SelectedRow" />
- </asp:GridView>
- <input type="hidden" id="txt_confirm" name="txt_confirm" runat="server">
- </td>
- </tr>
- </TABLE>
- </form>
- </body>
- </html>