- <%@ page language="C#" autoeventwireup="true" inherits="SysManage_OpRoleManager, App_Web_rlki_npp" 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">
- <base target="_self" />
- <title>业务角色</title>
- <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- // function checkNumber()
- // {
- // if(!(((window.event.keyCode>=48)&&(window.event.keyCode<=57))||(window.event.keyCode==13)||(window.event.keyCode==46)||(window.event.keyCode==45)))
- // {
- // window.event.keyCode=0;
- // alert("对不起,只能输入数字!");
- // }
- // }
- function EnterTextBox()
- {
- if(event.keyCode == 13 && document.all["TB_Condition"].value != "")
- {
- event.keyCode = 9;
- event.returnValue = false;
- document.all["IB_Search"].click();
- }
- else if (event.keyCode == 13)
- {
- return false;
- }
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" >
- <tr>
- <td style="background-color:#f7f7f7; width:100%; height:25px;">
- <strong> 业务角色管理 </strong>
- </td>
- </tr>
- <tr>
- <td style="background-image:url(../images/toolbarbg.jpg); height:25;">
- <img alt="" src="../Images/add.gif" height="15" align="absmiddle">
- </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:DropDownList>
-
- <asp:TextBox ID="TB_Condition" runat="server" Width="250px"></asp:TextBox>
-
- <asp:ImageButton ID="IB_Search" ImageUrl="~/Images/Search.gif" ToolTip=" 查找" runat="server" OnClick="IB_Search_Click" />
- </td>
- </tr>
- <tr>
- <td style="width:100%; vertical-align:top;">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="OpID" BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0"
- OnRowDataBound="GridView1_RowDataBound" Width="100%" OnRowEditing="GridView1_RowEditing"
- HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px"
- AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" >
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" Height="25px" />
- <HeaderStyle BackColor="#DFDFDF" CssClass="GridHeader" Height="25px" />
- <Columns>
- <asp:BoundField DataField="OpID" HeaderText="角色编号" >
- <HeaderStyle Width="10%" />
- </asp:BoundField>
- <asp:BoundField DataField="OpName" HeaderText="角色名称">
- <HeaderStyle Width="20%"/>
- </asp:BoundField>
- <asp:BoundField DataField="OrgDesc" HeaderText="角色所属类型">
- <HeaderStyle Width="40%"/>
- </asp:BoundField>
- <asp:TemplateField HeaderText=" 操 作" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center" >
- <ItemTemplate>
- <asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/Images/s_edit.gif"/>
- </ItemTemplate>
- <HeaderStyle Width="17%" HorizontalAlign="Center" BorderWidth="0px"/>
- <ItemStyle HorizontalAlign="Center" 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>
- </div>
- </form>
- </body>
- </html>