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

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AuditSelect.aspx.cs" Inherits="SysManage_AuditSelect" %>
  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. <link href="../Workflow/style/gridStyle.css"rel="stylesheet" type="text/css" />
  6. <script src="../js/calendar.js" type="text/javascript"></script>
  7. <title>芜湖供电系统工程项目管理子系统</title>
  8. <script type="text/javascript">
  9.   
  10.     function modelesswin(url,mwidth,mheight)
  11.      {
  12.         if (document.all&&window.print) 
  13.          window.showModalDialog(url,"","help:0;dialogWidth:"+mwidth+"px;dialogHeight:"+mheight+"px;status=no,scoll=no;");
  14.          window.location.replace(window.location.href);          
  15.      }  
  16.    
  17.     </script> 
  18. </head>
  19. <body>
  20.     <form id="form1" runat="server">
  21.     
  22.      <TABLE width="100%" border="0" cellPadding="0" cellSpacing="0" >
  23.        <tr>
  24.           <td bgColor="#f7f7f7" width="100%" height="25px">
  25.              <strong>&nbsp;&nbsp;访问控制审核查询</strong>
  26.            </td>
  27.        </tr>       
  28.         <tr>
  29.          <td valign="bottom">  
  30.              <asp:DropDownList ID="DDL_Condition" runat="server" Width="100px"  OnSelectedIndexChanged="DDL_Condition_SelectedIndexChanged" AutoPostBack="True">
  31.                 <asp:ListItem Value="0" Text="---请选择---" Selected="True"></asp:ListItem>
  32.                 <asp:ListItem Value="1" Text="IP地址"></asp:ListItem>
  33.                 <asp:ListItem Value="2" Text="用户帐号"></asp:ListItem>
  34.                 <asp:ListItem Value="3" Text="用户名称"></asp:ListItem>
  35.                 <asp:ListItem Value="4" Text="组织机构"></asp:ListItem>
  36.                 <asp:ListItem Value="5" Text="访问时间"></asp:ListItem>                
  37.              </asp:DropDownList>
  38.              &nbsp;
  39.              <asp:TextBox ID="TB_Condition" runat="server" Width="210px" Visible="true"></asp:TextBox>
  40.              &nbsp;
  41.               <asp:TextBox ID="TB_StartTime" runat="server" Width="130px" Visible="false" onfocus="setday(this)"></asp:TextBox>
  42.              &nbsp;
  43.               <asp:TextBox ID="TB_EndTime" runat="server" Width="130px" Visible="false" onfocus="setday(this)"></asp:TextBox>
  44.              &nbsp;            
  45.              <asp:ImageButton ID="IB_Search"  ImageUrl="~/Images/Search.gif" ToolTip=" 查找"   runat="server"   OnClick="IB_Search_Click" />
  46.          </td> 
  47.        </tr>
  48.        <tr>
  49.         <td width="100%" valign="top">
  50.              <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="AuditID"  OnRowDataBound="GridView1_RowDataBound" Width="100%" 
  51.                         OnRowDeleting="GridView1_RowDeleting"   CellSpacing="1" CellPadding="0" BackColor="#CDCDCF"
  52.                        BorderWidth="0px" CssClass="Grid" OnPageIndexChanging="GridView1_PageIndexChanging"  SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText" 
  53.   FooterStyle-CssClass="GridFooter" ShowFooter="True"   AllowPaging="True" AllowSorting="True" OnSorting="GridView1_Sorting">
  54.                         <AlternatingRowStyle BackColor="#F0F0F0" />
  55.         <RowStyle Height="25px" BackColor="#F9FAFC" CssClass="HeadingCellText" />
  56.         <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
  57.                                <Columns>
  58.                                         <asp:BoundField DataField="AuditID" HeaderText="审核ID" Visible="False">                                           
  59.                                         </asp:BoundField>
  60.                                         <asp:BoundField DataField="IPAddress" HeaderText="IP地址">                                           
  61.                                         </asp:BoundField> 
  62.                                         <asp:BoundField DataField="SessionID" HeaderText="会话ID" Visible="False">                                           
  63.                                         </asp:BoundField>   
  64.                                           <asp:BoundField DataField="Operation" HeaderText="操作">                                          
  65.                                         </asp:BoundField>
  66.                                         <asp:BoundField DataField="EditDate" HeaderText="编辑时间">                                           
  67.                                         </asp:BoundField> 
  68.                                         <asp:BoundField DataField="UserAccount" HeaderText="用户帐号">                                           
  69.                                         </asp:BoundField>  
  70.                                           <asp:BoundField DataField="AccessTime" HeaderText="访问时间">                                          
  71.                                         </asp:BoundField>
  72.                                         <asp:BoundField DataField="ServiceName" HeaderText="调用服务名" Visible="False">                                           
  73.                                         </asp:BoundField> 
  74.                                         <asp:BoundField DataField="ServiceActionName" HeaderText="服务动作名">                                           
  75.                                         </asp:BoundField>  
  76.                                           <asp:BoundField DataField="ServiceInstanceID" HeaderText="服务实例ID" Visible="False">                                          
  77.                                         </asp:BoundField>
  78.                                         <asp:BoundField DataField="CallIngResult" HeaderText="调用结果">                                           
  79.                                         </asp:BoundField> 
  80.                                         <asp:BoundField DataField="CallIngModule" HeaderText="调用模块">                                           
  81.                                         </asp:BoundField>  
  82.                                           <asp:BoundField DataField="LogCate" HeaderText="服务操作">                                          
  83.                                         </asp:BoundField>
  84.                                         <asp:BoundField DataField="EmpName" HeaderText="用户名称">                                           
  85.                                         </asp:BoundField> 
  86.                                         <asp:BoundField DataField="OrgName" HeaderText="组织机构">                                           
  87.                                         </asp:BoundField>                                       
  88.                                         <asp:TemplateField HeaderText="操 作">
  89.                                             <ItemTemplate>
  90.                                              &nbsp; &nbsp; 
  91.                                                 <asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/Images/s-del.gif"
  92.                                                     OnClientClick='<%#"return confirm("确认删除审核ID为『"+Eval("AuditID")+"』的记录吗?");" %>'/>                                                                                        
  93.                                             </ItemTemplate>                                  
  94.                                         </asp:TemplateField>                                       
  95.                                     </Columns>
  96.                                   <FooterStyle CssClass="GridFooter" />
  97.             <PagerStyle CssClass="GridPage" />
  98.                         <PagerTemplate>
  99.                         <asp:Label  ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>&nbsp; &nbsp;
  100.                         <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>&nbsp; &nbsp;
  101.                         <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>&nbsp; &nbsp;
  102.                         <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>&nbsp; &nbsp;
  103.                         <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>&nbsp; &nbsp;
  104.                         <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>&nbsp; &nbsp;
  105.                         转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页&nbsp; &nbsp;
  106.                         <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
  107.                         MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
  108.                         <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" /> 
  109.                         </PagerTemplate>
  110.  
  111.                                    <EmptyDataTemplate>
  112.                                      <center> 系统提示:请输入查询条件,也可以新增用户数据。</center>
  113.                                    </EmptyDataTemplate>                  
  114.                  <SelectedRowStyle CssClass="SelectedRow" />
  115.             </asp:GridView>
  116.         
  117.         </td>
  118.        </tr>
  119.        
  120.     </TABLE>
  121.     
  122.     </form>
  123. </body>
  124. </html>