<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/CITAD.Master" 
    Codebehind="frmAppWarning.aspx.cs"
    Inherits="CITAD.Modules.KiemSoatLenhDangKyCanhBao.Web.frmAppWarning" 
    Culture="auto"
    meta:resourcekey="PageResource1" 
    UICulture="auto" %>

<%@ 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==37)    //  Trước Ctrl + <--
                {
                    $get('ctl00$ContentPlaceHolder1$btnPrev').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==55)    //  Thoái Ctr + 7
                {
                    $get('ctl00$ContentPlaceHolder1$btnReject').click();
                }
                if(window.event.keyCode==56)    //  Trả lại Ctr + 8
                {
                    $get('ctl00$ContentPlaceHolder1$btnReturn').click();
                }
                if(window.event.keyCode==52)    //  Truy vấn Ctr + 4
                {
                    $get('ctl00$ContentPlaceHolder1$btnQuery').click();
                }
            }
        }
    </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" EnableScriptGlobalization="True"
        EnableScriptLocalization="True" ID="ScriptManager1" CombineScripts="True" />
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table width="100%">
                    <tr>
                        <td>
                            <asp:Label ID="lblError" runat="server" ForeColor="red" Text=""></asp:Label>
                            <fieldset>
                                <legend>
                                    <asp:Label ID="Groupbox1" runat="server" Text="Lệnh đăng ký cảnh báo trong ngày"
                                        meta:resourcekey="Groupbox1Resource1"></asp:Label></legend>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblSerial_No" runat="server" Text="Số hiệu giao dịch" Width="350px"
                                                meta:resourcekey="lblSerial_NoResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtSerial_No" runat="server" CssClass="citad-txtReadonly" Width="160px"
                                                ReadOnly="True" meta:resourcekey="txtSerial_NoResource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTrx_Date" runat="server" Text="Ngày lệnh" Width="200px" meta:resourcekey="lblTrx_DateResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDate" runat="server" CssClass="citad-txtReadonly" Width="75px"
                                                ReadOnly="True" meta:resourcekey="txtDateResource1"></asp:TextBox>
                                            <asp:TextBox ID="txtTime" runat="server" CssClass="citad-txtReadonly" Width="74px"
                                                ReadOnly="True" meta:resourcekey="txtTimeResource1"></asp:TextBox>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblUser_ID" runat="server" Text="TELLER ID" Width="200px" meta:resourcekey="lblUser_IDResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtUser_ID" runat="server" CssClass="citad-txtReadonly" Width="160px"
                                                ReadOnly="True" meta:resourcekey="txtUser_IDResource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTrx_Status" runat="server" Text="Tình trạng giao dịch" Width="250px"
                                                meta:resourcekey="lblTrx_StatusResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtStatus" runat="server" CssClass="citad-txtReadonly" Width="240px"
                                                ForeColor="Red" ReadOnly="True" meta:resourcekey="txtStatusResource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFinish_Reg_Time" runat="server" Text="Thời điểm hoàn thành đăng ký"
                                                Width="250px" meta:resourcekey="lblFinish_Reg_TimeResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFinish_Reg_Time" runat="server" CssClass="citad-txtReadonly"
                                                Width="240px" ReadOnly="True" meta:resourcekey="txtFinish_Reg_TimeResource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblWarn_AMT_1" runat="server" Text="Mức đăng ký cảnh báo số dư 1"
                                                Width="250px" meta:resourcekey="lblWarn_AMT_1Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtWarn_AMT_1" runat="server" Style="text-align: right" CssClass="citad-txtReadonly"
                                                Width="240px" ReadOnly="True" meta:resourcekey="txtWarn_AMT_1Resource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblWarn_AMT_2" runat="server" Text="Mức đăng ký cảnh báo số dư 2"
                                                Width="250px" meta:resourcekey="lblWarn_AMT_2Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtWarn_AMT_2" runat="server" Style="text-align: right" CssClass="citad-txtReadonly"
                                                Width="240px" ReadOnly="True" meta:resourcekey="txtWarn_AMT_2Resource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblWarn_AMT_3" runat="server" Text="Mức đăng ký cảnh báo số dư 3"
                                                Width="250px" meta:resourcekey="lblWarn_AMT_3Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtWarn_AMT_3" runat="server" Style="text-align: right" CssClass="citad-txtReadonly"
                                                Width="240px" ReadOnly="True" meta:resourcekey="txtWarn_AMT_3Resource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                            <fieldset>
                                <legend>
                                    <asp:Label ID="GroupBox2" runat="server" Text="Mức đăng ký cảnh báo cũ" meta:resourcekey="GroupBox2Resource1"></asp:Label></legend>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblOldWarn_AMT_1" runat="server" Text="Mức đăng ký cảnh báo số dư 1"
                                                Width="350px" meta:resourcekey="lblOldWarn_AMT_1Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOldWarn_AMT_1" runat="server" Style="text-align: right" CssClass="citad-txtReadonly"
                                                Width="240px" ReadOnly="True" meta:resourcekey="txtOldWarn_AMT_1Resource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblOldWarn_AMT_2" runat="server" Text="Mức đăng ký cảnh báo số dư 2"
                                                Width="250px" meta:resourcekey="lblOldWarn_AMT_2Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOldWarn_AMT_2" runat="server" Style="text-align: right" CssClass="citad-txtReadonly"
                                                Width="240px" ReadOnly="True" meta:resourcekey="txtOldWarn_AMT_2Resource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblOldWarn_AMT_3" runat="server" Text="Mức đăng ký cảnh báo số dư 3"
                                                Width="250px" meta:resourcekey="lblOldWarn_AMT_3Resource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOldWarn_AMT_3" runat="server" Style="text-align: right" CssClass="citad-txtReadonly"
                                                Width="240px" ReadOnly="True" meta:resourcekey="txtOldWarn_AMT_3Resource1"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td valign="top">
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnApprove" runat="server" CssClass="citad-btn" Text="Duyệt" OnClick="btnApprove_Click"
                                            meta:resourcekey="btnApproveResource1" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnReturn" OnClientClick="return fcnApproveReturnReject();" runat="server"
                                            CssClass="citad-btn" Text="Trả lại" OnClick="btnReturn_Click" meta:resourcekey="btnReturnResource1" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnReject" OnClientClick="return fcnApproveReturnReject();" runat="server"
                                            CssClass="citad-btn" Text="Thoái" OnClick="btnReject_Click" meta:resourcekey="btnRejectResource1" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnPrev" runat="server" CssClass="citad-btn" Text="Trước" OnClick="btnPrev_Click"
                                            meta:resourcekey="btnPrevResource1" /></td>
                                </tr>
                                <tr>
                                    <td style="height: 31px">
                                        <asp:Button ID="btnNext" runat="server" CssClass="citad-btn" Text="Tiếp theo" OnClick="btnNext_Click"
                                            meta:resourcekey="btnNextResource1" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnQuery" runat="server" CssClass="citad-btn" Text="Truy vấn" OnClick="btnQuery_Click"
                                            meta:resourcekey="btnQueryResource1" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnClose" runat="server" CssClass="citad-btn" Text="Đóng" OnClick="btnClose_Click"
                                            meta:resourcekey="btnCloseResource1" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblTotal" runat="server" Text=" " Width="55px" meta:resourcekey="lblTotalResource1"></asp:Label>
                                        <asp:Label ID="lblcount" runat="server" Text="0"></asp:Label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <input id="txtMsg_key" runat="server" type="hidden" enableviewstate="true" style="width: 30px" />
                <input id="txtMsg_key1" runat="server" type="hidden" enableviewstate="true" style="width: 30px" />
                <input id="txtOCI_Code" runat="server" type="hidden" enableviewstate="true" style="width: 30px" />
                <input id="txtO_CI_ID" runat="server" type="hidden" enableviewstate="true" style="width: 30px" />
                <input id="txtTrx_Date" runat="server" type="hidden" enableviewstate="true" style="width: 30px" />
                <input id="txtTrx_Status" runat="server" type="hidden" enableviewstate="true" style="width: 30px" />
                <input id="txtProcess" runat="server" type="hidden" enableviewstate="true" style="width: 30px" />
                <asp:HiddenField ID="hidMAC" runat="server" />

                <asp:HiddenField ID="hidMsg_Reason" runat="server" />
                <!--Sign-->
                <asp:HiddenField ID="hidESIGN_MESSAGE" runat="server" />
                <asp:HiddenField ID="hidESIGN_CONTENT" runat="server" />
                <!--end Sign-->
                <uc1:MessageBox ID="MessageBox1" runat="server" />

            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>