<%@ page language="C#" autoeventwireup="true" inherits="ADataLog, App_Web_adatalog.aspx.fe996db7" enableeventvalidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UserControls/iERPUtilityBar.ascx" TagName="iERPUtilityBar" TagPrefix="dsip" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head id="Head1" runat="server">
    <title>..:: ICDAS 2.1 ::..</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
   
    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>

    <script type="text/javascript" src="../App_Include/JavaScript/swfobject.js"></script>

    <script type="text/javascript" language="Javascript" src="../FusionCharts/FusionCharts.js"></script>
    
    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/ScreenSaverStar.js"> </script>

    <script type="text/javascript" language="javascript">
        function resizeObject() {


            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 5;
            var cObj = document.getElementById("divChildBody");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 10) + "px";
                //cObj.style.width = parseInt(w) +"px";
            }

            cObj = document.getElementById("<%#PanelSearchEntry.ClientID%>");
            if (cObj != null) {
                cObj.style.height = (parseInt(h) - 220) + "px";
            }
            hideWait();
        }

        function validateRecord() {
            var doc = document.forms[0];

            if (doc.cmbInstrument.selectedIndex == 0) 
            {
                alert("Select Instrument...");
                doc.cmbInstrument.focus();
                return false;
            }
            if (Trim(doc.hdnGRowCount.value) == "0") {
                alert("No Records Available...");
                return false;
            }
            else 
            {
                return true;
            }
        }
        function validatePrint() {
            var doc = document.forms[0];
            if (doc.cmbInstrument.selectedIndex == 0) {
                alert("Select Instrument ...");
                doc.cmbInstrument.focus();
                return false;
            }
            if (Trim(doc.hdnGRowCount.value) == "0") {
                alert("No Records Available...");
                return false;
            }
            
            var date1=document.getElementById("<%#txtFromDate.ClientID%>");
            var date2=document.getElementById("<%#txtToDate.ClientID%>");
            
            if (date1 !=null)
            {
                var theDate1=new Date(Date.parse(date1.value));
            }
            else
            {
             return false;
            }
            
            if(date2 !=null)
            {
                var theDate2=new Date(Date.parse(date2.value));
            }           
            else
            {
            return false;
            }
            
            var calDiff=0;
            if (theDate1%4==0 || theDate2%4==0)
            {
            calDiff =366;
            }
            else
            {
            calDiff =365;
            }
            
            var diff=dayDiff(theDate1,theDate2);
            if (parseInt(diff) >calDiff) 
            {
                alert("Invalid Date  Range! Please select date with in range of 1 year.");
                date1.focus();
                return false;
            }
            
                return true;


        }
        function dayDiff(date1,date2)
                {
                    var one_day=1000*60*60*24;

                    var date1_ms=date1.getTime();

                    var date2_ms=date2.getTime();
                    var difference_ms=date2_ms -date1_ms;
                    return Math.round(difference_ms/one_day);
                    }

        
        function ValidateSearch() {
            var doc = document.forms[0];

            if (doc.cmbInstrument.selectedIndex == 0) {
                alert("Select Instrument...");
                doc.cmbInstrument.focus();
                return false;
            }
            else {
                return true;
            }
        }

        //        function ShowPnlEdit() {
        //            var cObj = document.getElementById("divEdit");
        //            if (cObj != null) {
        //                cObj.style.visibility = "visible";
        //                cObj.style.display = "block";
        //            }
        //        }
        //        function HidePnlEdit() {
        //            var cObj = document.getElementById("divEdit");
        //            if (cObj != null) {
        //                cObj.style.visibility = "hidden";
        //                cObj.style.display = "none";
        //            }
        //        }
        //
        function unloadpage() {
            var cObj = document.getElementById("btnUnload");
            if (cObj != null) {
                cObj.click();
            }
        }
    </script>

    <script type="text/javascript">
                function checkDate(sender, args) {
            if (sender._selectedDate > new Date()) {
                alert("You cannot select a Future date than today!");
                sender._selectedDate = new Date();
                // set the date back to the current date
                sender._textbox.set_Value(sender._selectedDate.format(sender._format))
                        }

        }
    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); resizeHolder(); init(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);"
    onunload="unloadpage();">
    <object id="factory" style="display: none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
        codebase="../smsx.cab">
    </object>
    <form id="Form1" runat="server" class="formbg" target="_blank">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="formbg">
        <tr>
            <td valign="top" align="left">
                <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
                    <div id="divHeader" runat="server" style="border-style: none; height: 26px; width: 100%;
                        position: absolute; left: 1px; top: 8px;" align="center">
                        <dsip:iERPUtilityBar ID="iERPUtilityBar1" runat="server" Caption="Alarm Log" PageAccess="11111"
                            ValidateLogin="true" />
                    </div>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordIds" runat="server" Value="" />
                            <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnCompanyName" runat="server" Value="" />
                            <asp:HiddenField ID="hdnUserName" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBusinessUnitId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnLoginComments" runat="server" Value="" />
                            <asp:HiddenField ID="hdnRecordKeys" runat="server" Value="" />
                            <asp:HiddenField ID="hdnGRowCount" runat="server" Value="0" />
                            <div id="divChildBody" runat="server" style="overflow: auto; width: 99%;">
                                <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                    <tr height="62px">
                                        <td colspan="5">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left">
                                            From Date
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:TextBox ID="txtFromDate" runat="server" CssClass="dateInput" MaxLength="20"
                                                onBlur="GetDateField(this);" onFocus="SetDateField(this);" ToolTip="Format : [ddmmyyyy], [d] or [dd], [ddm] or [ddmm], [ ]"
                                                Width="25%"></asp:TextBox>
                                            <img id="imgCal1" style="cursor: pointer;" runat="server" alt="Click to Show Calendar"
                                                align="middle" src="../Images/date.gif" />
                                            <asp:CalendarExtender ID="cal1" runat="server" PopupButtonID="imgCal1" TargetControlID="txtFromDate"
                                                Format="dd-MMM-yyyy" CssClass="zcCalendar" Enabled="True">
                                            </asp:CalendarExtender>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left">
                                            To Date
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:TextBox ID="txtToDate" runat="server" CssClass="dateInput" MaxLength="20" onBlur="GetDateField(this);"
                                                onFocus="SetDateField(this);" ToolTip="Format : [ddmmyyyy], [d] or [dd], [ddm] or [ddmm], [ ]"
                                                Width="25%"></asp:TextBox>
                                            <img id="imgCal2" style="cursor: pointer;" runat="server" alt="Click to Show Calendar"
                                                align="middle" src="../Images/date.gif" />
                                            <asp:CalendarExtender ID="cal2" runat="server" PopupButtonID="imgCal2" TargetControlID="txtToDate"
                                                Format="dd-MMM-yyyy" CssClass="zcCalendar" Enabled="True" OnClientDateSelectionChanged="checkDate">
                                            </asp:CalendarExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" height="5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left">
                                            From Time
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:DropDownList ID="cmbFromHours" runat="server">
                                                <asp:ListItem Value="00" Selected="True">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23">23</asp:ListItem>
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="cmbFromMins" runat="server">
                                                <asp:ListItem Value="00" Selected="True">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23">23</asp:ListItem>
                                                <asp:ListItem Value="24">24</asp:ListItem>
                                                <asp:ListItem Value="25">25</asp:ListItem>
                                                <asp:ListItem Value="26">26</asp:ListItem>
                                                <asp:ListItem Value="27">27</asp:ListItem>
                                                <asp:ListItem Value="28">28</asp:ListItem>
                                                <asp:ListItem Value="29">29</asp:ListItem>
                                                <asp:ListItem Value="30">30</asp:ListItem>
                                                <asp:ListItem Value="31">31</asp:ListItem>
                                                <asp:ListItem Value="32">32</asp:ListItem>
                                                <asp:ListItem Value="33">33</asp:ListItem>
                                                <asp:ListItem Value="34">34</asp:ListItem>
                                                <asp:ListItem Value="35">35</asp:ListItem>
                                                <asp:ListItem Value="36">36</asp:ListItem>
                                                <asp:ListItem Value="37">37</asp:ListItem>
                                                <asp:ListItem Value="38">38</asp:ListItem>
                                                <asp:ListItem Value="39">39</asp:ListItem>
                                                <asp:ListItem Value="40">40</asp:ListItem>
                                                <asp:ListItem Value="41">41</asp:ListItem>
                                                <asp:ListItem Value="42">42</asp:ListItem>
                                                <asp:ListItem Value="43">43</asp:ListItem>
                                                <asp:ListItem Value="44">44</asp:ListItem>
                                                <asp:ListItem Value="45">45</asp:ListItem>
                                                <asp:ListItem Value="46">46</asp:ListItem>
                                                <asp:ListItem Value="47">47</asp:ListItem>
                                                <asp:ListItem Value="48">48</asp:ListItem>
                                                <asp:ListItem Value="49">49</asp:ListItem>
                                                <asp:ListItem Value="50">50</asp:ListItem>
                                                <asp:ListItem Value="51">51</asp:ListItem>
                                                <asp:ListItem Value="52">52</asp:ListItem>
                                                <asp:ListItem Value="53">53</asp:ListItem>
                                                <asp:ListItem Value="54">54</asp:ListItem>
                                                <asp:ListItem Value="55">55</asp:ListItem>
                                                <asp:ListItem Value="56">56</asp:ListItem>
                                                <asp:ListItem Value="57">57</asp:ListItem>
                                                <asp:ListItem Value="58">58</asp:ListItem>
                                                <asp:ListItem Value="59">59</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left">
                                            To Time
                                        </td>
                                        <td width="40%" align="left">
                                            <asp:DropDownList ID="cmbToHours" runat="server">
                                                <asp:ListItem Value="00">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23" Selected="True">23</asp:ListItem>
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="cmbToMins" runat="server">
                                                <asp:ListItem Value="00">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23">23</asp:ListItem>
                                                <asp:ListItem Value="24">24</asp:ListItem>
                                                <asp:ListItem Value="25">25</asp:ListItem>
                                                <asp:ListItem Value="26">26</asp:ListItem>
                                                <asp:ListItem Value="27">27</asp:ListItem>
                                                <asp:ListItem Value="28">28</asp:ListItem>
                                                <asp:ListItem Value="29">29</asp:ListItem>
                                                <asp:ListItem Value="30">30</asp:ListItem>
                                                <asp:ListItem Value="31">31</asp:ListItem>
                                                <asp:ListItem Value="32">32</asp:ListItem>
                                                <asp:ListItem Value="33">33</asp:ListItem>
                                                <asp:ListItem Value="34">34</asp:ListItem>
                                                <asp:ListItem Value="35">35</asp:ListItem>
                                                <asp:ListItem Value="36">36</asp:ListItem>
                                                <asp:ListItem Value="37">37</asp:ListItem>
                                                <asp:ListItem Value="38">38</asp:ListItem>
                                                <asp:ListItem Value="39">39</asp:ListItem>
                                                <asp:ListItem Value="40">40</asp:ListItem>
                                                <asp:ListItem Value="41">41</asp:ListItem>
                                                <asp:ListItem Value="42">42</asp:ListItem>
                                                <asp:ListItem Value="43">43</asp:ListItem>
                                                <asp:ListItem Value="44">44</asp:ListItem>
                                                <asp:ListItem Value="45">45</asp:ListItem>
                                                <asp:ListItem Value="46">46</asp:ListItem>
                                                <asp:ListItem Value="47">47</asp:ListItem>
                                                <asp:ListItem Value="48">48</asp:ListItem>
                                                <asp:ListItem Value="49">49</asp:ListItem>
                                                <asp:ListItem Value="50">50</asp:ListItem>
                                                <asp:ListItem Value="51">51</asp:ListItem>
                                                <asp:ListItem Value="52">52</asp:ListItem>
                                                <asp:ListItem Value="53">53</asp:ListItem>
                                                <asp:ListItem Value="54">54</asp:ListItem>
                                                <asp:ListItem Value="55">55</asp:ListItem>
                                                <asp:ListItem Value="56">56</asp:ListItem>
                                                <asp:ListItem Value="57">57</asp:ListItem>
                                                <asp:ListItem Value="58">58</asp:ListItem>
                                                <asp:ListItem Value="59" Selected="True">59</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" height="5px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left" valign="top">
                                            Equipment
                                        </td>
                                        <td width="40%">
                                            <asp:DropDownList ID="cmbInstrument" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbInstrument_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left" valign="top">
                                        </td>
                                        <td width="40%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" align="left">
                                            Page Size
                                        </td>
                                        <td width="40%" align="left">
                                            <table width="100%">
                                                <tr>
                                                    <td align="left">
                                                        <asp:TextBox ID="txtGridPageSize" runat="server" CssClass="numInput" Width="15%"
                                                            MaxLength="5">25</asp:TextBox>
                                                        &nbsp;&nbsp;
                                                        <asp:ImageButton ID="ibtFind" runat="server" ImageUrl="~/ToolBarIcon/DSITButtonFind.png"
                                                            Height="32px" Width="32px" ToolTip="Search" BackColor="Transparent" OnClick="ibtFind_Click"
                                                            ImageAlign="AbsMiddle" Visible="false" />
                                                        <asp:Button ID="btnUnload" runat="server" OnClick="btnUnload_Click" Style="display: none;" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="0%" align="left">
                                        </td>
                                        <td width="10%" align="left">
                                        </td>
                                        <td width="40%" align="left">
                                        </td>
                                    </tr>
                                </table>
                                <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                    <tr>
                                        <td class="frametitle" align="center" style="height: 20px" width="98%">
                                            <font size="2"><b></b>&nbsp;<strong>[Records Found :
                                                <asp:Label ID="lblreccount" runat="server"></asp:Label>]</strong> </font>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="PanelSearchEntry" ScrollBars="Auto" runat="server" Visible="true"
                                                HorizontalAlign="Center" Width="99%">
                                                <asp:GridView ID="GVSearch" Width="100%" runat="server" CellPadding="0" AllowSorting="false"
                                                    AutoGenerateColumns="False" OnRowDataBound="ItemDataBound" BorderColor="#E0E4EA"
                                                    AllowPaging="true" OnPageIndexChanging="ChangePage" PageSize="25">
                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="chkRecordId" runat="server"></asp:CheckBox>
                                                            </ItemTemplate>
                                                            <HeaderTemplate>
                                                                <asp:CheckBox ID="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server"
                                                                    AutoPostBack="false" ToolTip="Select/Deselect All"></asp:CheckBox>
                                                            </HeaderTemplate>
                                                            <HeaderStyle HorizontalAlign="Center" Width="1%" CssClass="DGR_HEADER" />
                                                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="EquipmentMasterAlarmAuditTrailId" HeaderText="EquipmentMasterAlarmAuditTrailId">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                            <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                            <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="AlarmLogDateTime" HeaderText="Log Date Time">
                                                            <HeaderStyle CssClass="DGR_HEADER" Width="20%"></HeaderStyle>
                                                            <ItemStyle CssClass="" Width="20%" HorizontalAlign="Center"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="AlarmEvent" HeaderText="Alarm Desc">
                                                            <HeaderStyle CssClass="DGR_HEADER" />
                                                            <ItemStyle HorizontalAlign="left" Width="80%" />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <HeaderStyle CssClass="DGR_FIXEDHEADER" />
                                                    <PagerSettings Position="TopAndBottom" />
                                                    <PagerStyle CssClass="DGR_PAGER"></PagerStyle>
                                                    <RowStyle CssClass="DGR_ITEM" />
                                                </asp:GridView>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
