<%@ Page Language="C#" EnableEventValidation = "false" AutoEventWireup="true" MasterPageFile="~/CITAD.Master" CodeBehind="frmFundReturnApprove.aspx.cs" Inherits="CITAD.Modules.KiemSoatLenhHoanChuyen.Web.frmFundReturnCreate" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<%@ Register
    Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %>
<%@ Register Src="../../Controls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>    
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language ="javascript" type ="text/javascript" >
        window.document.onkeyup=ShortcutKeys;
        function onMBoxOK_Click()
        {
            try
            {
                var focusControlName=$get('<%=hidFocusControlName.ClientID %>').value;
                
                if(focusControlName!="")
                {
                    var ctlFocusControl = $get(focusControlName)
                    if (ctlFocusControl.disabled!='disabled' || ctlFocusControl.disabled!=true) ctlFocusControl.focus();
                    $get('<%=hidFocusControlName.ClientID %>').value = "";
                }
                else
                {
                    $get(activeControl.id).focus();
                }
            }
            catch (err){}
        }
        function ShortcutKeys()
        {
                if(event.ctrlKey)
                {
                    if(window.event.keyCode==54)    //  thêm mới bản ghi Ctrl + 6
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnApprove').click();
                    }
                    if(window.event.keyCode==55)    //  Save Ctrl + 7
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnReject').click();
                    }
                    if(window.event.keyCode==51)    //  Delete Ctrl + 8
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnReturn').click();
                    }
                    if(window.event.keyCode==37)    //  Trước Ctrl + <--
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnPrevios').click();
                    }
                    if(window.event.keyCode==39)    //  Tiếp theo Ctrl + -->
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnNext').click();
                    }
                    if(window.event.keyCode==8)    //  trở về danh sách Ctrl + BackSpace
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnClose1').click();
                    }
                }
                //alert(event.keyCode);
 
        }
    </script>
<script type="text/javascript" language="javascript">
	    window.document.onkeydown=KeyDown;

	    function fcnApproveReturnReject()
        {
            rValue = window.showModalDialog('../LyDoThoaiDuyet/frmReason.aspx' + '?randomNumber=' + Math.random(),"",strReasonPopupFeature);
            if(rValue!=undefined) 
            {
                document.getElementById('<%=hidMsg_Reason.ClientID %>').value = rValue;
                return true;
            }
            return false;
        }
	</script>
<ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" EnableScriptGlobalization="True"
             EnableScriptLocalization="True" CombineScripts="True" EnablePageMethods="true"  />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
        <table border ="0" cellpadding ="0" cellspacing ="0" >
            <tr>
                <td rowspan="2" style="width: 680px">
                  <fieldset>
                    <table cellpadding ="0" cellspacing ="1px">
                        <tr>
                            <td style="width: 116px; height: 15px;">
                                <asp:Label ID="lblTrx_Type_Org" runat="server" Text="Loại giao dịch" meta:resourcekey="lblTrx_Type_OrgResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="2" style="height: 15px">
                                <asp:TextBox ID="txtServ_Code" runat="server" CssClass="citad-txt citad-txtReadonly"
                                    ReadOnly="True" Width="70px" meta:resourcekey="txtServ_CodeResource1" TabIndex="-1"></asp:TextBox>
                                </td>
                            <td colspan="1" style="height: 15px">
                                <asp:Label ID="lblSERV_NAME" runat="server" meta:resourcekey="lblSERV_NAMEResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 176px; height: 15px;">
                                <asp:Label ID="lblTrx_Date_Org_Day" runat="server" Text="Ngày lệnh gốc" meta:resourcekey="lblTrx_Date_Org_DayResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 172px; height: 15px;">
                                <asp:TextBox ID="txtTrx_Date_Org_Day" runat="server" CssClass="citad-txt" Width="143px" meta:resourcekey="txtTrx_Date_Org_DayResource1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 116px; height: 6px;">
                                <asp:Label ID="lblO_CI_CODE" runat="server" Text="Ngân hàng gửi" meta:resourcekey="lblO_CI_CODEResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="2" style="height: 6px">
                                <asp:TextBox ID="txtO_CI_CODE" runat="server" CssClass="citad-txt citad-txtReadonly" Width="70px" ReadOnly="True" meta:resourcekey="txtO_CI_CODEResource1" TabIndex="-1"></asp:TextBox>
                                </td>
                            <td colspan="1" style="height: 6px">
                                <asp:Label ID="lblO_CI_Name" runat="server" meta:resourcekey="lblO_CI_NameResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 176px; height: 6px;">
                                <asp:Label ID="lblRelation_No_Org" runat="server" Text="Số bút toán gốc" Width="112px" meta:resourcekey="lblRelation_No_OrgResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 172px; height: 6px;">
                                <asp:TextBox ID="txtRelation_No_Org"  runat="server" CssClass="citad-txt" Width="143px" MaxLength="6" OnTextChanged="txtRelation_No_Org_TextChanged" AutoPostBack="True" 
                                    onpropertychange="Upper()" onblur="Blur(this)" meta:resourcekey="txtRelation_No_OrgResource1" TabIndex="1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 116px;">
                                <asp:Label ID="lblR_CI_CODE" runat="server" Text="Ngân hàng nhận" meta:resourcekey="lblR_CI_CODEResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="2">
                                <asp:TextBox ID="txtR_CI_CODE" runat="server" CssClass="citad-txt citad-txtReadonly" Width="70px" ReadOnly="True" meta:resourcekey="txtR_CI_CODEResource1" TabIndex="-1"></asp:TextBox>
                                </td>
                            <td colspan="1">
                                <asp:Label ID="lblR_CI_Name" runat="server" meta:resourcekey="lblR_CI_NameResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 176px;">
                                <asp:Label ID="lblTrx_Date" runat="server" Text="Ngày lệnh yêu cầu" Width="111px" meta:resourcekey="lblTrx_DateResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 172px;">
                                <asp:TextBox ID="txtTrx_Date" runat="server" CssClass="citad-txt citad-txtReadonly"
                                    ReadOnly="True" Width="143px" meta:resourcekey="txtTrx_DateResource1" TabIndex="-1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 116px; height: 11px;">
                                <asp:Label ID="lblTrx_Date_Org" runat="server" Text="Thời gian tạo lệnh gốc" Width="124px" meta:resourcekey="lblTrx_Date_OrgResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="3" style="height: 11px">
                                <asp:TextBox ID="txtTrx_Date_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="125px" ReadOnly="True" meta:resourcekey="txtTrx_Date_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                            <td style="width: 176px; height: 11px;">
                                <asp:Label ID="lblUser_ID" runat="server" Text="Teller ID" meta:resourcekey="lblUser_IDResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 172px; height: 11px;">
                                <asp:TextBox ID="txtUser_ID" runat="server" CssClass="citad-txt citad-txtReadonly" Width="143px" ReadOnly="True" meta:resourcekey="txtUser_IDResource1" TabIndex="-1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 116px; height: 15px;">
                                <asp:Label ID="lblSD_Time_Org" runat="server" Text="Thời gian gửi lệnh gốc" Width="124px" meta:resourcekey="lblSD_Time_OrgResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="3" style="height: 15px">
                                <asp:TextBox ID="txtSD_Time_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="125px" ReadOnly="True" meta:resourcekey="txtSD_Time_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                            <td style="width: 176px; height: 15px;">
                                <asp:Label ID="lblSerial_No" runat="server" Text="Số gd yêu cầu" Width="115px" meta:resourcekey="lblSerial_NoResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width: 172px; height: 15px;">
                                <asp:TextBox ID="txtSerial_No" runat="server" CssClass="citad-txt citad-txtReadonly" Width="143px" ReadOnly="True" meta:resourcekey="txtSerial_NoResource1" TabIndex="-1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 116px; height: 9px;">
                                </td>
                            <td style="width: 140px; height: 9px;">
                                </td>
                            <td  align="right" style="height: 9px;">
                                </td>
                            <td align="right" style="width: 18862px; height: 9px">
                                <asp:Label ID="lblTrx_Status" runat="server" Text="Tình trạng giao dịch" meta:resourcekey="lblTrx_StatusResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="2" style="height: 9px">
                                <asp:TextBox ID="txtTrx_Status" runat="server" CssClass="citad-txt citad-txtReadonly" Width="260px" BackColor="#C3DAF9" ReadOnly="True" meta:resourcekey="txtTrx_StatusResource1" TabIndex="-1" ForeColor="Red"></asp:TextBox></td>
                        </tr>
                        
                        
                        
                        <tr>
                            <td style="width: 116px; height: 47px;">
                                <asp:Label ID="lblReturn_Reason" runat="server" Text="Lý do hoàn chuyển" Width="124px" meta:resourcekey="lblReturn_ReasonResource1" TabIndex="-1"></asp:Label></td>
                            <td style="height: 47px;" colspan="5">
                                <asp:TextBox ID="txtReturn_Reason" runat="server" CssClass="citad-txt" Height="75px" TextMode="MultiLine"
                                    Width="539px"  meta:resourcekey="txtReturn_ReasonResource1" TabIndex="-1"></asp:TextBox></td>
                        </tr>
                    </table>
                    </fieldset> 
                    <fieldset ><legend>
                        <asp:Label ID="lblReply" runat="server" Text="Trả lời yêu cầu xác nhận" meta:resourcekey="lblReplyResource1" TabIndex="-1"></asp:Label></legend>
                        <table cellpadding ="0" cellspacing ="1px" >
                            <tr>
                                <td style=" height: 17px; width: 124px;">
                                    </td>
                                <td colspan="4" style=" height: 17px;" >
                                    <asp:RadioButton ID="rdbAccept" Checked ="True"  GroupName="AcceptReject" runat="server" CssClass="citad-RadioButton" Text="Chấp nhận" meta:resourcekey="rdbAcceptResource1" Enabled="False" TabIndex="-1" />
                                    &nbsp; &nbsp;&nbsp;
                                    <asp:RadioButton ID="rdbReject" GroupName="AcceptReject" runat="server" CssClass="citad-RadioButton" Text="Từ chối" meta:resourcekey="rdbRejectResource1" Enabled="False" TabIndex="-1" /></td>
                            </tr>
                            <tr>
                                <td style=" height: 56px; width: 124px;">
                                    <asp:Label ID="lblReject_Reason" runat="server" Text="Lý do từ chối yêu cầu" meta:resourcekey="lblReject_ReasonResource1" Width="124px" TabIndex="-1"></asp:Label></td>
                                <td colspan="4" style="width: 563px; height: 56px;">
                                    <asp:TextBox ID="txtReject_Reason" runat="server" CssClass="citad-txt citad-txtReadonly" Height="75px" TextMode="MultiLine"
                                         ReadOnly="True" meta:resourcekey="txtReject_ReasonResource1" Width="538px" TabIndex="-1"></asp:TextBox></td>
                            </tr>
                            
                        </table>
                    </fieldset>
                    <%--<fieldset><legend>
                        <asp:Label ID="lblTransactionInforOrg" runat="server" Text="Thông tin giao dịch gốc" meta:resourcekey="lblTransactionInforOrgResource1" TabIndex="-1"></asp:Label></legend>
                        <table style="width: 670px" cellpadding ="0" cellspacing ="1px" >
                        
                        <tr>
                            <td style="width: 124px; height: 17px;">
                                <asp:Label ID="lblAmount_Org" runat="server" Text="Số tiền chuyển" meta:resourcekey="lblAmount_OrgResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="2" style="height: 17px; width:204px;">
                                <asp:TextBox ID="txtAmount_Org" style="text-align :right ;" runat="server" CssClass="citad-txt citad-txtReadonly" Width="130px" ReadOnly="True" meta:resourcekey="txtAmount_OrgResource1" TabIndex="-1"></asp:TextBox>
                                </td>
                            <td style="width: 68px; height: 17px;">
                                <asp:Label ID="lblSerial_No_R" runat="server" Text="Số giao dịch gốc" Width="101px" meta:resourcekey="lblSerial_No_RResource1" TabIndex="-1"></asp:Label></td>
                            <td style="height: 17px; width: 168px;">
                                <asp:TextBox ID="txtSerial_No_Org" runat="server" CssClass="citad-txt citad-txtReadonly"
                                    ReadOnly="True" Width="70px" meta:resourcekey="txtSerial_No_OrgResource1"></asp:TextBox></td>
                        </tr>
                        
                       
                    </table>
                    </fieldset>
                    <fieldset ><legend>
                        <asp:Label ID="GroupBox1" runat="server" Text="Thông tin người gửi" meta:resourcekey="GroupBox1Resource1" TabIndex="-1"></asp:Label></legend>
                        <table style="width: 675px" cellpadding ="0" cellspacing ="1px" >
                            
                            <tr>
                                <td style="width: 50px;">
                                    <asp:Label ID="lblSD_Name" runat="server" Text="Tên" meta:resourcekey="lblSD_NameResource1" TabIndex="-1"></asp:Label></td>
                                <td style="width: 130px;">
                                    <asp:TextBox ID="txtSD_Name" runat="server" CssClass="citad-txt citad-txtReadonly"
                                        meta:resourcekey="txtRV_Name_OrgResource1" ReadOnly="True" Width="130px" TabIndex="-1"></asp:TextBox></td>
                                <td style="width: 80px;" align="center">
                                    <asp:Label ID="lblSD_ACCNT_Org" runat="server" Text="Số tài khoản" meta:resourcekey="lblSD_ACCNT_OrgResource1" Width="80px" TabIndex="-1"></asp:Label></td>
                                <td colspan="2" style="width: 80px;">
                                    <asp:TextBox ID="txtSD_ACCNT_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="100px" ReadOnly="True" meta:resourcekey="txtSD_ACCNT_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                <td colspan="1" style="width: 10px;">
                                    <asp:Label ID="lblO_Indirect_Bank" runat="server" Text="Tại" meta:resourcekey="lblO_Indirect_BankResource1" TabIndex="-1"></asp:Label></td>
                                <td colspan="1" style="width: 70px;">
                                    <asp:TextBox ID="txtO_InDirect_CODE_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="70px" ReadOnly="True" meta:resourcekey="txtO_InDirect_CODE_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                <td colspan="1">
                                    &nbsp;<asp:Label ID="lblO_Indirect_Name" runat="server" Width="205px" meta:resourcekey="lblO_Indirect_NameResource1" TabIndex="-1"></asp:Label></td>
                            </tr>
                        </table>
                       
                    </fieldset>
                    <fieldset ><legend>
                        <asp:Label ID="lblReceiverInfor" runat="server" Text="Thông tin người nhận" meta:resourcekey="lblReceiverInforResource1" TabIndex="-1"></asp:Label></legend>
                        <table style="width: 675px" cellpadding ="0" cellspacing ="1px" >
                            
                            <tr>
                                <td style="width: 50px; height: 5px;">
                                    <asp:Label ID="lblRV_Name_Org" runat="server" Text="Tên" meta:resourcekey="lblRV_Name_OrgResource1" TabIndex="-1"></asp:Label></td>
                                <td style="width: 130px; height: 5px;">
                                    <asp:TextBox ID="txtRV_Name_Org" runat="server" CssClass="citad-txt citad-txtReadonly"  ReadOnly="True" meta:resourcekey="txtRV_Name_OrgResource1" Width="130px" TabIndex="-1"></asp:TextBox></td>
                                <td style="width: 80px; height: 5px;" align="center">
                                    <asp:Label ID="lblRV_ACCNT_Org" runat="server" Text="Số tài khoản" meta:resourcekey="lblRV_ACCNT_OrgResource1" Width="80px" TabIndex="-1"></asp:Label></td>
                                <td colspan="2" style="height: 5px; width: 104px;">
                                    <asp:TextBox ID="txtRV_ACCNT_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="100px" ReadOnly="True" meta:resourcekey="txtRV_ACCNT_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                <td colspan="1" style="height: 5px;">
                                    <asp:Label ID="lblR_InDirect_Bank" runat="server" Text="Tại" meta:resourcekey="lblR_InDirect_BankResource1" Width="10px" TabIndex="-1"></asp:Label></td>
                                <td colspan="1" style="height: 5px; width: 70px;">
                                    <asp:TextBox ID="txtR_InDirect_CODE_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="70px" ReadOnly="True" meta:resourcekey="txtR_InDirect_CODE_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                <td colspan="1" style="height: 5px;">
                                    &nbsp;<asp:Label ID="lblR_InDirect_NAME_Org" runat="server" meta:resourcekey="lblR_InDirect_NAME_OrgResource1" Width="205px" TabIndex="-1"></asp:Label></td>
                            </tr>
                        </table>
                       
                    </fieldset>--%>
                    <fieldset><legend>
                        <asp:Label ID="lblTransactionInforOrg" runat="server" Text="Thông tin giao dịch gốc" meta:resourcekey="lblTransactionInforOrgResource1" TabIndex="-1"></asp:Label></legend>
                        <table cellpadding="0" cellspacing="1" width="670" >
                        
                        <tr>
                            <td style="width: 122px;">
                                <asp:Label ID="lblAmount_Org" runat="server" Text="Số tiền chuyển" meta:resourcekey="lblAmount_OrgResource1" TabIndex="-1"></asp:Label></td>
                            <td style="width:130px;">
                                <asp:TextBox ID="txtAmount_Org" style="text-align:right;" runat="server" CssClass="citad-txt citad-txtReadonly" Width="180px" ReadOnly="True" meta:resourcekey="txtAmount_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                            <td style="width: 120px;" align="right">
                                <asp:Label ID="lblSerial_No_R" runat="server" Text="Số giao dịch gốc" Width="101px" meta:resourcekey="lblSerial_No_RResource1" TabIndex="-1"></asp:Label></td>
                            <td colspan="2">
                                <asp:TextBox ID="txtSerial_No_Org" runat="server" CssClass="citad-txt citad-txtReadonly"
                                    ReadOnly="True" Width="143px" meta:resourcekey="txtSerial_No_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                        </tr>
                        
                       
                    </table>
                    <fieldset><legend>
                        <asp:Label ID="GroupBox1" runat="server" Text="Thông tin người gửi" meta:resourcekey="GroupBox1Resource1" TabIndex="-1"></asp:Label></legend>
                        <table cellpadding="0" cellspacing="1" >
                            
                            <tr>
                                <td style="width: 123px;">
                                    <asp:Label ID="lblSD_Name" runat="server" Text="Tên" meta:resourcekey="lblSD_NameResource1" TabIndex="-1"></asp:Label></td>
                                <td colspan="4">
                                    <asp:TextBox ID="txtSD_Name" runat="server" CssClass="citad-txt citad-txtReadonly" Width="540px" ReadOnly="True" meta:resourcekey="txtSD_NameResource1" TabIndex="-1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 123px">
                                    <asp:Label ID="lblO_SD_Code" runat="server" Text="Mã đơn vị gửi lệnh" meta:resourcekey="lblO_SD_CodeResource1" Width="113px" TabIndex="-1"></asp:Label></td>
                                <td colspan="4">
                                    <asp:TextBox ID="txtSD_Code_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="540px" ReadOnly="True" meta:resourcekey="txtSD_Code_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 123px; height: 16px;">
                                    <asp:Label ID="lblSD_ACCNT_Org" runat="server" Text="Số tài khoản" meta:resourcekey="lblSD_ACCNT_OrgResource1" TabIndex="-1"></asp:Label></td>
                                <td style="width: 130px; height: 16px;">
                                    <asp:TextBox ID="txtSD_ACCNT_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="180px" ReadOnly="True" meta:resourcekey="txtSD_ACCNT_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                <td style="width: 120px; height: 16px;" align="right">
                                    <asp:Label ID="lblO_Indirect_Bank" runat="server" Text="Tại" meta:resourcekey="lblO_Indirect_BankResource1" TabIndex="-1"></asp:Label>
                                    <asp:TextBox ID="txtO_InDirect_CODE_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="85px" ReadOnly="True" meta:resourcekey="txtO_InDirect_CODE_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                <td style="height: 16px" align="left">
                                    &nbsp;<asp:Label ID="lblO_Indirect_Name" runat="server" meta:resourcekey="lblO_Indirect_NameResource1" TabIndex="-1"></asp:Label></td>
                            </tr>
                        </table>
                    </fieldset>
                    <fieldset><legend>
                        <asp:Label ID="lblReceiverInfor" runat="server" Text="Thông tin người nhận" meta:resourcekey="lblReceiverInforResource1" TabIndex="-1"></asp:Label></legend>
                        <table cellpadding="0" cellspacing="1" >
                            
                            <tr>
                                <td style="width: 126px">
                                    <asp:Label ID="lblRV_Name_Org" runat="server" Text="Tên" meta:resourcekey="lblRV_Name_OrgResource1" TabIndex="-1"></asp:Label></td>
                                <td colspan="4">
                                    <asp:TextBox ID="txtRV_Name_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="540px" ReadOnly="True" meta:resourcekey="txtRV_Name_OrgResource1" TabIndex="-1" ></asp:TextBox>&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 126px">
                                    <asp:Label ID="lblR_Code_Org" runat="server" Text="Mã đơn vị gửi lệnh" meta:resourcekey="lblR_Code_OrgResource1" TabIndex="-1"></asp:Label></td>
                                <td colspan="4">
                                    <asp:TextBox ID="txtRV_Code_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="540px" ReadOnly="True" meta:resourcekey="txtRV_Code_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 126px;">
                                    <asp:Label ID="lblRV_ACCNT_Org" runat="server" Text="Số tài khoản" meta:resourcekey="lblRV_ACCNT_OrgResource1" TabIndex="-1"></asp:Label></td>
                                <td style="width: 130px;">
                                    <asp:TextBox ID="txtRV_ACCNT_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="180px" ReadOnly="True" meta:resourcekey="txtRV_ACCNT_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                <td style="width: 120px;" align="right">
                                    <asp:Label ID="lblR_InDirect_Bank" runat="server" Text="Tại" meta:resourcekey="lblR_InDirect_BankResource1" TabIndex="-1"></asp:Label>
                                    <asp:TextBox ID="txtR_InDirect_CODE_Org" runat="server" CssClass="citad-txt citad-txtReadonly" Width="85px" ReadOnly="True" meta:resourcekey="txtR_InDirect_CODE_OrgResource1"></asp:TextBox></td>
                                <td align="left">
                                    &nbsp;<asp:Label ID="lblR_InDirect_NAME_Org" runat="server" meta:resourcekey="lblR_InDirect_NAME_OrgResource1" TabIndex="-1"></asp:Label></td>
                            </tr>
                        </table>
                    </fieldset>
                  
                    
                        <fieldset id="fdsInterbankMarket" runat="server" visible="true">
                            <legend>
                                <asp:Label ID="lblLNH" meta:resourcekey="lblLNHResource1" runat="server" Text="Thông tin giao dịch trên thị trường LNH"></asp:Label>
                            </legend>
                            <table cellpadding="0" cellspacing="1" >
                                <tr>
                                    <td style="width: 115px" >
                                        <asp:Label ID="lblNgayGiaoDich" runat="server" Text="Ngày giao dịch"></asp:Label></td>
                                
                                <td style="width: 107px" >
                                    <asp:TextBox ID="dtpTRX_Date" runat="server" 
                                        Width="70px" MaxLength="8" ReadOnly="true" CssClass="citad-txt citad-txtReadonly"  TabIndex="-1"></asp:TextBox>

                                </td>
                                <td align="right" style="padding-right:3px;width: 78px">
                                    <asp:Label ID="lblLoaiGiaoDich" meta:resourcekey="lblLoaiGiaoDichResource1" runat="server" Text="Loại giao dịch"></asp:Label>
                                </td>
                                <td><asp:TextBox ID="txtTrxType" runat="server"  TabIndex="-1"
                                        Width="30px" MaxLength="3" ReadOnly="true" CssClass="citad-txt citad-txtReadonly"></asp:TextBox>
                                
                                    </td>
                              <td colspan="3" style="width:170px;"><asp:Label ID="lblTrxType" style="margin-left:3px;"  ForeColor="#0046D5" runat="server" Text="" /></td>
                                <td align="right" style="padding-right:3px">
                                    <asp:Label ID="lblLaiSuat" meta:resourcekey="lblLaiSuatResource1" runat="server" Text="Lãi suất"></asp:Label>
                                </td>
                                <td><asp:TextBox ID="txtLaiSuat" runat="server" meta:resourcekey="dtpTRX_DateResource1" TabIndex="-1"
                                        Width="35px" MaxLength="5" ReadOnly="true" CssClass="citad-txt citad-txtReadonly"></asp:TextBox> 
                                        <asp:Label ID="lblNam" meta:resourcekey="lblNamResource1" runat="server" Text="Năm"/>
                                        </td>
                            </tr>
                            <tr>
                            <td><asp:Label ID="lblKyHan" meta:resourcekey="lblKyHanResource1" runat="server" Text="Kỳ hạn"></asp:Label></td>
                            <td>
                            <asp:TextBox ID="txtKyHan" runat="server"  TabIndex="-1"
                                        Width="50px" MaxLength="4" CssClass="citad-txt citad-txtReadonly" ReadOnly="true"></asp:TextBox>
                                        <asp:Label ID="lblNgay" meta:resourcekey="lblNgayResource1" runat="server" Text="Ngày"></asp:Label>
                            </td>
                            <td align="right" style="padding-right:3px"><asp:Label ID="lblLoaiTien" runat="server" Text="Loại tiền" />
                            </td>
                            <td><asp:TextBox ID="txtCurrency2" runat="server"  TabIndex="-1"
                                        Width="30px" MaxLength="3" ReadOnly="true" CssClass="citad-txt citad-txtReadonly" /></td>
                            <td><asp:Label ID="lblCurrency" runat="server" ForeColor="#0046D5" /></td>
                            <td align="right" style="padding-right:3px">
                            <asp:Label ID="lblLoaiGTCG" meta:resourcekey="lblLoaiGTCGResource1" style="margin-left:3px;" runat="server" Text="Loại GTCG" />
                            </td>
                            <td><asp:TextBox ID="txtValuablePapers" runat="server"  TabIndex="-1"
                                        Width="40px" MaxLength="4" ReadOnly="true" CssClass="citad-txt citad-txtReadonly"></asp:TextBox>
                                        </td>
                                        <td colspan="2"><asp:Label ID="lblValuablePapers" style="margin-left:3px;" ForeColor="#0046D5" runat="server" Text="" /></td>
                            </tr>
                        </table>
                       
                        </fieldset>
                        
                    
                    </fieldset>
                    <ajaxToolkit:CalendarExtender id="CalendarExtender1" runat="server" TargetControlID="txtTrx_Date_Org_Day" Format="dd/MM/yyyy" Enabled="True">
                    </ajaxToolkit:CalendarExtender></td>
                
                <%--het noi dung 1--%>
                <td valign="top">
                    <table>
                        <tr>
                            <td style="width: 100px; height: 30px;">
                    <asp:Button ID="btnApprove" runat="server" CssClass="citad-btn" Text="Duyệt" Height="28px" Width="80px" OnClick="btnApprove_Click" meta:resourcekey="btnApproveResource1" TabIndex="2" /></td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                    <asp:Button ID="btnReject" OnClientClick="return fcnApproveReturnReject();" runat="server" CssClass="citad-btn" Text="Thoái" OnClick="btnReject_Click" meta:resourcekey="btnRejectResource1" TabIndex="3" /></td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                    <asp:Button ID="btnReturn" OnClientClick="return fcnApproveReturnReject();" runat="server" CssClass="citad-btn" Text="Trả lại" meta:resourcekey="btnReturnResource1" OnClick="btnReturn_Click" TabIndex="4" /></td>
                        </tr>
                        <tr>
                            <td style="width: 100px; height: 30px;">
                    <asp:Button ID="btnPrevios" runat="server" CssClass="citad-btn" Text="Trước" OnClick="btnPrevios_Click" meta:resourcekey="btnPreviosResource1" TabIndex="5" /></td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                    <asp:Button ID="btnNext" runat="server" CssClass="citad-btn" Text="Tiếp theo" OnClick="btnNext_Click" meta:resourcekey="btnNextResource1" TabIndex="6" /></td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                    <asp:Button ID="btnPrint" runat="server" CssClass="citad-btn" Text="In"  meta:resourcekey="btnPrintResource1" OnClick="btnPrint_Click" TabIndex="7" /></td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                    <asp:Button ID="btnClose1" runat="server" CssClass="citad-btn" Text="Đóng" OnClick="btnClose_Click" meta:resourcekey="btnClose1Resource1" TabIndex="8" /></td>
                        </tr>
                        <tr>
                            <td align="center" style="width: 100px">
                                <asp:Label ID="lblTongSo" runat="server" Text="Tổng số" meta:resourcekey="lblTongSoResource1" TabIndex="-1"></asp:Label>
                                <asp:Label ID="lblCount" runat="server" Text="0" TabIndex="-1"></asp:Label></td>
                        </tr>
                    </table>
                    &nbsp;
                    </td>
            </tr>
            <tr>
                <td align="center" valign="bottom">
                    
                    </td>
            </tr>
        </table>
        
        <div>
        
            <ajaxToolkit:maskededitvalidator id="MaskedEditValidator1" runat="server" controlextender="MaskedEditExtender1"
                controltovalidate="txtTrx_Date_Org_Day" display="Dynamic" emptyvalueblurredtext="*"
                emptyvaluemessage="Date is required" invalidvalueblurredmessage="*" invalidvaluemessage="Date is invalid"
                validationgroup="MKE" ErrorMessage="MaskedEditValidator1" meta:resourcekey="MaskedEditValidator1Resource1"></ajaxToolkit:maskededitvalidator>
            <ajaxToolkit:maskededitextender id="MaskedEditExtender1" runat="server" errortooltipenabled="True" mask="99/99/9999" masktype="Date"
                targetcontrolid="txtTrx_Date_Org_Day" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True">
                        </ajaxToolkit:maskededitextender>
            &nbsp; &nbsp; &nbsp;
            <uc1:MessageBox ID="MessageBox1" runat="server" />
           
        </div>  
        
        <asp:HiddenField ID="hidMsg_Reason" runat="server" />
        <asp:HiddenField ID="hidFocusControlName" runat="server" /> 
        <asp:HiddenField ID="hidMAC" runat="server" />
        <asp:HiddenField ID="hidTRX_TYPE" runat="server" />
        <asp:HiddenField ID="hidO_CI_ID" runat="server" />
        <asp:HiddenField ID="hidR_CI_ID" runat="server" />
        <asp:HiddenField ID="hidTRX_TYPE_ORG" runat="server" />
        <asp:HiddenField ID="hidO_INDIRECT_ORG" runat="server" />
        <asp:HiddenField ID="hidR_INDIRECT_ORG" runat="server" />
        <asp:HiddenField ID="hidTRX_DATE_ORG" runat="server" />
        <asp:HiddenField ID="hidO_CI_ID_ORG" runat="server" />
        <asp:HiddenField ID="hidR_CI_ID_ORG" runat="server" />
        <input id="hidIndex" style="width: 15px" runat ="server"  type="hidden" />
        <input id="hidUser_ID" style="width: 15px" runat ="server"  type="hidden" />
        <input id="hidDate" style="width: 15px" runat ="server"  type="hidden" />
        <input id="hidAction" style="width: 15px" runat ="server"  type="hidden" />
        <asp:HiddenField ID="hidID" runat="server" />
       <%-- <ajaxToolkit:FilteredTextBoxExtender id="ftbReject_reason" runat="server" 
            TargetControlID="txtReturn_Reason" 
            ValidChars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -_" 
            FilterMode="validChars" FilterType="Custom">
        </ajaxToolkit:FilteredTextBoxExtender>--%>
        
        <asp:HiddenField ID="hidSD_CODE_ORG" runat="server"  />
        <asp:HiddenField ID="hidRV_CODE_ORG" runat="server"  />
        <asp:HiddenField ID="hidTAX_CODE_ORG" runat="server" />
        <asp:HiddenField ID="hidRV_IDENTIFY_ORG" runat="server" />
        <asp:HiddenField ID="hidSD_IDENTIFY_ORG" runat="server" />
        <!--Sign-->

        <asp:HiddenField ID="hidESIGN_MESSAGE" runat="server" />
        <asp:HiddenField ID="hidESIGN_CONTENT" runat="server" />

        <!--end Sign-->
            <script language ="javascript" >
            function onOK()
            {
                document.getElementById('<%=txtRelation_No_Org.ClientID %>').focus();
            }
            
        </script>
            </ContentTemplate> 
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID ="txtRelation_No_Org" EventName ="TextChanged" />
                <asp:AsyncPostBackTrigger ControlID ="btnNext" EventName ="Click" />
                <asp:AsyncPostBackTrigger ControlID ="btnPrevios" EventName ="Click" /> 
            </Triggers> 
        </asp:UpdatePanel>
</asp:Content>

