<%@ page language="C#" title="Customer Message" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_CustomerSupport_CustomerMessage, App_Web_uc3mgqpz" 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>Customer Message</header>
                                                        </div>
                                                    </div>
                                                    <div class="width-100" id="ExceptionLogSummaryDiv">
                                                        <asp:PlaceHolder ID="ExceptionLogPlaceHolder" runat="server" />
                                                    </div>
                                                </div>
                                            </div>--%>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchFromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePicker" runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchToDateLabel" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePicker" runat="server" />
                                                </div>
                                            </div>
                                            <div class="cBoth"></div>
                                            <div class="alignCenter pTop5 col-md-12 center">
                                                <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                    SkinID="0" class="btn-search btn fas" />
                                                <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas" />
                                            </div>
                                            <div class="cBoth"></div>
                                            <div class="himsBoxContent card-body table-responsive">
                                                <asp:GridView runat="server" ID="CustomerMessageGridView" AutoGenerateColumns="False"
                                                    EmptyDataText="No records available for the seacrh criteria!"
                                                    AllowPaging="false" ShowHeader="true" meta:resourcekey="StudentResultListGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="CustomerMessageType" HeaderText="Message Type" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="MessageDate" HeaderText="Date" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="MessageRemark" HeaderText="Remark" ItemStyle-Width="60%" HeaderStyle-HorizontalAlign="Left" />
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </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>

</asp:Content>

