<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Transport_TransportStudentList, App_Web_tu25r3mq" 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 Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="221"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                            <div class="himsBoxContent card-body">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="TransportLabel" runat="server" Text="Transport"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="TransportDropDownList" SkinID="CustomWidthDropDownList"
                                                Class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="TransportDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchBusRouteLabel" runat="server" Text="Bus Route"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchBusRouteDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="SearchBusRouteDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchBusDestinationRouteLabel" runat="server" Text="Pickup / Drop Point">
                                            </asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchBusRouteDestinationDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchPickupDropPointLabel" runat="server" Text="Pickup / Drop Point"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchPickupDropPoinTextBox" 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:Label ID="OrganizationLabel" runat="server" Text="Organization"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                onmouseleave="showHideTooltip()" class="form-control" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchClassLabel" runat="server" Text="Class"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchClassDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                AutoPostBack="true" OnSelectedIndexChanged="SearchClassDropDownList_OnSelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchDivisionLabel" runat="server" Text="Division"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="SearchDivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentSearchIdNoLabel" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5 display-flex">
                                            <asp:TextBox ID="StudentSearchIdNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="150" AutoPostBack="true"
                                                OnTextChanged="StudentSearchIdNoTextBox_TextChanged">
                                            </asp:TextBox>
                                            <asp:ImageButton SkinID="FindImage" ToolTip="Student Search" ID="StudentSearchIdNoImageButton"
                                                ImageUrl="~/Images/icons/icon_find.gif" runat="server" OnClick="StudentIdNoImageButton_Click" />
                                            <asp:HiddenField ID="StudentSearchIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="StudentSearchNameLable" runat="server" Text="Name"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="StudentSearchNameTextBox" 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:Label ID="Label1" runat="server" Text=""></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <br />
                                            <asp:CheckBox ID="FindDuplicateCheckBox" Font-Bold="true" runat="server" Text="Find Duplicate" AutoPostBack="true" OnCheckedChanged="FindDuplicateCheckBox_CheckedChanged" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <br />
                                            <asp:CheckBox ID="Mobile_CheckBox" runat="server" Text="Send Alert" OnCheckedChanged="Mobile_CheckBox_CheckedChanged" AutoPostBack="true" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SUIDLabel" runat="server" Text="SUID"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SUIDTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="150"> </asp:TextBox>
                                        </div>
                                    </div>
                                    <div runat="server" id="DivMobile" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="SMSChckBox" runat="server" Text="SMS" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="MailCheckBox" runat="server" Text="Mail" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="MobileCheckBox" runat="server" Text="Mobile App" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="fLeft pRight5">
                                                <asp:CheckBox ID="WhatsAppCheckBox" runat="server" Text="WhatsApp" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-12">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SubjectLabel" runat="server" Text="Subject" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SubjectTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="1000"></asp:TextBox>
                                            </div>
                                        </div>
                                        <%-- <div class="pTop5 col-md-12 pb5">
                                            <asp:Label ID="LFieldsLabel" Text="Fields : " ForeColor="BlueViolet" runat="server" Font-Bold="true" Visible="false"></asp:Label>
                                            <asp:Label ID="TFieldsLabel" runat="server"></asp:Label>
                                        </div>--%>
                                        <div class="outerBox pTop5 col-md-12">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="MessageLabel" runat="server" Text="Message" SkinID="MandatoryLabel"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="MessageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    Height="50px" SkinID="MultilineTextBox" runat="server" MaxLength="1000"
                                                    TextMode="MultiLine" OnTextChanged="MessageTextBox_TextChanged" AutoPostBack="True"></asp:TextBox>
                                                <div id="CharCountDiv" runat="server">
                                                    <asp:Label ID="ForCharLabel" runat="server" Text="Number Of Character :"></asp:Label>
                                                    <asp:Label ID="NumberOfCharLabel" runat="server" Font-Bold="True"></asp:Label>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                        <asp:Label ID="ForMessageLabel" runat="server" Text="Number Of Message :"></asp:Label>
                                                    <asp:Label ID="NumberOfMessageLabel" runat="server" Font-Bold="True"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 alignCenter col-md-12">
                                            <div class="cBoth"></div>
                                            <br />
                                            <div class="cBoth"></div>
                                            <br />
                                            <asp:Button ID="SendButton" runat="server" Text="&#xf1d8; Send" SkinID="CustomButton"
                                                OnClick="SendButton_Click" CssClass="btn-send btn fas" />
                                            <div class="cBoth"></div>
                                            <br />
                                        </div>
                                    </div>
                                    <div class="alignCenter col-md-12 pTop15 pb5">
                                        <asp:Button ID="SearchButton" runat="server" Text="&#xf002; Search" OnClick="SearchButton_Click"
                                            SkinID="0" CssClass="btn-search btn fas" />
                                        <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetSearchControls_Click"
                                            meta:resourcekey="ClearButtonResource1" SkinID="0" CssClass="btn-reset btn fas" />
                                        <asp:Button ID="ExportButton" Text="&#xf093; Export" CssClass="btn-examcommon btn fas" Enabled="false" SkinID="0" runat="Server" OnClick="ExportButton_Click" />
                                    </div>
                                    <div id="TransportStudentListGridDiv" runat="server" visible="false">
                                        <div class="himssuHeader7WireBox col-md-12 pTop5">
                                            <%--<div class="himssuHeader1WireBox width-100 pb5 mt2">
                                                <div class="himsBoxContent pTop15 col-md-12">--%>
                                            <div class="himsBoxHeader" id="StudentDiv" 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="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                <asp:ListItem Text="50" Value="50" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                <asp:ListItem Text="200" Value="200"></asp:ListItem>
                                                                <asp:ListItem Text="500" Value="500"></asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:Label ID="StudentListCountLabel" runat="server" Visible="false"></asp:Label>
                                                        </div>
                                                        <div class="col-md-7">
                                                            <uc1:GridViewPager ID="TransportStudentListGridView_GridViewPager" runat="server" OnFirstRecordClick="TransportStudentListGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="TransportStudentListGridView_GridViewPager_LastRecordClick" OnNextRecordClick="TransportStudentListGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="TransportStudentListGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="TransportStudentListGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="TransportStudentListGridView" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="table-responsive">
                                                <asp:UpdatePanel ID="UpdatePanelgrid" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <asp:GridView ID="TransportStudentListGridView" runat="server" AutoGenerateColumns="False"
                                                            CssClass="table table-striped table-bordered" AllowPaging="true" PageSize="50" SkinID="" ShowHeader="true" PagerSettings-Visible="false"
                                                            DataKeyNames="SUID,StudentId,OrgId,StudentCode,EMail,WhatsAppContactNo" EmptyDataText="No records Found !!!">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Select" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="2%"
                                                                    ItemStyle-Wrap="true">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" Enabled="true" onclick="CheckAll(this);" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                            <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <%--<asp:TemplateField HeaderText="SUID" ItemStyle-Width="8%" SortExpression="SUID" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SuidLable" runat="server" Text='<%# Bind("SUID") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>--%>
                                                                <asp:TemplateField HeaderText="Transport" ItemStyle-Width="9%" SortExpression="Transport" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TransportLable" runat="server" Text='<%# Bind("Transport") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Organization" ItemStyle-Width="14%" SortExpression="Organization" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="OrganizationLable" runat="server" Text='<%# Bind("Organization") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Student ID" ItemStyle-Width="10%" SortExpression="StudentCode" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentCodeLable" runat="server" Text='<%# Bind("StudentCode") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <%--<asp:TemplateField HeaderText="Department Name" ItemStyle-Width="5%" SortExpression="DepartmentName" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DepartmentLable" runat="server" Text='<%# Bind("Department") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>--%>
                                                                <asp:TemplateField HeaderText="Class/Division" ItemStyle-Width="4%" SortExpression="Class" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ClassNameLable" runat="server" Text='<%# Bind("Class") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Student Name" ItemStyle-Width="20%" SortExpression="StudentName" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentNameLable" runat="server" Text='<%# Bind("StudentName") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Contact No" ItemStyle-Width="7%" SortExpression="ContactNo" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ContactNoLable" runat="server" Text='<%# Bind("ContactNo") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Pickup Bus Route" ItemStyle-Width="10%" SortExpression="BusRoute" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="BusRouteLable" runat="server" Text='<%# Bind("PickUpBusRoute") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Pickup Point" ItemStyle-Width="7%" SortExpression="BusRoutePickupPoint" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="BusRoutePickupPointLable" runat="server" Text='<%# Bind("BusRoutePickupPoint") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Drop Bus Route" ItemStyle-Width="10%" SortExpression="BusRoute" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="DropBusRouteLable" runat="server" Text='<%# Bind("DropBusRoute") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Drop Point" ItemStyle-Width="7%" SortExpression="BusRouteDropPoint" HeaderStyle-HorizontalAlign="Left"
                                                                    ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="BusRouteDropPointLable" runat="server" Text='<%# Bind("BusRouteDropPoint") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>

