<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Transport_AttendanceRegister, App_Web_ooiql3fj" 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/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/Transport/TransportDetailBoxControl.ascx" TagName="TransportControl" TagPrefix="Transport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent card-body">
                                        <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="himssuHeader2WireBox">
                        <div class="contentHolder">
                            <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-search"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Apply"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex">
                                        <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                    </div>
                                </div>
                                <div class="himsBoxContent card-body" style="padding-bottom: 7px">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">

                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchBusRouteLabel" runat="server" Text="Bus Route" CssClass="mandatory"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="SearchBusRouteDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label2" runat="server" Text="Attendance Date" CssClass="mandatory"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl runat="server" ID="AttendanceDatePickerControl" DisplayDatePicker="true" />
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop15 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="PickUpCheckBox" runat="server" Text="Present Pickup"></asp:CheckBox>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop15 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:CheckBox ID="DropCheckBox" runat="server" Text="Present Drop"></asp:CheckBox>
                                                    </div>
                                                </div>

                                                <div class="alignCenter pTop10 col-md-12 ">
                                                    <asp:Button ID="ApplyButton" Text="&#xf044; Apply" runat="Server" OnClick="ApplyButton_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                                </div>


                                            </asp:Panel>
                                            <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server" visible="false" style="width: 100%; height: 100%">
                                                <div id="GridViewPagerDiv" runat="server" visible="True">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="gridHeaderText fLeft">
                                                            <asp:Label ID="TNoteLabel" Text="" runat="server" />
                                                            <asp:Label ForeColor="Red" ID="NoteLabel" Text="" runat="server" />

                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server" style="display: none">
                                                    <%-- <div class="gridHeaderText">
                                                                <header>
                                                                     <asp:Label ID="AssignRouteLabel" runat="server" Text="Attendance Register"></asp:Label>
                                                                </header>
                                                            </div>--%>
                                                </div>

                                                <div class="himsBoxContent card-body table-responsive">
                                                    <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                        visible="False">
                                                    </div>
                                                    <asp:GridView ID="TransportRegisterGridView" runat="server" AutoGenerateColumns="False"
                                                        EmptyDataText="No Records Found !!"
                                                        AllowPaging="false"
                                                        ShowHeader="true"
                                                        DataKeyNames="SourceId"
                                                        CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                            <asp:BoundField DataField="RollNo" HeaderText="Roll No" ItemStyle-Width="7%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:BoundField DataField="Code" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="22%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:BoundField DataField="Class" HeaderText="Class" ItemStyle-Width="6%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:BoundField DataField="PickUpPointname" HeaderText="PickUp Pointname" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:BoundField DataField="DRopPointname" HeaderText="Drop Pointname" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                            <asp:TemplateField ItemStyle-Wrap="true" ItemStyle-Width="10%">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderIsPresentPickCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderIsPresentPickCheckBox_CheckedChanged" />
                                                                        <span></span>
                                                                        Present PickUp
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="IsPresentPickCheckBox" runat="server" Checked='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.TransportBE.AttendanceRegister)Container.DataItem).IsPresentPickup %>' OnCheckedChanged="IsPresentPickCheckBox_CheckedChanged" AutoPostBack="true" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField ItemStyle-Wrap="true" ItemStyle-Width="9%">
                                                                <HeaderTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderIsPresentDRopCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderIsPresentDRopCheckBox_CheckedChanged" />
                                                                        <span></span>
                                                                        Present Drop
                                                                    </label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="IsPresentDropCheckBox" runat="server" Checked='<%#((Sapphire.Vidyalaya.BusinessEntity.Business.TransportBE.AttendanceRegister)Container.DataItem).IsPresentDrop %>' OnCheckedChanged="SelectCheckBox_OnCheckedChanged" AutoPostBack="true" />
                                                                        <span></span>
                                                                    </label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerSettings Visible="False" />
                                                    </asp:GridView>
                                                </div>
                                            </div>

                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>

                        </div>
                    </div>


                </div>
                </tr>
                    </table>
                    <%--HEDP History Ends Here--%>
            </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/Transport-register-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/Transport-register")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
