<%@ Page Language="C#" AutoEventWireup="true" 
    MasterPageFile ="~/CITAD.Master" 
    CodeBehind="frmApprove_LMX.aspx" 
    Inherits="CITAD.Modules.KiemSoatLenhChuyenDen.Web.frmApprove_LMX" 
    Culture="auto" 
    meta:resourcekey="PageResource1" 
    UICulture="auto" 
    Title="Kiểm soát lệnh tra soát đến"%>

<%@ Register Src="../../Controls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>
  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>  
<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==37)    //  Tr??c Ctrl + <--
                {
                    $get('ctl00$ContentPlaceHolder1$btnPrevious').click();
                }
                if(window.event.keyCode==39)    //  Ti?p theo Ctrl + -->
                {
                    $get('ctl00$ContentPlaceHolder1$btnNext').click();
                }
                if(window.event.keyCode==54)    //  Duy?t Ctr + 6
                {
                    $get('ctl00$ContentPlaceHolder1$btnApprove').click();
                }
                if(window.event.keyCode==56)    //  Tr? l?i Ctr + 8
                {
                    $get('ctl00$ContentPlaceHolder1$btnReject').click();
                }
                if(window.event.keyCode==53)    //  In Ctr + 5
                {
                    $get('ctl00$ContentPlaceHolder1$btnPrint').click();
                }
            }
        }
    </script>
        <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" EnableScriptGlobalization="True"
         EnableScriptLocalization="True" CombineScripts="True" EnablePageMethods="True"  />
         <div style="width:770px;">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table border="0">
        <tr>
            <td style="width: 684px">
                <table cellpadding="0" cellspacing="1">
                <tr>
                    <td style="width: 106px">
                        <asp:Label ID="lblO_CI_ID" runat="server" Text="Ng&#226;n h&#224;ng gửi" meta:resourcekey="lblO_CI_IDResource1" ></asp:Label>
                    </td>
                    <td>
                         <asp:TextBox ID="txtO_CI_Code" runat="server" ReadOnly="True" CssClass="citad-txtReadonly" Width="85px" meta:resourcekey="txtO_CI_CodeResource1" ></asp:TextBox>                        
                    </td>
                    <td style="width: 224px">
                        <asp:Label ID="lblO_CI_Name" runat="server" meta:resourcekey="lblO_CI_NameResource1" ForeColor="#0046D5" ></asp:Label></td>
                    <td style="width: 118px;" align="right">
                        <asp:Label ID="lblSerial_No" runat="server" Text="Số điện tra so&#225;t" meta:resourcekey="lblSerial_NoResource1" ></asp:Label>&nbsp;
                    </td>
                    <td style="text-align: right;">
                        <asp:TextBox ID="txtSerial_No" runat="server" ReadOnly="True" CssClass="citad-txtReadonly" Width="120px" meta:resourcekey="txtSerial_NoResource1" ></asp:TextBox>
                    </td>
                </tr> 
                <tr>
                <td style="width: 106px">
                    <asp:Label ID="lblR_CI_ID" runat="server" Text="Ng&#226;n h&#224;ng nhận" meta:resourcekey="lblR_CI_IDResource1" ></asp:Label>
                </td>
                <td>
                   <asp:TextBox ID="txtR_CI_Code" runat="server" ReadOnly="True" CssClass="citad-txtReadonly" meta:resourcekey="txtR_CI_CodeResource1" Width="85px" ></asp:TextBox>
                </td>
                <td style="width: 224px">
                    <asp:Label ID="lblR_CI_Name" runat="server" meta:resourcekey="lblR_CI_NameResource1" ForeColor="#0046D5"></asp:Label></td>        
                <td style="width: 118px;" align="right">
                    <asp:Label ID="lblUser_ID" runat="server" Text="Teller ID" meta:resourcekey="lblUser_IDResource1"></asp:Label>&nbsp;
                </td>
                <td style="text-align: right;">
                    <asp:TextBox ID="txtUser_ID" runat="server" CssClass=" citad-txtReadonly" ReadOnly="True" Width="120px" meta:resourcekey="txtUser_IDResource1" ></asp:TextBox>
                </td>
                </tr>
                <tr>
                <td style="width: 106px">
                    <asp:Label ID="lblSD_Time" runat="server" Text="Thời điểm tra so&#225;t" meta:resourcekey="lblSD_TimeResource1" Width="101px" ></asp:Label>
                </td>
                    <td colspan="2">
                    <asp:TextBox ID="txtSD_Time" runat="server" ReadOnly="True"  CssClass="citad-txtReadonly" Width="140px" meta:resourcekey="txtSD_TimeResource1"></asp:TextBox>
                    </td>
                    
                    <td  style="width: 118px;" align="right">
                    <asp:Label ID="lblTrxDate" runat="server" Text="Ng&#224;y tạo" meta:resourcekey="lblTrxDateResource1"></asp:Label>&nbsp;</td>
                    <td style="text-align: right;" valign="top">
                    <asp:TextBox ID="txtTrxDate" runat="server" CssClass="citad-txtReadonly"
                                                ReadOnly="True" Width="120px" meta:resourcekey="txtTrxDateResource1" ></asp:TextBox></td>
                    
                </tr> 
                
                <tr>
                    <td style="text-align: right; width: 106px;">
                    </td>
                    <td style="text-align: right;">
                    </td>
                    <td style="width: 224px;" align="right">
                    <asp:Label ID="lblTrx_Staus" runat="server" Text="T&#236;nh trạng giao dịch" meta:resourcekey="lblTrx_StausResource1" ></asp:Label>&nbsp;
                    </td>
                    <td colspan="2" style="text-align: right">
                    <asp:TextBox ID="txtTrxStatusName" runat="server" CssClass="citad-txtReadonly" ReadOnly="True" Width="238px" meta:resourcekey="txtTrxStatusNameResource1" ForeColor="Red" ></asp:TextBox>
                    </td>
                </tr>           
                </table >
                
                <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: 101px" >
                                <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 style="width: 101px"><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 cellpadding="0" cellspacing="1">
                <tr>
                <td style="width: 155px">
                    <asp:Label ID="lblTrx_Date_Org" runat="server" Text="Ng&#224;y giao dịch" meta:resourcekey="lblTrx_Date_OrgResource1" ></asp:Label></td>
                <td align="left">
                    <asp:TextBox ID="txtTrx_Date_Org" runat="server" ReadOnly="True"  CssClass="citad-txtReadonly" Width="100px" meta:resourcekey="txtTrx_Date_OrgResource1"></asp:TextBox></td>
                <td style="width: 92px;" align="right">
                    <asp:Label ID="lblTrx_Type" runat="server" Text="Loại giao dịch" meta:resourcekey="lblTrx_TypeResource1" ForeColor="#0046D5" ></asp:Label>&nbsp;
                </td>
                <td valign="top" colspan="2">
                        <asp:RadioButton ID="rdbLV" runat="server" GroupName="fls" 
                            Text="Gi&#225; trị thấp" meta:resourcekey="rdbLVResource1" Enabled="False" />
                        <asp:RadioButton ID="rdbHV" runat="server" GroupName="fls" 
                            Text="Gi&#225; trị cao" meta:resourcekey="rdbHVResource1" Enabled="False" /></td>
                </tr>
                <tr>
                <td style="width: 155px">
                    <asp:Label ID="lblSerial_No_Org" runat="server" Text="Số giao dịch gốc" meta:resourcekey="lblSerial_No_OrgResource1" ></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtSerial_No_Org" runat="server" ReadOnly="True"  CssClass="citad-txtReadonly" Width="100px" meta:resourcekey="txtSerial_No_OrgResource1"></asp:TextBox></td>
                <td style="width: 92px;" align="right">
                    <asp:Label ID="lblO_Indirect_ID" runat="server" Text="NH c&#243; TK gửi" meta:resourcekey="lblO_Indirect_IDResource1" ForeColor="#0046D5" ></asp:Label>&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtO_Indirect_Code" runat="server" ReadOnly="True"  CssClass="citad-txtReadonly" meta:resourcekey="txtO_Indirect_CodeResource1" Width="85px"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblO_Indirect_Name" runat="server" meta:resourcekey="lblO_Indirect_NameResource1" ForeColor="#0046D5" ></asp:Label>
                </td>
                </tr>
                
                <tr>
                <td style="width: 155px">
                    </td>
                <td>
                    </td>
                <td style="width: 92px;" align="right">
                    <asp:Label ID="lblR_Indirect_ID" runat="server" Text="NH c&#243; TK nhận" meta:resourcekey="lblR_Indirect_IDResource1" ForeColor="#0046D5" ></asp:Label>&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtR_Indirect_Code" runat="server" ReadOnly="True"  CssClass="citad-txtReadonly" meta:resourcekey="txtR_Indirect_CodeResource1" Width="85px"></asp:TextBox>
                    
                </td>
                <td>
                    <asp:Label ID="lblR_Indirect_Name" runat="server" meta:resourcekey="lblR_Indirect_NameResource1" ForeColor="#0046D5" ></asp:Label>
                </td>
                </tr>
                </table>
                    <table cellpadding="0" cellspacing="1">
                        <tr>
                            <td style="width: 155px">
                     <asp:Label ID="lblLetter_Content" runat="server" Text="Nội dung y&#234;u cầu tra so&#225;t" meta:resourcekey="lblLetter_ContentResource1"
                                                ></asp:Label></td>
                            <td>
                    <asp:TextBox ID="txtLetter_Content" runat="server" Height="60px" ReadOnly="True"
                                                TextMode="MultiLine"  CssClass="citad-txtReadonly" Width="504px" meta:resourcekey="txtLetter_ContentResource1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 155px">
                    <asp:Label ID="lblRCI_Time" runat="server" Text="Thời điểm xử l&#253; tại NH nhận" meta:resourcekey="lblRCI_TimeResource1" ></asp:Label></td>
                            <td>
                    <asp:TextBox ID="txtRCI_Time" runat="server" ReadOnly="True"  CssClass="citad-txtReadonly" Width="200px" meta:resourcekey="txtRCI_TimeResource1"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 155px">
                    <asp:Label ID="lblLetter_ContentX" runat="server" Text="Nội dung NH nhận trả lời" meta:resourcekey="lblLetter_ContentXResource1"
                                                ></asp:Label></td>
                            <td>
                    <asp:TextBox ID="txtLetter_ContentX" runat="server" Height="60px" ReadOnly="True"
                                                TextMode="MultiLine" CssClass="citad-txtReadonly" Width="504px" meta:resourcekey="txtLetter_ContentXResource1"></asp:TextBox></td>
                        </tr>
                    </table>
             </fieldset>
        </td>
            <td valign="top" style="padding-top:0px; ">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center">
                        <asp:Button ID="btnApprove" runat="server" Text="Duyệt" CssClass="citad-btn" OnClick="btnApprove_Click" meta:resourcekey="btnApproveResource1" />
                     </td>
                </tr>
                <tr>
                <td align="center" >
                       <asp:Button ID="btnPrevious" runat="server" Text="Trước" CssClass="citad-btn" OnClick="btnPrevious_Click" meta:resourcekey="btnPreviousResource1" />
                </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="btnNext" runat="server" Text="Tiếp theo" CssClass="citad-btn" OnClick="btnNext_Click" meta:resourcekey="btnNextResource1" />
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="btnPrint" runat="server" Text="In" CssClass="citad-btn" OnClick="btnPrint_Click" meta:resourcekey="btnPrintResource1" />
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="btnClose" runat="server"  Text="Đ&#243;ng" CssClass="citad-btn" OnClick="btnClose_Click" meta:resourcekey="btnCloseResource1" />
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Label ID="Label30" runat="server" Text="Tổng số:" meta:resourcekey="Label30Resource1" Font-Bold="True" ForeColor="#0046D5"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Label ID="lblTotalRecord" runat="server" meta:resourcekey="lblIndexOfResource1" Text="0/0" Font-Bold="True" Font-Underline="False" ForeColor="#0046D5"></asp:Label>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
    </table>
        <asp:HiddenField ID="hidMsg_Key" runat="server" />
        <asp:HiddenField ID="hidMsg_Reason" runat="server" />
        <asp:HiddenField ID="hidMAC" runat="server" />

        <%--Dữ liệu cho phần ký--%>
        <asp:HiddenField ID="hidUSER_CERT_APPR" runat="server" />
        <asp:HiddenField ID="hidESIGN_CONTENT" runat="server" />
        <asp:HiddenField ID="hidESIGN_MESSAGE" runat="server" />
        <asp:HiddenField ID="hidRESULT_VALID_ESIGN" runat="server" />
        <%--hết dữ liệu cho phần ký--%>

        <uc1:MessageBox ID="MessageBox1" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>