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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="UserSelect, App_Web_0vnla_mi" 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.     <base target="_self" ></base>
  7.      <script type="text/javascript" >
  8.     function PwsDialog()
  9.     {
  10.             var re=window.showModalDialog('editpsw.aspx?page=2','修改密码','dialogWidth=400px;scroll=no;help=no;dialogHeight=300px;');
  11.             if(re!=undefined && re=='success')
  12.             {
  13.               window.location.replace("Main.aspx");
  14.             }
  15.     } 
  16. //    function APwsDialog(UserAccount,UserIP,flag)
  17. //    {                        
  18. //            var re=window.showModalDialog('PassWord.aspx?UserAccount='+UserAccount+'&UserIP='+UserIP+'&Flag='+flag,'再次输入密码','dialogWidth=400px;scroll=no;help=no;dialogHeight=100px;');
  19. //            if(re!=undefined && re=='success')
  20. //            {
  21. //              window.location.replace("Main.aspx");
  22. //            }
  23. //    }     
  24.     </script>   
  25. </head>
  26. <body>
  27.     <form id="form1" runat="server">
  28.     <div>
  29.         <asp:Panel ID="Panel1" runat="server" Width="100%">
  30.         <table border="0" cellpadding="0" cellspacing="0" width="100%">
  31.     <tr><td>请选择帐户</td></tr>
  32.     <tr><td>
  33.      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
  34.      BackColor="#CDCDCF" BorderWidth="0px"
  35.              CssClass="Grid"  SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  36.   FooterStyle-CssClass="GridFooter"  ShowFooter="true" CellSpacing="1" CellPadding="0"
  37.    HeaderStyle-ForeColor="black"   HeaderStyle-Font-Size="12px"  HeaderStyle-Font-Underline="false"   AllowPaging="True" AllowSorting="True"
  38.    OnPageIndexChanging="GridView1_PageIndexChanging"  OnRowCommand="GridView1_RowCommand" DataKeyNames="UserID">
  39.          <AlternatingRowStyle BackColor="#F0F0F0" />
  40. <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
  41. <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
  42.          <Columns>             
  43.              <asp:BoundField DataField="UserAccount" HeaderText="用户帐户" />             
  44.              <asp:BoundField DataField="OrgName" HeaderText="组织机构" />
  45.               <asp:TemplateField HeaderText="   操 作" >
  46.                <ItemTemplate>
  47.                 <asp:ImageButton ToolTip="选择" ID="IB_Select" runat="server" CommandName="Select" ImageUrl="~/Images/i_rate.gif"/>                                      
  48.                </ItemTemplate>
  49.                </asp:TemplateField>         
  50.          </Columns>
  51.          <FooterStyle CssClass="GridFooter" />
  52. <PagerStyle CssClass="GridPage" />
  53.             <PagerTemplate>
  54.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  55.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  56.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  57.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  58.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  59.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  60.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  61.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  62.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  63.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  64.             </PagerTemplate>                                
  65.             <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" />
  66.         </asp:GridView>
  67.     </td></tr>
  68.     </table>
  69.         </asp:Panel> 
  70.         <asp:Panel ID="Panel2" runat="server" Width="100%" Visible="false">
  71.         <table border="0" cellpadding="0" cellspacing="0" width="100%">
  72.     <tr><td>请选择用户</td></tr>
  73.     <tr><td>
  74.      <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="100%"
  75.      BackColor="#CDCDCF" BorderWidth="0px"
  76.              CssClass="Grid"  SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  77.   FooterStyle-CssClass="GridFooter"  ShowFooter="true" CellSpacing="1" CellPadding="0"
  78.    HeaderStyle-ForeColor="black"   HeaderStyle-Font-Size="12px"  HeaderStyle-Font-Underline="false"   AllowPaging="True" AllowSorting="True"
  79.    OnPageIndexChanging="GridView2_PageIndexChanging"  OnRowCommand="GridView2_RowCommand" DataKeyNames="UserID">
  80.          <AlternatingRowStyle BackColor="#F0F0F0" />
  81. <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
  82. <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
  83.          <Columns>             
  84.              <asp:BoundField DataField="EmpName" HeaderText="职工姓名" />             
  85.              <asp:BoundField DataField="OrgName" HeaderText="组织机构" />
  86.               <asp:TemplateField HeaderText="   操 作" >
  87.                <ItemTemplate>
  88.                 <asp:ImageButton ToolTip="选择" ID="IB_Select" runat="server" CommandName="Select" ImageUrl="~/Images/i_rate.gif"/>                                      
  89.                </ItemTemplate>
  90.                </asp:TemplateField>         
  91.          </Columns>
  92.          <FooterStyle CssClass="GridFooter" />
  93. <PagerStyle CssClass="GridPage" />
  94.             <PagerTemplate>
  95.                 <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  96.                 <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  97.                 <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  98.                 <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  99.                 <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  100.                 <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  101.                 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  102.                 <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  103.                  MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  104.                 <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  105.             </PagerTemplate>                                
  106.             <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" />
  107.         </asp:GridView>
  108.     </td></tr>
  109.     </table>
  110.         </asp:Panel>   
  111.     </div>
  112.     </form>
  113. </body>
  114. </html>