<%@ page language="C#" autoeventwireup="true" inherits="ProduceAdmin_ProduceOperateLog_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="GroupFly" %>
<!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">
    <title>日志列表</title>
    <link rel="stylesheet" type="text/css" href="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

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

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnableScriptGlobalization="true" EnableScriptLocalization="true"
        runat="server">
    </asp:ScriptManager>
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTtitle" runat="server" Text="操作日志列表"></asp:Label></div>
              <div class="query">
                                <table cellpadding="0" cellspacing="1" width="100%">
                                    <tr>
                                        <td  align="right">
                                            <asp:Localize ID="LocalizeOperatorID" runat="server" Text="操作者ID："></asp:Localize></td>
                                             <td><asp:TextBox ID="TextBoxOperatorID" runat="server" CssClass="allinput1"></asp:TextBox>
                                        </td>
                                        <td  align="right">
                                            <asp:Localize ID="LocalizePageName" runat="server" Text="操作页面名称："></asp:Localize></td>
                                            <td><asp:TextBox ID="TextBoxPageName" runat="server" CssClass="allinput1"></asp:TextBox></td>
                                        
                                    </tr>
                                    <tr>
                                        <td align="right"  >
                                            <asp:Localize ID="LocalizeStartTime" runat="server" Text="起始时间："></asp:Localize></td>
                                             <td colspan="2"><asp:TextBox ID="TextBoxStartTime" runat="server" CssClass="allinput1"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartDate" runat="server"
                                                ControlToValidate="TextBoxStartTime" Display="Dynamic" ErrorMessage="时间格式不正确"
                                                ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                                            <img id="imgCalendarSReplyTime1" alt=UserName src="images/Calendar.png" style="width: 16px;
                                                height:18px; position:relative; top:4px" />
                                            <GroupFly:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBoxStartTime"
                                                PopupButtonID="imgCalendarSReplyTime1" CssClass="ajax__calendar" />
                                       -<asp:TextBox ID="TextBoxEndTime" runat="server" CssClass="allinput1"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorEndDate" runat="server"
                                                ControlToValidate="TextBoxEndTime" Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                                            <img id="imgCalendarSReplyTime2" alt=UserName src="images/Calendar.png" style="width: 16px;
                                                height:18px; position:relative; top:4px" />
                                            <GroupFly:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBoxEndTime"
                                                PopupButtonID="imgCalendarSReplyTime2" CssClass="ajax__calendar" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td  align="right">
                                            <asp:Localize ID="LocalizeIP" runat="server" Text="IP："></asp:Localize> </td>
                                             <td> <asp:TextBox ID="TextBoxIP" runat="server" CssClass="allinput1"></asp:TextBox>
                                        </td>
                                        <td colspan="2"  align="center">
                                            <asp:Button ID="Button1" runat="server" Text="查询" CssClass="bnt1" />
                                        </td>
                                    </tr>
                                </table> </div>
                <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" AddSequenceColumn="False"
                    AllowMultiColumnSorting="False" AutoGenerateColumns="False" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                    Edit="False"  TableName="" Width="100%" AllowSorting="True" DataSourceID="ObjectDataSourceDate"
                    AllowPaging="True" GridLines="None" CellSpacing="1" CellPadding="0" FixHeader="False"
                    GridViewSortDirection="Ascending" PagingStyle="None" Style="margin-left: 0px;">
                    <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                    </HeaderStyle>
                    <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="checkboxItem" value='<%# Eval("Guid") %>' type="checkbox" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Record" HeaderText="操作记录"></asp:BoundField>
                        <asp:BoundField DataField="OperatorID" HeaderText="操作者ID"></asp:BoundField>
                        <asp:BoundField DataField="IP" HeaderText="操作IP地址"></asp:BoundField>
                        <asp:BoundField DataField="PageName" HeaderText="操作页面名称"></asp:BoundField>
                        <asp:BoundField DataField="Date" HeaderText="操作时间"></asp:BoundField>
                    </Columns>
                </cc1:GroupFlyGridView>
          
        </div>
    </div>
    <div class="bottomLine">
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
            CssClass="bnt1" OnClick="ButtonDelete_Click" />
        <asp:TextBox ID="TextBoxDleteTime1" runat="server" CssClass="allinput1"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxDleteTime1"
            Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
        <img id="imgDleteTime1" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;position:relative; top:4px" />
      -
        <GroupFly:CalendarExtender ID="CalendarExtenderDleteTime1" runat="server" TargetControlID="TextBoxDleteTime1"
            PopupButtonID="imgDleteTime1" CssClass="ajax__calendar" />
        <asp:TextBox ID="TextBoxDleteTime2" runat="server" CssClass="allinput1"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxDleteTime2"
            Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
        <img id="imgDleteTime2" alt="" src="images/Calendar.png" style="width: 16px; height:18px;position:relative; top:4px" />
        <GroupFly:CalendarExtender ID="CalendarExtenderDleteTime2" runat="server" TargetControlID="TextBoxDleteTime2"
            PopupButtonID="imgDleteTime2" CssClass="ajax__calendar" />
        <asp:Button ID="ButtonDeleteAll" runat="server" Text="全部删除" CssClass="bt3" OnClick="ButtonDeleteAll_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="Search"
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_OperateLog_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxOperatorID" Name="OperatorID" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxPageName" Name="PageName" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxStartTime" Name="StartTime" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxEndTime" Name="EndTime" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="TextBoxIP" Name="IP" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" 
                PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="ProduceMemLoginID" runat ="server" Value ="0" />
    </form>
</body>
</html>
