<%@ Page Language="C#" MasterPageFile="~/WorkingArea.master" AutoEventWireup="true"
    Inherits="Invensys.Televis.Presentation.Web.AlarmHistory02" EnableEventValidation="false"
    Codebehind="AlarmHistory02.aspx.cs" %>

<%@ Register Src="UC/ToolBar.ascx" TagName="ToolBar" TagPrefix="uc4" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolbarArea" runat="Server">
    <uc4:ToolBar ID="ToolBar1" BackVisible="true" ReportVisible="true" ExportVisible="true"
        runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="FilterArea" runat="server">
    <h6>
        <asp:Label ID="timeInterval" runat="server" /></h6>
    <blockquote>
        <%--<pre><asp:Label ID="lblSelTime" runat="server"/>Custom/Quick(lastDay)(totranslate)</pre>      --%>
        <pre><asp:Label ID="lblFrom" runat="server" />: <asp:Label ID="lblDateFrom" runat="server" /></pre>
        <pre><asp:Label ID="lblTo" runat="server" />: <asp:Label ID="lblDateTo" runat="server" /></pre>
    </blockquote>
    <h6>
        <asp:Label ID="lblSelCfgText" runat="server" /></h6>
    <blockquote>
        <pre><asp:Label ID="lblSelCfg" runat="server" /></pre>
    </blockquote>
    <h6>
        <asp:Label ID="lblDevice" runat="server" /></h6>
    <table class="selectors">
        <tr>
            <td>
                <asp:DropDownList ID="lstDevice" runat="server" AutoPostBack="True" />
            </td>
        </tr>
    </table>
    <h6>
        <asp:Label ID="lblAlarmClass" runat="server" /></h6>
    <table class="selectors">
        <tr>
            <td class="FormInput">
                <asp:DropDownList ID="lstAlarmClass" runat="server" AutoPostBack="True" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentArea" runat="Server">
    <div id="pnlWrapperAlarmHistory">
        <table>
            <tr>
                <td colspan="6">
                    <asp:GridView ID="gridAlarmHist" runat="server" Width="100%" AutoGenerateColumns="False"
                        CssClass="graDevicesTable" OnRowDataBound="gridAlarmHist_RowDataBound" AllowPaging="false" EnableViewState="false"
                        OnSelectedIndexChanged="gridAlarmHist_SelectedIndexChanged" >    
                        <Columns>
                            <asp:TemplateField />
                            <asp:BoundField DataField="AlarmStatus" Visible="False" />
                            <asp:BoundField DataField="InstrumentId" Visible="False" />
                            <asp:BoundField DataField="InstrumentName" />
                            <asp:BoundField DataField="AlarmCode" />
                            <asp:BoundField DataField="AlarmName" />
                            <asp:BoundField DataField="BeginTimeStamp" />
                            <asp:BoundField DataField="AckTimeStamp" />
                            <asp:BoundField DataField="EndTimeStamp" />
                            <asp:BoundField DataField="IDFlashAlarmBegin" Visible="False" />
                            <asp:BoundField DataField="IDFlashAlarmEnd" Visible="False" />
                            <asp:BoundField DataField="IDAlarmClassBegin" Visible="False" />
                            <asp:BoundField DataField="IDAlarmClassEnd" Visible="False" />
                        </Columns>
                        <SelectedRowStyle CssClass="rowSelected" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>  
</asp:Content>
