<%@ Page Language="C#" 
MasterPageFile="~/CITAD.Master" 
AutoEventWireup="true" 
Codebehind="TaoLenhTraLoiTraSoatDen.aspx.cs"
Inherits="CITAD.Modules.TaoTraLoiTraSoatDen.Web.TaoLenhTraLoiTraSoatDen" 
Culture="auto"
UICulture="auto" 
EnableEventValidation ="false"
Title="Tạo trả lời yêu cầu tra soát đến" meta:resourcekey="PageResource1" %>

<%@ Register Src="../../Controls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language ="javascript" type ="text/javascript" >
        window.document.onkeyup=ShortcutKeys;
        function ShortcutKeys()
        {
                if(event.ctrlKey)
                {  
                    if(window.event.keyCode==57)    //  Tạo trả lời Reply
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnReply').click();
                    }
                    if(window.event.keyCode==37)    //  Trước Ctrl + <--
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnPrevious').click();
                    }
                    if(window.event.keyCode==39)    //  Tiếp theo Ctrl + -->
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnNext').click();
                    }
                    if(window.event.keyCode==69)    //  trở về danh sách Ctrl + E
                    {
                        document.getElementById('ctl00$ContentPlaceHolder1$btnDanhSach').click();
                    }
                }
                //alert(event.keyCode);
        }
    </script> 
  <script language="javascript" type="text/javascript" >
            window.onload = function()
            {
                try
                {
                    document.getElementById('<%=txtLetter_ContentX.ClientID%>').focus();
                }
                catch(e){}
            }
    </script>
<ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" EnableScriptGlobalization="True"
             EnableScriptLocalization="True" CombineScripts="True" EnablePageMethods="true"  />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellpadding="0" cellspacing="0" width="100%" border="0">
                <tr>
                    <td valign="top" align="left">
                        <div>
                            <fieldset>
                                <table border="0" cellspacing="1" width="100%">
                                    <tr>
                                        <td style="width: 116px" align="right">
                                            <asp:Label ID="lblO_CI_ID" runat="server" Text="Ng&#226;n h&#224;ng gửi " Width="109px" meta:resourcekey="lblO_CI_IDResource1" TabIndex="-1"></asp:Label></td>
                                        <td style="width: 99px">
                                            <asp:TextBox ID="txtO_CI_Code" runat="server" ReadOnly="True" Width="108px" CssClass="citad-txtReadonly" meta:resourcekey="txtO_CI_CodeResource1" TabIndex="-1"></asp:TextBox></td>
                                        <td colspan="2">
                                            <label id="lblNganHangGui">
                                                <asp:Label ID="lblO_CI_Name" runat="server" Text="Label" Width="177px" meta:resourcekey="lblO_CI_NameResource1" TabIndex="-1"></asp:Label>
                                            </label>
                                        </td>
                                        <td align="right">
                                            <asp:Label ID="lblSerial_No" runat="server" Text="Số điện tra so&#225;t đến" Width="130px" meta:resourcekey="lblSerial_NoResource1" TabIndex="-1"></asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="txtSerial_No" runat="server" ReadOnly="True" Width="100px" CssClass="citad-txtReadonly" meta:resourcekey="txtSerial_NoResource1" TabIndex="-1"></asp:TextBox></td>
                                        <td align="left" style="width: 3px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 116px">
                                            <asp:Label ID="lblR_CI_ID" runat="server" Text="Ng&#226;n h&#224;ng nhận" Width="109px" meta:resourcekey="lblR_CI_IDResource1" TabIndex="-1"></asp:Label></td>
                                        <td style="width: 99px">
                                            <asp:TextBox ID="txtR_CI_Code" runat="server" ReadOnly="True" Width="108px" CssClass="citad-txtReadonly" meta:resourcekey="txtR_CI_CodeResource1" TabIndex="-1"></asp:TextBox>
                                        </td>
                                        <td colspan="2" align="left">
                                            <label id="lblNganHangNhan">
                                                <asp:Label ID="lblR_CI_Name" runat="server" Text="Label" Width="174px" meta:resourcekey="lblR_CI_NameResource1" TabIndex="-1"></asp:Label>
                                            </label>
                                        </td>
                                        <td align="right">
                                            <asp:Label ID="lblUser_ID" runat="server" Text="TELLER ID" Width="90px" meta:resourcekey="lblUser_IDResource1" TabIndex="-1"></asp:Label></td>
                                        <td align="left" colspan="2">
                                            <asp:TextBox ID="txtUser_ID" runat="server" CssClass=" citad-txtReadonly" ReadOnly="True"
                                                Width="100px" meta:resourcekey="txtUser_IDResource1" TabIndex="-1"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 116px" align="right">
                                            &nbsp;<asp:Label ID="lblSD_Time" runat="server" Text="Thời điểm tra so&#225;t" Width="109px" meta:resourcekey="lblSD_TimeResource1" TabIndex="-1"></asp:Label></td>
                                        <td colspan="3">
                                            <asp:TextBox ID="txtSD_Time" runat="server" ReadOnly="True" Width="212px" CssClass="citad-txtReadonly" meta:resourcekey="txtSD_TimeResource1" TabIndex="-1"></asp:TextBox></td>
                                        <td align="right">
                                            <asp:Label ID="lblTrxDate" runat="server" Text="Thời điểm tạo lệnh" Width="130px" meta:resourcekey="lblTrxDateResource1" TabIndex="-1"></asp:Label></td>
                                        <td align="left" colspan="2">
                                            <asp:TextBox ID="txtTrxDate" runat="server" CssClass="citad-txtReadonly" ReadOnly="True"
                                                Width="100px" meta:resourcekey="txtTrxDateResource1" TabIndex="-1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 116px">
                                            </td>
                                        <td style="width: 99px">
                                            </td>
                                        <td colspan="1" style="width: 5px">
                                        </td>
                                        <td align="right" style="width: 179px">
                                            <asp:Label ID="lblTrx_Staus" runat="server" Text="T&#236;nh trạng giao dịch" Width="120px" meta:resourcekey="lblTrx_StausResource1" TabIndex="-1"></asp:Label></td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtTrxStatusName" runat="server" BackColor="#C3DAF9" CssClass="citad-txtReadonly"
                                                ReadOnly="True" Width="233px" meta:resourcekey="txtTrxStatusNameResource1" TabIndex="-1" ForeColor="Red" Font-Bold="True"></asp:TextBox></td>
                                    </tr>
                                </table>
                            </fieldset>
                            
                            
                             <fieldset id="fdsInterbankMarket" runat="server" visible="False">
                                <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: 118px" >
                                            <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>
                            <legend>
                                    <asp:Label ID="Label1" runat="server" Text="Nội dung tra soát"></asp:Label>
                                </legend>
                                <table cellspacing="1" width="100%">
                                    <tr>
                                        <td align="right" style="width: 115px">
                                            <asp:Label ID="lblTrx_Date_Org" runat="server" Text="Ng&#224;y giao dịch" Width="109px" meta:resourcekey="lblTrx_Date_OrgResource1" TabIndex="-1"></asp:Label></td>
                                        <td colspan="1">
                                            <asp:TextBox ID="txtTrx_Date_Org" runat="server" ReadOnly="True" Width="98px" CssClass="citad-txtReadonly" meta:resourcekey="txtTrx_Date_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                        <td align="right">
                                            <asp:Label ID="lblTrx_Type" runat="server" Text="Loại giao dịch" Width="109px" meta:resourcekey="lblTrx_TypeResource1" TabIndex="-1"></asp:Label></td>
                                        <td align="left" colspan="2">
                                            <fieldset>
                                                <asp:RadioButton ID="rdbLV" runat="server" GroupName="fls" meta:resourcekey="rdbDiResource1"
                                                    Text="Gi&#225; trị thấp" Width="115px" Enabled="False" TabIndex="-1" />
                                                <asp:RadioButton ID="rdbHV" runat="server" GroupName="fls" meta:resourcekey="rdbDenResource1"
                                                    Text="Gi&#225; trị cao" Width="125px" Enabled="False" TabIndex="-1" />
                                            </fieldset>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 115px">
                                            <asp:Label ID="lblSerial_No_Org" runat="server" Text="Số giao dịch gốc" Width="109px" meta:resourcekey="lblSerial_No_OrgResource1" TabIndex="-1"></asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="txtSerial_No_Org" runat="server" ReadOnly="True" Width="74%" CssClass="citad-txtReadonly" meta:resourcekey="txtSerial_No_OrgResource1" TabIndex="-1"></asp:TextBox></td>
                                        <td align="right">
                                            <asp:Label ID="lblO_Indirect_ID" runat="server" Text="NH c&#243; TK gửi" Width="109px" meta:resourcekey="lblO_Indirect_IDResource1" TabIndex="-1"></asp:Label></td>
                                        <td style="width: 74px" align="left">
                                            <asp:TextBox ID="txtO_Indirect_ID_Code" runat="server" ReadOnly="True" Width="120px"
                                                CssClass="citad-txtReadonly" meta:resourcekey="txtO_Indirect_ID_CodeResource1" TabIndex="-1"></asp:TextBox>
                                        </td>
                                        <td align="left">
                                            <asp:Label ID="lblO_Indirect_Name" runat="server" Text="(T&#234;n ng&#226;n h&#224;ng gửi)" Width="168px" meta:resourcekey="lblO_Indirect_NameResource1" TabIndex="-1"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 115px">
                                            </td>
                                        <td>
                                            </td>
                                        <td align="right">
                                            <asp:Label ID="lblR_Indirect_ID" runat="server" Text="NH c&#243; TK nhận" Width="109px" meta:resourcekey="lblR_Indirect_IDResource1" TabIndex="-1"></asp:Label></td>
                                        <td style="width: 74px" align="left">
                                            <asp:TextBox ID="txtR_Indirect_Code" runat="server" ReadOnly="True" Width="121px"
                                                CssClass="citad-txtReadonly" meta:resourcekey="txtR_Indirect_CodeResource1" TabIndex="-1"></asp:TextBox>&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:Label ID="lblR_Indirect_Name" runat="server" Text="(T&#234;n ng&#226;n h&#224;ng nhận)" Width="165px" meta:resourcekey="lblR_Indirect_NameResource1" TabIndex="-1"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td valign="top" align="right" style="width: 115px">
                                            <asp:Label ID="lblLetter_Content" runat="server" Text="Nội dung y&#234;u cầu tra so&#225;t"
                                                Width="109px" meta:resourcekey="lblLetter_ContentResource1" TabIndex="-1"></asp:Label></td>
                                        <td colspan="4">
                                            <asp:TextBox ID="txtLetter_Content" runat="server" Height="75px" ReadOnly="True"
                                                TextMode="MultiLine" Width="544px" CssClass="citad-txtReadonly" meta:resourcekey="txtLetter_ContentResource1" TabIndex="-1"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="width: 115px">
                                            <asp:Label ID="lblRCI_Time" runat="server" Text="Thời điểm xử l&#253; tại NH nhận" Width="109px" meta:resourcekey="lblRCI_TimeResource1" TabIndex="-1"></asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="txtRCI_Time" runat="server" ReadOnly="True" Width="125px" MaxLength="20" meta:resourcekey="txtRCI_TimeResource1" CssClass="citad-txtReadonly" TabIndex="-1"></asp:TextBox></td>
                                        <td>
                                            </td>
                                        <td style="width: 74px">
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top" align="right" style="width: 115px; height: 58px;">
                                            <asp:Label ID="lblLetter_ContentX" runat="server" Text="Nội dung ng&#226;n h&#224;ng nhận trả lời"
                                                Width="109px" meta:resourcekey="lblLetter_ContentXResource1" TabIndex="-1"></asp:Label></td>
                                        <td colspan="4" style="height: 58px">
                                            <asp:TextBox ID="txtLetter_ContentX" runat="server" Height="75px" ReadOnly="True"
                                                TextMode="MultiLine" Width="543px" onkeyup="checkMaxLength(this, 210);" MaxLength="210" meta:resourcekey="txtLetter_ContentXResource1" TabIndex="1"></asp:TextBox></td>
                                    </tr>
                                </table>
                            </fieldset>
                        </div>
                    </td>
                    <td valign="top">
                        <table cellpadding="0" cellspacing="2">
                                <tr>
                                    <td valign="top">
                                        <asp:Button ID="btnReply" runat="server" OnClick="btnReply_Click" Text="Tạo trả lời"
                                            Width="86px" meta:resourcekey="btnReplyResource1" TabIndex="2" /></td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <asp:Button ID="btnPrevious" runat="server" OnClick="btnPrevious_Click" Text="Trước"
                                            Width="86px" meta:resourcekey="btnPreviousResource1" TabIndex="3" /></td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <asp:Button ID="btnNext" runat="server" OnClick="btnNext_Click" Text="Tiếp theo"
                                            Width="86px" meta:resourcekey="btnNextResource1" TabIndex="4" /></td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <asp:Button ID="btnPrint" runat="server" OnClick="btnPrint_Click" Text="In" Width="86px" meta:resourcekey="btnPrintResource1" TabIndex="5" /></td>
                                </tr>
                                <tr>
                                    <td>
                            <asp:Button ID="btnDanhSach" runat="server" OnClick="btnDanhSach_Click" Text="Đ&#243;ng" Width="86px" 
                            meta:resourcekey="btnDanhSachResource1" TabIndex="6"/>&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label30" runat="server" Text="Tổng số:" meta:resourcekey="Label30Resource1" TabIndex="-1"></asp:Label><asp:Label ID="lblTotalRecord"
                                            runat="server" meta:resourcekey="lblTotalRecordResource1" Text="0/0" TabIndex="-1"></asp:Label></td>
                                </tr>
                            </table>
                    </td>
                </tr>
            </table>
            
           <%-- <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup"
                Width="400px" meta:resourcekey="Panel1Resource1">
                <p style="font-size: 14px;">
                    <asp:Label ID="lblMessageTitle" runat="server" Text="Thông báo" meta:resourcekey="lblMessageTitleResource1" TabIndex="-1"></asp:Label></p>
                <p>
                    <asp:Label ID="lblMessage" runat="server" Text="Label" meta:resourcekey="lblMessageResource1" TabIndex="-1"></asp:Label></p>
                <p style="text-align: center;">
                    <asp:Button ID="OkButton" runat="server" Text="OK" CssClass="citad-btn" meta:resourcekey="OkButtonResource1" TabIndex="-1" />
                </p>
            </asp:Panel>--%>
            <asp:HiddenField ID="hidMsg_Key" runat="server" />
            <asp:HiddenField ID="hidMAC" runat="server" />
            <uc1:MessageBox ID="MessageBox1" runat="server" />
            <asp:HiddenField ID="hidModalPopup" runat="server" />
          <%--  <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="hidModalPopup"
                PopupControlID="Panel1" BackgroundCssClass="modalBackground" OkControlID="OkButton"
                DynamicServicePath="" Enabled="True">
            </ajaxToolkit:ModalPopupExtender>--%>
            <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtRCI_Time"
                Mask="99/99/9999" MaskType="Date" ErrorTooltipEnabled="True" CultureAMPMPlaceholder=""
                CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
                CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
                Enabled="True">
            </ajaxToolkit:MaskedEditExtender>
            <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskedEditExtender1"
                ControlToValidate="txtRCI_Time" EmptyValueMessage="Date is required" InvalidValueMessage="Date is invalid"
                Display="Dynamic" EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="MKE"
                ErrorMessage="MaskedEditValidator1" meta:resourcekey="MaskedEditValidator1Resource1"></ajaxToolkit:MaskedEditValidator>
             </ContentTemplate>
        </asp:UpdatePanel>
</asp:Content>
