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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ 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="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
               
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">                                    
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="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">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="VehicleAlertPanel" runat="server" meta:resourcekey="VehicleAlertPanelResource1">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                     <header>
                                                        <i class="fas fa-search"></i>
                                                    <asp:Label ID="TransportAlertLabel" runat="server" Text="Transport Alert"></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="alert alert-info col-md-12">
                                                     <i class="material-icons">info</i>
                                                         <asp:Label ID="NoteLabel" runat="server" Text="Note : It include record due for service / renew 1 month from seleced date."
                                                             ></asp:Label><br />
                                                 </div>
                                           
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="UptoDateLabel" runat="server" Text="Upto Date"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="UptoDatePickerControl" runat="server" OnTextChanged="UptoDate_OnTextChanged" />
                                                    </div>
                                                </div>
                                              
                                                <div id="VehicleAlertListDiv" runat="server">
                                                    <div class="himssuHeader1WireBox col-md-12">
                                                        <div class="himsBoxTitle">
                                                            <div class="headerText">
                                                                <asp:Label ID="VehicleAlertLabel" runat="server" Text="Vehicle Alert" Font-Bold="true"></asp:Label>
                                                            </div>
                                                        </div>
                                                      
                                                        <div class="himsBoxContent card-body table-responsive">
                                                            <asp:GridView runat="server" ID="VehicleAlertListGridView" AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" AllowPaging="false" CssClass="table table-striped table-bordered table-hover"
                                                                ShowHeader="True" meta:resourcekey="VehicleAlertListGridViewResource1">
                                                                <Columns>
                                                                    <asp:BoundField DataField="VehicleName" HeaderText="Vehicle" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="ServiceCenter" HeaderText="Service Center" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="ServiceCenterContact" HeaderText="Service Center Contact" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderText="Last Service Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LastServiceDate" runat="server" Text='<%# Bind("LastServiceDate", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Next Service Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NextServiceDate" runat="server" Text='<%# Bind("NextServiceDate", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                               
                                                <div class="alignCenter pTop5 col-md-12 middle"> 
                                                <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0"  CssClass="btn btn-examcommon fas"/>
                                                    </div>
                                                <div id="VehicleDocumentsListDiv" runat="server">
                                                    <div class="himssuHeader1WireBox col-md-12">
                                                        <div class="himsBoxTitle">
                                                            <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" runat="server">
                                                                 <div class="gridHeaderText">
                                                                     <header>
                                                                        <asp:Label ID="AssignRouteLabel" runat="server" Text="Vehicle Documents"></asp:Label>
                                                                     </header>
                                                                </div>
                                                            </div>

                                                          <%--  <div class="headerText">
                                                                 <header>
                                                                     <i class="fas fa-search"></i>
                                                                <asp:Label ID="VehicleDocumentsLabel" runat="server" Text="Vehicle Documents" Font-Bold="true"></asp:Label>
                                                                     </header>
                                                            </div>--%>
                                                        </div>
                                                      
                                                        <div class="himsBoxContent card-body">
                                                            <asp:GridView runat="server" ID="VehicleDocumentsListGridView" Width="100%" AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" AllowPaging="false" CssClass="table table-striped table-bordered"
                                                                ShowHeader="True" meta:resourcekey="VehicleDocumentsListGridViewResource1">
                                                                <Columns>
                                                                      <asp:TemplateField HeaderText="Vehicle number" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="RegistrationnumberLabel" runat="server" Text='<%#Eval("Registrationnumber")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                     <asp:TemplateField HeaderText="Vehicle Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="VehicleNameLabel" runat="server" Text='<%#Eval("VehicleName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                      <asp:TemplateField HeaderText="Vehicle Document Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="VehicleDocumentNameLabel" runat="server" Text='<%#Eval("VehicleDocumentName")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                      <asp:TemplateField HeaderText="Validity In Days" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ValidityInDaysLabel" runat="server" Text='<%#Eval("ValidityInDays")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Last Renew Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LastRenewDate" runat="server" Text='<%# Bind("LastRenewDate", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Next Renew Date" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="NextRenewDate" runat="server" Text='<%# Bind("NextRenewDate", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </tr>
                    </table>
                </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>