<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_ZCRM_TripSummaryEmployeeWise, App_Web_glt3bfar" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
   
    <%-- <link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: none; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>

    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="239"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <%--    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>--%>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body" style="padding-bottom: 0px">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel" runat="server" Text="From Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDateDPC" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToDateLabel1" runat="server" Text="To Date"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ToDateDPC" runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="EmployeeListLabel" runat="server" Text="Lead Owner"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="EmployeeListDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                    onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" />
                                            </div>
                                        </div>
                                        <div class="alignCenter col-md-12 pTop15">
                                            <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                            <asp:Button ID="TripLogSearchButton" runat="Server" OnClick="TripLogSearchButton_Click" style="display:none;"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                            <asp:Button ID="SearchHierarchyButton" TabIndex="3" runat="Server" OnClick="SearchHierarchyButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search Hierarchy Wise" />
                                            <asp:Button ID="SearchAllButton" TabIndex="3" runat="Server" OnClick="SearchAllButton_Click" Visible="false"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search All" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                        </div>
                                    </asp:Panel>
                                    <div id="exTab2" class="container">
                                        <style>
                                            .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
                                                color: #00bcd4;
                                                cursor: default;
                                                background-color: #fff;
                                                border: 1px solid #ddd;
                                                border-bottom-color: transparent;
                                            }

                                            .nav-tabs > li > a {
                                                margin-right: 2px;
                                                line-height: 1.42857143;
                                                border: 1px solid transparent;
                                                border-radius: 4px 4px 0 0;
                                            }

                                            .nav > li > a {
                                                position: relative;
                                                display: block;
                                                padding: 10px 15px;
                                            }

                                            .nav-tabs > li {
                                                float: left;
                                                margin-bottom: -1px;
                                            }

                                            .nav > li {
                                                position: relative;
                                                display: block;
                                            }

                                            .nav-tabs {
                                                border-bottom: 1px solid #ddd;
                                                height: auto;
                                                padding-bottom: 10px;
                                            }

                                            .skin-blue a:hover {
                                                color: #000000;
                                            }

                                            .skin-blue .nav-tabs > li:hover {
                                                border-bottom: 2px solid #ffffff05;
                                                background-color: #03afc500;
                                            }

                                            .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
                                                border: 1px solid #ddd;
                                                border-bottom-color: transparent;
                                            }

                                            .skin-black .nav-tabs > li:hover {
                                                border-bottom: 2px solid #f1f1f100;
                                                background-color: #ffffff;
                                            }

                                            .skin-purple .nav-tabs > li:hover {
                                                border-bottom: 2px solid #605ca800;
                                                background-color: #605ca800;
                                            }

                                            .skin-green .nav-tabs > li:hover {
                                                border-bottom: 2px solid #ffffff0a;
                                                background-color: #00b5b805;
                                            }

                                            .skin-red .nav-tabs > li:hover {
                                                border-bottom: 2px solid #f4516b00;
                                                background-color: #f4516b00;
                                            }

                                            .skin-yellow .nav-tabs > li:hover {
                                                border-bottom: 2px solid #f39c1200;
                                                background-color: #f39c1200;
                                            }
                                        </style>
                                        <ul class="nav nav-tabs" >
                                            <li class="active"  id="Li1" runat="server">
                                                <a href="#TripSummaryWise" aria-controls="TripSummaryWise" data-toggle="tab" role="tab" onclick="HideSearchButton()">Trip Summary</a>
                                            </li>
                                            <li id="Li2" runat="server"><a href="#TripSummarywiseDetails" id="TripDetails" aria-controls="TripSummarywiseDetails" role="tab" data-toggle="tab" onclick="HideSearchButton1()">Trip Summary with detail's</a>
                                            </li>
                                            <li id="Li3" runat="server"><a href="#TripLogWise" id="TripLog" aria-controls="TripLog" role="tab" data-toggle="tab" onclick="ShowSearchButton()">Trip Log</a>
                                            </li>
                                        </ul>

                                        <div class="tab-content ">
                                            <div class="tab-pane active" id="TripSummaryWise" runat="server">
                                                <div id="Div5" runat="server" visible="false">
                                                    <div id="Div4" runat="server" class="table-responsive">
                                                        <asp:GridView ID="PrintTemplateGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            OnRowDataBound="PrintTemplateGridView_RowDataBound" OnPageIndexChanging="PrintTemplateGridView_PageIndexChanging" CssClass="table table-striped table-bordered table-hover"
                                                            SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="PassingDate,EmployeeId">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="TripDate" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton  ID="EditLinkButton" runat="server" CommandName="PassingDate" OnClick="LinkButton_Click"  OnClientClick="ShowNextTab()"
                                                                                     Text='<%#Eval("PassingDate","{0:dd/MM/yyyy}") == "01/01/0001" ? "-" :Convert.ToString(Eval("PassingDate","{0:dd/MM/yyyy}")) %>' CausesValidation="false"></asp:LinkButton>
                                                                       <%-- <asp:Label ID="TripDateLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("PassingDate", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("PassingDate","{0:dd/MM/yyyy}") == "01/01/0001" ? "-" :Convert.ToString(Eval("PassingDate","{0:dd/MM/yyyy}")) %>'></asp:Label>--%>
                                                                         
                                                                    </ItemTemplate>


                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="EmployeeName" ItemStyle-Width="15%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="EmployeeNameLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("EmployeeName")%>'
                                                                            Text='<%#Bind("EmployeeName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>


                                                                <asp:TemplateField HeaderText="Start Time" ItemStyle-Width="15%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripStartTimeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripStartTime", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("TripStartTime","{0:dd/MM/yyyy}") == "01/01/1900" ? "-" :Convert.ToString(Eval("TripStartTime","{0:dd/MM/yyyy hh:mm tt}")) %>'></asp:Label>
                                                                    </ItemTemplate>

                                                                    <%--   <ItemTemplate>
                                                                                <%# (String.IsNullOrEmpty(Eval("Email").ToString()) ? String.Empty : String.Format("<a href='mailto:{0}'>{1}</a>", Eval("Email"), Eval("Name")) %>
                                                                            </ItemTemplate>--%>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="End Time" ItemStyle-Width="15%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripEndTimeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripEndTime", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("TripEndTime","{0:dd/MM/yyyy}") == "01/01/1900" ? "-" :Convert.ToString(Eval("TripEndTime","{0:dd/MM/yyyy hh:mm tt}")) %>'></asp:Label>
                                                                    </ItemTemplate>


                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Status" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StatusLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripStatus")%>'
                                                                            Text='<%#Eval("TripStatus") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Distance" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripDistanceLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripDistance")%>'
                                                                            Text='<%#Bind("TripDistance")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Last Updated" ItemStyle-Width="15%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="UpdatedDateTimeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("UpdatedDateTime", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("UpdatedDateTime","{0:dd/MM/yyyy}") == "01/01/0001" ? "-" :Convert.ToString(Eval("UpdatedDateTime","{0:dd/MM/yyyy hh:mm tt}")) %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Physical Count" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="PhysicalCountLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("PhysicalCount")%>'
                                                                            Text='<%#Bind("PhysicalCount")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>


                                                                <asp:TemplateField HeaderText="Call Count" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CallCountLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("CallCount")%>'
                                                                            Text='<%#Bind("CallCount")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Mail Count" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="MailCountLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("MailCount")%>'
                                                                            Text='<%#Bind("MailCount")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="TripSummarywiseDetails" runat="server">
                                                <div id="EmployeeDetailwise" runat="server">
                                                    <div id="Div3" runat="server" class="table-responsive">
                                                        <asp:GridView ID="TripSummaryEmployeeWiseDetailsGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            OnRowDataBound="TripSummaryEmployeeWiseDetailsGridView_RowDataBound" OnPageIndexChanging="TripSummaryEmployeeWiseDetailsGridView_PageIndexChanging" CssClass="table table-striped table-bordered table-hover"
                                                            SkinID="" ShowHeader="true" PagerSettings-Visible="false"  EmptyDataText="No Records Found !!">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="TripDate" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripDateLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("PassingDate", "{0:dd/MM/yyyy}")%>' 
                                                                            Text='<%#Eval("PassingDate","{0:dd/MM/yyyy}") == "01/01/0001" ? "-" :Convert.ToString(Eval("PassingDate","{0:dd/MM/yyyy}")) %>'></asp:Label>
                                                                    </ItemTemplate>


                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="EmployeeName" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="EmployeeNameLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("EmployeeName")%>'
                                                                            Text='<%#Bind("EmployeeName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>


                                                                <asp:TemplateField HeaderText="Start Time" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripStartTimeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripStartTime", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("TripStartTime","{0:dd/MM/yyyy}") == "01/01/1900" ? "-" :Convert.ToString(Eval("TripStartTime","{0:dd/MM/yyyy hh:mm tt}")) %>'></asp:Label>
                                                                    </ItemTemplate>

                                                                    <%--   <ItemTemplate>
                                                                                <%# (String.IsNullOrEmpty(Eval("Email").ToString()) ? String.Empty : String.Format("<a href='mailto:{0}'>{1}</a>", Eval("Email"), Eval("Name")) %>
                                                                            </ItemTemplate>--%>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="End Time" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripEndTimeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripEndTime", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("TripEndTime","{0:dd/MM/yyyy}") == "01/01/1900" ? "-" :Convert.ToString(Eval("TripEndTime","{0:dd/MM/yyyy hh:mm tt}")) %>'></asp:Label>
                                                                    </ItemTemplate>


                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Status" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StatusLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripStatus")%>'
                                                                            Text='<%#Eval("TripStatus") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Distance" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripDistanceLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripDistance")%>'
                                                                            Text='<%#Bind("TripDistance")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Created Date" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="UpdatedDateTimeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("UpdatedDateTime", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("UpdatedDateTime","{0:dd/MM/yyyy}") == "01/01/0001" ? "-" :Convert.ToString(Eval("UpdatedDateTime","{0:dd/MM/yyyy hh:mm tt}")) %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="School Name" ItemStyle-Width="25%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SchoolNameLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("SchoolName")%>'
                                                                            Text='<%#Bind("SchoolName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>


                                                                <asp:TemplateField HeaderText="Followup Location" ItemStyle-Width="25%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="FollowupLocationLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("FollowupLocation")%>'
                                                                            Text='<%#Bind("FollowupLocation")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="With Manager" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="WithManagerLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("WithManager")%>'
                                                                            Text='<%#Bind("WithManager")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="TripLogWise" runat="server">
                                                <div id="Div1" runat="server">
                                                    <div id="Div2" runat="server" class="table-responsive">
                                                        <asp:GridView ID="TripLogGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                              CssClass="table table-striped table-bordered table-hover"
                                                            SkinID="" ShowHeader="true" PagerSettings-Visible="false"  EmptyDataText="No Records Found !!">
                                                            <Columns>
                                                             <asp:TemplateField HeaderText="Last Updated" ItemStyle-Width="12%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="UpdatedDateTimeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("UpdatedDateTime", "{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Eval("UpdatedDateTime","{0:dd/MM/yyyy}") == "01/01/0001" ? "-" :Convert.ToString(Eval("UpdatedDateTime","{0:dd/MM/yyyy hh:mm tt}")) %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Status" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StatusLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripStatus")%>'
                                                                            Text='<%#Eval("TripStatus") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Distance" ItemStyle-Width="3%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TripDistanceLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TripDistance")%>'
                                                                            Text='<%#Bind("TripDistance")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="FollowUp Status" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="WithManagerLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("FollowUpStatus")%>'
                                                                            Text='<%#Bind("FollowUpStatus")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>                                                                
                                                                                                                                
                                                                   <asp:TemplateField HeaderText="School Name" ItemStyle-Width="30%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="SchoolNameLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("SchoolName")%>'
                                                                            Text='<%#Bind("SchoolName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Followup Location" ItemStyle-Width="30%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="FollowupLocationLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("FollowupLocation")%>'
                                                                            Text='<%#Bind("FollowupLocation")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            
                                                                <asp:TemplateField HeaderText="With Manager" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="WithManagerLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("WithManager")%>'
                                                                            Text='<%#Bind("WithManager")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                  
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-info-circle"></i>
                                        <asp:Label ID="NewsDetailLabel" runat="server" Text="Lead Information"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">


                                <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                    <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                        runat="server" CommandName="Page" CommandArgument="First"
                                        OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                        runat="server" CommandName="Page" CommandArgument="Prev"
                                        OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>

                                    </asp:LinkButton>

                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                    &nbsp;<asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                    &nbsp; 
                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                                    &nbsp; 
                                    <asp:Label ID="TotalRecord" runat="server" />
                                    &nbsp;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                                                    OnClick="NextImageButton_Click">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                    <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                        runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last"
                                        OnClick="LastRecordImageButton_Click">
                                                      <i class="fa fa-fast-forward"></i>
                                    </asp:LinkButton>
                                    &nbsp;  &nbsp; &nbsp;
                                </div>

                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />

                            </div>
                        </div>
                        <div class="card-body" style="padding-bottom: 0px">
                            <div class="contentHolder">

                                <div class="pTop5">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblVcpName" runat="server" Text="Vcp Name" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="txtVcpName" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="200" SkinID="CustomWidthTextbox" m></asp:TextBox>
                                            <asp:HiddenField ID="IdHiddenField" runat="server" />
                                            <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="lblAssignedTerritory" Text="AssignedTerritory" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="txtAssignedTerritory" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:CheckBox ID="chkIsActive" runat="server" AutoPostBack="true" Text="Is Active" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>


    <%--<script data-main="../../JavaScript/rjs/customer-master" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/customer-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script>
        
        //function ShowNextTab() {
        //    debugger;
        //    $('.nav-tabs > .active').next('li').find('a').trigger('click');
        //}
        //$(".forgot-password-link").click(function () {
        //    $('#myTabs li:nth-child(2) a').tab('show')
        //});
        var TabShow = 0;

        //$(document).ready(function () {
        //    TabShow = sessionStorage.getItem("TabShow");
        //    alert(TabShow);
        //});

        function HideSearchButton()
        {
            $("#ctl00_CP_SearchButton").show();
            $("#ctl00_CP_TripLogSearchButton").hide();

            $("#ctl00_CP_Li3").removeClass("active");
            $("#ctl00_CP_Li2").removeClass("active");
            $("#ctl00_CP_TripLogWise").removeClass("tab-pane active").addClass("tab-pane");
            $("#ctl00_CP_TripSummaryWise").removeClass("tab-pane").addClass("tab-pane active");
            $("#ctl00_CP_TripSummarywiseDetails").removeClass("tab-pane active").addClass("tab-pane");
        }

        function HideSearchButton1() {
            $("#ctl00_CP_SearchButton").show();
            $("#ctl00_CP_TripLogSearchButton").hide();

            $("#ctl00_CP_Li3").removeClass("active");
            $("#ctl00_CP_Li1").removeClass("active");
            $("#ctl00_CP_TripLogWise").removeClass("tab-pane active").addClass("tab-pane");
            $("#ctl00_CP_TripSummaryWise").removeClass("tab-pane active").addClass("tab-pane ");
            $("#ctl00_CP_TripSummarywiseDetails").removeClass("tab-pane").addClass("tab-pane active");
        }

        function ShowSearchButton() {
            $("#ctl00_CP_SearchButton").hide();
            $("#ctl00_CP_TripLogSearchButton").show();

            $("#ctl00_CP_TripLogWise").removeClass("tab-pane").addClass("tab-pane active");
            $("#ctl00_CP_TripSummaryWise").removeClass("tab-pane active").addClass("tab-pane ");
            $("#ctl00_CP_TripSummarywiseDetails").removeClass("tab-pane active").addClass("tab-pane");
        }
    </script>


    <%-- <script data-main="../../../JavaScript/rjs/builtjs/customer-master-built" src="../../../JavaScript/rjs/require.js"></script>--%>


    <%--    <script type="text/javascript" language="javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined) {
                args.set_errorHandled(true);
            }
        }
    </script>--%>
</asp:Content>
