⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 operatelog.aspx

📁 办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统办公系统
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="OperateLog.aspx.cs" Inherits="SysManage_OperateLog" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script language="javascript">
 function GetAllCheckBox(parentItem)
  {
     var items = document.getElementsByTagName("input");     
     for(i=0; i<items.length;i++)
     {       
       if(parentItem.checked)
       {
         if(items[i].type=="checkbox")
          {
           items[i].checked = true;
          }
       }
       else
       {
          if(items[i].type=="checkbox")
          {
           items[i].checked = false;
          }
       }
     }
  }

    </script>

    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
<DIV style="WIDTH: 99%" align=center><SPAN style="FONT-SIZE: 12pt"><STRONG>操 作 日 志</STRONG></SPAN> <BR />
<HR style="WIDTH: 90%; BACKGROUND-COLOR: gray" />
<BR />输入时间段: <asp:TextBox id="txtStartTime" onfocus="new WdatePicker(this,null,false,'whyGreen')" runat="server" Width="120px"></asp:TextBox> ----------- <asp:TextBox id="txtEndTime" onfocus="new WdatePicker(this,null,false,'whyGreen')" runat="server" Width="120px"></asp:TextBox>&nbsp; <asp:RadioButton id="day" runat="server" Text="本日" GroupName="date"></asp:RadioButton> <asp:RadioButton id="week" runat="server" Text="本周" GroupName="date" Checked="True"></asp:RadioButton> <asp:RadioButton id="month" runat="server" Text="本月" GroupName="date"></asp:RadioButton> </DIV><BR /><DIV style="WIDTH: 30%" align=right><asp:ImageButton id="imbtnSearch" onclick="imbtnSearch_Click" runat="server" ImageUrl="~/Images/search.gif"></asp:ImageButton> </DIV><DIV style="WIDTH: 99%" id="DIV1" align=center runat="server"><asp:CheckBox id="chkCheckAll" onclick="GetAllCheckBox(this)" runat="server" Text="全选"></asp:CheckBox> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Button id="btnDelete" onclick="btnDelete_Click" runat="server" Text="删除选定项"></asp:Button> <asp:GridView id="GridView1" runat="server" Width="90%" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="选定(√)">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="序号" DataField="OperateId" />
                <asp:BoundField HeaderText="操作用户" DataField="User" />
                <asp:BoundField HeaderText="事件" DataField="OperateName" />
                <asp:BoundField HeaderText="操作描述" DataField="OperateDesc" />
                <asp:BoundField HeaderText="操作时间" DataField="OperateTime" />
                <asp:TemplateField Visible="False">
                    <ItemTemplate>
                        <asp:Label ID="lblOperateId" runat="server" Text='<%# Eval("OperateId") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView> </DIV><BR /><DIV id="DIV2" align=center runat="server"><asp:Label id="lblMes" runat="server" ForeColor="Red"></asp:Label> </DIV>
</contenttemplate>
    </asp:UpdatePanel>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -