<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="HelpDesk_ViewTicketDetail, MachSol.MachPanel.Web" validaterequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/RCC/CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>


<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">

    <script type="text/javascript" language="javascript">

        function SearchRelatedLinks() {
            var params = "{'SearchText': '" + $get('<%=TxBx_ReplySubject.ClientID%>').value + "'}";
            $.ajax({
                type: "POST",
                url: "ViewTicketDetail.aspx/GetRelatedBLinks",
                async: true,
                data: params,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {

                    //Clear div
                    $("#DivInner_RelatedLink").html("");
                    $("#Div_RelatedLinks").addClass("hide");

                    if (result.d.trim() == '') {
                        return;
                    }
                    var json = $.parseJSON(result.d);

                    if (json.data.length > 0) {
                        $("#Div_RelatedLinks").removeClass("hide");
                    }
                    //Iterate through each record
                    for (var i = 0; i < json.data.length; i++) {
                        var link = $("<a>");
                        link.attr("href", json.data[i].url);
                        link.attr("title", json.data[i].title);
                        link.attr("target", "_blank");
                        link.text(json.data[i].title);
                        link.addClass("btn btn-info btn-xs");

                        var $div = $("<div>");
                        $div.html(link);

                        $("#DivInner_RelatedLink").append($div);
                    }
                },
                error: function (result) {
                    console.log(result.responseJSON.Message)
                    //Clear div
                    $("#DivInner_RelatedLink").html("");
                    $("#Div_RelatedLinks").addClass("hide");
                }
            });
        }

        function Delete() {
            if (window.confirm("<%= Resources.Content.TicketDeleteCofirmation %>") == true) {
                return true;
            }
            else
                return false;
        }
        function DepartmentChange(Id) {
            var DDL_Pop_Agent = document.getElementById(Id);
            DDL_Pop_Agent.options.length = 1;//Resized to one element.
            var array = Id.split('DDL_Pop_Agent');

            var HF_Pop_AgentId = document.getElementById(array[0] + 'HF_Pop_AgentId');

            var LBX_Pop_Agents = document.getElementById('ctl00_CPH_Content_LBX_Pop_Agents');

            var DDL_Pop_Department = document.getElementById('ctl00_CPH_Content_DDL_Pop_Department');

            HF_Pop_AgentId.value = -1;

            var I = 1;
            for (l = 0; l < LBX_Pop_Agents.length; l += 1) {
                if (DDL_Pop_Department.value == LBX_Pop_Agents.options[l].value) {
                    var optText = LBX_Pop_Agents.options[l].innerHTML;
                    array = optText.split(';');
                    DDL_Pop_Agent.options[I] = new Option(array[1], array[0]);
                    I += 1;
                }
            }
            // DDL_Pop_Agent.options[0].selected = true;
            setTimeout(function () {
                DDL_Pop_Agent.selectedIndex = 0;
                //$('#' + Id).selectpicker('refresh');
                initVirtualSelectPlugin('#' + Id);
            }, 500);
        }
        function PopAgentChange(Id) {
            var DDL_Pop_Agent = document.getElementById(Id);
            var array = Id.split('DDL_Pop_Agent');
            var HF_Pop_AgentId = document.getElementById(array[0] + 'HF_Pop_AgentId');
            HF_Pop_AgentId.value = DDL_Pop_Agent.value;
        }
        function Reply(Id) {
            var CB_SendAndTransfer = document.getElementById(Id);

            var array = Id.split('CB_SendAndTransfer');

            var strTxBx_ReplySubject = document.getElementById(array[0] + 'TxBx_ReplySubject').value.trim();
            var strTxBx_Announcement = oboutGetEditor('TxBx_Announcement').getContent().trim();

            if (strTxBx_ReplySubject.length == 0) {
                alert("<%= Resources.Content.EnterSubject %>");
                return false;
            }
            else {
                if (strTxBx_Announcement.length == 0) {
                    alert("<%= Resources.Content.EnterReply %>");
                    return false;
                }
                else {
                    //For Html Formatting
                    var str = strTxBx_Announcement.replace("<", "&lt;");
                    str = str.replace(">", "&gt;");
                    str = str.replace(/\n/gi, "<br />");
                    var HF_Announcement = document.getElementById(array[0] + 'HF_Announcement');

                    HF_Announcement.value = str;
                    if (CB_SendAndTransfer.checked == true) {

                        var HF_ReplyAndTransfer = document.getElementById(array[0] + 'HF_ReplyAndTransfer');

                        HF_ReplyAndTransfer.value = 1;
                        var extender = $find('ctl00_CPH_Content_MP1');
                        extender.show();
                        ScrollToTopOfPage();
                        return false;
                    }
                    else {
                        var Attachment = document.getElementById(array[0] + 'Attachment');

                        if (Attachment.value != "") {
                            var HF_PostType = document.getElementById(array[0] + 'HF_PostType');

                            HF_PostType.value = "0";
                            __doPostBack('dummy', '');
                            //$object("_PageRequestManager")._doPostBack("dummy","");            
                            return false;
                        }
                        else {
                            return true;
                        }
                    }
                }
            }
        }
        function Transfer(Id) {
            var extender = $find(Id);
            extender.show();
            ScrollToTopOfPage();
            return false;
        }

        function onOk() {
            var oSelect = document.getElementById('ctl00_CPH_Content_DDL_Pop_Agent');
            //alert(oSelect.selectedIndex);
            //oSelect.selectedIndex = 0;

            var Attachment = document.getElementById('ctl00_CPH_Content_TC_TicketsDetail_TP_PostReply_Attachment');
            if (Attachment != null) {

                if (Attachment.value != "") {
                    var HF_PostType = document.getElementById('ctl00_CPH_Content_TC_TicketsDetail_TP_PostReply_HF_PostType');
                    HF_PostType.value = "1"
                    __doPostBack('dummy', '');
                    return false;
                }

            }

            __doPostBack('ctl00$CPH_Content$Btn_Pop_OK', '');
        }
        function onCancel() {

            // __doPostBack('ctl00$RightContentPlaceHolder$Btn_Pop_Cancel','');
            //      __doPostBack('ctl00$RightContentPlaceHolder$GV_TicketList$ctl02$LBtn_Del','')

        }
        $(document).ready(function () {

            ref = 0;
            ref = setInterval(checkLock, 10000); // checks after 10 seconds

            function checkLock() {
                
                var params = "{'TicketId': '" + $get('<%=Hf_TicketId.ClientID%>').value + "', 'CompanyId': '" + $get('<%= Hf_CompanyId.ClientID %>').value + "'}";
                //alert(params);
                $.ajax({
                    type: "POST",
                    url: "ViewTicketDetail.aspx/SetTicketLock",
                    async: true,
                    data: params,
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (msg) {
                        <%--if (msg.d.indexOf('Error') < 0) {
                            var receivedArray = msg.d.split("|");
                            var legendXLabelText = receivedArray[0];
                            var headerLabelText = receivedArray[1];
                            var graphData = receivedArray[3];

                            $find('<%= MPE_MailboxUsageHistory.ClientID %>').show();
                            SetLabelText(legendXLabelText + "|" + headerLabelText);
                            LoadMailboxUsageGraph(graphData);
                        }
                        else {
                            alert(msg.d);
                        }--%>
                    },
                    error: function (errorMessage) {
                        //alert(errorMessage);
                    }
                });
            }

        });
    </script>
    <div class="col-xs-12">

        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h3>
                        <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,SPT002759%>" /></h3>
                </div>
                <asp:LinkButton ID="Btn_GoBack" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                    class="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">

                <EM:TabContainer ID="TC_TicketsDetail" runat="server" ActiveTabIndex="0" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="TP_Summary" HeaderText="<%$ Resources:Content,SMI0413%>" runat="server">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row">
                                    <div class="col-sm-6 col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000490%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_TicketNo">
                                                    </div>
                                                    <asp:HiddenField ID="Hf_TicketId" runat="server" />
                                                    <asp:HiddenField ID="Hf_CompanyId" runat="server" />
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000668%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_Created">
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_Department">
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1133%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_AssignedTo">
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000505%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_Priority">
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String385%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7">
                                                        <div class="form-group">
                                                            <div id="Div_ActionsOpen" runat="server">
                                                                <%--Stick:<asp:CheckBox ID="CB_Stick" runat="server" />--%>
                                                                <asp:DropDownList ID="DDL_Status" runat="server" />
                                                            </div>
                                                            <div id="Div_ActionsClosed" runat="server" style="display: none">
                                                                <asp:LinkButton ID="LB_ReOpen" runat="server" Text='<%$ Resources:Content,GN00001335%>'></asp:LinkButton>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal13" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000368%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7">
                                                        <div class="form-group">
                                                            <asp:LinkButton ID="LB_Export" runat="server" CssClass="btn btn-primary" Text="<%$ Resources:Content,strExportToPDF%>" />
                                                            <asp:LinkButton ID="LB_Transfer" runat="server" CssClass="btn btn-primary btnAction" Text="<%$ Resources:Content,GN0000942%>" />
                                                            <asp:LinkButton ID="LB_Delete" runat="server" CssClass="btn btn-primary btnAction" Text="<%$ Resources:Content,GN0000377%>" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_Update" runat="server" Text="<%$ Resources:Content,GN0000654%>"
                                                            SkinID="saveButton" CssClass="btn btn-primary btnAction" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-6 col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal12" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000850%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7">
                                                        <asp:HyperLink ID="LB_CustomerName" Target="_blank" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000390%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_SenderEmail">
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_Phone">
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-6 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text="<%$ Resources:Content,LastResponse%>" />
                                                    </div>

                                                    <div class="col-sm-6 col-xs-7" runat="server" id="div_LastResponse">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="TP_PostReply" HeaderText="<%$ Resources:Content,SMI0419%>" runat="server">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
                <div style="display: none">
                    <asp:ListBox ID="LBX_Pop_Agents" runat="server"></asp:ListBox>
                </div>
                <%--Required for Attachment--%>
                <div id="dummy" style="display: none">
                </div>
                <%-- End Required for Attachment--%>
                <div class="Question-Message">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <asp:Literal ID="Literal15" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000180%>" />
                                    </h3>
                                </div>
                                <div class="body">
                                    <asp:SqlDataSource ID="DS_TicketDetail" runat="server"></asp:SqlDataSource>
                                    <asp:Repeater ID="Rep_TicketDetail" DataSourceID="DS_TicketDetail" runat="server">
                                        <ItemTemplate>
                                            <div id="HeaderTable" runat="server" class="commentWrap">
                                                <div id="reply_Type" runat="server">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <div class="card">
                                                                <div class="header">
                                                                    <div class="row commentSection">
                                                                        <div class="col-sm-1 col-xs-12">
                                                                            <h1>
                                                                                <span id="comment_Number" runat="server" class="commentNumber" />
                                                                            </h1>
                                                                        </div>
                                                                        <div>
                                                                            <div class="col-sm-11 col-xs-12" style="padding-top: 2%">
                                                                                <span id="ticket_Title" runat="server">
                                                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN000178%>" />
                                                                                    <strong>
                                                                                        <asp:Label ID="message_By" runat="server" />
                                                                                    </strong>
                                                                                    <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN00001029%>" />
                                                                                    <asp:Label ID="ticket_Date" runat="server" />
                                                                                    <div id="Div_CC" runat="server" />
                                                                                </span>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="body">
                                                                    <div class="row">
                                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                                        </div>

                                                                        <div class="col-sm-4 col-xs-7">
                                                                            <div class="form-group">
                                                                                <div runat="server" id="div_TicketNo">
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>


                                                                    <div id="ticket_Attachment" runat="server">
                                                                        <asp:Repeater ID="Rep_TicketAttachments" runat="server">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="Lbtn_DownloadLink" runat="server"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:Repeater>
                                                                     </div>
                                                                    <div id="ticket_Body" runat="server" />
                                                                    <div class="ticketNotes" id="ticket_Notes" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                            </div>
                        </div>
                    </div>
                    <%--Ticket Notes Area--%>
                    <asp:Panel ID="Pnl_Notes" runat="server">
                        <EM:Notes ID="Notes_Ticket" runat="server" />
                    </asp:Panel>
                    <%--Ticket Notes Aread End--%>
                </div>
                <div class="row" id="Div_Response" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN00001339%>" />
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                            <asp:Literal ID="Literal19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000371%>" />:
                                    </div>

                                    <div class="col-sm-6 col-xs-7">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_ReplySubject" runat="server" onfocusout="SearchRelatedLinks();" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div id="Div_RelatedLinks" class="hide">
                                    <div class="row">
                                        <div class="col-xs-12 row-label">
                                            <asp:Literal ID="LiteralKBLinks" Text="<%$ Resources:Content,PleaseReviewFollowingKB %>" runat="server" />
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <div id="DivInner_RelatedLink" style="max-height: 250px; overflow: auto;"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                            <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000541%>" />:
                                    </div>

                                    <div class="col-sm-10 col-xs-10">
                                        <div class="form-group">
                                            <obout:Editor ID="TxBx_Announcement" Submit="false" ShowWaitMessage="false" AjaxWait="false" runat="server" Appearance="custom">
                                                <Buttons>
                                                    <obout:Select Name="FontName" />
                                                    <obout:Select Name="FontSize" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Toggle Name="Bold" />
                                                    <obout:Toggle Name="Italic" />
                                                    <obout:Toggle Name="Underline" />
                                                    <obout:Toggle Name="StrikeThrough" />
                                                    <obout:Toggle Name="SuperScript" />
                                                    <obout:Toggle Name="SubScript" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Method Name="ForeColor" />
                                                    <obout:Method Name="ForeColorClear" />
                                                    <obout:Method Name="BackColor" />
                                                    <obout:Method Name="BackColorClear" />
                                                    <obout:VerticalSeparator />
                                                    <obout:Method Name="Redo" />
                                                    <obout:Method Name="Undo" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Method Name="Cut" />
                                                    <obout:Method Name="Copy" />
                                                    <obout:Method Name="Paste" />
                                                    <obout:Method Name="PasteText" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Method Name="Paragraph" />
                                                    <obout:Method Name="GetFormat" />
                                                    <obout:Method Name="ApplyFormat" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Method Name="JustifyLeft" />
                                                    <obout:Method Name="JustifyCenter" />
                                                    <obout:Method Name="JustifyRight" />
                                                    <obout:Method Name="JustifyFull" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Method Name="OrderedList" />
                                                    <obout:Method Name="BulletedList" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Method Name="InsertHR" />
                                                    <obout:Method Name="CreateLink" />
                                                    <obout:Method Name="InsertAnchor" />
                                                    <obout:Method Name="InsertIMG" />
                                                    <obout:HorizontalSeparator />
                                                    <obout:Method Name="ClearStyles" />
                                                </Buttons>
                                            </obout:Editor>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFV_Body" runat="server" ControlToValidate="TxBx_Announcement"
                                            SetFocusOnError="true" Display="None" ValidationGroup="Reply"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001337%>" />:
                                    </div>

                                    <div class="col-sm-6 col-xs-7">
                                        <div class="form-group">
                                            <input id="Attachment" type="file" runat="server" />
                                            <asp:HiddenField ID="HF_PostType" runat="server" />
                                        </div>
                                        <div class="form-group">
                                            <label>
                                                <asp:Label ID="Lbl_AttachmentSizeNote" runat="server" /></label>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal22" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000277%>" />:
                                    </div>

                                    <div class="col-sm-6 col-xs-7">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Action" runat="server" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal23" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001340%>" />:
                                    </div>

                                    <div class="col-sm-6 col-xs-7">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_CC" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                        <small>
                                            <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String555%>" /></small>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001341%>" />:
                                    </div>

                                    <div class="col-sm-4 col-xs-7">
                                        <div class="form-group">
                                            <asp:HiddenField ID="HF_ReplyAndTransfer" runat="server" />
                                            <asp:CheckBox ID="CB_SendAndTransfer" runat="server" Text=" " />
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:RequiredFieldValidator ID="RFV_Subject" runat="server" ControlToValidate="TxBx_ReplySubject"
                                            Display="None" ErrorMessage="" ValidationGroup="Reply"></asp:RequiredFieldValidator>
                                        <asp:ValidationSummary ID="VS" HeaderText='<%$ Resources:Content,EM000001%>' runat="server"
                                            ShowMessageBox="True" ShowSummary="False" ValidationGroup="Reply" />
                                        <asp:Button ID="Btn_Reply" SkinID="saveButton" runat="server" Text="<%$ Resources:Content,GN00001342%>"
                                            ValidationGroup="Reply" CausesValidation="true" CssClass="btn btn-primary btnAction" />
                                        <asp:HiddenField ID="HF_Announcement" runat="server" />
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <%--Send & Transfer Pop-up Window Code--%>
    <asp:Button ID="Btn_Dummy" Style="display: none" runat="server" Text="<%$ Resources:Content,SMI0006%>" />
    <asp:Panel CssClass="width-modal-popup-auto" ID="Panel1" runat="server" Style="display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Literal ID="Ltl_TicSubject" runat="server" Text="<%$ Resources:Content,SPT002759%>" />
                    </h3>
                </div>

                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <%--<asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000490%>" />--%>
                        </div>

                        <div class="col-sm-4 col-xs-7">
                            <div class="form-group">
                                <div runat="server" id="div1">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>" />
                            :
                        </div>

                        <div class="col-sm-4 col-xs-7">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_Pop_Department" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal25" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001336%>" />:
                        </div>

                        <div class="col-sm-4 col-xs-7">
                            <div class="form-group">
                                <asp:TextBox ID="TxBx_Pop_Notes" CssClass="col-xs-12" Rows="8" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal26" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000375%>" />
                            :
                        </div>

                        <div class="col-sm-4 col-xs-7">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_Pop_Agent" runat="server" />
                                <asp:HiddenField ID="HF_Pop_AgentId" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal27" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String385%>" />:
                        </div>

                        <div class="col-sm-4 col-xs-7">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_Pop_Status" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Pop_OK" runat="server" SkinID="SaveButton" Text="<%$ Resources:Content,GN0000710%>" />
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Pop_Cancel" SkinID="cancelButton" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
        OnCancelScript="onCancel()" OnOkScript="onOk()" DropShadow="false" OkControlID="Btn_Pop_OK"
        CancelControlID="Btn_Pop_Cancel" PopupControlID="Panel1" TargetControlID="Btn_Dummy">
    </EM:ModalPopupExtender>
</asp:Content>
