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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/Common/Transport/TransportDetailBoxControl.ascx" TagName="TransportControl" TagPrefix="Transport" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims1" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims2" %>



<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
             <style type="text/css">
                #ctl00_CP_AddRowsToDisplayGridDropDownList
                {
                    height: 2rem;
                    border-radius: 5px
                }
            </style>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <hims1:EmployeeSearchControl ID="EmployeeSearch1" Visible="false" runat="server" />
            <hims2:EmployeeSearchControl ID="EmployeeSearch2" Visible="false" runat="server" />
            <asp:HiddenField ID="ButtonIdHiddenField" runat="server" />
            <asp:HiddenField ID="IndexHiddenField" runat="server" />
            <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="106"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <Transport:TransportControl ID="TransportUserControl" runat="server" Visible="true" />
                                <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" style="margin-top: -32px">
                                                    <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">
                                        <asp:Panel ID="DetailPanel1" runat="Server">
                                            <div class="contentHolder">
                                                
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchRouteCodeLabel" Text="Route Code" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SearchRouteCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" Width="150px" onmouseenter="showHideTooltip()" MaxLength="50"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchTitleLabel" runat="server" Text="Name"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SearchTitleTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" Width="150px" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchRouteNumberLabel" Text="Route Number" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SearchRouteNumberTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                            Width="150px" onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)" onblur="return isNumberKey(event)"></asp:TextBox>
                                                    </div>
                                                </div>
                                               
                                                <div class="alignCenter col-md-12 middle pTop5">
                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" CssClass="btn-search btn fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0"  CssClass="btn-reset btn fas" />
                                                    <asp:Button ID="SearchPrintButton" runat="server" SkinID="0" Text="&#xf15b; Print" class="form-control" OnClick="SearchPrintButton_Click" CssClass="btn btn-report fas"/>
                                                </div>

                                             
                                                 


                                                
                                                  
                                                <div id="Div2" class="himssuHeader7WireBox col-md-12 pTop5" runat="server">
                                                    <div id="BusRouteMasterListDetailDiv" runat="server" visible="false">
                                                        
                                                        <div class="himsBoxHeader" id="BusRouteMasterListDiv" visible="false" runat="server">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="headerText">
                                                                    <div>
                                                                        <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="true" />
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-12 padd-0">

                                                                    <div class="col-md-5">
                                                                        <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                        <asp:DropDownList ID="AddRowsToDisplayGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="AddRowsToDisplayGridDropDownList_SelectedIndexChanged">
                                                                            <asp:ListItem Text="25" Value="25" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                            <asp:ListItem Text="75" Value="75"></asp:ListItem>
                                                                            <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                <div class="fRight">
                                                                    <uc1:GridViewPager ID="BusRouteMasterGridViewPager" runat="server" ParentGridView="BusRouteMasterGridView"
                                                                        OnFirstRecordClick="BusRouteMasterGridViewPager_FirstRecordClick" OnLastRecordClick="BusRouteMasterGridViewPager_LastRecordClick"
                                                                        OnNextRecordClick="BusRouteMasterGridViewPager_NextRecordClick" OnPrevRecordClick="BusRouteMasterGridViewPager_PrevRecordClick"
                                                                        OnTextBoxValueChange="BusRouteMasterGridViewPager_TextBoxValueChange" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent pTop15" style="padding-bottom:0px">
                                                            <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                <asp:GridView ID="BusRouteMasterGridView" runat="server" AutoGenerateColumns="False"
                                                                    AllowPaging="true" PageSize="25" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                                    CssClass="table table-striped table-bordered table-hover" DataKeyNames="BusRouteId" OnRowDataBound="BusRouteMasterGridView_RowDataBound"
                                                                    OnPageIndexChanging="BusRouteMasterGridView_PageIndexChanging">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderText="">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                                    CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="RouteCode" HeaderText="Route Code" ItemStyle-Width="10%" />
                                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderText="Route Number">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="RouteNumberLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"RouteNumber").ToString()=="0"?"":DataBinder.Eval(Container.DataItem,"RouteNumber") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="BusRoute" HeaderText="Name" ItemStyle-Width="20%" />
                                                                        <asp:BoundField DataField="DriverName" HeaderText="Driver Name" ItemStyle-Width="15%" />
                                                                        <asp:BoundField DataField="DriverMobileNo" HeaderText="Driver Mob. No" ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="ConductorName" HeaderText="Conductor Name" ItemStyle-Width="15%" />
                                                                        <asp:BoundField DataField="ConductorMobileNo" HeaderText="Conductor Mob. No" ItemStyle-Width="10%" />
                                                                        <asp:TemplateField HeaderText="InActive" ItemStyle-Width="5%" SortExpression="BusRouteIsObsolete"
                                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"BusRouteIsObsolete").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                                    <div class="himssuHeader1WireBox card card-box  ">
                                        <div class="himsBoxHeader card-head">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-bus"></i>
                                                    <asp:Label ID="Label1" runat="server" Text="Bus Route Master "></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                            <div class="fRight mt-27 pagination display-flex" style="margin-top: -32px">
                                               
                                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                    runat="server" ImageUrl="~/Images/arrowLlast.gif" 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" ImageUrl="~/Images/arrowLeft.gif" 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" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                    OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                     <i class="fa fa-play"></i>
                                                                </asp:LinkButton>
                                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                    runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                    OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                     <i class="fa fa-fast-forward"></i>
                                                                </asp:LinkButton>
                                                            </div>
                                                      
                                                            &nbsp;&nbsp;<asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                                CssClass="btn btn-back fas" Text="&#xf30a; Back" />
                                                    
                                            </div>

                                           

                                        </div>

                                        

                                        <div class="himsBoxContent card-body" style="padding-bottom:0px">
                                            <asp:Panel ID="DetailPanel" runat="Server">
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="RouteCodeLabel" Text="Route Code" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="RouteCodeTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" CssClass="form-control" onmouseenter="showHideTooltip()" MaxLength="50"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="RouteNumberLabel" Text="Route Number" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="RouteNumberTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                Width="150px" onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)" onblur="return isNumberKey(event)"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                  
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="BusRouteLabel" Text="Bus Route" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="BusRouteTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" CssClass="form-control" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                            <asp:HiddenField ID="DestinationHiddenField" runat="server" />
                                                        </div>
                                                    </div>
                                                    
                                                    <div class="cBoth"></div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DriverCodeLabel" runat="server" Text="Driver Code"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5 display-flex">
                                                            <asp:TextBox ID="DriverCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                                AutoPostBack="true" OnTextChanged="DriverCodeTextBox_TextChanged">
                                                            </asp:TextBox>
                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="DriverCodeImageButton"
                                                                runat="server" ImageUrl="~/Images/icons/icon_find.gif" />
                                                            <asp:HiddenField ID="DriverIdHiddenField" runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DriverNameLabel" Text="Driver Name" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="DriverNameTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="50"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DriverMobileNoLabel" Text="Driver Mobile No" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="DriverMobileNoTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                   
                                                    <div class="cBoth"></div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ConductorCodeLabel" runat="server" Text="Conductor Code"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5 display-flex">
                                                            <asp:TextBox ID="ConductorCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                                AutoPostBack="true" OnTextChanged="ConductorCodeTextBox_TextChanged">
                                                            </asp:TextBox>
                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="ConductorCodeImageButton"
                                                                runat="server" ImageUrl="~/Images/icons/icon_find.gif" />
                                                            <asp:HiddenField ID="ConductorIdHiddenField" runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ConductorNameLabel" Text="Conductor Name" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="ConductorNameTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="50"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ConductorMobileNoLabel" Text="Conductor Mobile No" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="ConductorMobileNoTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    
                                                    <div class="cBoth"></div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SupervisorCodeLabel" runat="server" Text="Supervisor Code"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5 display-flex">
                                                            <asp:TextBox ID="SupervisorCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                                AutoPostBack="true" OnTextChanged="SupervisorCodeTextBox_TextChanged">
                                                            </asp:TextBox>
                                                            <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="SupervisorCodeImageButton"
                                                                runat="server" ImageUrl="~/Images/icons/icon_find.gif" />
                                                            <asp:HiddenField ID="SupervisorIdHiddenField" runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SupervisorNameLabel" Text="Supervisor Name" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="SupervisorNameTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="50"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SupervisorMobileNoLabel" Text="Supervisor Mobile No" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="SupervisorMobileNoTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                SkinID="CustomWidthTextBox" onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                  
                                                    <div class="cBoth"></div>
                                                    <div id="SupervisorDiv" class="himssuHeader6WireBox col-md-12" runat="server" visible="true">
                                                        <div class="himsBoxHeader card-head inner" id="Div81" runat="server" visible="True" style="padding-top:6px">

                                                            <div class="himsBoxTitle">
                                                                <div class="gridHeaderText" style="margin-bottom:-4px">
                                                                    <header>
                                                                        <asp:Label ID="Label61" Text="Supervisor Details" runat="server" />
                                                                    </header>
                                                                </div>
                                                                <div class="fRight mt-27">
                                                                    <asp:Button ID="AddButton1" runat="server" SkinID="0" class="btn btn-add fas" Text="&#xf067; Add" OnClick="AddButton1_Click"/>
                                                                </div>
                                                        </div>
                                                    </div>
                                                      <div class="himsBoxContent card-body table-responsive">
                                                         <asp:GridView ID="SupervisorAssignedToGridView" runat="server" AutoGenerateColumns="False" DataKeyNames="EmployeeId"
                                                         CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" OnRowCommand="SupervisorAssignedToGridView_RowCommand">
                                                             <Columns>
                                                                 
                                                                 <asp:BoundField DataField="SourceCode" HeaderText="Code" />  
                                                                 <asp:BoundField DataField="SourceName" HeaderText="Name" />                                                                
                                                                <asp:TemplateField HeaderText="Delete" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%"
                                                                    ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClientClick="if(confirm('Are You Sure to delete?')==true){ return true;} else{ return false;}"
                                                                            CommandName="REMOVE_ITEM" CommandArgument='<%# Container.DataItemIndex+1 %>' ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                        
                                                    <div class="cBoth"></div>
                                                    <div class="outerBox11 pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="RemarkLabel" Text="Remark" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextBox"
                                                               CssClass="form-control" onmouseenter="showHideTooltip()" MaxLength="100" TextMode="MultiLine"></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3" style="margin-bottom: 15PX">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="VehicleLabel" Text="Vehicle" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="VehicleDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="BusRouteOrderIndexLabel" Text="Order Index" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="BusRouteOrderIndexTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                Width="60px" onmouseenter="showHideTooltip()" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:CheckBox ID="BusRouteObsoleteCheckBox" runat="server" Text="InActive" />
                                                        </div>
                                                    </div>
                                                    
                                         <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true">
                                               <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                                             
                                                 <div class="outerBox pTop5 col-md-3" id="divTemplate" runat="server" visible="true">
                                                    <div class="controlLabelWidth">
                                                        <asp:HyperLink ID="HyperLink1" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/BusRouteList_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                        <asp:HyperLink ID="HyperLink2" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/BusRouteList_Import_Template.csv" Visible="false" CssClass="pointer fas"></asp:HyperLink>
                                                    </div>
                                                 </div>     
                                                  <div class="outerBox pTop5 col-md-3" id="divFileUpload" runat="server" visible="true">
                                                    <div class="controlLabelWidth">
                                                        <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                            <i class="fa fa-arrow-down"></i>Browse</a>
                                                        <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                          <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel"
                                                           SkinID="0" CssClass="fas btn btn-examcommon" OnClick="ImportFromExcelButton_Click" />
                                                    </div>
                                                    <asp:Label ID="Label4" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                        <asp:Label ID="SuccessMsg" runat="server" ></asp:Label>
                                                      
                                                 </div>

                                                             <div style="float:right">
                                                                <asp:Button ID="AddButton" runat="server" CssClass="btn btn-add fas" OnClick="AddButton_Click" Text="&#xf067; Add" SkinID="0" />
                                                            </div>
                                                            <div class="col-md-3 pTop5" style="float:right">
                                                                <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control" runat="server" AutoPostBack="false">
                                                                    <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                    <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:DropDownList>
                                                            </div>

                                                           <br /> <br />
                                                           
                                                                <div style="float:right;">
                                                                 <asp:Button ID="ApplyButton" runat="server" SkinID="0" Text="Apply All" OnClick="ApplyButton_Click" CssClass="btn btn-assign fas"/>
                                                                </div>
                                                                <div style="float:right;padding-left:2px">
                                                                     <asp:TextBox ID="ApplyTextBox" runat="server" SkinID="CustomWidthTextBox"></asp:TextBox>
                                                                </div>
                                                                <div style="float:right">
                                                                <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="ApplyDropDownList_SelectedIndexChanged"></asp:DropDownList>
                                                                </div>
                                                               
                                                          
                                                        </div>

                                                         <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                                           <div class="gridHeaderText">
                                                                <header>
                                                                  
                                                                     <asp:Label ID="BusRouteMasterHeadLabel" runat="server" Text="Bus Route List"></asp:Label>
                                                                </header>
                                                           </div>
                                                         </div>

                                                        <div class="himsBoxContent card-body">
                                                            <asp:GridView ID="BusRouteDestinationMasterGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive"
                                                                AutoGenerateColumns="False" EmptyDataText="No Records Found !!" AllowPaging="false" DataKeyNames="Id,Index"
                                                                CssClass="table table-striped table-bordered table-hover" ShowHeader="True" OnRowDeleting="ImmunizationChartGridView_RowDeleting">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="NameTextBox" runat="server" MaxLength="100" Text='<%# Bind("Title") %>'
                                                                                Width="100%" SkinID="MultiLineTextBox"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Distance(Km)" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="DistanceTextBox" runat="server" MaxLength="5" Text='<%# Bind("Distance") %>'
                                                                                Width="100%" SkinID="MultiLineTextBox"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="AmountTextBox" runat="server" Width="100%" MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)"
                                                                                onKeypress="javascript:return MaskDecimal(event,10,2)" Text='<%# DataBinder.Eval(Container.DataItem,"Amount").ToString()=="0"? "0.00":Eval("Amount") %>'></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Pickup Time" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="PickupTimeTextBox" runat="server" MaxLength="50" Text='<%# Bind("PickupTime") %>'
                                                                                SkinID="MultiLineTextBox" Width="100%"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Drop Time" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="DropTimeTextBox" runat="server" MaxLength="50" Text='<%# Bind("DropTime") %>'
                                                                                SkinID="MultiLineTextBox" Width="100%"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Order Index" ItemStyle-Width="10%" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="OrderIndexTextBox" runat="server" Width="100%" onkeypress="return isNumberKey(event)"
                                                                                Text='<%# DataBinder.Eval(Container.DataItem,"OrderIndex").ToString()=="0"? "":Eval("OrderIndex") %>'></asp:TextBox>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="InActive" ItemStyle-Width="10%"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Bind("IsObsolete") %>' />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ShowHeader="true" HeaderText="Delete">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                </div>
                               
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
         
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/bus-route-master-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/bus-route-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
