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

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <input type="hidden" id="hdnSessionid" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="127"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader1WireBox card card-box card-body" style="padding-bottom: 15px;">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-download"></i>
                                        <asp:Label ID="Label4" Text="Import Bus Route" runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="outerBox pTop5 col-md-3">
                            <div class="controlLabelWidth">
                                <asp:HyperLink ID="HyperLink1" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/BusRoute_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                            </div>
                        </div>

                        <div class="col-md-12">
                            <div class="alert alert-info">
                                <span class="pTop5">
                                    <i class="material-icons pos-rel">info</i> |&nbsp;
                                        <b>Note: </b>Only xls format is imported, and also give the sheet name as for <b>Bus Route Import: Sheet1 and Bus Route Detail Import: Sheet2</b>.
                                </span>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox col-md-3 pTop15">
                            <div class="controlLabelWidth">
                                <asp:Label ID="TransportLabel" runat="server" Text="Transport"
                                    SkinID="MandatoryLabel"></asp:Label>
                            </div>
                            <div class="fLeft">
                                <asp:DropDownList ID="TransportDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                    CssClass="form-control" onmouseleave="showHideTooltip()"
                                    onmouseenter="showHideTooltip()">
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop15 col-md-3">
                            <div class="controlLabelWidth">
                                <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                    <i class="fa fa-arrow-down"></i>Browse</a>
                                <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                            </div>
                            <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                        </div>
                        <div class="outerBox pTop15 col-md-6 ">
                            <div class="controlLabelWidth">
                                <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_OnClick" Text="&#xf019; Import Bus Route" CssClass="btn btn-examcommon fas"
                                    SkinID="0" />
                                <asp:Button ID="ImportDetailButton" runat="server" OnClick="ImportDetailButton_Click" Text="&#xf019; Import Bus Route Detail" CssClass="btn btn-examcommon fas"
                                    SkinID="0" />
                            </div>
                        </div>

                        <div class="cBoth">
                        </div>
                        <div class="himssuHeader1WireBox col-md-12">
                            <div class="himsBoxHeader" id="HREmployeeMasterGridViewPagerDiv" runat="server" visible="true">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="gridHeaderText fLeft">
                                        <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                    </div>
                                </div>
                            </div>
                            <div class="himsBoxContent">
                                <div id="Div5" runat="server" class="table-responsive">
                                    <asp:GridView runat="server" ID="BusRouteMasterGridView" AutoGenerateColumns="False"
                                        EmptyDataText="No records available for the seacrh criteria!" DataKeyNames=""
                                        AllowPaging="false" ShowHeader="true" CssClass="table table-striped table-bordered table-hover">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Bus Route">
                                                <ItemTemplate>
                                                    <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("BusRoute") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Route Code">
                                                <ItemTemplate>
                                                    <asp:Label ID="FromDateLabel" runat="server" Text='<%# Eval("RouteCode") %>'
                                                        CssClass="boxEllips" Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Route Number">
                                                <ItemTemplate>
                                                    <asp:Label ID="ToDateLabel" runat="server" Text='<%# Eval("RouteNumber") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Remark">
                                                <ItemTemplate>
                                                    <asp:Label ID="ToDateLabel" runat="server" Text='<%# Eval("Remark") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerSettings Visible="true" />
                                    </asp:GridView>

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

                                    <asp:GridView runat="server" ID="BusRouteDetailGridView" AutoGenerateColumns="False"
                                        EmptyDataText="No records available for the seacrh criteria!" DataKeyNames=""
                                        AllowPaging="false" ShowHeader="true" CssClass="table table-striped table-bordered table-hover">
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Bus Route">
                                                <ItemTemplate>
                                                    <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("BusRoute") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Name">
                                                <ItemTemplate>
                                                    <asp:Label ID="FromDateLabel" runat="server" Text='<%# Eval("Name") %>'
                                                        CssClass="boxEllips" Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Amount">
                                                <ItemTemplate>
                                                    <asp:Label ID="ToDateLabel" runat="server" Text='<%# Eval("Amount") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Pickup Time">
                                                <ItemTemplate>
                                                    <asp:Label ID="ToDateLabel" runat="server" Text='<%# Eval("PickupTime") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Drop Time">
                                                <ItemTemplate>
                                                    <asp:Label ID="ToDateLabel" runat="server" Text='<%# Eval("DropTime") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Order Index">
                                                <ItemTemplate>
                                                    <asp:Label ID="ToDateLabel" runat="server" Text='<%# Eval("OrderIndex") %>' CssClass="boxEllips"
                                                        Width="100px"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerSettings Visible="true" />
                                    </asp:GridView>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../../JavaScript/rjs/import-employee" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/import-employee")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
