<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Transport_VehicleMaster, 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="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <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">
                    <Transport:TransportControl ID="TransportUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <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="SearchTitleLabel" Text="Name" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchTitleTextBox" 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="SearchVehicleTypeLabel" Text="Vehicle Type" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchVehicleTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchRegistrationNumberLabel" runat="server" Text="Registration Number"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchRegistrationNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                            </div>
                                        </div>

                                        <div class="alignCenter col-md-12 pTop5">
                                            <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" SkinID="0" OnClick="ResetButton_Click" CssClass="btn-reset btn fas" />
                                        </div>

                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12 pTop5" runat="server">
                                        <div id="VehicleMasterDetailDiv" visible="false" runat="server">

                                            <div class="himsBoxHeader" id="VehicleMasterDiv" visible="false" 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="25" Value="25" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                <asp:ListItem Text="75" Value="75"></asp:ListItem>
                                                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                        <div class="fRight">
                                                            <uc1:GridViewPager ID="VehicleMasterGridView_GridViewPager" runat="server" OnFirstRecordClick="VehicleMasterGridView_GridViewPager_FirstRecordClick"
                                                                OnLastRecordClick="VehicleMasterGridView_GridViewPager_LastRecordClick" OnNextRecordClick="VehicleMasterGridView_GridViewPager_NextRecordClick"
                                                                OnPrevRecordClick="VehicleMasterGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="VehicleMasterGridView_GridViewPager_TextBoxValueChange"
                                                                ParentGridView="VehicleMasterGridView" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <%--<div class="himsBoxHeader card-head inner" id="Div3" runat="server">
                                                                <div class="gridHeaderText">
                                                                 <header>
                                                                      <asp:Label ID="Label6" runat="server" Text="Vehicle Master"></asp:Label>
                                                                 </header>
                                                                </div>
                                                             </div>--%>

                                            <div class="himsBoxContent pTop15">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                            <asp:GridView ID="VehicleMasterGridView" runat="server" AutoGenerateColumns="False"
                                                                OnRowDataBound="VehicleMasterGridView_RowDataBound" OnPageIndexChanging="VehicleMasterGridView_PageIndexChanging"
                                                                CssClass="table table-striped table-bordered table-hover" AllowPaging="true" PageSize="25" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                DataKeyNames="Id">
                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="RegistrationNumber" HeaderText="Registration Number" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="VehicleTypeName" HeaderText="Vehicle Type" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="NoOfSeats" HeaderText="No Of Seats" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderText="InActive" ItemStyle-Width="5%" SortExpression="IsObsolete"
                                                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="ObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsObsolete").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="VehicleMasterDetailLabel" runat="server" Text="Maintenance"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">

                                <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                    <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                        runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                        OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                        runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                        OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                    </asp:LinkButton>

                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                    &nbsp; 
                                <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                    &nbsp; 
                                <asp:Label ID="ofLabel" Text="of" runat="server" />
                                    &nbsp;  
                                <asp:Label ID="TotalRecord" runat="server" />
                                    &nbsp;
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                        runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                        OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                    </asp:LinkButton>
                                </div>

                                &nbsp;&nbsp; 
                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a; Back" />

                            </div>
                        </div>
                        <div class="himsBoxContent card-body padd-0">
                            <div class="contentHolder">
                                <div class="tableContainer">
                                    <cc1:TabContainer Width="100%" ID="VehicleTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                        meta:resourcekey="VehicleTabContainerResource1" ActiveTabIndex="0">
                                        <cc1:TabPanel Width="100%" ID="Vehicle" runat="server" HeaderText="Vehicle">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-car"></i>&nbsp;Vehicle
                                                    </a>
                                                    </li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="TitleLabel" runat="server" Text="Name" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                runat="server" MaxLength="100" OnTextChanged="TitleTextBox_TextChanged"
                                                                SkinID="CustomWidthTextbox"></asp:TextBox>
                                                            <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                            <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" ClientIDMode="Static" />
                                                            <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" ClientIDMode="Static" />
                                                            <asp:HiddenField ID="ScreenIdHiddenField" runat="server" ClientIDMode="Static" />
                                                            <asp:HiddenField ID="GUIDHiddenField" runat="server" ClientIDMode="Static" />
                                                            <asp:Button runat="server" ID="DownloadDocument" Text="&#xf0c7; Save" OnClick="DownloadDocument_Click"
                                                                ClientIDMode="Static" SkinID="0" CssClass="btn btn-save fas d-none" Style="display: none;" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="RegistrationNumberLabel" runat="server" Text="Registration Number"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="RegistrationNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="VehicleTypeLabel" Text="Vehicle Type" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="VehicleTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="NoOfSeatsLabel" runat="server" Text="No Of Seats"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="NoOfSeatsTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                runat="server" SkinID="CustomWidthTextbox" onkeypress="return isNumberKey(event)"></asp:TextBox>

                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="FuelTypeLabel" Text="Fuel Type" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="FuelTypeDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ServiceCenterLabel" runat="server" Text="Service Center"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="ServiceCenterTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextBox"
                                                                onmouseenter="showHideTooltip()" MaxLength="200" TextMode="MultiLine"
                                                                Height="30px"></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ServiceCenterContactLabel" runat="server" Text="Service Center Contact"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="ServiceCenterContactTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="LastServiceDateLabel" runat="server" Text="Last Service Date"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="LastServiceDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="NextServiceDateLabel" runat="server" Text="Next Service Date"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="NextServiceDateDatepickercontrol" runat="server" />
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:CheckBox ID="InActiveCheckBox" runat="server" Text="InActive" />
                                                        </div>
                                                    </div>

                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="VehicleDocuments" runat="server"
                                            HeaderText="Vehicle Documents">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-file"></i>&nbsp;Vehicle Documents
                                                    </a>
                                                    </li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div id="VehicleDocumentsDiv" class="himssuHeader1WireBox col-md-12" runat="server">
                                                        <div class="himsBoxContent card-body">
                                                            <asp:GridView ID="VehicleDocumentsGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive" AutoGenerateColumns="False"
                                                                EmptyDataText="No Records Found !!" OnRowDataBound="VehicleDocumentsGridView_RowDataBound"
                                                                DataKeyNames="VehicleId,VehicleDocumentId,FileName"
                                                                CssClass="table table-striped table-bordered">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Select">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" OnCheckedChanged="HeaderSelectCheckBox_OnCheckedChanged" runat="server" AutoPostBack="True" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" OnCheckedChanged="SelectCheckBox_OnCheckedChanged" AutoPostBack="True" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Vehicle Document Name">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="VehicleDocumentNameLabel" runat="server" Text='<%# Eval("VehicleDocumentName") %>' />
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="25%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Reminder Required">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsReminderReuiredCheckBox" runat="server" Checked='<%# Eval("IsReminderReuired") %>' Enabled="false" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Validity In Days">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="ValidityInDaysTextBox" SkinID="CustomWidthCheckBox" runat="server"
                                                                                MaxLength="8" onkeypress="javascript:return isNumberKey(this)" Text='<%# DataBinder.Eval(Container.DataItem,"ValidityInDays").ToString()=="0"?"":DataBinder.Eval(Container.DataItem,"ValidityInDays") %>' Enabled="false"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="20%" Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Last Renew Date">
                                                                        <ItemTemplate>
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="LastRenewDatePickerControl" runat="server" Text='<%# Eval("LastRenewDate") %>' Enabled="false" />
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle Width="20%" Wrap="True" />
                                                                    </asp:TemplateField>
                                                                    <%--<asp:BoundField DataField="FileName" HeaderText="File Name" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />--%>
                                                                    <asp:TemplateField HeaderText="File Name">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="FileNameLabel" runat="server" Text='<%# Eval("FileName") %>' />
                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="10%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="File Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:HyperLink ID="UploadedFileHyperLink" runat="server" Text="" CssClass="UploadedgetHyperLink"
                                                                                Target="_blank"></asp:HyperLink>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                        ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="TempDownloadFilename" SkinID="CustomWidthCheckBox" runat="server" Visible="false"></asp:TextBox>
                                                                            <asp:LinkButton ID="DownloadLinkButton" runat="server" CommandName="Download" Text="Download" OnClick="DownloadLinkButton_Click" Visible='<%# Convert.ToBoolean(!string.IsNullOrEmpty(Eval("FileName").ToString())) %>'
                                                                                CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Upload File" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <a href="javascript:;" class="btn btn-browser" onclick='OpenFileUploadGrid(<%#Eval("VehicleDocumentId")%>);'>
                                                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                                                            <asp:FileUpload ID="NewUpload" runat="server" onChange="readURLGrid(this);" ClientIDMode="Static" Style="display: none;"  />
                                                                            <asp:ImageButton ID="DocumentRefreshbutton" runat="server" OnClick="DocumentRefreshbutton_Click" ClientIDMode="Static" Style="display: none;"  />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="DeleteuploadedDocumnetImageButton" runat="server" OnClick="DeleteuploadedDocumnetImageButton_Click"
                                                                                ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                    </cc1:TabContainer>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                </tr>
                        <tr>
                            <td class="dashBoardLeftCont" valign="top">&nbsp;</td>
                            <td class="whiteboxpaddingleft row" style="vertical-align: top;" width="100%">&nbsp;</td>
                        </tr>
                </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/vehicle-master-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/vehicle-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
