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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="SysManage_OpRoleManager, App_Web_rlki_npp" 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.     <base target="_self" />
  6.     <title>业务角色</title>
  7.     <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
  8.     <script type="text/javascript">
  9. //        function checkNumber()
  10. //        {
  11. //            if(!(((window.event.keyCode>=48)&&(window.event.keyCode<=57))||(window.event.keyCode==13)||(window.event.keyCode==46)||(window.event.keyCode==45)))
  12. //            {
  13. //                  window.event.keyCode=0;
  14. //                  alert("对不起,只能输入数字!");
  15. //            }
  16. //        }
  17.         function EnterTextBox()
  18.         {
  19.              if(event.keyCode == 13 && document.all["TB_Condition"].value != "")
  20.              {
  21.                  event.keyCode = 9;
  22.                  event.returnValue = false;
  23.                  document.all["IB_Search"].click();
  24.              }
  25.              else if (event.keyCode == 13)
  26.              {
  27.                 return false;
  28.              }
  29.         }
  30.     </script>
  31. </head>
  32. <body>
  33.     <form id="form1" runat="server">
  34.     <div>
  35.         <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  36.            <tr>
  37.               <td style="background-color:#f7f7f7; width:100%; height:25px;">
  38.                  <strong>&nbsp;&nbsp;    业务角色管理   </strong>
  39.                </td>
  40.            </tr>
  41.            <tr>
  42.              <td style="background-image:url(../images/toolbarbg.jpg); height:25;">
  43.                 <img alt="" src="../Images/add.gif" height="15" align="absmiddle">
  44.               </td> 
  45.            </tr>
  46.             <tr>
  47.              <td valign="bottom">
  48.                  <asp:DropDownList ID="DDL_Condition" runat="server" Width="100px">
  49.                     <asp:ListItem Value="1" Text="编号"></asp:ListItem>
  50.                     <asp:ListItem Value="2" Text="名称"></asp:ListItem>
  51.                  </asp:DropDownList>
  52.                  &nbsp;
  53.                  <asp:TextBox ID="TB_Condition" runat="server" Width="250px"></asp:TextBox>
  54.                  &nbsp;
  55.                 
  56.                  <asp:ImageButton ID="IB_Search"  ImageUrl="~/Images/Search.gif" ToolTip=" 查找"   runat="server" OnClick="IB_Search_Click" />
  57.              </td> 
  58.            </tr>
  59.            <tr>
  60.             <td style="width:100%; vertical-align:top;">
  61.               
  62.                  <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="OpID" BackColor="#CDCDCF" BorderWidth="0px"
  63.                   CssClass="Grid"  HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  64.           FooterStyle-CssClass="GridFooter"  ShowFooter="true" CellSpacing="1" CellPadding="0"
  65.                   OnRowDataBound="GridView1_RowDataBound"  Width="100%" OnRowEditing="GridView1_RowEditing"
  66.               
  67.                   HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px"
  68.                   AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" >
  69.                                
  70.                             <AlternatingRowStyle BackColor="#F0F0F0" />
  71.                             <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
  72.                             <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  73.                                    <Columns>
  74.                                            
  75.                                              <asp:BoundField DataField="OpID" HeaderText="角色编号" >
  76.                                                 <HeaderStyle Width="10%" />
  77.                                             </asp:BoundField>
  78.                                             <asp:BoundField DataField="OpName" HeaderText="角色名称">
  79.                                                <HeaderStyle Width="20%"/>
  80.                                             </asp:BoundField>
  81.                                             <asp:BoundField DataField="OrgDesc" HeaderText="角色所属类型">
  82.                                                 <HeaderStyle Width="40%"/>
  83.                                             </asp:BoundField> 
  84.                                    
  85.                                             <asp:TemplateField HeaderText="   操 作" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center" >
  86.                                                 <ItemTemplate> &nbsp; &nbsp;
  87.                                                <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/> &nbsp; &nbsp;
  88.                                                 </ItemTemplate>
  89.                                                 <HeaderStyle Width="17%" HorizontalAlign="Center"  BorderWidth="0px"/>
  90.                                                 <ItemStyle HorizontalAlign="Center" BorderWidth="0px"/>
  91.                                             </asp:TemplateField>
  92.                                         
  93.                                        </Columns>
  94.                                      <FooterStyle CssClass="GridFooter" />
  95.     <PagerStyle CssClass="GridPage" />
  96.                 <PagerTemplate>
  97.                     <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  98.                     <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  99.                     <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  100.                     <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  101.                     <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  102.                     <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  103.                     转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  104.                     <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  105.                      MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  106.                     <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  107.                 </PagerTemplate>
  108.      
  109.                        <EmptyDataTemplate>
  110.                          <center class="EmpetyData"> 系统提示:请输入查询条件,查询用户数据。</center>
  111.                        </EmptyDataTemplate>
  112.                  <HeaderStyle Font-Size="12px" Font-Underline="False" ForeColor="Black" BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
  113.                  <SelectedRowStyle CssClass="SelectedRow" />
  114.                 </asp:GridView>
  115.                
  116.                 <input type="hidden" id="txt_confirm" name="txt_confirm"   runat="server"/>
  117.             </td>
  118.            </tr>
  119.            
  120.         </table>
  121.     </div>
  122.     </form>
  123. </body>
  124. </html>