- <%@ page language="C#" autoeventwireup="true" inherits="UserSelect, App_Web_6jiunhod" 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>
- <base target="_self" ></base>
- <script type="text/javascript" >
- function PwsDialog()
- {
- var re=window.showModalDialog('editpsw.aspx?page=2','修改密码','dialogWidth=400px;scroll=no;help=no;dialogHeight=300px;');
- if(re!=undefined && re=='success')
- {
- window.location.replace("Main.aspx");
- }
- }
- // function APwsDialog(UserAccount,UserIP,flag)
- // {
- // var re=window.showModalDialog('PassWord.aspx?UserAccount='+UserAccount+'&UserIP='+UserIP+'&Flag='+flag,'再次输入密码','dialogWidth=400px;scroll=no;help=no;dialogHeight=100px;');
- // if(re!=undefined && re=='success')
- // {
- // window.location.replace("Main.aspx");
- // }
- // }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Panel ID="Panel1" runat="server" Width="100%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr><td>请选择帐户</td></tr>
- <tr><td>
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
- BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0"
- HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px" HeaderStyle-Font-Underline="false" AllowPaging="True" AllowSorting="True"
- OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand" DataKeyNames="UserID">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
- <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
- <Columns>
- <asp:BoundField DataField="UserAccount" HeaderText="用户帐户" />
- <asp:BoundField DataField="OrgName" HeaderText="组织机构" />
- <asp:TemplateField HeaderText=" 操 作" >
- <ItemTemplate>
- <asp:ImageButton ToolTip="选择" ID="IB_Select" runat="server" CommandName="Select" ImageUrl="~/Images/i_rate.gif"/>
- </ItemTemplate>
- </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>
- <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" />
- </asp:GridView>
- </td></tr>
- </table>
- </asp:Panel>
- <asp:Panel ID="Panel2" runat="server" Width="100%" Visible="false">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr><td>请选择用户</td></tr>
- <tr><td>
- <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="100%"
- BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0"
- HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px" HeaderStyle-Font-Underline="false" AllowPaging="True" AllowSorting="True"
- OnPageIndexChanging="GridView2_PageIndexChanging" OnRowCommand="GridView2_RowCommand" DataKeyNames="UserID">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
- <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
- <Columns>
- <asp:BoundField DataField="EmpName" HeaderText="职工姓名" />
- <asp:BoundField DataField="OrgName" HeaderText="组织机构" />
- <asp:TemplateField HeaderText=" 操 作" >
- <ItemTemplate>
- <asp:ImageButton ToolTip="选择" ID="IB_Select" runat="server" CommandName="Select" ImageUrl="~/Images/i_rate.gif"/>
- </ItemTemplate>
- </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>
- <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" />
- </asp:GridView>
- </td></tr>
- </table>
- </asp:Panel>
- </div>
- </form>
- </body>
- </html>