<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FrontOffice_OutwardRegister, App_Web_hpoycyi1" title="Outward 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">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
         <Triggers>
            <asp:PostBackTrigger ControlID="OutwardRegisterExportButton" />
             <%--Added For mantis : 29983--%>
             <asp:PostBackTrigger ControlID="OutwardRegisterExportAllButton" /> 
        </Triggers>
        <ContentTemplate>
            <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="SearchLetterToLabel" runat="server" Text="Letter To"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">

                                                <asp:TextBox ID="SearchLetterToTextBox" 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" Visible="true"></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="SearchPrintButton" runat="server" Text="&#xf15b; Print List" OnClick="Print_Button_Click" SkinID="0" CssClass="btn btn-report fas" />
                                            <asp:Button ID="OutwardRegisterExportButton" runat="server" Text="&#xf093; Export" OnClick="OutwardRegisterExportButton_Click"
                                            SkinID="0" CssClass="btn-examcommon btn fas" Visible="false" />
                                            <%--Added For mantis : 29983--%>
                                            <asp:Button ID="OutwardRegisterExportAllButton" runat="server" Text="&#xf093; Export All" OnClick="OutwardRegisterExportAllButton_Click"
                                            SkinID="0" CssClass="btn-examcommon btn fas" Visible="false" />
                                        </div>
                                        <br />
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="OutwardRegisterDetailDiv" 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 col-md-12 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="OutwardRegisterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    OnRowDataBound="OutwardRegisterGridView_RowDataBound" OnPageIndexChanging="OutwardRegisterGridView_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="Outward Number" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="OutwardNumberLabel" runat="server" Text='<%# Bind("OutwardNumber") %>'></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="LetterSubjectrLabel" 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="LetterTomLabel" runat="server" Text='<%# Bind("LetterTo") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Outward Date" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="OutwardDatemLabel" runat="server" Text='<%# Bind("OutwardDate","{0:dd/MM/yyyy}") %>'></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="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 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 Detail" ItemStyle-Width="10%"
                                                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" Visible ="false">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ReplyDetailLabel" 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="fa fa-registered"></i>
                                        <asp:Label ID="AddNewRecord" runat="server" Text="Add Outward Entry"></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="OutwardNumberLabel" runat="server" Text="Outward Number" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="OutwardNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" SkinID="CustomWidthTextbox" Enabled="true"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OutwardDateLabel" runat="server" Text="Outward Date" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="OutwardDatePickerDetail"
                                            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="InwardRegisterHiddenField" 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="LetterToLabel" runat="server" Text="Letter To"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="LetterToTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        runat="server" MaxLength="300" 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" 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="outerBox pTop5 col-md-3">
                                  
                                <div class="controlLabelWidth">
                                    <asp:CheckBox ID="IsRepliedCheckBox" runat="server" Text="Replied" />
                                    <%--<asp:Label ID="IsRepliedLabel" runat="server" Text="Replied" class="pLeft5"></asp:Label>
                                </div>
                            </div>--%>



                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="ReplyDetailLabel" Text="Reply Detail" 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="outerBox11 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="outerBox pTop15 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
                                </div>
                            </div>



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

                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <div id="GridViewDiv" runat="server" visible="false">
                                            <div class="table-responsive">
                                                <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=" pTop5 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>Browser</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="ReceiveReplyButton" runat="server" Text="&#Xf3e5; Reply" OnClick="ReceiveReplyButton_Click" class="fas btn btn-delete" SkinID="0" />
                                </div>
                            </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>
