<%@ page title="Release Note" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_CustomerSupport_ReleaseNote, App_Web_ydigo3qb" 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/SuperAdminScreenGroup.ascx" TagName="SuperAdminScreenGroupControl" TagPrefix="SuperAdminScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/Alert/AlertDetailBoxControl.ascx" TagName="AlertControl" TagPrefix="Alert" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl"
    TagPrefix="acc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <style>
        .new-card-header{
            width:91% !important;
        }
    </style>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <Triggers>
            <asp:PostBackTrigger ControlID="ExportButton" />
            <asp:PostBackTrigger ControlID="ExportButton1" />
        </Triggers>
        <ContentTemplate>
            <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <SuperAdminScreenGroup:SuperAdminScreenGroupControl EnableViewState="true" ID="ScreenGroupControl"
                                                ScreenGroupId="153" Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">

                    <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" style="margin-top: -32px">
                                        <asp:Button ID="AddNewButtonID" runat="server" SkinID="0" OnClick="AddNewButton_Click"
                                            CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel1" runat="Server">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchFromDateLabel" runat="server" Text="From Date">
                                            </asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <DPC:DatePickerControl ID="SearchFromDateTextBox" runat="server" DisplayDatePicker="true" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchToDateLabel" runat="server" Text="To Date"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <DPC:DatePickerControl ID="SearchToDateTextBox" runat="server" DisplayDatePicker="true" />
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchFromVersionIdLabel" runat="server" Text="From Version Id"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchFromVersionIdTextBox" runat="server" SkinID="CustomWidthTextBox" onkeypress="return isNumberKey(event)"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100">                                           
                                            </asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchToVersionIdLabel" runat="server" Text="To Version Id"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchToVersionIdTextBox" runat="server" SkinID="CustomWidthTextBox" onkeypress="return isNumberKey(event)"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchVersionNumberLabel" runat="server" Text="Version Number"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchVersionNumberTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="alignCenter col-md-12 middle 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" CssClass="btn-reset btn fas" OnClick="ResetButton_Click" />
                                        <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" SkinID="0" CssClass="fas btn btn-examcommon" OnClick="ExportButton_Click" />
                                    </div>

                                    <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div class="himsBoxContent card-body" style="padding-bottom: 0px">
                                            <div id="Div5" runat="server" visible="true" class="table-responsive">
                                                <asp:GridView ID="ReleaseNoteDetailGridView" runat="server" AutoGenerateColumns="False"
                                                    AllowPaging="false" PageSize="10" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                    CssClass="table table-striped table-bordered table-hover" DataKeyNames="Id" OnRowDataBound="ReleaseNoteDetailGridView_RowDataBound">
                                                    <Columns>

                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                            HeaderText="">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                    CausesValidation="false" OnClick="SelectLinkButton_Click" EnableViewState="true"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="Id" HeaderText="ReleaseNoteId" Visible="false" ItemStyle-Width="10%" />
                                                        <asp:BoundField DataField="ReleaseDate" HeaderText="Release Date" ItemStyle-Width="20%" DataFormatString="{0:dd/MM/yyyy}" />
                                                        <asp:BoundField DataField="VersionNumber" HeaderText="Version Number" ItemStyle-Width="15%" />
                                                        <asp:BoundField DataField="VersionId" HeaderText="Version Id" ItemStyle-Width="10%" />

                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>


                                    </div>
                                </div>

                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himssuHeader1WireBox card card-box  ">
                            <div class="himsBoxHeader card-head">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <asp:Label ID="Label1" runat="server" Text="Release Note"></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" OnClick="FirstRecordImageButton_Click"
                                            runat="server" CommandName="Page" CommandArgument="First"
                                            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" 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" OnClick="NextImageButton_Click"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                        <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton" OnClick="LastRecordImageButton_Click"
                                            runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last">
                                                      <i class="fa fa-fast-forward" ></i>
                                        </asp:LinkButton>
                                        &nbsp;  &nbsp; &nbsp;
                                    </div>

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

                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body" style="padding-bottom: 0px">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="ReleaseDateLabel" runat="server" Text="Release Date" CssClass="mandatory">
                                            </asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <DPC:DatePickerControl ID="ReleaseDateTextBox" runat="server" DisplayDatePicker="true" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="VersionNumberLabel" runat="server" SkinID="MandatoryLabel" Text="Version Number"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="VersionNumberTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="VersionIdLabel" runat="server" SkinID="MandatoryLabel" Text="Version Id"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="VersionIdTextBox" runat="server" SkinID="CustomWidthTextBox" onkeypress="return isNumberKey(event)"
                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true">
                                        <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">

                                            <div class="outerBox pTop5 col-md-3" id="divTemplate" runat="server" visible="true">
                                                <div class="controlLabelWidth">
                                                    <asp:HyperLink ID="HyperLink1" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/ReleaseNote_Import_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-6" id="divFileUpload" runat="server" visible="true">
                                                <div class="outerBox pTop5 col-md-6" id="ImportDiv" runat="server">
                                                    <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;" />
                                                    <asp:Button ID="ImportFromExcelButton" runat="server" Text="&#xf019; Import From Excel"
                                                        SkinID="0" CssClass="fas btn btn-examcommon" OnClick="ImportFromExcelButton_Click" />
                                                    <asp:Label ID="Label4" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                    <asp:Label ID="SuccessMsg" runat="server"></asp:Label>
                                                </div>


                                            </div>

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

                                            <div style="float: right">
                                                <asp:Button ID="AddButton" runat="server" CssClass="btn btn-add fas" Text="&#xf067; Add" SkinID="0" EnableViewState="true" OnClick="AddButton_Click" />
                                                <asp:HiddenField runat="server" ID="ButtonIdHiddenField" />
                                            </div>
                                            <div class="col-md-1" style="float: right">
                                                <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList"
                                                    CssClass="form-control" runat="server" AutoPostBack="true">
                                                    <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                    <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                    <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                    <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>

                                            <div class="pTop5" style="float: right; padding-left: 2px">
                                                <asp:TextBox ID="ApplyTextBox" runat="server" SkinID="CustomWidthTextBox"></asp:TextBox>
                                            </div>
                                            <div style="float: right" class="outerBox pTop5 col-md-2">
                                                <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true"></asp:DropDownList>
                                            </div>
                                            <div style="float: right">
                                                <asp:Button ID="ApplyButton" runat="server" SkinID="0" Text="Apply All" OnClick="ApplyButton_Click" CssClass="btn btn-assign fas" />

                                            </div>
                                        </div>

                                        <div class="himsBoxHeader card-head inner new-card-header col-md-11" id="DataGridDiv" runat="server">
                                            <div class="gridHeaderText">
                                                <header>
                                                    <asp:Label ID="ReleaseNoteHeadLabel" runat="server" Text="Release Note List"></asp:Label>
                                                </header>                       
                                            </div> 
                                        </div> 
                                        <div class="col-md-1" style="float:right;">
                                                    <asp:Button ID="ExportButton1" runat="server" Text="&#xf093; Export" CssClass="fas btn btn-examcommon" OnClick="ExportButton1_Click" SkinID="0" Style="float:right" />
                                        </div>                                                    
                                        <asp:HiddenField runat="server" ID="IdHiddenField" />
                                        <div class="himsBoxContent card-body">
                                            <asp:GridView ID="ReleaseNoteAllDetailGridView" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive"
                                                AutoGenerateColumns="False" EmptyDataText="No Records Found !!" AllowPaging="false" OnRowDataBound="ReleaseNoteAllDetailGridView_RowDataBound"
                                                CssClass="table table-striped table-bordered table-hover" ShowHeader="True"
                                                DataKeyNames="AutoId,ModuleId,IssueTypeId">
                                                <Columns>

                                                    <asp:TemplateField ItemStyle-Width="10%" ItemStyle-Wrap="true" Visible="false"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="ModuleIdTextBox" runat="server" MaxLength="5" Text='<%# Bind("ModuleId") %>' TextMode="MultiLine"
                                                                Width="100%"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField ItemStyle-Width="20%" HeaderText="Module" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:DropDownList ID="ModuleDropDownList" runat="server" CssClass="form-control" Width="98%" OnSelectedIndexChanged="ModuleDropDownList_SelectedIndexChange"></asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Issue Description" ItemStyle-Width="40%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="IssueDescriptionTextBox" runat="server" MaxLength="5" Text='<%# Bind("IssueDescription") %>' TextMode="MultiLine"
                                                                Width="100%" SkinID="MultiLineTextBox"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField ItemStyle-Width="20%" HeaderText="Issue Type" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:DropDownList ID="IssueTypeDropDownList" runat="server" CssClass="form-control" Width="98%"></asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Plat Form" ItemStyle-Width="40%" ItemStyle-Wrap="true"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="PlatFormTextBox" runat="server" MaxLength="5" Text='<%# Bind("Platform") %>'
                                                                Width="100%" SkinID="MultiLineTextBox"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField ShowHeader="true" HeaderText="Delete">
                                                        <ItemTemplate>
                                                            <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerSettings Visible="False" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>

            </div>
            </tr>
                    </table>
                </div>
            </div>
         
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode != 46 && charCode > 31
              && (charCode < 48 || charCode > 57))
                return false;

            return true;
        }
    </script>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/bus-route-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
