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

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <div id="CPDiv">
        <asp:UpdatePanel ID="updPnlSearchGridView" 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="250"
                                                    Visible="true" runat="server" />
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="row whiteboxpaddingleft">
                        <div class="himssuHeader5WireBox card card-box" runat="server" id="SearchDiv">
                            <div class="himsBoxHeader card-head">
                                <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-search"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Search" meta:resourcekey="Label1Resource1"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                            <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                <div class="himsBoxContent card-body">
                                    <div class="contentHolder">
                                    
                                        <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                            <div id="ReleaseNoteDiv" visible="true" runat="server">
                                                <div class="himsBoxContent" id="ProjectWise" runat="server">
                                                    <div class="card-head inner">
                                                        <div class="headerText">
                                                            <header>Version Update</header>
                                                        </div>
                                                    </div>
                                                    
                                                </div>
                                            </div>
                                        </div>
                                       <%-- <asp:Button ID="PrintButton" runat="Server" OnClick="PrintButton_Click" SkinID="0"
                                                        CssClass="btn btn-back fas" Text="&#xf30a; Print" />--%>
                                        <asp:HiddenField ID="HtmlHiddenField" runat="server" />
                                        <div id="Div2" class="himssuHeader7WireBox col-md-12 pTop5" runat="server">
                                        <div id="VersionUpdateDetailDiv" runat="server" visible="false">

                                          <%--  <div class="himsBoxHeader" id="ExamMasterListDiv" visible="false" runat="server">

                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <uc1:GridViewPager ID="ExamSearchGridViewPager" runat="server" OnFirstRecordClick="ExamSearchGridViewPager_FirstRecordClick"
                                                            OnLastRecordClick="ExamSearchGridViewPager_LastRecordClick" OnNextRecordClick="ExamSearchGridViewPager_NextRecordClick"
                                                            OnPrevRecordClick="ExamSearchGridViewPager_PrevRecordClick" OnTextBoxValueChange="ExamSearchGridViewPager_TextBoxValueChange"
                                                            ParentGridView="ExamSearchGridView" />
                                                    </div>
                                                </div>
                                            </div>
                                            <br />--%>
                                            
                                            <div class="himsBoxContent">
                                                <br />
                                                <div id="VersionUpdateGridViewDiv" runat="server" visible="false" class="table-responsive">
                                                    <asp:GridView ID="VersionUpdateGridView" runat="server" AutoGenerateColumns="False" OnRowDataBound="VersionUpdateGridView_RowDataBound"
                                                        DataKeyNames="Id,ReleaseDate"
                                                        AllowPaging="true" SkinID="" PagerSettings-Visible="false" EmptyDataText="No Records Found !!"
                                                        PageSize="100" CssClass="table table-striped table-bordered table-hover">
                                                        <Columns>
                                                          
                                                            <asp:TemplateField HeaderText="Release Date" ItemStyle-Width="5%"
                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Center">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="ReleaseDateLabel" runat="server" Text='<%# Bind("ReleaseDate","{0:yyyy/MM/dd}") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Version Number" ItemStyle-Width="5%"
                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Center">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="VersionNumberLabel" runat="server" Text='<%# Bind("VersionNumber") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                              <asp:TemplateField HeaderText="Version Id" ItemStyle-Width="5%"
                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Center">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="VersionIdLabel" runat="server" Text='<%# Bind("VersionId") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Pages Update" ItemStyle-Width="5%" SortExpression="View" HeaderStyle-HorizontalAlign="Center"
                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="PagesUpdateLinkButton" runat="server" CommandName="Select" OnClick="PagesUpdateLinkButton_Click"
                                                                        Text="Pages Update" CausesValidation="false"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Script Update" ItemStyle-Width="5%" SortExpression="View" HeaderStyle-HorizontalAlign="Center"
                                                                ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="ScriptUpdateLinkButton" runat="server" CommandName="Select" OnClick="ScriptUpdateLinkButton_Click"
                                                                        Text="Script Update" CausesValidation="false"></asp:LinkButton>
                                                                    <asp:HiddenField ID="ScriptUpdateLinkButtonHiddenField" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
   <%-- <script data-main='<%=ResolveUrl("~/JavaScript/rjs/exception-log")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

    <script type="text/javascript" language="javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined) {
                args.set_errorHandled(true);
            }
        }

        function OpenExceptionLogDetails(obj) {
            var id = $(obj).parent().parent().parent().attr('id').split('_')[1];
            if ($('.Detail_' + id).css('display') == 'none') {
                $('.Detail_' + id).css('display', 'table-row');
            }
            else {
                $('.Detail_' + id).css('display', 'none');
            }
        }

    </script>--%>
   <%-- <script type="text/javascript" language="javascript">
        function LoadHtml() {
            var HTMLString = document.getElementById("HtmlHiddenField");
            if (!HTMLString) {
                //json = $.parseJSON($('#ctl00_CP_JsonHiddenField').val());
                //html = Mustache.to_html(template, json).replace(/^\s*/mg, '');
                var myWindow = window.open("", "Pending Fee Slip Custom", "width=2000,height=1000", "false");
                myWindow.document.write('<html><style>@media print {.PrintHidden {visibility: hidden;}}</style><head><title>Pending Fee Slip Custom</title>');
                myWindow.document.write('<div style="text-align:center"><input type="Button" class="PrintHidden" Value="Print" OnClick="window.print();" /></div>')
                myWindow.document.write("" + HTMLString + "");

                myWindow.document.close();
            }
        }
    </script>--%>
</asp:Content>

