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

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ 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/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="timePicker" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%-- <link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>

    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <Triggers>
            <asp:PostBackTrigger ControlID="InwardRegisterExportButton" />
            <%--Added For mantis : 29983--%>
            <asp:PostBackTrigger ControlID="InwardRegisterExportAllButton" /> 
        </Triggers>
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <div class="himsBoxContent">
                            <div class="leftUlMenu">
                                <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="168"
                                    Visible="true" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server" visible="true">
                        <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"
                                            class="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="SearchLetterFormLabel" runat="server" Text="Letter From"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchLetterFromTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="300"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SerachjLetterSubject" runat="server" Text="Letter Subject" Visible="true"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchLetterSubjectTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="300"> </asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel" runat="server" Text="From Date" Visible="true"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" Visible="true"
                                                    runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToDateLabel" runat="server" Text="To Date" Visible="true"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" Visible="true"
                                                    runat="server" />
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchReplyrequiredDropDownListLabel" runat="server" Text="Reply Required"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchReplyrequiredDropDownList" SkinID="CustomWidthDropDownList"
                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                    <asp:ListItem>-ALL-</asp:ListItem>
                                                    <asp:ListItem Value="1">ReplyRequired</asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label21" runat="server" Text="Replied" Visible="true"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList runat="server" ID="SearchRepliedDropDownList" SkinID="CustomWidthDropDownList"
                                                    class="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                    <asp:ListItem>-ALL-</asp:ListItem>
                                                    <asp:ListItem Value="1">Replied</asp:ListItem>
                                                    <asp:ListItem Value="0">Pending</asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="alignCenter pTop5 col-md-12">
                                            <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" class="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                            <asp:Button ID="PrintButton" runat="server" Text="&#xf15b; Print" OnClick="PrintButton_Click" SkinID="0" CssClass="btn btn-report fas" />
                                            <asp:Button ID="InwardRegisterExportButton" runat="server" Text="&#xf093; Export" OnClick="InwardRegisterExportButton_Click"
                                            SkinID="0" CssClass="btn-examcommon btn fas" Visible="false" />
                                            <%--Added For mantis : 29983--%>
                                            <asp:Button ID="InwardRegisterExportAllButton" runat="server" Text="&#xf093; Export All" OnClick="InwardRegisterExportAllButton_Click"
                                            SkinID="0" CssClass="btn-examcommon btn fas" Visible="false" />
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="InwardRegisterDetailDiv" visible="false" runat="server">

                                            <div class="himsBoxHeader">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText">
                                                        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pb5 mt2">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false">
                                                            <div class="table-responsive">
                                                                <asp:GridView ID="InwardRegisterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    OnRowDataBound="InwardRegisterGridView_RowDataBound" OnPageIndexChanging="InwardRegisterGridView_PageIndexChanging"
                                                                    AllowPaging="false" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                    DataKeyNames="Id,OrgId" EmptyDataText="No records Found !!!" CssClass="table table-striped table-bordered">
                                                                    <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:TemplateField HeaderText="Inward Number" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="InwardNumberLabel" runat="server" Text='<%# Bind("InwardNumber") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Letter Number" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LetterNumberrLabel" runat="server" Text='<%# Bind("LetterNumber") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Letter Subject" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LettersubjecttLabel" runat="server" Text='<%# Bind("LetterSubject") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Letter From" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LetterFrommLabel" runat="server" Text='<%# Bind("LetterFrom") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Received Date" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="VisitDateLabel" runat="server" Text='<%# Bind("ReceivedDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Reply Required" ItemStyle-Width="7%"
                                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="replyRequiredLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsReplyRequired").ToString().ToUpper()=="TRUE"?"Yes":"No" %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Replied" ItemStyle-Width="7%"
                                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="repliedLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsReplied").ToString().ToUpper()=="TRUE"?"Yes":"No" %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                        <%--Added For mantis : 29983--%>
                                                                        <asp:TemplateField HeaderText="Letter Date" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LetterDateLabel" runat="server" Text='<%# Bind("LetterDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Letter Remark" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="LetterRemarkLabel" runat="server" Text='<%# Bind("LetterRemark") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Reply Remark" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ReplyRemarkLabel" runat="server" Text='<%# Bind("ReplyDetail") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Remark" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" Visible="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="RemarkLabel" runat="server" Text='<%# Bind("Remark") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </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-registered"></i>
                                        <asp:Label ID="AddNewRecord" runat="server" Text="Inward Register"></asp:Label>
                                    </header>

                                </div>
                            </div>
                            <div class="fRight mt-27">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <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>
                                                &nbsp;&nbsp;
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                <asp:Label ID="TotalRecord" runat="server" />
                                                &nbsp;&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>
                                        </td>
                                        <td>&nbsp;&nbsp;
                                            <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                class="btn btn-back fas" Text="&#xf30a; Back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="InwardNumberLabel" runat="server" Text="Inward Number" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="InwardNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" AutoPostBack="false" SkinID="CustomWidthTextbox" Enabled="true"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReceivedDateLabel" runat="server" Text="Received Date" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ReceivedDatePickerDetail"
                                            Visible="True" runat="server" />
                                    </div>
                                </div>

                            </div>

                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="LetterNumberLabel" runat="server" Text="Letter Number"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="LetterNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="LetterDateLabel" runat="server" Text="Letter Date"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:HiddenField ID="IdHiddenField" runat="server" />
                                    <asp:HiddenField ID="OutwardRegisterHiddenField" runat="server" />
                                    <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                    <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                    <asp:HiddenField ID="DocumentNameHiddenField" runat="server" />
                                    <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                    <asp:HiddenField ID="ScreenIdHiddenField" runat="server" />
                                    <Date:DatePickerControl DisplayDatePicker="true" ID="LetterDateDatepickerDetail"
                                        Visible="True" runat="server" />
                                </div>
                            </div>


                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="LetterFromLabel" runat="server" Text="Letter From"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="LetterFromTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        runat="server" MaxLength="300" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                </div>
                            </div>

                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="LetterSubjectLabel" runat="server" Text="Letter Subject" SkinID="MandatoryLabel"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="LetterSubjectTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        runat="server" MaxLength="300" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                </div>
                            </div>



                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="LetterRemarkLabel" Text="Letter Remark" runat="server"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="LetterRemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        SkinID="CustomWidthTextBox" runat="Server" TextMode="MultiLine"></asp:TextBox>
                                </div>
                            </div>


                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:CheckBox ID="IsRepliedCheckBox" runat="server" Text="Replied" />
                                    <asp:CheckBox ID="IsReplyRequiredCheckBox" runat="server" Text="Reply Required" />
                                    <%--<asp:Label ID="IsReplyRequiredLabel" runat="server" Text="Reply Required" class="pLeft5"></asp:Label>--%>
                                </div>
                            </div>

                            <%--   <div class="outerBox11 pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    
                                    <%--<asp:Label ID="IsRepliedLabel" runat="server"  class="pLeft5"></asp:Label>
                                </div>
                            </div>--%>


                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="ReplyDetailLabel" Text="Reply Remark" runat="server"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="ReplyDetailTextBox" 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="RemarkDetailLabel" Text="Remark" runat="server"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="RemarkDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        SkinID="CustomWidthTextBox" runat="Server" MaxLength="300" TextMode="MultiLine"></asp:TextBox>
                                </div>
                            </div>

                            <%--  <div class="alignCenter pTop5 col-md-12">
                                <div class="controlLabelWidth">
                                   
                                </div>
                            </div>--%>


                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                            <asp:HiddenField ID="GUIDHiddenField" runat="server" />
                            <div class="himsBoxContent col-md-12 ">

                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <div class="table-responsive himsBoxContent pTop15">
                                            <div id="GridViewDiv" runat="server" visible="false" >
                                                <asp:GridView ID="FileGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                    AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                            ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                    NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                            ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                    ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                            <div class="pTop10 col-md-12">
                                <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                                <div class="fLeft pRight5 ">
                                    <a href="javascript:;" onclick="OpenFileUpload();" class="btn-browser btn fas">
                                        <i class="fa fa-arrow-down"></i>Browse</a>
                                    <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="true" />

                                    <asp:Button runat="server" ID="RefreshButton" Text="&#xf2f9; Refresh" OnClick="RefreshButton_OnClick"
                                        SkinID="0" class="btn btn-refresh fas" />
                                    <asp:Button ID="ReplyButton" runat="server" Text="&#Xf3e5; Reply" OnClick="ReplyButton_Click" class="fas btn btn-delete" SkinID="0" />
                                </div>
                            </div>

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

                            <div class="outerBox pTop5 col-md-3">
                                <div class="pTop5">
                                    <asp:Label ID="Label2" runat="server" Text="" CssClass="pTop10"></asp:Label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/Inward_Register" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/Inward_Register")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
