<%@ page language="C#" autoeventwireup="true" enableeventvalidation="false" inherits="Forms_AlertsPage, App_Web_yrv3p3d4" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="MKB" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/New_Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/New_Footer.ascx" TagName="Footer" TagPrefix="uc2" %>
<%@ Register Assembly="DevExpress.Web.v14.2" Namespace="DevExpress.Web" TagPrefix="dxw" %>
<%@ Register Assembly="DevExpress.XtraCharts.v14.2.Web" Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxcharts" %>
<%@ Register Assembly="DevExpress.XtraCharts.v14.2" Namespace="DevExpress.XtraCharts" TagPrefix="cc2" %>
<!DOCTYPE html>
<html lang="en">
<head id="Head1" runat="server">
    <title>tSense-IoT Alarms</title>
    <%-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />--%>
    <meta content="charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <%--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">--%>
    <%--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">--%>
    <%--<link id="datepicker" runat="server" type="text/css" href="../css/ui.datepicker.css" rel="stylesheet" />--%>
    <%--<link id="uicore" runat="server" type="text/css" href="../css/ui.core.css" rel="stylesheet" />--%>
    <%--<link id="uitheme" runat="server" type="text/css" href="../css/ui.theme.css" rel="stylesheet" />--%>
    <%--<link id="reset" runat="server" href="../css/reset.css" rel="stylesheet" type="text/css" />--%>
    <link id="stylesheet2" runat="server" href="../css/stylesheet2.css" rel="stylesheet" type="text/css" />
    <%--<link id="dropdown" runat="server" href="../css/dropdown.css" rel="stylesheet" type="text/css" />--%>
    <%--<link id="ieonly" runat="server" rel="stylesheet" type="text/css" href="" />--%>
    <%--<link rel="SHORTCUT ICON" href="../images/favicon.ico" />--%>
    <%--Custom Theme for DevEx 14.2--%>
    <link id="GridView" type="text/css" href="~/App_Themes/Office2003Blue/GridView/grid.css" rel="stylesheet" />
    <link id="Editors" type="text/css" href="~/App_Themes/Office2003Blue/Editors/styles.css" rel="stylesheet" />
    <%--BootStrap Css--%>
    <%--<link id="BootStrapCss" href="../css/bootstrap.css" runat="server" rel="stylesheet" type="text/css" />--%>
    <link id="mainstyle" runat="server" href="../css/mainstyle.css" rel="stylesheet" type="text/css" />
    <%--End of BootStrap Css--%>
    <link rel="icon" href="../NewDesign/img/favicon.png" type="image/x-icon">
    <link href="../NewDesign/css/bootstrap.css" rel="stylesheet" />
    <link href="../NewDesign/css/font-awesome.css" rel="stylesheet" />
    <link href="../NewDesign/css/responsive.css" rel="stylesheet" />
    <link href="../NewDesign/css/style.css" rel="stylesheet" />
    <%--<script src="../js/jquery-3.3.1.min.js"></script>
    <script src="../NewDesign/js/bootstrap.min.js"></script>--%>
    <script src="../NewDesign/js/jquery.js"></script>
    <script src="../NewDesign/js/script.js"></script>
    <link href="../NewDesign/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" />
    <link href="../NewDesign/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" />
    <script src="../js/jquery-1.11.2.min.js" type="text/javascript"></script>
    <%--<script src="../js/bootstrap.js" type="text/javascript"></script>--%>
    <link href="../css/CustomeAlert/demos.css" rel="stylesheet" type="text/css" />
    <link href="../css/CustomeAlert/themes/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script src="../js/CustomAlert/jquery.min.js" type="text/javascript"></script>
    <script src="../js/CustomAlert/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
    <script src="../js/CustomAlert/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
    <script src="../js/CustomAlert/CustomAlert.js" type="text/javascript"></script>
    <%--<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>--%>
    <script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
    <%--<script type="text/javascript" src="../js/ui.datepicker.js"></script>--%>
    <%--<script type="text/javascript" lang="javascript" src="../js/JQQueryDatePicker.js"></script>--%>
    <style type="text/css">
        .bg-light {
            background-color: #f8f9fa !important;
            box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
        }
        a.bg-light:focus, a.bg-light:hover, button.bg-light:focus, button.bg-light:hover {
            background-color: #dae0e5 !important;
        }
        .card-body {
            -ms-flex: 1 1 auto;
            flex: 1 1 auto;
            padding: 1.25rem;
        }
        .btn-circle {
            width: 30px;
            height: 30px;
            padding: 6px 0px;
            border-radius: 15px;
            text-align: center;
            font-size: 15px;
            line-height: 0.42857;
        }
        .icons {
            float: left;
            padding: 6px 0px !important;
            margin-top: 20px !important;
        }
            .icons a {
                padding: 4px 5px !important;
            }
        .col-md-1 {
            width: 7.333333% !important;
        }
        .col-xs-3_L {
            width: 25%;
            float: left;
            margin-left: 10%;
        }
        .col-xs-7_L {
            width: 58.33333333%;
            float: left;
        }
    </style>
    <style>
        .dropbtn {
            background-color: #4CAF50;
            color: white;
            padding: 16px;
            font-size: 16px;
            border: none;
        }
        .dropdown {
            position: relative;
            display: inline-block;
        }
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f1f1f1;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
        }
            .dropdown-content a {
                color: black;
                padding: 12px 16px;
                text-decoration: none;
                display: block;
            }
                .dropdown-content a:hover {
                    background-color: #ddd;
                }
        .dropdown:hover .dropdown-content {
            display: block;
        }
        .dropdown:hover .dropbtn {
            background-color: #3e8e41;
        }
    </style>
    <script>
        function openModal() {
            //$("#myRepModalEC").modal('hide');
            $('.modal-backdrop').hide();
            $("#btn").click();
            //$('#myComments').modal('show');
        }
    </script>
    <script src="../js/wow.min.js" type="text/javascript"></script>
    <script src="../js/wow.min.js"></script>
</head>
<body class="white">
    <div class="page-wrapper">
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="600"
                EnablePageMethods="true">
            </asp:ScriptManager>
            <!-- Header Starts Here -->
            <uc1:Header ID="ucHeader" runat="server" />
            <!-- Nav Ends Here -->
            <!-- Content Starts Here -->
            <div class="preloader"></div>
            <div class="vlive-reports-section maintenance" style="padding: 5px 0 !important;">
                <div class="container-fluid">
                    <div class="row clearfix">
                        <div class="col-ks-2">
                            <div class="col-ks-16">
                                <h2 class="pull-left">
                                    <asp:Literal ID="lblAlertPageCaption" Text="Alarms" runat="server"></asp:Literal></h2>
                            </div>
                            <div class="col-ks-16">
                                <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
                                    <NodeStyle CssClass="active" />
                                </asp:SiteMapPath>
                            </div>
                            <div class="col-sm-6" align="right" style="display: none;">
                                <asp:LinkButton runat="server" CssClass="fa fa fa-chevron-down" ForeColor="Black" Text="&nbsp;&nbsp;Filter" data-toggle="collapse" data-target="#FilterDiv" OnClientClick="return false;"></asp:LinkButton>
                            </div>
                        </div>
                        <div class="col-ks-14">
                            <asp:UpdatePanel ID="updPanel" runat="server">
                                <ContentTemplate>
                                    <div class="form-horizontal">
                                        <div class="col-ks-16">
                                            <div class="col-ks-1">
                                                <label for="exampleFormControlSelect1">
                                                    <asp:Label runat="server" ID="lblSite" Text="Site"></asp:Label></label>
                                            </div>
                                            <div class="col-ks-3">
                                                <asp:DropDownList ID="ddlFleet" runat="server" AutoPostBack="True" CssClass="form-control" OnSelectedIndexChanged="ddlFleet_SelectedIndexChanged">
                                                    <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                            <div class="col-ks-1">
                                                <%-- <asp:Image ID="imgVehicleIcon" runat="server" ImageUrl="../images/vehicle-icon.gif"
                                                        AlternateText="Vehicle" class="" />--%>
                                                <label for="exampleFormControlSelect1">
                                                    <asp:Label runat="server" ID="lblDevice" Text="Devices"></asp:Label></label>
                                            </div>
                                            <div class="col-ks-3">
                                                <asp:DropDownList ID="ddlVehicle" CssClass="form-control" runat="server">
                                                    <asp:ListItem Text="- Select -" Value="- Select -"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                            <div class="col-ks-1">
                                                <%-- <asp:Image runat="server" ImageUrl="~/images/icn-severity.gif" AlternateText="Alarm Severity"
                                                        ID="imgSeverity" class="" />--%>
                                                <label for="exampleFormControlSelect1">
                                                    <asp:Label runat="server" ID="lblSeverity" Text="Severity"></asp:Label></label>
                                            </div>
                                            <div class="col-ks-3">
                                                <asp:DropDownList ID="ddlSeverities" runat="server" CssClass="form-control" AutoPostBack="false">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="col-ks-16" style="padding-top: 10px;">
                                            <div class="col-ks-1">
                                                <%--<asp:Image ID="imgStatus" runat="server" class="" ImageUrl="../images/status-icon.gif" AlternateText="Alarm Status" />--%>
                                                <label for="exampleFormControlSelect1">
                                                    <asp:Label runat="server" ID="lblStatus" Text="Status"></asp:Label></label>
                                            </div>
                                            <div class="col-ks-3">
                                                <asp:DropDownList ID="ddlAlarmStatus" CssClass="form-control" AutoPostBack="false" runat="server" OnSelectedIndexChanged="ddlAlarmStatus_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                            <div id="divAcceptedBy" runat="server" style="display: none;">
                                                <div class="col-ks-1">
                                                    <asp:Image ID="imgUser" ImageUrl="../images/usernew-icon.gif" Width="16" Height="16"
                                                        AlternateText="User name" runat="server" class="" />
                                                </div>
                                                <div class="col-ks-3">
                                                    <asp:DropDownList ID="ddlAcceptedBy" runat="server" CssClass="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-ks-1">
                                                <%-- <asp:Image ID="imgDurationFrom" runat="server" ImageUrl="../images/calendar-rht-icon.gif"
                                                        AlternateText="Duration From" class="icon" />--%>
                                                <label for="exampleFormControlSelect1">
                                                    <asp:Label runat="server" ID="lblFrom" Text="From"></asp:Label></label>
                                            </div>
                                            <div class="col-ks-3">
                                                <asp:HiddenField runat="server" ID="hdnDateFormat" Value="dd-MMM-yyyy" />
                                                <%--<asp:TextBox ID="txtStartDate" runat="server" CssClass="form-control" oncopy="return false" oncut="return false"
                                                        onkeydown="doCheckBackSpaceOrDelete()" onkeypress="return false" onpaste="return false"
                                                        ToolTip="dd-MMM-yyyy"></asp:TextBox>--%>
                                                <div class="input-group" id="dtStartDate" runat="server">
                                                    <asp:TextBox ID="txtStartDate" runat="server" CssClass="form-control pull-right" oncopy="return false" oncut="return false"
                                                        onkeydown="doCheckBackSpaceOrDelete()" onkeypress="return false" onpaste="return false"
                                                        ToolTip="dd-MMM-yyyy HH:mm tt" Style="border-bottom-right-radius: 0px !important; border-top-right-radius: 0px !important"></asp:TextBox>
                                                    <div class="input-group-addon" style="cursor: pointer">
                                                        <i class="fa fa-calendar"></i>
                                                    </div>
                                                </div>
                                                <div class="time1 Responsivetime" style="display: none;">
                                                    <MKB:TimeSelector ID="tsFromHrs" runat="server" Width="" AmPm="AM" DisplaySeconds="False"
                                                        Hour="8" Font-Size="10pt" Height="20px" SelectedTimeFormat="Twelve">
                                                    </MKB:TimeSelector>
                                                    <dxw:ASPxTimeEdit ID="tsFromHrs1" runat="server" Visible="false" DateTime="2009/11/01 15:31:34" CssClass="form-control"
                                                        EnableTheming="true" Theme="Office2003Blue">
                                                        <ValidationSettings ErrorDisplayMode="None" />
                                                    </dxw:ASPxTimeEdit>
                                                </div>
                                            </div>
                                            <div class="col-ks-1">
                                                <%--   <asp:Image ID="imgDurationTo" ImageUrl="../images/calendar-lft-icon.gif" AlternateText="Duration To"
                                                        runat="server" class="icon" />--%>
                                                <label for="exampleFormControlSelect1">
                                                    <asp:Label runat="server" ID="Label1" Text="To"></asp:Label></label>
                                            </div>
                                            <div class="col-ks-3">
                                                <%-- <asp:TextBox ID="txtEndDate" runat="server" CssClass="form-control" oncopy="return false" oncut="return false"
                                                        onkeydown="doCheckBackSpaceOrDelete()" onkeypress="return false" onpaste="return false"
                                                        ToolTip="dd-MMM-yyyy"></asp:TextBox>--%>
                                                <div class="input-group" id="dtEndDate" runat="server">
                                                    <asp:TextBox ID="txtEndDate" runat="server" CssClass="form-control" oncopy="return false" oncut="return false"
                                                        onkeydown="doCheckBackSpaceOrDelete()" onkeypress="return false" onpaste="return false"
                                                        ToolTip="dd-MMM-yyyy HH:mm tt" Style="border-bottom-right-radius: 0px !important; border-top-right-radius: 0px !important"></asp:TextBox>
                                                    <div class="input-group-addon" style="cursor: pointer">
                                                        <i class="fa fa-calendar"></i>
                                                    </div>
                                                </div>
                                                <div class="time1 Responsivetime" style="display: none;">
                                                    <MKB:TimeSelector ID="tsToHours" runat="server" Width="100px" AmPm="AM" DisplaySeconds="False"
                                                        Hour="10" Font-Size="10pt" Height="21px" SelectedTimeFormat="Twelve">
                                                    </MKB:TimeSelector>
                                                    <dxw:ASPxTimeEdit ID="tsToHours1" runat="server" Visible="false" DateTime="2009/11/01 15:31:34" CssClass="form-control"
                                                        EnableTheming="true" Theme="Office2003Blue">
                                                        <ValidationSettings ErrorDisplayMode="None" />
                                                    </dxw:ASPxTimeEdit>
                                                </div>
                                            </div>
                                            <div class="col-ks-2">
                                                <asp:LinkButton ID="ibtSearch" runat="server" CssClass="btn btn-danger btn-circle btn-lg" ToolTip="Search" OnClientClick="if(ValidateAlert()){ ShowPopUp(); return true;} else {return false;}"
                                                    OnClick="lnkTest_Click">
                                                    <i class="fa fa-search"></i>
                                                </asp:LinkButton>
                                            </div>
                                        </div>
                                        <div class="col-md-12" style="padding-top: 5px; padding-bottom: 10px; display: none;">
                                            <div class="col-md-11">
                                            </div>
                                            <div class="col-md-1" align="right">
                                                <div id="removeRow" class="col-xs-12 nullpadding icon-img">&nbsp;</div>
                                                <asp:ImageButton runat="server" ID="ibtSearch1" OnClientClick="if(ValidateAlert()){ ShowPopUp(); return true;} else {return false;}"
                                                    ImageUrl="~/images/btn-search.jpg" OnClick="lnkTest_Click" Visible="false" />
                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </div>
                </div>
            </div>
            <%-- <div id="FilterDiv">
                <div class="card bg-light text-dark">
                    <div class="card-body">
                        <div class="row" style="padding-top: 10px;">
                        </div>
                    </div>
                </div>
            </div>--%>
            <div class="clearfix"></div>
            <div class="clearfix"></div>
            <div class="vlive-filter">
                <div class="container-fluid">
                    <div class="vlive-centrifugal-fan maintenance-plan">
                        <div class="col-lg-12 vlive-header_VXL">
                            <div class="col-ks-10" style="display: none;">
                                <div class="col-ks-3">
                                    <asp:Label runat="server" ID="lblChangeStatus" Text="Change Status"></asp:Label>
                                </div>
                                <div class="col-ks-3">
                                    <asp:DropDownList runat="server" ID="ddlMassUpdateStatus" CssClass="form-control exportddl">
                                    </asp:DropDownList>
                                </div>
                                <div class="col-ks-2_5">
                                    <asp:LinkButton ID="btnChangeStatus" runat="server" CssClass="btn-fa-pencil btn btn-primary" OnClientClick="if(CheckSelection(1)){ ShowPopUp(); return true;} else {return false;};ShowPopUp();">
                                    </asp:LinkButton>
                                </div>
                                <div class="col-ks-2">
                                    <asp:Button ID="btnResizeEventHandling" runat="server" OnClick="btnResizeEventHandling_Click"
                                        class="ControlHide" />
                                    <asp:LinkButton ID="btnMap" runat="server" CssClass="MultilingualBtn" OnClientClick="if( CheckSelection(0)){return true;} else {return false;}"
                                        OnClick="btnResizeEventHandling_Click" Visible="false">
                                        <span runat="server" class="MultilingualBtnspan">
                                            <div class="Mapit">
                                                <div id="MapitButDiv" runat="server" class="MultilingualBtnTextAlign">
                                                    MapIT
                                                </div>
                                            </div>
                                        </span>
                                    </asp:LinkButton>
                                    <asp:ImageButton ID="btnMap1" runat="server" ImageUrl="~/images/btn-mapit.jpg" OnClientClick="if((0)){ btnResizeEventHandling.click();FullscreenMap();return true;} else {return true;}" Visible="false" />
                                    <%--<cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" TargetControlID="btnLegends" PopupControlID="lnkLegend" PopupPosition="Bottom" />--%>
                                </div>
                            </div>
                            <div class="col-ks-10">
                                <div class="dropdown">
                                    <asp:LinkButton ID="btnLegends" runat="server" CssClass="btn-fa-commenting btn btn-primary" CausesValidation="false" OnClientClick="return false" Text="&nbsp;&nbsp;Legends"></asp:LinkButton>
                                    <div class="dropdown-content">
                                        <div class="col-sm-12">
                                            <div class="row row-Geozone">
                                                <div class="col-xs-3_L">
                                                    <img src='../images/warning-alert.gif' alt='Warning' />
                                                </div>
                                                <div class="col-xs-7_L">
                                                    <asp:Label ID="Label2" runat="server" Text="Warning"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="row row-Geozone">
                                                <div class="col-xs-3_L">
                                                    <img src='../images/Information-alert.gif' alt='Information' style='height: 15px; width: 15px' />
                                                </div>
                                                <div class="col-xs-7_L">
                                                    <asp:Label ID="Label3" runat="server" Text="Information"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="row row-Geozone">
                                                <div class="col-xs-3_L">
                                                    <img src='../images/Electrical Trip-alert.gif' alt='Electrical Trip' style='height: 15px; width: 15px' />
                                                </div>
                                                <div class="col-xs-7_L">
                                                    <asp:Label ID="Label4" runat="server" Text="Electrical Trip"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="row row-Geozone">
                                                <div class="col-xs-3_L">
                                                    <img src='../images/Shutdown-alert.gif' alt='Shutdown' style='height: 15px; width: 15px' />
                                                </div>
                                                <div class="col-xs-7_L">
                                                    <asp:Label ID="Label6" runat="server" Text="Shutdown"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="row row-Geozone">
                                                <div class="col-xs-3_L">
                                                    <img src='../images/icn-pending-alarms.gif' alt='Critical' style='height: 15px; width: 15px' />
                                                </div>
                                                <div class="col-xs-7_L">
                                                    <asp:Label ID="Label5" runat="server" Text="Pending"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="row row-Geozone">
                                                <div class="col-xs-3_L">
                                                    <img src='../images/icn-closed-alarms.gif' alt='No Alarms' style='height: 15px; width: 15px' />
                                                </div>
                                                <div class="col-xs-7_L">
                                                    <asp:Label ID="Label7" runat="server" Text="Close"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-ks-3">
                            </div>
                            <div class="col-ks-1">
                                <dxw:ASPxComboBox ID="ASPxCboExport" runat="server" ValueType="System.String" SelectedIndex="0" CssClass="form-control exportddl"
                                    ShowImageInEditBox="false" ItemImage-Height="12px" ClientInstanceName="ASPxCboExport" AutoPostBack="false" EnableTheming="true" Theme="Office2003Blue"
                                    CssFilePath="~/App_Themes/Office2003Blue/Editors/styles.css" CssPostfix="Office2003_Blue">
                                    <Items>
                                        <dxw:ListEditItem ImageUrl="../images/icn-pdf.jpg" Text="pdf" Value="pdf" />
                                        <dxw:ListEditItem ImageUrl="../images/icn-excel.jpg" Text="xls" Value="xls" />
                                        <dxw:ListEditItem ImageUrl="../images/icn-excel-xlsx.png" Text="xlsx" Value="xlsx" />
                                        <%--<dxw:ListEditItem ImageUrl="../images/icn-word.jpg" Text="rtf" Value="rtf" />--%>
                                    </Items>
                                </dxw:ASPxComboBox>
                            </div>
                            <div class="col-ks-1_5">
                                <asp:LinkButton ID="btnExport" runat="server" CssClass="btn-fa-file-excel-o btn btn-primary" OnClick="btnExport_Click">
                                </asp:LinkButton>
                            </div>
                        </div>
                        <div class="row ftop">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <asp:UpdatePanel ID="updGrid" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <div class="clear clearfix"></div>
                                            <div style="display: none;">
                                                <div class="col-xs-12 gridheader">
                                                    <asp:Button ID="btnProcessFurther" runat="server" CssClass="ControlHide" OnClick="UpdateAlarmStatus" />
                                                    <asp:Button ID="btnClearGrid" runat="server" CssClass="ControlHide" OnClick="btnClearGrid_click" />
                                                    <asp:Button ID="btnGetvalue" runat="server" CssClass="ControlHide" OnClick="btnGetvalue_click" />
                                                    <asp:HiddenField ID="hdnComments" runat="server" />
                                                    <asp:HiddenField ID="hdnChkLoadUser" runat="server" Value="0" />
                                                    <asp:HiddenField ID="hdnGridPaging" runat="server" Value="0" />
                                                    <asp:HiddenField ID="hdnAlarmIDs" runat="server" Value="" />
                                                    <asp:HiddenField ID="hdnValidGps" runat="server" Value="" />
                                                    <div class="clear clearfix">
                                                    </div>
                                                    <asp:HiddenField ID="hdnEmailUsers" runat="server" />
                                                    <asp:HiddenField ID="hdnUsersEmail" runat="server" />
                                                </div>
                                            </div>
                                            <div class='panelcontent1' style="display: none;" id='lnkLegend'>
                                                <div class="col-sm-12">
                                                    <div class="row row-Geozone">
                                                        <div class="col-xs-3_L">
                                                            <img src='../images/warning-alert.gif' alt='Warning1' />
                                                        </div>
                                                        <div class="col-xs-7_L">
                                                            <asp:Label ID="VWarning" runat="server" Text="Warning1"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row row-Geozone">
                                                        <div class="col-xs-3_L">
                                                            <img src='../images/warning2-alert.png' alt='Warning2' style='height: 15px; width: 15px' />
                                                        </div>
                                                        <div class="col-xs-7_L">
                                                            <asp:Label ID="VNoAlarms" runat="server" Text="Warning2"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row row-Geozone">
                                                        <div class="col-xs-3_L">
                                                            <img src='../images/Critical-alert.gif' alt='Critical' style='height: 15px; width: 15px' />
                                                        </div>
                                                        <div class="col-xs-7_L">
                                                            <asp:Label ID="VCritical" runat="server" Text="Critical"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row row-Geozone">
                                                        <div class="col-xs-3_L">
                                                            <img src='../images/icn-pending-alarms.gif' alt='Critical' style='height: 15px; width: 15px' />
                                                        </div>
                                                        <div class="col-xs-7_L">
                                                            <asp:Label ID="VPending" runat="server" Text="Pending"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row row-Geozone">
                                                        <div class="col-xs-3_L">
                                                            <img src='../images/icn-acknowledged-alarms.gif' alt='Critical' style='height: 15px; width: 15px' />
                                                        </div>
                                                        <div class="col-xs-7_L">
                                                            <asp:Label ID="VAcknowledge" runat="server" Text="Acknowledge"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row row-Geozone">
                                                        <div class="col-xs-3_L">
                                                            <img src='../images/icn-closed-alarms.gif' alt='No Alarms' style='height: 15px; width: 15px' />
                                                        </div>
                                                        <div class="col-xs-7_L">
                                                            <asp:Label ID="VClose" runat="server" Text="Close"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <dxw:ASPxPopupMenu ID="ExportContextMenu" runat="server" ClientInstanceName="ExportContextMenu" AutoPostBack="true" AutoSeparators="None"
                                                EnableTheming="true" Theme="Office2003Blue" OnItemClick="ExportContextMenu_ItemClick" Visible="true">
                                                <Items>
                                                    <dxw:MenuItem Name="ExportToPDF" Text="Export to PDF" Image-Url="../images/icn-pdf.jpg" />
                                                    <dxw:MenuItem Name="ExportToXLS" Text="Export to XLS" Image-Url="../images/icn-excel.jpg" />
                                                    <dxw:MenuItem Name="ExportToXLSX" Text="Export to XLSX" Image-Url="../images/icn-excel-xlsx.png" />
                                                </Items>
                                                <ClientSideEvents ItemClick="function(s, e) { 
                                                                                ExportContextMenu.Hide();                                                                                 
                                                                                switch(e.item.name){
                                                                                    case 'MapIT':
                                                                                        if(CheckSelection(0)) {return true;} else {e.processOnServer=false;}
                                                                                        break;
                                                                                    case 'SaveFilterExpression':
                                                                                        ShowPopUp();
                                                                                        e.processOnServer = false;
                                                                                        __doPostBack('lbtnSaveFilterExpression', '');
                                                                                        break;
                                                                                }
                                                                             }" />
                                            </dxw:ASPxPopupMenu>
                                            <div class="clear clearfix">
                                            </div>
                                            <div class="table-responsive">
                                                <dxw:ASPxGridView ID="gvData" ClientInstanceName="gvData" KeyFieldName="AlarmId" SettingsBehavior-SortMode="Default"
                                                    runat="server" CssFilePath="~/App_Themes/Office2003Blue/GridView/grid.css" CssPostfix="Office2003_Blue"
                                                    Width="100%" AutoGenerateColumns="False" Theme="Office2003Blue" ToolTip="Right Click for more options..."
                                                    OnFillContextMenuItems="gvData_FillContextMenuItems" OnHtmlRowCreated="gvData_HtmlRowCreated">
                                                    <Settings ShowVerticalScrollBar="true" VerticalScrollableHeight="300" ShowFilterRow="true"
                                                        ShowFilterRowMenu="true" ShowFooter="false" />
                                                    <Styles CssFilePath="~/App_Themes/Office2003Blue/GridView/grid.css" AlternatingRow-Enabled="True"
                                                        CssPostfix="Office2003_Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="10px">
                                                        </LoadingPanel>
                                                        <PagerBottomPanel CssClass="PageFooter">
                                                        </PagerBottomPanel>
                                                        <PagerTopPanel CssClass="PageFooter">
                                                        </PagerTopPanel>
                                                    </Styles>
                                                    <SettingsPager PrevPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pPrev.gif"
                                                        PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pPrevDisabled.gif"
                                                        NextPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pNextDisabled.gif"
                                                        NextPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pNext.gif" PageSize="15"
                                                        AlwaysShowPager="true">
                                                    </SettingsPager>
                                                    <SettingsPopup CustomizationWindow-HorizontalAlign="RightSides" CustomizationWindow-VerticalAlign="TopSides" />
                                                    <SettingsBehavior EnableCustomizationWindow="false" />
                                                    <SettingsText CustomizationWindowCaption="Column Chooser" />
                                                    <SettingsContextMenu Enabled="true" EnableGroupPanelMenu="False" ColumnMenuItemVisibility-GroupByColumn="false" ColumnMenuItemVisibility-ShowGroupPanel="false"
                                                        EnableFooterMenu="False" ColumnMenuItemVisibility-ShowFooter="false" RowMenuItemVisibility-NewRow="false" RowMenuItemVisibility-EditRow="false"
                                                        RowMenuItemVisibility-DeleteRow="false" EnableRowMenu="false">
                                                    </SettingsContextMenu>
                                                    <Settings ShowFilterBar="Hidden" />
                                                    <ClientSideEvents Init="function(s,e) {
                                                            $('.dxgvFilterRow_Office2003Blue').attr('title', '');
                                                            $('.dxgvPagerBottomPanel_Office2003Blue').attr('title', '');                                                            
                                                        }"
                                                        EndCallback="function(s,e) {
                                                                $('.dxgvFilterRow_Office2003Blue').attr('title', '');
                                                                $('.dxgvPagerBottomPanel_Office2003Blue').attr('title', '');                                                            
                                                            }"
                                                        ContextMenuItemClick="function(s,e) {                                                         
                                                            switch(e.item.name) {    
                                                                   case 'SelectAll':
                                                                        gvData.SelectRows();
                                                                        ASPxCboSelectionMode.SetSelectedIndex(1);
                                                                        break;
                                                                   case 'DeselectAll':
                                                                        gvData.UnselectRows();
                                                                        ASPxCboSelectionMode.SetSelectedIndex(0);                                                                    
                                                                        break;}
                                                        }"
                                                        ContextMenu="function OnContextMenu(s, e) {
                                                                if (e.objectType == 'row') {
                                                                    ExportContextMenu.ShowAtPos(ASPxClientUtils.GetEventX(e.htmlEvent), ASPxClientUtils.GetEventY(e.htmlEvent));
                                                                }
                                                        }" />
                                                    <Columns>
                                                        <dxw:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="3%" FixedStyle="Left"
                                                            Name="Checkbox" ButtonType="Button" Visible="false">
                                                            <HeaderTemplate>
                                                                <input id="chkSelectAll" runat="server" type="checkbox" onclick="gvData.SelectAllRowsOnPage(this.checked);"
                                                                    style="vertical-align: middle;" title="Select / Unselect all rows on the page"></input>
                                                            </HeaderTemplate>
                                                            <HeaderStyle Paddings-PaddingTop="1" Paddings-PaddingBottom="1" HorizontalAlign="Center" />
                                                        </dxw:GridViewCommandColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Status" FieldName="AlarmStatusDesc" VisibleIndex="1" FixedStyle="Left"
                                                            Width="3%" CellStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <asp:Image ID="imgStatusCaption" ImageUrl="../images/073.png" runat="server" AlternateText="Alarm Status" /></span>
                                                            </HeaderCaptionTemplate>
                                                            <Settings AllowSort="True" />
                                                            <DataItemTemplate>
                                                                <asp:ImageButton ID="imgStatus" ImageAlign="Middle" runat="server" Style="cursor: default" />
                                                            </DataItemTemplate>
                                                            <Settings AllowAutoFilter="False" ShowInFilterControl="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Width="12%" Caption="Gateway ID" FieldName="CustomerName" FixedStyle="Left"
                                                            VisibleIndex="2" Visible="true">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblVehicleCaption" runat="server" Text="Gateway ID"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Width="12%" Caption="Device ID / Name" FieldName="VehicleDescription" FixedStyle="Left"
                                                            VisibleIndex="3" Visible="true">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblVehicleCaption" runat="server" Text="Device ID / Name"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Width="12%" CellStyle-Wrap="True" Caption="Date Time" FixedStyle="Left"
                                                            FieldName="DateTimeCreatedSort" VisibleIndex="4">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblDateTimeCaption" runat="server" Text="Date Time"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblCreatedDt" runat="server" Text='<%# Eval("DateTimeCreated")%>'>
                                                                </asp:Label>
                                                            </DataItemTemplate>
                                                            <Settings AllowSort="True" />
                                                            <Settings AllowAutoFilter="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Width="3%" Caption="Severity" FieldName="AlarmLevelName" FixedStyle="Left"
                                                            VisibleIndex="5" CellStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderCaptionTemplate>
                                                                <span class="icon">
                                                                    <asp:Image ID="imgSeverityCaption" runat="server" ImageUrl="~/images/icn-severity.png"
                                                                        AlternateText="Alarm Severity" /></span>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Image ID="imgSeveritySatus" ImageAlign="Middle" AlternateText='<%# Eval("AlarmLevelName") %>'
                                                                    runat="server" />
                                                            </DataItemTemplate>
                                                            <Settings AllowAutoFilter="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Alarm Description" FieldName="AlarmDesc" Width="15%" FixedStyle="Left" Visible="false"
                                                            VisibleIndex="6" CellStyle-Wrap="True">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblAlarmDescCaption" runat="server" Text="Alarm Description"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblAlarmDesc" runat="server" Text='<%# Eval("AlarmDesc") %>'></asp:Label>
                                                            </DataItemTemplate>
                                                            <CellStyle Wrap="True">
                                                            </CellStyle>
                                                            <Settings AllowSort="True" />
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Closed on" Name="ClosedBy" FieldName="DateTimeClosed" Visible="false"
                                                            VisibleIndex="7" Width="10%" CellStyle-Wrap="True">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblClosedByCaption" runat="server" Text="Closed On"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <p>
                                                                    <asp:Label ID="lblClosedBy" runat="server" Text='<%# Eval("ClosedUser") %>'></asp:Label>
                                                                </p>
                                                                <p>
                                                                    <asp:Label ID="lblClosedDateTime" runat="server" Text='<%# Eval("DateTimeClosed") %>'></asp:Label>
                                                                </p>
                                                            </DataItemTemplate>
                                                            <Settings AllowAutoFilter="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Device ID" FieldName="BoxId" VisibleIndex="2" FixedStyle="Left"
                                                            Width="8%" CellStyle-HorizontalAlign="Left" Visible="false">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblDeviceIDCaption" runat="server" Text="Device Id"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn FieldName="ControllerName" VisibleIndex="5" Caption="ControllerID" FixedStyle="Left"
                                                            Width="8%" CellStyle-VerticalAlign="Middle" CellStyle-HorizontalAlign="Center" Visible="false">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label runat="server" ID="lblDrName" Text="Controller Name"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblDriverName" runat="server" Text='<%# Eval("ControllerName")%>'>
                                                                </asp:Label>
                                                            </DataItemTemplate>
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Date &amp; Time" FieldName="DateTimeCreated"
                                                            VisibleIndex="4" Visible="false" ShowInCustomizationForm="false" Width="12%">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblDateTimeCaption" runat="server" Text="Date Time"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblCreatedDt" runat="server" Text='<%# Eval("DateTimeCreated")%>'>
                                                                </asp:Label>
                                                            </DataItemTemplate>
                                                            <Settings AllowSort="True" />
                                                            <Settings AllowAutoFilter="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Alarm Description" FieldName="AlarmDesc" Width="15%" FixedStyle="Left" Visible="false"
                                                            VisibleIndex="10" CellStyle-Wrap="True">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblAlarmDescCaption" runat="server" Text="Address"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblAlarmDesc1" runat="server" Text='<%# Eval("StreetAddress") %>'></asp:Label>
                                                            </DataItemTemplate>
                                                            <CellStyle Wrap="True">
                                                            </CellStyle>
                                                            <Settings AllowSort="True" />
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Reason" FieldName="Rootcause" Width="20%" FixedStyle="Left" Visible="false"
                                                            VisibleIndex="11" CellStyle-Wrap="True">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblRootcauseCaption" runat="server" Text="Reason"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <CellStyle Wrap="True">
                                                            </CellStyle>
                                                            <Settings AllowSort="True" />
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Corrective action" FieldName="Correctiveaction" Width="25%" FixedStyle="Left" Visible="false"
                                                            VisibleIndex="12" CellStyle-Wrap="True">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblCorrectiveactionCaption" runat="server" Text="Corrective action"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <CellStyle Wrap="True">
                                                            </CellStyle>
                                                            <Settings AllowSort="True" />
                                                            <Settings AutoFilterCondition="Contains" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Width="13%" CellStyle-Wrap="True" Caption="Warranty EndDate" Visible="false"
                                                            FieldName="WarrantyEndDate" VisibleIndex="13">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblWarrantyTimeCaption" runat="server" Text="Warranty End Date"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <asp:Label ID="lblCreatedDt" runat="server" Text='<%# Eval("WarrantyEndDate")%>'>
                                                                </asp:Label>
                                                            </DataItemTemplate>
                                                            <Settings AllowSort="True" />
                                                            <Settings AllowAutoFilter="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Acknowledged" Name="AcknowledgedBy" FieldName="ACKStatus" Visible="false"
                                                            VisibleIndex="14" Width="10%" CellStyle-Wrap="True">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblAckStatusCaption" runat="server" Text="Acknowledged"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <DataItemTemplate>
                                                                <p>
                                                                    <asp:Label ID="lblAcceptedBy" runat="server" Text='<%# Eval("AcceptedUser") %>'></asp:Label>
                                                                </p>
                                                                <p>
                                                                    <asp:Label ID="lblAcceptedDateTime" runat="server" Text='<%# Eval("DateTimeAccepted") %>'></asp:Label>
                                                                </p>
                                                            </DataItemTemplate>
                                                            <Settings AllowAutoFilter="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="MapitValues" FieldName="MapitValues" Visible="false" ShowInCustomizationForm="false" VisibleIndex="16">
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="AlarmLevelId" FieldName="AlarmLevelId" Visible="false" ShowInCustomizationForm="false" VisibleIndex="17">
                                                        </dxw:GridViewDataTextColumn>
                                                        <dxw:GridViewDataTextColumn Caption="Remarks" FieldName="Comments" Width="8%" Visible="false"
                                                            VisibleIndex="18">
                                                            <HeaderCaptionTemplate>
                                                                <asp:Label ID="lblRemarks" runat="server" Text="Remarks"></asp:Label>
                                                            </HeaderCaptionTemplate>
                                                            <CellStyle Wrap="True">
                                                            </CellStyle>
                                                            <Settings AllowSort="True" />
                                                            <Settings AllowAutoFilter="False" />
                                                        </dxw:GridViewDataTextColumn>
                                                    </Columns>
                                                    <SettingsBehavior AutoExpandAllGroups="true" AllowDragDrop="true" />
                                                    <SettingsText EmptyDataRow="No alarms matching to the search criteria" />
                                                </dxw:ASPxGridView>
                                            </div>
                                            <dxw:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="gvData"
                                                ReportHeader="{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}
                                                            \viewkind4\uc1\pard\qc\b\fs28 Alert\Details\fs24\par\pard\pra\par}">
                                                <PageFooter Right="[Page # of Pages #]">
                                                </PageFooter>
                                            </dxw:ASPxGridViewExporter>
                                            <asp:HiddenField ID="hdnSchedulingEmailList" runat="server" />
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:PostBackTrigger ControlID="btnMap" />
                                            <asp:PostBackTrigger ControlID="btnExport" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
            <div id="outer">
                <div id="inner">
                    <div id="float-wrap">
                        <!-- Main Content Starts Here -->
                        <%--<div id="content">
                            <div class="content-wrap">
                            </div>
                        </div>--%>
                        <div>
                            <asp:UpdatePanel ID="updNotify" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:Panel ID="pnlNotificationsList" runat="server" CssClass="notifyManagePanel">
                                        <div>
                                            <asp:UpdatePanel ID="updNotificationsList" runat="server">
                                                <ContentTemplate>
                                                    <asp:Panel ID="pnlHolder" runat="server">
                                                        <div class="popup">
                                                            <div class="top">
                                                                <h1>
                                                                    <asp:Label ID="lblNotificationCaption" runat="server" Text=""></asp:Label>
                                                                </h1>
                                                                <div class="close">
                                                                    <asp:LinkButton ID="ibtClose" runat="server" OnClientClick="document.getElementById('pnlNotificationsList').style.display = 'none';return false;"
                                                                        CssClass="Map-btn-fa-times-circle-o" Text=" " />
                                                                </div>
                                                                <div class="clear clearfix">
                                                                </div>
                                                            </div>
                                                            <div class="popup-cont">
                                                                <div class="form-tbl">
                                                                    <div class="clear clearfix">
                                                                    </div>
                                                                    <div id="divcomments" runat="server" style="display: block">
                                                                        <div class="col-sm-12" style="padding: 5px;">
                                                                            <div class="col-sm-4 col-md-4 col-lg-5 nullpadding" style="margin-top: 10px;">
                                                                                <asp:Label ID="lblComments" runat="server" Font-Bold="false" Text="Enter the comments to Acknowledge / Close the selected alarm(s)."></asp:Label>
                                                                            </div>
                                                                            <div class="col-sm-5 col-md-5 col-lg-3 padding-width-sm-right">
                                                                                <asp:TextBox ID="txtComments" runat="server" CssClass="form-control" TextMode="MultiLine" Height="40px"></asp:TextBox>
                                                                            </div>
                                                                            <div class="col-sm-3 col-md-3 col-lg-3">
                                                                                <asp:CheckBox ID="chk_AlarmSend" CssClass="checkbox" runat="server" onclick="HideGrid();" Text="Enable Send Email"
                                                                                    OnCheckedChanged="onCheckChanged" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div id="Gridgvuser" runat="server" style="display: none;">
                                                                        <div class="table-responsive">
                                                                            <dxw:ASPxGridView ID="gvUsersList1" ClientInstanceName="gvUsersList1" runat="server" OnHtmlRowCreated="gvUsersList1_OnHtmlRowCreated"
                                                                                EnableTheming="true" Theme="Office2003Blue" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                                                CssPostfix="Office2003_Blue" AutoGenerateColumns="False" KeyFieldName="UserId" Width="100%">
                                                                                <Settings ShowFilterRow="true" ShowFilterRowMenu="true" />
                                                                                <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/grid.css" AlternatingRow-Enabled="True"
                                                                                    CssPostfix="Office2003_Blue">
                                                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                                    </Header>
                                                                                    <LoadingPanel ImageSpacing="10px">
                                                                                    </LoadingPanel>
                                                                                    <PagerBottomPanel CssClass="PageFooter">
                                                                                    </PagerBottomPanel>
                                                                                    <PagerTopPanel CssClass="PageFooter">
                                                                                    </PagerTopPanel>
                                                                                </Styles>
                                                                                <SettingsPager PrevPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pPrev.gif"
                                                                                    PrevPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pPrevDisabled.gif"
                                                                                    NextPageButton-Image-UrlDisabled="../App_Themes/Office2003Blue/GridView/pNextDisabled.gif"
                                                                                    NextPageButton-Image-Url="../App_Themes/Office2003Blue/GridView/pNext.gif" AlwaysShowPager="true">
                                                                                </SettingsPager>
                                                                                <Columns>
                                                                                    <dxw:GridViewDataColumn Caption="User Name" FieldName="UserName" VisibleIndex="0"
                                                                                        Width="15%">
                                                                                        <HeaderCaptionTemplate>
                                                                                            <span class="icon">
                                                                                                <asp:Label ID="lblUserName" runat="server" Text="User Name"></asp:Label>
                                                                                        </HeaderCaptionTemplate>
                                                                                        <DataItemTemplate>
                                                                                            <asp:Label ID="glblUserName" runat="server"></asp:Label>
                                                                                        </DataItemTemplate>
                                                                                        <Settings AutoFilterCondition="Contains" />
                                                                                    </dxw:GridViewDataColumn>
                                                                                    <dxw:GridViewDataColumn Caption="Display Name" FieldName="DisplayName" VisibleIndex="1"
                                                                                        Width="15%">
                                                                                        <HeaderCaptionTemplate>
                                                                                            <asp:Label ID="lblDisplayName" runat="server" Text="Display Name"></asp:Label>
                                                                                        </HeaderCaptionTemplate>
                                                                                        <DataItemTemplate>
                                                                                            <asp:Label ID="glblDisplayName" runat="server"></asp:Label>
                                                                                        </DataItemTemplate>
                                                                                        <Settings AutoFilterCondition="Contains" />
                                                                                    </dxw:GridViewDataColumn>
                                                                                    <dxw:GridViewDataTextColumn FieldName="GroupBelongsTo" Caption="Group" VisibleIndex="2"
                                                                                        Width="15%">
                                                                                        <HeaderCaptionTemplate>
                                                                                            <asp:Label ID="lblGroup" runat="server" Text="Group"></asp:Label>
                                                                                        </HeaderCaptionTemplate>
                                                                                        <DataItemTemplate>
                                                                                            <asp:Label ID="glblGroupBelongsTo" runat="server"></asp:Label>
                                                                                        </DataItemTemplate>
                                                                                        <Settings AutoFilterCondition="Contains" />
                                                                                    </dxw:GridViewDataTextColumn>
                                                                                    <dxw:GridViewDataTextColumn FieldName="LockedStatus" Caption="Locked Status" VisibleIndex="3"
                                                                                        Width="10%">
                                                                                        <HeaderCaptionTemplate>
                                                                                            <asp:Label ID="lblLockedStatus" runat="server" Text="Locked Status"></asp:Label>
                                                                                        </HeaderCaptionTemplate>
                                                                                        <DataItemTemplate>
                                                                                            <asp:Image ID="imgLockedStatus" runat="server" AlternateText="" ToolTip="" />
                                                                                            <asp:Label ID="lblUserLockedStatus"></asp:Label>
                                                                                        </DataItemTemplate>
                                                                                    </dxw:GridViewDataTextColumn>
                                                                                    <dxw:GridViewDataTextColumn VisibleIndex="4" Caption="Email" FieldName="Email"
                                                                                        Width="25%">
                                                                                        <DataItemTemplate>
                                                                                            <asp:HiddenField ID="hdnEmailUsers" runat="server" Value='<%#Eval("UserID") %>' />
                                                                                            <asp:HiddenField ID="hdnUsersEmail" runat="server" Value='<%#Eval("Email") %>' />
                                                                                            <table cellpadding="0" cellspacing="0" border="0">
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        <asp:CheckBox ID="chkEmailUser" runat="server" Text="" />
                                                                                                    </td>
                                                                                                    <td class="padding-width-sm-left">
                                                                                                        <p style="white-space: nowrap">
                                                                                                            <asp:Label ID="lblEmailUser" runat="server"></asp:Label>
                                                                                                        </p>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </table>
                                                                                        </DataItemTemplate>
                                                                                        <HeaderCaptionTemplate>
                                                                                            <span class="icon">
                                                                                                <asp:CheckBox ID="chkSelectAllEmailUsers" ToolTip="Select all in the current page"
                                                                                                    runat="server" onclick="return DevExpressGridCheckAll(20);" Text="" /></span> <span class="label">
                                                                                                        <asp:Image ID="imgEmail" runat="server" ImageUrl="..\Images\icn-email.gif" /></span>
                                                                                            <span class="icon">
                                                                                                <asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label>
                                                                                            </span>
                                                                                        </HeaderCaptionTemplate>
                                                                                        <Settings AutoFilterCondition="Contains" AllowSort="False" />
                                                                                    </dxw:GridViewDataTextColumn>
                                                                                </Columns>
                                                                            </dxw:ASPxGridView>
                                                                        </div>
                                                                    </div>
                                                                    <div class="form-tbl" style="padding-top: 10px; padding-bottom: 10px;">
                                                                        <%--<div class="controlLeft">--%>
                                                                        <div style="text-align: right;">
                                                                            <asp:LinkButton ID="ibtnSendEmailAlarm" runat="server" CssClass="btn btn-primary btn-fa-check-circle-o" Text="&nbsp;&nbsp;Ok"
                                                                                OnClick="UpdateAlarmStatus" OnClientClick="if(CheckSelectionForManipulation(20,'ibtnSendEmailAlarm')){ document.getElementById('pnlNotificationsList').style.display = 'none'; }ShowPopUp();">
                                                                            </asp:LinkButton>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <%-- </td>
                                                                <td id="NotificationPnlRight" runat="server" class="right">&nbsp;
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td id="NotificationPnlbottoml" runat="server" class="bottom-l">&nbsp;
                                                                </td>
                                                                <td class="bottom-m">&nbsp;
                                                                </td>
                                                                <td id="NotificationPnlbottomr" runat="server" class="bottom-r">&nbsp;
                                                                </td>
                                                            </tr>--%>
                                                        </div>
                                                    </asp:Panel>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                        <!-- Main Content Ends Here -->
                        <div id="left">
                        </div>
                        <div class="clear clearfix">
                        </div>
                    </div>
                    <div id="right">
                    </div>
                    <div class="clear clearfix">
                    </div>
                </div>
            </div>
            <asp:HiddenField ID="hdnAckOrClosedAlerts" runat="server" />
            <cc1:ModalPopupExtender ID="mpeProgressIndicator" runat="server" PopupControlID="progressPopUp"
                TargetControlID="btnTesting" BackgroundCssClass="modalBackground">
            </cc1:ModalPopupExtender>
            <asp:Button ID="btnTesting" Style="display: none;" runat="server" />
            <asp:Panel ID="progressPopUp" runat="server" CssClass="processMessage" Style="display: none;">
                <center>
                <br />
                <img id="imgLoad" runat="server" alt="Please Wait ..." src="../images/47.gif" /><br />
                <br />
                <asp:Label ID="lbl_msg12" Text="Processing... Please Wait..." runat="server" CssClass="specialdisplay"></asp:Label>
                <br />
                <br />
            </center>
            </asp:Panel>
            <script type="text/javascript" lang="javascript" src="../js/DateValidations.js"></script>
            <script type="text/javascript" lang="javascript" src="../js/AlertsPageScript.js"></script>
            <script type="text/javascript" lang="javascript" src="../js/GridCheckBoxMaintaining.js"></script>
            <script src="../js/FormValidations.js" type="text/javascript"></script>
            <div id="dialog-confirm" title="" class="" style="display: none;">
                <span class="ui-icon ui-icon-alert">
                    <div style="float: left">
                        <img class="warning" src="../css/CustomeAlert/themes/images/warning.png" />
                    </div>
                    <div style="margin-left: 50px; margin-top: 5px">
                        <center>
                            @msg
                        </center>
                    </div>
                </span>
            </div>
            <script language="javascript" type="text/javascript">
                function HidePopUp() {
                    if ($find('mpeProgressIndicator') != undefined) {
                        $find('mpeProgressIndicator').hide();
                    }
                }
                function ShowPopUp() {
                    if ($find('mpeProgressIndicator') != undefined) {
                        $find('mpeProgressIndicator').show();
                    }
                }
            </script>
            <%-- <script>
                $(function () {
                    var startdate = new Date();
                    var today = new Date();
                    today.setHours(today.getHours())
                    startdate.setMonth(startdate.getMonth() - 6);
                    $('#dtStartDate').datetimepicker({
                        format: "DD-MMM-YYYY LT",
                        showTodayButton: true,
                        defaultDate: startdate,
                        //showClear: true,
                        showClose: true
                    }
                    );
                    $('#dtStartDate').data("DateTimePicker").minDate(startdate);
                    $('#dtStartDate').data("DateTimePicker").maxDate(today);
                });
                $(function () {
                    var startdate = new Date();
                    var today = new Date();
                    today.setHours(today.getHours())
                    startdate.setMonth(startdate.getMonth() - 6);
                    $('#dtEndDate').datetimepicker({
                        format: "DD-MMM-YYYY LT",
                        showTodayButton: true,
                        //showClear: true,
                        showClose: true
                    }
                    );
                    $('#dtEndDate').data("DateTimePicker").minDate(startdate);
                    $('#dtEndDate').data("DateTimePicker").maxDate(today);
                });
                var prm = Sys.WebForms.PageRequestManager.getInstance();
                prm.add_endRequest(function (s, e) {
                    $(function () {
                        $(function () {
                            var startdate = new Date();
                            var today = new Date();
                            today.setHours(today.getHours())
                            startdate.setMonth(startdate.getMonth() - 6);
                            $('#dtStartDate').datetimepicker({
                                format: "DD-MMM-YYYY LT",
                                showTodayButton: true,
                                defaultDate: startdate,
                                //showClear: true,
                                showClose: true
                            }
                            );
                            $('#dtStartDate').data("DateTimePicker").minDate(startdate);
                            $('#dtStartDate').data("DateTimePicker").maxDate(today);
                        });
                        $(function () {
                            var startdate = new Date();
                            var today = new Date();
                            today.setHours(today.getHours())
                            startdate.setMonth(startdate.getMonth() - 6);
                            $('#dtEndDate').datetimepicker({
                                format: "DD-MMM-YYYY LT",
                                showTodayButton: true,
                                //showClear: true,
                                showClose: true
                            }
                            );
                            $('#dtEndDate').data("DateTimePicker").minDate(startdate);
                            $('#dtEndDate').data("DateTimePicker").maxDate(today);
                        });
                    });
                });
            </script>--%>
            <%--bootstrap DateTime Picke implemention--%>
            <script type="text/javascript" src="../JQTimePicker/jquery-2.1.1.min.js"></script>
            <link id="Link3" runat="server" href="../css/Monitor_css/bootstrap-datetimepicker.css" rel="stylesheet" type="text/css" />
            <script type="text/javascript" src="../JQTimePicker/moment-with-locales.js"></script>
            <script type="text/javascript" src="../js/Monitor_js/bootstrap-datetimepicker.js"></script>
            <script type="text/javascript" src="../js/BDatePicker.js"></script>
            <%--bootstrap DateTime Picke implemention--%>
        </form>
    </div>
    <%--<div style="height:15px"></div>--%>
    <!-- Content Ends Here -->
    <uc2:Footer ID="ucFooter" runat="server" />
</body>
</html>
