<%@ page language="C#" autoeventwireup="true" enableeventvalidation="false" inherits="Forms_ReportFilter, App_Web_adi25cik" %>

<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="MKB" %>
<%@ Register Src="~/UserControls/Notification_List.ascx" TagPrefix="uc3" TagName="NotificationsList" %>
<%@ 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.ASPxGridView.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.2, Version=8.2.10.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>--%>
<%@ Register Assembly="DevExpress.Web.v14.2" Namespace="DevExpress.Web" TagPrefix="dxw" %>
<!DOCTYPE html>
<html lang="en">
<head id="Head1" runat="server">
    <title>tSense-IoT Reports</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <%--<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" />--%>
    <link runat="server" id="multiselect" href="../css/jquery.multiselect.css" rel="stylesheet" type="text/css" />
    <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" />
    <link runat="server" id="multifilter" href="../css/jquery.multiselect.filter.css" rel="stylesheet" type="text/css" />
    <link runat="server" id="JQ" href="../css/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link id="demo" runat="server" type="text/css" href="../css/demos.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="uidatepicker" 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="ieonly" runat="server" rel="stylesheet" type="text/css" href="" />
    <%--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" />
    <link rel="SHORTCUT ICON" href="../images/favicon.ico" />
    <%--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/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_MultiSelectDrpLst.js"></script>
    <%--<script type="text/javascript" src="../js/jquery-ui.min_MultiSelectDrpLst.js"></script>--%>
    <%--<script type="text/javascript" src="../js/jquery.multiselect.js"></script>--%>
    <%--<script type="text/javascript" src="../js/jquery.multiselect.filter.js"></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" src="../js/JQQueryDatePicker.js"></script>--%>
    <%--<script type="text/javascript" src="../js/jquery-ui-1.8.13.custom.min.js"></script>--%>
    <%--<script src="../js/push.min.js"></script>
    <script>
        function demo() {
            //Push.create('Hello World!');
            Push.create("ador powertron", {
                body: "welcome to reports!",
                icon: '../images/favicon.ico',
                timeout: 6000,
                onclick: function () {
                    window.focus();
                    this.close();
                }
            });
        }
    </script>--%>
    <style>
        #miniature {
            float: left;
            margin-left: 20px;
            margin-top: 50px;
        }

        #choices {
            margin-left: 10px;
            width: 2000px !important;
        }

            #choices span > div {
                display: inline-block;
                margin-right: 4px;
            }

        .btn {
            white-space: normal;
        }

        .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
            margin-top: 2px !important;
            margin-left: -15px !important;
        }
    </style>
    <script src="../js/wow.min.js"></script>
</head>
<body class="white">
    <%--onload="demo();"--%>
    <div class="page-wrapper">
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="6000" 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 id="float-wrap">--%>
                    <div class="row clearfix">
                        <!-- Main Content Starts Here -->
                        <%-- <div id="heading" class="col-sm-9">
                                        <asp:UpdatePanel ID="updReports" runat="server">
                                            <ContentTemplate>
                                                <img class="icon" src="../images/reports-icon.jpg" alt="" />
                                                <h1>
                                                    <asp:Literal ID="ltReports" runat="server"></asp:Literal>
                                                </h1>
                                                <asp:Label ID="lblHomeCaption" runat="server"></asp:Label>
                                                <asp:LinkButton ID="lnkHomeCaption" runat="server"></asp:LinkButton>
                                                <span>&gt;</span>
                                                <span>
                                                    <asp:LinkButton ID="lnkReports" runat="server" PostBackUrl="ReportFilter.aspx" Text="Reports">
                                                    </asp:LinkButton>
                                                </span>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>--%>
                        <div class="col-ks-16">
                            <div class="col-ks-8 HeaderTest">
                                <div class="col-ks-16">
                                    <h2>
                                        <asp:Literal ID="ltReports" 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>
                            <div class="col-ks-8 HeaderTopButton">
                                <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>--%>
                                    <asp:LinkButton ID="lnkReports" runat="server" PostBackUrl="ReportFilter.aspx" Text="Reports" CssClass="fa-arrow-left btn btn-primary">
                                    </asp:LinkButton>
                                </div>
                                <div class="pull-right">
                                    <%-- <asp:LinkButton ID="ibtnScheduledReports1" runat="server" CssClass="MultilingualBtn"
                                        PostBackUrl="~/Forms/SchedulingReportsHistory.aspx">
                                        <span runat="server" class="MultilingualBtnspan">
                                            <div class="ScheduledReport">
                                                <div id="ScheduledReportDiv" runat="server" class="MultilingualBtnTextAlign">
                                                    View Scheduled Report
                                                </div>
                                            </div>
                                        </span> CssClass="fa-calendar-o btn btn-primary"
                                    </asp:LinkButton>--%>
                                    <asp:LinkButton ID="ibtnScheduledReports" runat="server" CssClass="fa-calendar-o btn btn-primary" CausesValidation="false"
                                        PostBackUrl="~/Forms/SchedulingReportsHistory.aspx" Text="&nbsp;&nbsp;View Scheduled Report">
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="lnkBackToFilters" runat="server" CssClass="fa-arrow-left btn btn-primary" OnClick="lnkBackToFilters_Click"
                                        Visible="false" Text="&nbsp;&nbsp;Back">
                                        <%--OnClientClick="retainSelectedVehicles();"--%>
                                    </asp:LinkButton>
                                </div>
                            </div>
                        </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">
                        <h2>
                            <asp:Label ID="lblReportsHeading" runat="server" Text="Reports"></asp:Label>
                        </h2>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <Triggers>
                            </Triggers>
                            <ContentTemplate>
                                <asp:Panel ID="pnlReportFilter" runat="server">
                                    <asp:Panel ID="divFilter" runat="server" class="container-fluid">
                                        <div class="form-tbl" id="tblNoRights" runat="server">
                                            <div>
                                                <div>
                                                    <asp:Label ID="lblNoRightsLabel" runat="server"> </asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="tblReportFilters" runat="server" class="">
                                            <div class="form-horizontal">
                                                <div class="col-md-12">
                                                    <div class="row form-group">
                                                        <div class="col-ks-4">
                                                            <div class="col-ks-16 ControlHide">
                                                                <label for="exampleFormControlSelect1">
                                                                    <asp:Label ID="lblCategoryType" runat="server" Text="Report Category"></asp:Label>
                                                                </label>
                                                                <asp:DropDownList runat="server" ID="ddlCategoryType" AutoPostBack="true" align="Left"
                                                                    cellpadding="2" TabIndex="3" onchange="ShowPopUp();" CssClass="form-control " OnSelectedIndexChanged="ddlCategoryType_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                            </div>
                                                            <div class="col-ks-16">
                                                                <label for="exampleFormControlSelect1">
                                                                    <asp:Label ID="lblReportType" runat="server" Text="Report Type"></asp:Label>
                                                                </label>
                                                                <asp:DropDownList runat="server" ID="ddlReportOptions" OnSelectedIndexChanged="ddlReportOptions_SelectedIndexChanged"
                                                                    AutoPostBack="True" align="Left" cellpadding="2" TabIndex="3" onchange="ShowPopUp();" CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                            <div id="trTyreCategorySelection" runat="server" style="display: block">
                                                                <div class="col-ks-16">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="Label13" runat="server" Text="Select Category">
                                                                        </asp:Label>
                                                                    </label>
                                                                    <div class="col-ks-8">
                                                                        <asp:RadioButton ID="rdVehicle" runat="server" Text="Tyre Based" Checked="true" AutoPostBack="true"
                                                                            GroupName="1" CssClass="radio" />
                                                                    </div>
                                                                    <div class="col-ks-8">
                                                                        <asp:RadioButton ID="rdTyre" runat="server" Text="Vehicle Based" AutoPostBack="true"
                                                                            GroupName="1" CssClass="radio" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div id="trTripSelection" runat="server" visible="false">
                                                                <div class="col-ks-16">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblTripNo" runat="server" Text="Trip No."></asp:Label>
                                                                    </label>
                                                                    <asp:DropDownList ID="ddlTripNo" runat="server" CssClass="form-control">
                                                                        <asp:ListItem Text="Trip 1" Value="Trip 1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Trip 2" Value="Trip 2"></asp:ListItem>
                                                                        <asp:ListItem Text="Trip 3" Value="Trip 3"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-ks-16">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblTripType" runat="server" Text="Trip Type"></asp:Label>
                                                                    </label>
                                                                    <asp:DropDownList ID="ddlTripType" runat="server" CssClass="form-control">
                                                                        <asp:ListItem Text="Collect" Value="1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Drop" Value="2"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-ks-16">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblSkipLandMark" runat="server" Text="Filter By">                                                                        
                                                                        </asp:Label>
                                                                    </label>
                                                                    <asp:DropDownList ID="ddlLandMarkSkip" runat="server" CssClass="form-control">
                                                                        <asp:ListItem Text="All" Value="2" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Skipped" Value="1"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>

                                                            </div>
                                                            <div id="trDriverSelection" runat="server">
                                                                <div class="col-ks-16">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblDriverGroupCaption" runat="server" Text="Driver Group"></asp:Label>
                                                                    </label>
                                                                    <asp:DropDownList runat="server" ID="ddlDriverGroup" AutoPostBack="true"
                                                                        CssClass="form-control">
                                                                        <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-ks-16">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblDriverCaption" runat="server" Text="Driver"></asp:Label>
                                                                    </label>
                                                                    <asp:DropDownList runat="server" ID="ddlDrivers" AutoPostBack="false" TabIndex="1" CssClass="form-control">
                                                                        <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-ks-12" style="text-align: justify; line-height: 20px;">
                                                            <asp:Panel ID="pnlRptDesc" GroupingText="Report Description" runat="server">
                                                                <asp:Label ID="lblReportDescription" runat="server"
                                                                    Text="Shows the trip summary of the selected vehicle(s) where a trip is from ignition on to off">
                                                                </asp:Label>
                                                            </asp:Panel>

                                                        </div>
                                                    </div>
                                                </div>
                                                <asp:Panel ID="CustomerFilter" runat="server" BorderStyle="None" GroupingText="Site & Device">
                                                    <div class="row form-group">
                                                        <div class="col-md-12">
                                                            <div class="col-ks-4" id="divCustomer" runat="server">
                                                                <label for="exampleFormControlSelect1">
                                                                    <asp:Label ID="Label17" runat="server" Text="Customer"></asp:Label>
                                                                </label>
                                                                <asp:DropDownList runat="server" ID="ddlCustomer" AutoPostBack="true" TabIndex="3" CssClass="form-control" OnSelectedIndexChanged="ddlCustomer_SelectedIndexChanged">
                                                                    <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                            <div class="col-ks-4">
                                                                <label for="exampleFormControlSelect1">
                                                                    <asp:Label ID="lblFleet" runat="server" Text="Fleet"></asp:Label>
                                                                </label>
                                                                <asp:DropDownList runat="server" ID="ddlFleet" AutoPostBack="true" TabIndex="1"
                                                                    OnSelectedIndexChanged="ddlFleet_SelectedIndexChanged" CssClass="form-control">
                                                                    <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                            <div class="col-ks-4">
                                                                <label for="exampleFormControlSelect1">
                                                                    <asp:Label ID="Label18" runat="server" Text="Device Type"></asp:Label>
                                                                </label>
                                                                <asp:DropDownList runat="server" ID="ddlDeviceType" AutoPostBack="true" TabIndex="2"
                                                                    OnSelectedIndexChanged="ddlDeviceType_SelectedIndexChanged" CssClass="form-control">
                                                                    <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                            <div id="trFleetVehSelection" runat="server">
                                                                <div class="col-ks-4" id="tblVehicleFilter" runat="server">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblVehicle" runat="server" Text="Device Name"></asp:Label>
                                                                    </label>
                                                                    <dxw:ASPxTokenBox ID="ASPxTokenBox1" runat="server" EnableTheming="true" Theme="Office2003Blue" NullText="Select ESPs.."
                                                                        Border-BorderStyle="Solid" Border-BorderColor="#C0C0C0" FocusedStyle-Border-BorderColor="#000" Paddings-PaddingTop="3px" Paddings-PaddingBottom="3px"
                                                                        AnimationType="Fade" TextField="VehicleDescription" ValueField="BoxId" AllowCustomTokens="false" AutoResizeWithContainer="true" CssClass="form-control" Style="height: auto !important;">
                                                                        <TokenTextStyle Wrap="True" VerticalAlign="Bottom"></TokenTextStyle>
                                                                        <TokenRemoveButtonStyle VerticalAlign="Top"></TokenRemoveButtonStyle>
                                                                        <ClientSideEvents TokensChanged="function(s,e) { if(ASPxTokenBox1.GetSelectedItem().text == 'All'){ ASPxTokenBox1.ClearTokenCollection();  ASPxTokenBox1.AddToken('All'); }else   { ASPxTokenBox1.RemoveTokenByText('All'); } if(ASPxTokenBox1.GetTokenCollection().length > 5) { ASPxTokenBox1.RemoveToken(5); TrinetraCustomAlerts('Maximum selection limit is 5 devices.'); } }" />
                                                                    </dxw:ASPxTokenBox>
                                                                </div>
                                                                <asp:HiddenField ID="hdnVehicleRestrictAlert" runat="server" />
                                                                <asp:HiddenField ID="HdnFilter" runat="server" />
                                                                <asp:HiddenField ID="hdnCondition" runat="server" />
                                                                <asp:HiddenField ID="HdnEnterkey" runat="server" />
                                                                <asp:HiddenField ID="hdnSelectVehicles" runat="server" Value="Select Vehicle(s)" />
                                                                <asp:HiddenField ID="hdnCountCheck" runat="server" Value="0" />
                                                                <asp:HiddenField ID="hdnSelectedValue" runat="server" />
                                                                <asp:HiddenField ID="hdnIsRefresh" runat="server" Value="0" />
                                                                <asp:HiddenField ID="hdnCheckedItem" runat="server" />
                                                                <div id="ItemQty" runat="server">
                                                                    <div class="col-ks-4">
                                                                        <label for="exampleFormControlSelect1">
                                                                            <asp:Label ID="Label16" runat="server" Text="Quantity"></asp:Label>
                                                                        </label>
                                                                        <asp:DropDownList runat="server" ID="ddlItemQty" AutoPostBack="false" TabIndex="1" CssClass="form-control">
                                                                            <asp:ListItem Text="All" Value="0"></asp:ListItem>
                                                                            <asp:ListItem Text="Below 100" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="101 - 500" Value="2"></asp:ListItem>
                                                                            <asp:ListItem Text="501 - 1000" Value="3"></asp:ListItem>
                                                                            <asp:ListItem Text="1000 Above" Value="4"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div id="divFuelandTemperatureFilters" runat="server" style="display: none;">
                                                                    <div class="col-ks-4">
                                                                        <label for="exampleFormControlSelect1">
                                                                            <asp:Label ID="lblFuelReportType" runat="server" Text="Fuel Report Type" CssClass="ControlHide"></asp:Label>
                                                                        </label>
                                                                        <asp:DropDownList runat="server" ID="ddlFuelReportType" TabIndex="2" CssClass="ControlHide form-control">
                                                                            <asp:ListItem Value="1" Text="Fuel Consumption"></asp:ListItem>
                                                                            <asp:ListItem Value="2" Text="Fuel Low"></asp:ListItem>
                                                                            <asp:ListItem Value="3" Text="Fuel Drain"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                    <div class="col-ks-4">
                                                                        <label for="exampleFormControlSelect1">
                                                                            <asp:Label ID="lblTemperatureType" runat="server" Text="Temperature Report Type"
                                                                                CssClass="ControlHide"></asp:Label>
                                                                        </label>
                                                                        <asp:DropDownList runat="server" ID="ddlTemperatureType" TabIndex="2" CssClass="ControlHide form-control">
                                                                            <asp:ListItem Value="1" Text="Temperature Report"></asp:ListItem>
                                                                            <asp:ListItem Value="2" Text="Temperature Alarms"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                                <div id="trAdvancedFilters" runat="server" class="">
                                                    <div class="row form-group">
                                                        <asp:Panel ID="pnlDriverDemeritPoints" runat="server" BorderStyle="None" GroupingText="Demerit Points" CssClass="form-box col-sm-12">
                                                            <div class="col-sm-12 MySearchPanelFilter">
                                                                <div class="col-xs-12 col-sm-4 col-lg-2 nullpadding override-col-width">
                                                                    <div class="col-xs-4 padding-width-sm override-col-width">
                                                                        <asp:Label ID="lblSpeedRating" runat="server" Text="Speed"></asp:Label>
                                                                    </div>
                                                                    <div class="col-xs-4 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlSpeedRating" runat="server" Width="50px" CssClass="form-control">
                                                                            <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="25" Value="25"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12 col-sm-4 col-lg-2 nullpadding override-col-width">
                                                                    <div class="col-xs-4 padding-width-sm override-col-width">
                                                                        <asp:Label ID="lblHBPoint" runat="server" Text="Harsh Braking"></asp:Label>
                                                                    </div>
                                                                    <div class="col-xs-4 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlHBPoint" runat="server" Width="50px" CssClass="form-control">
                                                                            <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="25" Value="25"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12 col-sm-4 col-lg-2 nullpadding override-col-width">
                                                                    <div class="col-xs-4 padding-width-sm override-col-width">
                                                                        <asp:Label ID="lblEBPoint" runat="server" Text="Extreme Braking"></asp:Label>
                                                                    </div>
                                                                    <div class="col-xs-4 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlEBRating" runat="server" Width="50px" CssClass="form-control">
                                                                            <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="25" Value="25"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12 col-sm-4 col-lg-2 nullpadding override-col-width">
                                                                    <div class="col-xs-4 padding-width-sm override-col-width">
                                                                        <asp:Label ID="lblHAPoint" runat="server" Text="Harsh Acceleration"></asp:Label>
                                                                    </div>
                                                                    <div class="col-xs-4 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlHARating" runat="server" Width="50px" CssClass="form-control">
                                                                            <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="25" Value="25"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12 col-sm-4 col-lg-2 nullpadding override-col-width">
                                                                    <div class="col-xs-4 padding-width-sm override-col-width">
                                                                        <asp:Label ID="lblEAPoint" runat="server" Text="Extreme Acceleration"></asp:Label>
                                                                    </div>
                                                                    <div class="col-xs-4 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlEARating" runat="server" Width="50px" CssClass="form-control">
                                                                            <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="25" Value="25"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12 col-sm-4 col-lg-2 nullpadding override-col-width">
                                                                    <div class="col-xs-4 padding-width-sm override-col-width">
                                                                        <asp:Label ID="lblAccident" runat="server" Text="Accident"></asp:Label>
                                                                    </div>
                                                                    <div class="col-xs-4 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlAccidentRating" runat="server" Width="50px" CssClass="form-control">
                                                                            <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="25" Value="25"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <%-- </div>
                                                                        <div class="form-group">--%>
                                                                <div class="split"></div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlGeozoneActivity" runat="server" BorderStyle="None" GroupingText="Geozone Activities" CssClass="form-box col-sm-12">
                                                            <div class="form-group">
                                                                <div class="col-xs-12">
                                                                    <asp:RadioButtonList ID="rblGeozoneActivities" runat="server" RepeatLayout="Flow"
                                                                        CssClass="Chkinput" RepeatDirection="Horizontal" TabIndex="4">
                                                                        <asp:ListItem Selected="True" Value="0">All</asp:ListItem>
                                                                        <asp:ListItem Text="Entry only" Value="5"></asp:ListItem>
                                                                        <asp:ListItem Text="Exit only" Value="6"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlLandmak" runat="server" BorderStyle="None" CssClass="form-box col-sm-12" GroupingText="Landmark Filters">
                                                            <div class="form-group">
                                                                <div class="col-sm-5 col-md-4 col-lg-3">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="imgFLandmarkCategory" runat="server" ImageUrl="~/images/FromLandmark.png"
                                                                            AlternateText="From Landmark Category" ToolTip="From Landmark Category" />
                                                                    </div>
                                                                    <div class="col-xs-11 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlFromLandmarkCategory" TabIndex="5" runat="server" AutoPostBack="true"
                                                                            CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-5 col-md-4 col-lg-3">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="imgFLandmark" runat="server" ImageUrl="~/images/FromLandmarkName.png"
                                                                            AlternateText="From LandMark" ToolTip="From LandMark" />
                                                                    </div>
                                                                    <div class="col-xs-11 padding-width-sm">
                                                                        <asp:DropDownList ID="ddlFromLandmark" TabIndex="5" runat="server" AutoPostBack="false" CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group" id="LndmarkTo" runat="server">
                                                                <div class="col-sm-5 col-md-4 col-lg-3" id="ToLandmark" runat="server">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="imgTLandmarkCategory" runat="server" ImageUrl="~/images/ToLandmark.png"
                                                                            AlternateText="To Landmark Category" ToolTip="To Landmark Category" />
                                                                    </div>
                                                                    <div class="col-xs-11 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlToLandmarkCategory" runat="server" TabIndex="6" AutoPostBack="true"
                                                                            CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-5 col-md-4 col-lg-3">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="imgTLandmark" runat="server" ImageUrl="~/images/ToLandmarkName.png"
                                                                            AlternateText="To Landmark" ToolTip="To Landmark" />
                                                                    </div>
                                                                    <div class="col-xs-11 padding-width-sm">
                                                                        <asp:DropDownList ID="ddlToLandmark" runat="server" TabIndex="6" AutoPostBack="false" CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlParkedFilter" runat="server" BorderStyle="None" CssClass="form-box col-sm-12" GroupingText="Parked Status Filters">
                                                            <div class="form-group">
                                                                <div class="col-sm-5 col-md-4 col-lg-3">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="imgParkedStatus" runat="server" ImageUrl="../images/icn-status.gif"
                                                                            AlternateText="Parked Status" ToolTip="Parked Status" />
                                                                    </div>
                                                                    <div class="col-xs-11 padding-width-sm">
                                                                        <asp:DropDownList ID="ddlParkedStatus" TabIndex="5" runat="server" AutoPostBack="false" CssClass="form-control">
                                                                            <asp:ListItem Text="Parked - In" Value="1" />
                                                                            <asp:ListItem Text="Parked - Out" Value="0" />
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlROIFilter" runat="server" BorderStyle="None" CssClass="form-horizontal col-sm-12" GroupingText="ROI Filters">
                                                            <div class="form-group">
                                                                <div class="col-sm-4">
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:Image runat="server" ImageUrl="../images/FuelCostPerLiter.png" ID="Image8" />
                                                                        <asp:Label ID="lblFuelCostPerLtrLV" runat="server" Text="Fuel Cost Per Liter (LV)" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm form-controllinebreak">
                                                                        <asp:TextBox ID="txtFuelCostPerLtrLV" TabIndex="5" runat="server" MaxLength="5" Text="" CssClass="form-control"
                                                                            oncopy="return false" onkeypress="return chkDecNums(event, this);" ToolTip="Fuel cost for Light Vehicle">
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-4">
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:Image runat="server" ImageUrl="../images/TotalDistancePerLiter.png" ID="Image11" />
                                                                        <asp:Label ID="lblTotalDistancePerLtrLV" runat="server" Text="LV Mileage (Km)" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:TextBox ID="txtTotalDistancePerLtrLV" TabIndex="5" runat="server" MaxLength="5" CssClass="form-control"
                                                                            Text="" oncopy="return false" onkeypress="return chkDecNums(event, this);" ToolTip="Mileage for Light Vehicle">
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <div class="col-sm-4">
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:Image runat="server" ImageUrl="../images/FuelCostPerLiter.png" ID="Image7" />
                                                                        <asp:Label ID="lblFuelCostPerLtrHV" runat="server" Text="Fuel Cost Per Liter (HV)" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm form-controllinebreak">
                                                                        <asp:TextBox ID="txtFuelCostPerLtrHV" TabIndex="5" runat="server" MaxLength="5" Text="" CssClass="form-control"
                                                                            oncopy="return false" onkeypress="return chkDecNums(event, this);" ToolTip="Fuel cost for Heavy Vehicle">
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-4">
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:Image runat="server" ImageUrl="../images/TotalDistancePerLiter.png" ID="Image10" />
                                                                        <asp:Label ID="lblTotalDistancePerLtrHV" runat="server" Text="HV Mileage (Km)" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:TextBox ID="txtTotalDistancePerLtrHV" TabIndex="5" runat="server" MaxLength="5" CssClass="form-control"
                                                                            Text="" oncopy="return false" onkeypress="return chkDecNums(event, this);" ToolTip="Mileage for Heavy Vehicle">
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group" id="trCurrency" runat="server">
                                                                <div class="col-sm-4">
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:Image runat="server" ImageUrl="../images/dollars.png" ID="Image12" />
                                                                        <asp:Label ID="Label11" runat="server" Text="Currency Export To" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlCurrency" runat="server" TabIndex="12" onChange="ValidCurrRate();" CssClass="form-control">
                                                                            <asp:ListItem Text="INR" Value="1" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="USD" Value="2"></asp:ListItem>
                                                                            <asp:ListItem Text="AED" Value="3"></asp:ListItem>
                                                                            <asp:ListItem Text="QAR" Value="4"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-4">
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:Image runat="server" ImageUrl="../images/cost.gif" ID="Image13" />
                                                                        <asp:Label ID="lblCurrencyRate" runat="server" Text="Currency Rate" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:TextBox ID="txtCurrRate" TabIndex="5" runat="server" MaxLength="5" Text="" CssClass="form-control"
                                                                            oncopy="return false" onkeypress="return chkDecNums(event, this);">
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlNonReportingFilter" runat="server" BorderStyle="None" CssClass="form-box col-sm-12" GroupingText="Non Reporting Device Filters">
                                                            <div class="form-group">
                                                                <div class="col-sm-6">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="Image3" runat="server" ImageUrl="../images/interval.png" AlternateText="Duration"
                                                                            ToolTip="Duration" />
                                                                    </div>
                                                                    <div class="col-xs-11">
                                                                        <asp:DropDownList ID="ddlNonReportingDuration" TabIndex="5" runat="server" AutoPostBack="false" CssClass="form-control">
                                                                            <asp:ListItem Text="1 day" Value="1" />
                                                                            <asp:ListItem Text="3 days" Value="3" />
                                                                            <asp:ListItem Text="5 days" Value="5" />
                                                                            <asp:ListItem Text="7 days" Value="7" />
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlAdvanceFilters" runat="server" BorderStyle="None" GroupingText="Alarm Filters">
                                                            <div class="row form-group" style="margin: 0px">
                                                                <div class="col-ks-1_5">
                                                                    <asp:Label runat="server" Text="Severity"></asp:Label>
                                                                </div>
                                                                <div class="col-ks-2">
                                                                    <asp:DropDownList ID="ddlSeveritySettings" TabIndex="5" runat="server" AutoPostBack="false" CssClass="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-ks-2 ControlHide">
                                                                    <asp:Label runat="server" Text="Alarm Description"></asp:Label>
                                                                </div>
                                                                <div class="col-ks-2 ControlHide">
                                                                    <asp:DropDownList ID="ddlAlarmDesc" runat="server" TabIndex="5" CssClass="form-control">
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-ks-1_5">
                                                                    <asp:Label runat="server" Text="Status"></asp:Label>
                                                                </div>
                                                                <div class="col-ks-2">
                                                                    <asp:DropDownList ID="ddlAlarmStatus" runat="server" TabIndex="6" AutoPostBack="true"
                                                                        OnSelectedIndexChanged="ddlAlarmStatus_SelectedIndexChanged" CssClass="form-control">
                                                                        <%--onchange="retainSelectedVehicles();">--%>
                                                                        <asp:ListItem Text="All" />
                                                                        <asp:ListItem Text="Pending" Value="New" />
                                                                        <asp:ListItem Text="Acknowledged" Value="Accepted" />
                                                                        <asp:ListItem Text="Closed" Value="Closed" />
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div id="divAlarmAcceptedBy" runat="server" class="ControlHide">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label runat="server" Text="User"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList ID="ddlAcceptedBy" runat="server" TabIndex="7" CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlAdvancedPanelForViolations" BorderStyle="None" GroupingText="Violation Types" runat="server" CssClass="form-box col-sm-12">
                                                            <div class="form-group">
                                                                <div class="col-sm-12">
                                                                    <asp:CheckBox ID="chkSelectAll" TabIndex="8" CssClass="Chkinput" runat="server" onclick="CheckAll();"
                                                                        Text="Select All" />
                                                                    <asp:CheckBoxList onclick="CheckSelectOrUnSelect();" ID="cblViolationType" CssClass="Chkinput"
                                                                        runat="server" TabIndex="9" align="left" RepeatLayout="Flow" RepeatDirection="Horizontal">
                                                                    </asp:CheckBoxList>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlNearingMaintenance" runat="server" BorderStyle="None" GroupingText="Nearing Maintenance Filter">
                                                            <div class="row form-group" style="margin: 0px">
                                                                <div id="divNearingMaintenancePlan" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label runat="server" Text="Plan Name"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList ID="ddlMainPlans" runat="server" AppendDataBoundItems="true" CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div id="divNearingMaintenanceServiceType" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label runat="server" Text="Service Type"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList ID="ddlServiceType" runat="server" CssClass="form-control">
                                                                            <asp:ListItem>All</asp:ListItem>
                                                                            <asp:ListItem Value="0">Running Hours</asp:ListItem>
                                                                            <%--<asp:ListItem Value="1">Odometer</asp:ListItem>--%>
                                                                            <asp:ListItem Value="2">Time Based</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div id="divNearingMaintenanceNearingPercent" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label runat="server" Text="Nearing(%)" CssClass="ControlHide" ID="imgNearing"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList ID="ddlNearing" runat="server" CssClass="ControlHide form-control">
                                                                            <asp:ListItem Text="All" Value="0" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="< 20" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="> 20 <= 30" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="> 30 <= 40" Value="30"></asp:ListItem>
                                                                            <asp:ListItem Text="> 40 <= 50" Value="40"></asp:ListItem>
                                                                            <asp:ListItem Text="> 50 <= 60" Value="50"></asp:ListItem>
                                                                            <asp:ListItem Text="> 60 <= 70" Value="60"></asp:ListItem>
                                                                            <asp:ListItem Text="> 70 <= 80" Value="70"></asp:ListItem>
                                                                            <asp:ListItem Text="> 80 <= 90" Value="80"></asp:ListItem>
                                                                            <asp:ListItem Text="> 90 <= 100" Value="90"></asp:ListItem>
                                                                            <asp:ListItem Text="> 100 <= 125" Value="100"></asp:ListItem>
                                                                            <asp:ListItem Text="> 125 <= 150" Value="125"></asp:ListItem>
                                                                            <asp:ListItem Text="> 150" Value="150"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div id="divNearingMaintenanceNearingInterval" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label ID="imgNearingInterval" runat="server" Text="Duration" CssClass="ControlHide"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList ID="ddlNearingInterval" runat="server" CssClass="ControlHide form-control">
                                                                            <asp:ListItem Value="0" Selected="True">All</asp:ListItem>
                                                                            <asp:ListItem Value="1">Today</asp:ListItem>
                                                                            <asp:ListItem Value="2">This Week</asp:ListItem>
                                                                            <asp:ListItem Value="3">Next Week</asp:ListItem>
                                                                            <asp:ListItem Value="4">This Month</asp:ListItem>
                                                                            <asp:ListItem Value="5">Next Month</asp:ListItem>
                                                                            <asp:ListItem Value="6">Current FQ</asp:ListItem>
                                                                            <asp:ListItem Value="7">Next FQ</asp:ListItem>
                                                                            <asp:ListItem Value="8">Current FY</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row form-group" style="margin: 0px">
                                                                <div id="divNearingMaintenanceStatus" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label runat="server" Text="Maintenance Service Status" ID="imgStatusIcon" CssClass="ControlHide"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList runat="server" ID="ddlServiceStatus" align="Left" cellpadding="2" CssClass="ControlHide form-control">
                                                                            <asp:ListItem Text="All" Value="4" Selected="True"></asp:ListItem>
                                                                            <%--<asp:ListItem Text="Pending" Value="0"></asp:ListItem>--%>
                                                                            <asp:ListItem Text="Completed" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="Skipped" Value="2"></asp:ListItem>
                                                                            <%--<asp:ListItem Text="Dismissed" Value="3"></asp:ListItem>--%>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div id="divNearingMaintenanceServiceName" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label runat="server" ID="imgServiceName" Text="Service Name" CssClass="ControlHide"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList runat="server" ID="ddlServiceName" align="Left" cellpadding="2" CssClass="ControlHide form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div id="divNearingMaintenanceType" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label ID="imgMaintenanceType" runat="server" Text="Maintenance Type"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList runat="server" ID="ddlMaintenanceType" align="Left" cellpadding="2" CssClass="ControlHide form-control">
                                                                            <asp:ListItem Text="All" Value="0" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="Planned" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="Adhoc" Value="2"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div id="divNearingMaintenanceInterval" runat="server">
                                                                    <div class="col-ks-1_5">
                                                                        <asp:Label runat="server" ID="imgInterval" Text="Duration" CssClass="ControlHide"></asp:Label>
                                                                    </div>
                                                                    <div class="col-ks-2">
                                                                        <asp:DropDownList ID="ddlInterval" runat="server" AutoPostBack="true" CssClass="ControlHide form-control"
                                                                            OnSelectedIndexChanged="ddlInterval_SelectedIndexChanged">
                                                                            <asp:ListItem Selected="True" Value="0">Date Range</asp:ListItem>
                                                                            <asp:ListItem Value="1">Current FQ</asp:ListItem>
                                                                            <asp:ListItem Value="2">Previous FQ</asp:ListItem>
                                                                            <asp:ListItem Value="3">Current FY</asp:ListItem>
                                                                            <asp:ListItem Value="4">Yesterday</asp:ListItem>
                                                                            <asp:ListItem Value="5">Today</asp:ListItem>
                                                                            <asp:ListItem Value="6">Last Week</asp:ListItem>
                                                                            <asp:ListItem Value="7">This Week</asp:ListItem>
                                                                            <asp:ListItem Value="8">Last Month</asp:ListItem>
                                                                            <asp:ListItem Value="9">This Month</asp:ListItem>
                                                                            <asp:ListItem Value="10">Previous FY</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlMaintenanceCostAnalysisFilter" runat="server" BorderStyle="None" GroupingText="Maintenance Cost Analysis Filter" CssClass="form-box col-sm-12">
                                                            <div class="form-group">
                                                                <div class="col-sm-3">
                                                                    <div class="col-xs-3 padding-width-sm">
                                                                        <asp:Image ID="Image9" ImageUrl="../images/icnServices.png" AlternateText="Maintenance Type"
                                                                            runat="server" />
                                                                    </div>
                                                                    <div class="col-xs-9 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList runat="server" ID="ddlMaintenanceServiceType" align="Left" cellpadding="2" CssClass="form-control">
                                                                            <asp:ListItem Text="All" Value="0" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="Planned" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="Adhoc" Value="2"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-3">
                                                                    <div class="col-xs-3 padding-width-sm">
                                                                        <asp:Image ID="Image4" ImageUrl="../images/icnServices.png" AlternateText="Type"
                                                                            runat="server" />
                                                                    </div>
                                                                    <div class="col-xs-9 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlType" runat="server" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                                                                            <%--<asp:ListItem>All</asp:ListItem>--%>
                                                                            <asp:ListItem Text="Annual" Value="0"></asp:ListItem>
                                                                            <asp:ListItem Text="Last Five Years" Value="1"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-3">
                                                                    <div class="col-xs-6 padding-width-sm icon-label override-col-width">
                                                                        <asp:Label ID="Image6" Text="Select Year" runat="server" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlfinancialYear" runat="server" AutoPostBack="true" CssClass="form-control"
                                                                            OnSelectedIndexChanged="ddlfinancialYear_SelectedIndexChanged">
                                                                            <%--<asp:ListItem Value="0" Selected="True">All</asp:ListItem>--%>
                                                                            <asp:ListItem Text="2002" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="2003" Value="2"></asp:ListItem>
                                                                            <asp:ListItem Text="2004" Value="3"></asp:ListItem>
                                                                            <asp:ListItem Text="2005" Value="4"></asp:ListItem>
                                                                            <asp:ListItem Text="2006" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="2007" Value="6"></asp:ListItem>
                                                                            <asp:ListItem Text="2008" Value="7"></asp:ListItem>
                                                                            <asp:ListItem Text="2009" Value="8"></asp:ListItem>
                                                                            <asp:ListItem Text="2010" Value="9"></asp:ListItem>
                                                                            <asp:ListItem Text="2011" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="2012" Value="11"></asp:ListItem>
                                                                            <asp:ListItem Text="2013" Value="12" Selected="True">
                                                                            </asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-3">
                                                                    <div class="col-xs-6 padding-width-sm icon-label">
                                                                        <asp:Label ID="Image5" Text="Financial Start Month" runat="server" />
                                                                    </div>
                                                                    <div class="col-xs-6 padding-width-sm">
                                                                        <asp:DropDownList ID="ddlStartMonth" runat="server" CssClass="form-control">
                                                                            <%--<asp:ListItem Text="All" Value="0" Selected="True"></asp:ListItem>--%>
                                                                            <asp:ListItem Text="January" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="February" Value="2"></asp:ListItem>
                                                                            <asp:ListItem Text="March" Value="3"></asp:ListItem>
                                                                            <asp:ListItem Text="April" Value="4"></asp:ListItem>
                                                                            <asp:ListItem Text="May" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="June" Value="6"></asp:ListItem>
                                                                            <asp:ListItem Text="July" Value="7"></asp:ListItem>
                                                                            <asp:ListItem Text="August" Value="8"></asp:ListItem>
                                                                            <asp:ListItem Text="September" Value="9"></asp:ListItem>
                                                                            <asp:ListItem Text="October" Value="10"></asp:ListItem>
                                                                            <asp:ListItem Text="November" Value="11"></asp:ListItem>
                                                                            <asp:ListItem Text="December" Value="12"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlMDTFilter" BorderStyle="None" GroupingText="MDT Filters" runat="server" CssClass="form-box col-sm-12">
                                                            <div class="form-group">
                                                                <div class="col-sm-3">
                                                                    <div class="col-xs-1 padding-width-sm"></div>
                                                                    <div class="col-xs-11 form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlMDTReportType" runat="server" AutoPostBack="false" CssClass="form-control">
                                                                            <asp:ListItem Text="All" Value="0" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="MDT Messages" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="User Logins" Value="2"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-3">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="imgMsgDirection" runat="server" ImageUrl="../images/direction.png"
                                                                            AlternateText="Message Direction" ToolTip="Message Direction" />
                                                                    </div>
                                                                    <div class="col-xs-11 form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlMsgDirection" runat="server" AutoPostBack="false" CssClass="form-control">
                                                                            <asp:ListItem Text="All" Value="0" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="Incoming" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="Outgoing" Value="2"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-3">
                                                                    <div class="col-xs-1 padding-width-sm">
                                                                        <asp:Image ID="imgMDTMsgStatus" runat="server" ImageUrl="../images/status-icon.gif"
                                                                            AlternateText="MDT Message Status" ToolTip="MDT Message Status" />
                                                                    </div>
                                                                    <div class="col-xs-11">
                                                                        <asp:DropDownList ID="ddlMDTMsgStatus" runat="server" AutoPostBack="false" CssClass="form-control">
                                                                            <asp:ListItem Text="All" Value="0" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="Delivered" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="Failed" Value="2"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlTyre" BorderStyle="None" GroupingText="Tyre Report Filters" runat="server" CssClass="form-box col-sm-12">
                                                            <div class="form-group">
                                                                <div id="divTyreVehicle" runat="server" class="col-sm-6 override-col-width">
                                                                    <div class="col-xs-3 padding-width-sm icon-img">
                                                                        <asp:Image ID="Image15" runat="server" ImageUrl="../images/vehicle-icon.gif" alt="" />
                                                                        <asp:Label ID="ldlTyreVehicle" runat="server" Text="Vehicle" CssClass="ControlHide"></asp:Label>
                                                                    </div>
                                                                    <div class="col-xs-9 padding-width-sm form-controllinebreak">
                                                                        <asp:DropDownList ID="ddlTyreVehicle" runat="server" AutoPostBack="true"
                                                                            CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-6">
                                                                    <div class="col-xs-3 padding-width-sm icon-img override-col-width">
                                                                        <asp:Image ID="Image14" runat="server" ImageUrl="../images/74.PNG" AlternateText="Select Tyre Name"
                                                                            ToolTip="Select Tyre Name" />
                                                                        <asp:Label ID="lblTyre" runat="server" Text="Tyre" />
                                                                    </div>
                                                                    <div class="col-xs-9 padding-width-sm">
                                                                        <asp:DropDownList ID="ddlTyre" runat="server" AutoPostBack="true" CssClass="form-control">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                        <asp:Panel ID="pnlInstrument" BorderStyle="None" GroupingText="Instruments" runat="server" CssClass="form-box col-sm-12">
                                                            <div class="form-group">
                                                                <div class="col-sm-12">
                                                                    <div class="col-ks-1">
                                                                        <label for="exampleFormControlSelect1">
                                                                            <asp:Label runat="server" ID="Label19" Text="Instrument(s)"></asp:Label></label>
                                                                    </div>
                                                                    <div class="col-ks-3">
                                                                        <asp:ListBox ID="lstParams" runat="server" class="multiselect-ui form-control" SelectionMode="Multiple" Width="100"></asp:ListBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                    </div>
                                                </div>

                                                <div id="trDurationSelection" runat="server" class="col-md-12">
                                                    <div class="row form-group">
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label ID="lblFrom" runat="server" Text="Duration From"></asp:Label>
                                                            </label>
                                                            <div id="tdFromDate" runat="server">
                                                                <asp:HiddenField runat="server" ID="hdnDateFormat" Value="dd-MMM-yyyy" />
                                                                <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>
                                                            <div id="tdtsFromHrs" runat="server" style="display: none;">
                                                                <div class="time1 Responsivetime">
                                                                    <MKB:TimeSelector ID="tsFromHrs" runat="server" AmPm="AM" DisplaySeconds="False"
                                                                        CssClass="time form-control" TabIndex="14" Hour="08" Font-Size="10pt" SelectedTimeFormat="Twelve">
                                                                    </MKB:TimeSelector>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1" id="trTodateIcons" runat="server">
                                                                <asp:Label ID="lblTo" runat="server" Text="To"></asp:Label>
                                                            </label>
                                                            <div id="tdToDate" runat="server">
                                                                <div class="input-group" id="dtEndDate" runat="server">
                                                                    <asp:TextBox ID="txtEndDate" 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>
                                                            <div id="tdtsToHours" runat="server" style="display: none;">
                                                                <div class="time1 Responsivetime">
                                                                    <MKB:TimeSelector ID="tsToHours" runat="server" AmPm="PM" DisplaySeconds="False"
                                                                        TabIndex="17" Hour="08" Font-Size="10pt" SelectedTimeFormat="Twelve">
                                                                    </MKB:TimeSelector>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="trSortFilter" runat="server" class="col-md-12">
                                                    <div class="row form-group">
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label ID="lblSortBy" runat="server" Text="Sort By"></asp:Label>
                                                            </label>
                                                            <asp:DropDownList ID="ddlSortBy" TabIndex="19" runat="server" CssClass="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label ID="lblSortDirection" runat="server" Text="Sort Direction"></asp:Label>
                                                            </label>
                                                            <asp:DropDownList ID="ddlSortDirection" runat="server" TabIndex="20" CssClass="form-control">
                                                                <asp:ListItem Text="Ascending" Value="ASC"></asp:ListItem>
                                                                <asp:ListItem Text="Descending" Value="DESC"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label runat="server" Text="Duration" ID="imgUserFilter"></asp:Label>
                                                            </label>
                                                            <asp:DropDownList ID="ddlUserActFilter" runat="server" CssClass="ControlHide form-control">
                                                                <asp:ListItem Value="0" Selected="True">Today</asp:ListItem>
                                                                <asp:ListItem Value="1">Yesterday</asp:ListItem>
                                                                <asp:ListItem Value="7">Last Week</asp:ListItem>
                                                                <asp:ListItem Value="30">Last Month</asp:ListItem>
                                                                <asp:ListItem Value="90">Current Quarter</asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                </div>
                                                <div id="trpaperSettings" runat="server" class="col-md-12">
                                                    <div class="row form-group">
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label ID="lblExportTo" runat="server" Text="Export To"></asp:Label>
                                                            </label>
                                                            <asp:DropDownList ID="ddlExport" runat="server" TabIndex="21" CssClass="form-control">
                                                                <asp:ListItem>PDF</asp:ListItem>
                                                                <asp:ListItem>Excel</asp:ListItem>

                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label ID="lblPaperSizeCaption" runat="server" Text="Paper Size"></asp:Label>
                                                            </label>
                                                            <asp:DropDownList ID="ddlPaperSize" runat="server" TabIndex="21" CssClass="form-control">
                                                                <asp:ListItem Selected="True">Default</asp:ListItem>
                                                                <asp:ListItem>A3</asp:ListItem>
                                                                <asp:ListItem>A3Extra</asp:ListItem>
                                                                <asp:ListItem>A4</asp:ListItem>
                                                                <asp:ListItem>A4Extra</asp:ListItem>
                                                                <asp:ListItem>A4Plus</asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div id="trDetails" runat="server" class="col-sm-12 padding-width-sm ControlHide">
                                                    <asp:Panel ID="pnlShowHideOptions" runat="server" GroupingText="Show / Hide Options">
                                                        <div class="form-horizontal">
                                                            <div class="form-group">
                                                                <div class="col-sm-4 col-md-3 override-col-width">
                                                                    <asp:CheckBox CssClass="Chkinput" ID="chkShowSummary" TabIndex="10" runat="server"
                                                                        Checked="True" Text="Summary" Enabled="false" />
                                                                    <asp:CheckBox CssClass="Chkinput" ID="chkShowGraph" TabIndex="10" runat="server"
                                                                        Checked="True" Text="Graph" />
                                                                    <asp:CheckBox CssClass="Chkinput" ID="chkShowDetail" TabIndex="11" runat="server"
                                                                        Checked="True" onclick="ShowOrHideOptions();" Text="Details" />
                                                                </div>
                                                                <div class="col-sm-8">
                                                                    <asp:CheckBoxList ID="cblShowHideOptions" RepeatDirection="Horizontal" RepeatLayout="Flow"
                                                                        CssClass="Chkinput" runat="server" TabIndex="12">
                                                                    </asp:CheckBoxList>
                                                                    </td>
                                                                </div>
                                                            </div>
                                                    </asp:Panel>
                                                </div>
                                                <div class="col-md-12" id="divReportbutton" runat="server">
                                                    <div class="row form-group">
                                                        <div class="col-ks-6">
                                                            <asp:Label CssClass="errorLabel" ID="lblNoRecords" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="col-ks-10" align="right">
                                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                                                <Triggers>
                                                                    <asp:PostBackTrigger ControlID="lbtShowReport" />
                                                                </Triggers>
                                                                <ContentTemplate>
                                                                    <asp:ImageButton ID="lbtShowReport1" CssClass="blu-btn" runat="server" OnClick="lbtShowReport_Click"
                                                                        TabIndex="22" ImageUrl="~/Images/btn-show-reports.jpg" text="Show" OnClientClick="ShowPopUp();HideLabel();if((CheckShowOption())){return true;} else{return false;}"
                                                                        Visible="false" />
                                                                    <asp:LinkButton ID="lbtShowReport" runat="server" CssClass="btn btn-primary btn-fa-file-text-o" OnClick="lbtShowReport_Click"
                                                                        OnClientClick="ShowPopUp();HideLabel();if((CheckShowOption() && ValidROIData())){return true;} else{return false;}" Text="&nbsp;&nbsp;Show Report">
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton ID="LinkButton1" runat="server" CssClass="btn btn-primary" OnClick="lbtSampleReport_Click" Visible="false" Text="&nbsp;&nbsp;Sample Report">
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton ID="ibtnSendEmail" runat="server" CssClass="btn btn-primary btn-fa-envelope-o" OnClientClick="HideLabel();ShowPopUp(); if((CheckShowOption())) { } else { return false; }"
                                                                        OnClick="ibtnSendEmail_Click" Text="&nbsp;&nbsp;Send Email">
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton ID="ibtnScheduleReports" runat="server" CssClass="btn btn-primary btn-fa-calendar-o"
                                                                        OnClientClick="ShowPopUp();HideLabel(); ShowHideScheduleReports(true, true);DisableControlsForEditing(false);"
                                                                        OnClick="ibtnScheduleReports_Click" Text="&nbsp;&nbsp;Schedule Report">
                                                                    </asp:LinkButton>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="Table1" runat="server" class="">
                                            <div id="trSchedulingReports" runat="server" style="display: none" class="form-horizontal row">
                                                <asp:Panel ID="pnlScheduleSettings" runat="server" CssClass="col-sm-12"
                                                    GroupingText="Report Scheduling - Settings  <span style='color:Red'>(Scheduling of reports will be based on organization timezone) </span>">

                                                    <div class="row form-group" style="margin: 0px; padding-bottom: 15px;">
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label ID="lblFromCaption" runat="server" Text="Effective From"></asp:Label>
                                                                <asp:Label ID="Label5" runat="server" ForeColor="Red">*</asp:Label>
                                                            </label>
                                                            <asp:TextBox ID="txtEffectiveFrom" runat="server" oncopy="return false" oncut="return false"
                                                                onkeydown="doCheckBackSpaceOrDelete()" onkeypress="return false" onpaste="return false"
                                                                ToolTip="dd-MMM-yyyy" TabIndex="25" CssClass="form-control"></asp:TextBox>
                                                        </div>
                                                        <div class="col-ks-4">
                                                            <label for="exampleFormControlSelect1">
                                                                <asp:Label ID="lblToCaption" runat="server" Text="Effective Till"></asp:Label>
                                                                <asp:Label ID="lblEffectiveTillMandatory" runat="server" ForeColor="Red">*</asp:Label>
                                                            </label>
                                                            <asp:TextBox ID="txtEffectiveTo" runat="server" oncopy="return false" oncut="return false"
                                                                onkeydown="doCheckBackSpaceOrDelete()" onkeypress="return false" onpaste="return false"
                                                                ToolTip="dd-MMM-yyyy" TabIndex="26" CssClass="form-control"></asp:TextBox>
                                                        </div>
                                                        <div class="col-ks-4">
                                                            <div class="col-ks-16" style="padding-left: 40px; padding-top: 22px;">
                                                                <asp:CheckBox ID="chkNoEndDate" runat="server" TabIndex="27" Checked="false" Text="No End Date"
                                                                    onclick="ShowHideEffTillText('False');" CssClass="checkbox" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="trFrequencyrow" runat="server">
                                                        <div class="row form-group" style="margin: 0px; padding-bottom: 15px;">
                                                            <div class="col-ks-4">
                                                                <label for="exampleFormControlSelect1">
                                                                    <asp:Label ID="lblFrequencyCaption" runat="server" Text="Frequency"></asp:Label>
                                                                    <asp:Label ID="Label6" runat="server" ForeColor="Red">*</asp:Label>
                                                                </label>
                                                                <div id="tdFrequencyInfor">
                                                                    <asp:DropDownList ID="ddlFrequency" runat="server" TabIndex="28" CssClass="form-control" onchange="FrequencyChange(); RestrictDate('','');">
                                                                        <asp:ListItem Value="0">Daily</asp:ListItem>
                                                                        <asp:ListItem Value="1">Weekly</asp:ListItem>
                                                                        <asp:ListItem Value="3">Fortnightly</asp:ListItem>
                                                                        <asp:ListItem Value="2">Monthly</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <asp:Panel ID="pnlFrequencyDaily" runat="server">
                                                                <div class="col-ks-2">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblReportFromCaption" runat="server" Text="From"></asp:Label>
                                                                        <asp:Label ID="Label2" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <asp:TextBox runat="server" ID="txtReportFromHrs" CssClass="form-control" Text="08:00 AM"></asp:TextBox>
                                                                    <div class="time1 Responsivetime" style="display: none;">
                                                                        <MKB:TimeSelector ID="tsReportFromHrs" runat="server" AmPm="AM" DisplaySeconds="False"
                                                                            TabIndex="29" Hour="08" Font-Size="10pt" SelectedTimeFormat="Twelve">
                                                                        </MKB:TimeSelector>
                                                                    </div>
                                                                </div>
                                                                <div class="col-ks-2">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblReportToCaption" runat="server" Text="To"></asp:Label>
                                                                        <asp:Label ID="Label4" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <asp:TextBox runat="server" ID="txtReportToHrs" CssClass="form-control" Text="08:00 AM"></asp:TextBox>
                                                                    <div style="display: none;">
                                                                        <MKB:TimeSelector ID="tsReportToHrs" runat="server" AmPm="PM" DisplaySeconds="False"
                                                                            TabIndex="31" Hour="08" Font-Size="10pt" SelectedTimeFormat="Twelve">
                                                                        </MKB:TimeSelector>
                                                                    </div>
                                                                </div>
                                                                <div class="col-ks-4">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblGenerate" runat="server" Text="Generate at"></asp:Label>
                                                                        <asp:Label ID="Label1" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <asp:TextBox runat="server" ID="txtReportGenerationTime" CssClass="form-control" Text="08:00 AM"></asp:TextBox>
                                                                    <div class="time1 Responsivetime" style="display: none;">
                                                                        <MKB:TimeSelector ID="tsReportGenerationTime" runat="server" AmPm="AM" DisplaySeconds="False"
                                                                            TabIndex="33" Hour="08" Font-Size="10pt" SelectedTimeFormat="Twelve">
                                                                        </MKB:TimeSelector>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlFrequencyWeekly" runat="server" Style="display: none;">
                                                                <div class="col-ks-4">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblWeeklyFrom" runat="server" Text="From"></asp:Label>
                                                                        <asp:Label ID="lblWeeklyFrom1" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <asp:DropDownList ID="ddlReportWeeklyFrom" runat="server" TabIndex="36" CssClass="form-control"
                                                                        onchange="LoadDayWeekRanges('ddlReportWeeklyTo','ddlReportWeeklyFrom','ddlReportWeeklyFrom','ddlReportWeeklyTo','ddlWeekDayOn');">
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-ks-4">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblWeeklyTo" runat="server" Text="To"></asp:Label>
                                                                        <asp:Label ID="Label7" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <asp:DropDownList ID="ddlReportWeeklyTo" runat="server" TabIndex="37" CssClass="form-control"
                                                                        onchange="LoadGenerateOn('ddlReportWeeklyFrom','ddlReportWeeklyTo','ddlWeekDayOn');">
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-ks-4">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="lblWeeklyGenerate" runat="server" Text="Generate on"></asp:Label>
                                                                        <asp:Label ID="Label8" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <div class="col-ks-8">
                                                                        <asp:DropDownList ID="ddlWeekDayOn" runat="server" TabIndex="38" CssClass="form-control" onchange="CheckWeek();">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                    <div class="col-ks-8">
                                                                        <div class="time1 Responsivetime" style="display: none;">
                                                                            <MKB:TimeSelector ID="tsReportWeeklyGenerateTime" runat="server" AmPm="AM" DisplaySeconds="False"
                                                                                TabIndex="39" Hour="08" Font-Size="10pt" SelectedTimeFormat="Twelve">
                                                                            </MKB:TimeSelector>
                                                                        </div>
                                                                        <asp:TextBox runat="server" ID="txtReportWeeklyGenerateTime" CssClass="form-control"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlFrequencyMonthly" runat="server" Style="display: none">
                                                                <div class="col-ks-4">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="Label15" runat="server" Text="On"></asp:Label>
                                                                        <asp:Label ID="Label9" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <asp:TextBox ID="txtFrequencyMonthlyDay" runat="server" onkeypress="return chkNumeric_only_ForDate(event,'txtFrequencyMonthlyDay');"
                                                                        onpaste="return false;" ondrop="return false;" MaxLength="2" TabIndex="42" CssClass="form-control"></asp:TextBox>
                                                                </div>
                                                                <div class="col-ks-4">
                                                                    <label for="exampleFormControlSelect1">
                                                                        <asp:Label ID="Label14" runat="server" Text="Generate at"></asp:Label>
                                                                        <asp:Label ID="Label10" runat="server" ForeColor="Red">*</asp:Label>
                                                                    </label>
                                                                    <asp:TextBox ID="txtReportMonthlyGenerationTime" runat="server" onpaste="return false;" ondrop="return false;" TabIndex="43" CssClass="form-control"></asp:TextBox>
                                                                    <div class="time1 Responsivetime" style="display: none;">
                                                                        <MKB:TimeSelector ID="tsReportMonthlyGenerationTime" runat="server" AmPm="AM" DisplaySeconds="False"
                                                                            TabIndex="43" Hour="08" Font-Size="10pt" SelectedTimeFormat="Twelve">
                                                                        </MKB:TimeSelector>
                                                                    </div>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                    </div>
                                                    <div class="row form-group" style="margin: 0px;">
                                                        <div class="col-ks-4" id="trEmailTo" runat="server">
                                                            <asp:ImageButton ID="ibtnAddNotifictions1" runat="server" CssClass="btn" OnClientClick="ShowPopUp();"
                                                                ImageUrl="~/images/btn-email-to.jpg" TabIndex="46" OnClick="ibtnAddNotifictions_Click" Visible="false" />
                                                            <asp:LinkButton ID="ibtnAddNotifictions" runat="server" CssClass="btn btn-primary btn-fa-envelope-o"
                                                                OnClientClick="ShowPopUp();" OnClick="ibtnAddNotifictions_Click" Text="&nbsp;&nbsp;Email To">
                                                            </asp:LinkButton>
                                                        </div>
                                                        <div class="col-ks-12">
                                                            <asp:Label ID="Label3" runat="server" ForeColor="Red">*</asp:Label>&nbsp;
                                                                            <asp:Label ID="lblEmailToMsg" runat="server" Text="Select the recipient(s) of the email"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row form-group" style="margin: 0px;" id="trweeklyreportmessage" runat="server">
                                                        <div class="col-sm-12">
                                                            <asp:Label ID="lblWeeklyReportMessage" runat="server" Text="The report will be mailed to the selected users every week starting from the 8th day from the Effective From date"></asp:Label>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                                <div class="clearfix"></div>
                                                <div class="row" style="margin: 0px; margin-left: 15px;">
                                                    <asp:Label ID="Label12" runat="server" ForeColor="Red">*</asp:Label>&nbsp;                                                                
                                                                <asp:Label ID="lblMandatoryIndication" runat="server">Required Fields</asp:Label>
                                                </div>
                                                <div class="col-md-12">
                                                    <div class="row form-group">
                                                        <div class="col-sm-5">
                                                            <asp:Label ID="lblSchedulingDisclaimer" runat="server" Text="" Style="display: none"></asp:Label>
                                                        </div>
                                                        <div class="col-sm-7" align="right">
                                                            <asp:LinkButton ID="ibtnSave" runat="server" CssClass="btn btn-primary btn-fa-floppy-o" OnClientClick="if(ValidateScheduleReports()){ShowPopUp(); return true;} else{return false;}"
                                                                OnClick="ibtnSave_Click" Text="&nbsp;&nbsp;Save">
                                                            </asp:LinkButton>
                                                            <asp:ImageButton ID="ibtnCancel1" runat="server" ImageUrl="~/images/btn-cancel.jpg"
                                                                OnClientClick="ShowPopUp();ShowHideScheduleReports(false, true);DisableControlsForEditing(false);"
                                                                TabIndex="48" OnClick="ibtnCancel_Click" Visible="false" />
                                                            <asp:LinkButton ID="ibtnCancel" runat="server" CssClass="btn btn-primary btn-fa-ban" OnClientClick="ShowPopUp();ShowHideScheduleReports(false, true);DisableControlsForEditing(false);"
                                                                TabIndex="48" OnClick="ibtnCancel_Click" Text="&nbsp;&nbsp;Cancel">
                                                            </asp:LinkButton>
                                                        </div>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="clearfix"></div>
                                    </asp:Panel>
                                    <div class="clearfix"></div>
                                </asp:Panel>
                                <div id="divPDF" runat="server" visible="false">
                                    <iframe id="PDFframe" runat="server" frameborder="0" scrolling="auto"
                                        class="col-xs-12" style="height: 680px; overflow: auto; padding: 0"></iframe>
                                </div>
                                <asp:HiddenField ID="hdnIsScheduleReports" runat="server" />
                                <asp:HiddenField ID="hdnSchedulingEmailList" runat="server" />
                                <asp:HiddenField ID="hdnWeekDays" runat="server" />
                                <asp:HiddenField ID="hdnWeekDay" runat="server" />
                                <asp:HiddenField ID="hdnVehicleCount" runat="server" />
                                <asp:HiddenField ID="hdnUserCurrency" runat="server" />
                                <asp:HiddenField ID="hdnOrgId" runat="server" Value="" />
                                <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            </ContentTemplate>
                            <Triggers>
                                <asp:PostBackTrigger ControlID="LinkButton1" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
            <!-- Main Content Ends Here -->
            <div id="left">
            </div>
            <div class="clear clearfix">
            </div>
            <div id="right">
            </div>
            <div class="clear clearfix">
            </div>
            <asp:UpdatePanel ID="updNotify" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Panel ID="pnlNotificationsList" runat="server" class="manageNotificationPanel col-xs-9 nullpadding">
                        <uc3:NotificationsList ID="ucNotificationList" runat="server" />
                    </asp:Panel>
                </ContentTemplate>
                <%--<Triggers>
                <asp:PostBackTrigger ControlID="ucNotificationList" />
                    </Triggers>--%>
            </asp:UpdatePanel>
            <!-- Content Ends Here -->
            <cc1:ModalPopupExtender ID="mpeProgressIndicator" runat="server" PopupControlID="progressPopUp"
                TargetControlID="btnTesting">
            </cc1:ModalPopupExtender>
            <asp:Button ID="btnTesting" Style="display: none;" runat="server" />
            <asp:Panel ID="progressPopUp" runat="server" CssClass="processMessage" Style="z-index: 1000; 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" language="javascript" src="../js/DateValidations.js"></script>
            <script src="../js/myformvalidations.js" type="text/javascript"></script>
            <script type="text/javascript" language="javascript" src="../js/GridCheckBoxMaintaining.js"></script>
            <script type="text/javascript" language="javascript" src="../js/ReportScripts.js"></script>
            <script type="text/javascript" language="javascript" src="../js/CommonFuncitonsInHeader.js"></script>
            <script language="javascript" type="text/javascript">
                function retainSelectedVehicles() {
                    if (document.getElementById("hdnIsRefresh") != null) {
                        document.getElementById("hdnIsRefresh").value = "1";
                    }
                }
                function ValidROIData() {
                    var fcLV = document.getElementById('txtFuelCostPerLtrLV');
                    var tdLV = document.getElementById('txtTotalDistancePerLtrLV');
                    var fcHV = document.getElementById('txtFuelCostPerLtrHV');
                    var tdHV = document.getElementById('txtTotalDistancePerLtrHV');
                    var cr = document.getElementById('txtCurrRate');
                    var alertMsg = '';
                    var reportOption = document.getElementById('ddlReportOptions').value;
                    if (reportOption == '49' || reportOption == '56') {
                        if (fcLV != null && fcLV.value.length == 0) {
                            alertMsg += "Please enter fuel cost for LV.\n";
                        }
                        if (tdLV != null && tdLV.value.length == 0) {
                            alertMsg += "Please enter mileage for LV.\n";
                        }
                        if (fcHV != null && fcHV.value.length == 0) {
                            alertMsg += "Please enter fuel cost for HV.\n";
                        }
                        if (tdHV != null && tdHV.value.length == 0) {
                            alertMsg += "Please enter mileage for HV.\n";
                        }
                        if (cr != null && cr.disabled == false && cr.value.length == 0) {
                            alertMsg += "Please enter currency rate.";
                        }
                        if (alertMsg != null && alertMsg != '') {
                            alert(alertMsg);
                            HidePopUp();
                            return false;
                        } else { return true; }
                    }
                    else { return true; }
                }
                $rpt = jQuery.noConflict();
                $rpt(document).ready(function () {
                    $rpt("div:empty").hide();
                });

                //$(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);
                //});

                //$(function () {
                //    $('#txtReportFromHrs').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportToHrs').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportGenerationTime').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportWeeklyGenerateTime').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportMonthlyGenerationTime').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});

                //$(function () {
                //    $('#txtEffectiveFrom').datetimepicker({
                //        format: "DD-MMM-YYYY",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtEffectiveTo').datetimepicker({
                //        format: "DD-MMM-YYYY",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});

                //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);
                //        });
                //$(function () {
                //    $('#txtReportFromHrs').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportToHrs').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportGenerationTime').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportWeeklyGenerateTime').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtReportMonthlyGenerationTime').datetimepicker({
                //        format: "LT",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtEffectiveFrom').datetimepicker({
                //        format: "DD-MMM-YYYY",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //$(function () {
                //    $('#txtEffectiveTo').datetimepicker({
                //        format: "DD-MMM-YYYY",
                //        showTodayButton: true,
                //        showClose: true
                //    });
                //});
                //    });
                //});
            </script>
            <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>

            <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
            <link href="../css/MultiSelectedddl.css" rel="stylesheet" type="text/css" />
            <script src="../js/MultiSelectddl.js" type="text/javascript"></script>
            <script type="text/javascript" src="../js/TrendMultiselect.js"></script>
            <asp:HiddenField ID="hdnLogout" runat="server" />
        </form>
    </div>
    <uc2:Footer ID="ucFooter" runat="server" />
</body>
</html>
<%--&& CheckStartAndEnd()--%>