<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Transport_AttendanceRegister, App_Web_qstd3kb0" 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="card card-box col-md-12 p-0">
                        <div class="himssuHeader2WireBox">
                            <%--Added for mantis : 39195--%>
                            <div class="contentHolder">
                                <asp:Panel ID="Panel1" runat="Server">
                                    <div class="contentHolder">
                                        <div class="tableContainer">
                                            <cc1:TabContainer Width="100%" ID="TransportRegisterTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                                meta:resourcekey="TransportRegisterTabContainerResource1" ActiveTabIndex="0">
                                                <cc1:TabPanel Width="100%" ID="TransportRegisterTabContainerPanel" runat="server" HeaderText="Transport Attendance Register">
                                                    <HeaderTemplate>
                                                        <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                            <li class="fancyTab">
                                                                <a href="#"><i class="fas fa-money-bill-alt"></i>&nbsp;Transport Attendance Register</a>
                                                            </li>
                                                        </ul>
                                                    </HeaderTemplate>
                                                    <ContentTemplate>
                                                        <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>
                                                        <%--Added for mantis : 39195--%>
                                                    </ContentTemplate>
                                                </cc1:TabPanel>

                                                <cc1:TabPanel Width="100%" ID="TabPanel1" runat="server" HeaderText="Transport Register">
                                                    <HeaderTemplate>
                                                        <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                            <li class="fancyTab">
                                                                <a href="#"><i class="fas fa-money-bill-alt"></i>&nbsp;Update Transport Attendance</a>
                                                            </li>
                                                        </ul>
                                                    </HeaderTemplate>
                                                    <ContentTemplate>

                                                        <div class="col-md-3 radiobtn" style="margin-top: 5px">
                                                            <asp:CheckBox ID="StudentRegisterCheckBox" runat="server" Text="Student Register" />
                                                        </div>

                                                        <div class="col-md-3 radiobtn" style="margin-top: 5px">
                                                            <asp:CheckBox ID="StudentGatePassCheckBox" runat="server" Text="Student Gate Pass" />
                                                        </div>

                                                        <div class="himsBoxContent card-body" style="padding-bottom: 7px">
                                                            <asp:Panel ID="Panel2" runat="Server">
                                                                <div class="contentHolder">

                                                                    <asp:Panel ID="Panel3" runat="Server">

                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="UpdateAttendanceDate" runat="server" Text="Attendance Date" CssClass="mandatory"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <Date:DatePickerControl runat="server" ID="UpdateAttendanceDatePickerControl" DisplayDatePicker="true" />
                                                                            </div>
                                                                        </div>
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="RouteTypeLabel" Text="Route Type" runat="server"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList ID="RouteTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control" OnSelectedIndexChanged="RouteTypeDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                                    <asp:ListItem Value="1" Text="Pickup" Selected="True"></asp:ListItem>
                                                                                    <asp:ListItem Value="2" Text="Drop"></asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>

                                                                        <div class="alignCenter pTop10 col-md-12 ">
                                                                            <asp:Button ID="UpdateButton" Text="&#xf044; Update" runat="Server" SkinID="0" CssClass="btn btn-assign fas" OnClick="UpdateButton_Click" />
                                                                        </div>
                                                                        <div class="alert alert-info col-md-12" style="margin-top: 10px;">
                                                                            <i class="material-icons">info</i>
                                                                            <asp:Label ID="AttendanceNoteLabel" runat="server" Text="Note : When Route Type is selected as drop then both checkbox Student Register and Student Gate Pass need to be checked to get proper data."></asp:Label><br />
                                                                        </div>
                                                                    </asp:Panel>
                                                                </div>
                                                            </asp:Panel>
                                                        </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </cc1:TabPanel>
                                            </cc1:TabContainer>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </div>
                <%--HEDP History Ends Here--%>
            </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>
