<%@ Page Language="vb" MasterPageFile="~/CITAD.Master"
    EnableEventValidation="false" 
    AutoEventWireup="false" 
    Codebehind="NoResponse.aspx.vb" 
    Inherits="CITAD.WEB.VB.NoResponse"
    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" >
	    //Cài đặt sự kiện phím tắt
        window.document.onkeyup=ShortcutKeys;
        function ShortcutKeys()
        {
            if(event.ctrlKey)
            {
                switch (event.keyCode)
                {
                    case 53://Ctrl + 4
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','tsbInquiry');
                        break;
                    case 56://Ctrl + 6
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','tsbDetail');
                        break;
                    case 56://Ctrl + 8
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','tsbResend');
                        break;
                    case 57://Ctrl + 9
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','tsbBlockade');
                        break;
                    case 69://Ctrl + E
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','tsbHome');
                        break;
                }
            }
        }
    </script>

    <div class="divMain" style="width:770px;">
<ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" EnableScriptGlobalization="True"
             EnableScriptLocalization="True" CombineScripts="True" EnablePageMethods="true"  />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Menu1" EventName="MenuItemClick" />
                <asp:AsyncPostBackTrigger ControlID="rdbResend" EventName="CheckedChanged" />
                <asp:AsyncPostBackTrigger ControlID="rdbReturn" EventName="CheckedChanged" />
                <asp:AsyncPostBackTrigger ControlID="rdbNotResend" EventName="CheckedChanged" />
            </Triggers>
            <ContentTemplate>
                <div>
                    <table class="citad-toolbar" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="toolbar-tdleft"></td>
                            <td class="toolbar-tdmain">
                               <asp:Menu ID="Menu1" runat="server" 
                                DynamicHorizontalOffset="2" 
                                Font-Names="Verdana"
                                Font-Size="11px"
                                OnMenuItemClick="Menu1_MenuItemClick"
                                Orientation="Horizontal" 
                                CssClass="citad-menu" 
                                StaticSubMenuIndent="10px" 
                                meta:resourcekey="Menu1Resource1"
                                StaticHoverStyle-CssClass="citad-menu-hover"
                                StaticMenuStyle-CssClass="citad-menu"
                                StaticSelectedStyle-CssClass="citad-menu-selected"
                                StaticMenuItemStyle-HorizontalPadding="5px"
                                StaticMenuItemStyle-VerticalPadding="2px">                                
                                    <Items>
                                        <asp:MenuItem meta:resourceKey="tsbHomeResource1" ImageUrl="~/Images/Menu/home.gif"
                                            SeparatorImageUrl="~/Images/toolbar/citad-toolbar-sperator.gif" Text="Home" Value="tsbHome">
                                        </asp:MenuItem>
                                        <asp:MenuItem meta:resourceKey="tsbInquiryResource1" Text="Vấn tin" ImageUrl="~/Images/Menu/search.gif"
                                            Value="tsbInquiry"></asp:MenuItem>
                                        <asp:MenuItem meta:resourceKey="tsbResendResource1" Text="Gửi lại" ImageUrl="~/Images/Menu/send.gif"
                                            Value="tsbResend"></asp:MenuItem>
                                        <asp:MenuItem meta:resourceKey="tsbBlockadeResource1"  Text="Phong tỏa" ImageUrl="~/Images/Menu/hold.gif" Value="tsbBlockade">
                                        </asp:MenuItem>
                                        <asp:MenuItem meta:resourceKey="tsbDetailResource1"   Text="Chi tiết" ImageUrl="~/Images/Menu/open.gif" Value="tsbDetail"></asp:MenuItem>
                                    </Items>                                                                          
                                </asp:Menu>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <fieldset style="margin-top:5px;padding:7px;">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 200px">
                        <asp:RadioButton ID="rdbResend" runat="server" GroupName="FF" Text="Giao dịch có thể gửi lại"
                            Checked="True" meta:resourcekey="rdbResendResource1" AutoPostBack="True" /></td>
                                <td style="width: 200px">
                        <asp:RadioButton ID="rdbNotResend" runat="server" GroupName="FF" Text="Giao dịch không thể gửi lại"
                            meta:resourcekey="rdbNotResendResource1" AutoPostBack="True" /></td>
                                <td>
                        <asp:RadioButton ID="rdbReturn" runat="server" GroupName="FF" Text="Giao dịch đã trả lại tiền"
                            meta:resourcekey="rdbReturnResource1" AutoPostBack="True" /></td>
                            </tr>
                                                         
                        </table>
                      
                    </fieldset>
                    <table style="width: 770px">
                        <tr>
                            <td style="width: 205px">
                            </td>
                            <td style="width: 463px">
                            </td>
                            <td style="width: 446px" align="right">
                                &nbsp;<asp:Label ID="lblTongSo" runat="server" Text="Tổng số: " meta:resourceKey="lblTongSo" Font-Bold="True"></asp:Label>
                        <asp:Label ID="lblCount" runat="server" Font-Bold="True"></asp:Label></td>
                        </tr>
                    </table>
                     <div style="overflow-x:scroll;width:770px;margin-top:5px;">
                        <asp:GridView ID="dgvList" runat="server" 
                            AutoGenerateColumns="False"
                            CellPadding="1" 
                            DataKeyNames="MSG_KEY,SERIAL_NO,O_CI_ID"
                            AllowPaging="True" 
                            meta:resourcekey="dgvListResource1" 
                            Width="900px"
                            CssClass="grid" OnPageIndexChanging="dgvList_PageIndexChanging" OnSelectedIndexChanged="dgvList_SelectedIndexChanged">
                            <FooterStyle CssClass="grid-footer" />
                            <RowStyle CssClass="grid-row" />
                            <SelectedRowStyle CssClass="grid-selectedRow" />
                            <PagerStyle HorizontalAlign="Center" CssClass="grid-pager" />
                            <HeaderStyle CssClass="grid-header" />
                            <AlternatingRowStyle CssClass="grid-alternating" />
                            <Columns>
                                <asp:BoundField DataField="MSG_KEY" HeaderText="MSG_KEY" Visible="False" meta:resourcekey="BoundFieldResource1" />
                                <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkCheckAll" runat="server" onclick="return CheckAll(this,'chkOne');"
                                            Text="" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <input type="checkbox" id="chkOne" runat="server" />
                                    </ItemTemplate>
                                    <HeaderStyle Width="20px" />
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="STT" DataField="STT_FAKE" meta:resourcekey="BoundFieldResource2">
                                    <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Số b&#250;t to&#225;n" DataField="RELATION_NO" meta:resourcekey="BoundFieldResource3">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="Số hiệu giao dịch" meta:resourcekey="BoundFieldResource4">
                                    <HeaderStyle HorizontalAlign="Center" Width="80px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtSERIAL_NO" runat="server" CommandName="Select" Text='<%# Bind("SERIAL_NO") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Loại giao dịch" DataField="TYPETRANS_FAKE" meta:resourcekey="BoundFieldResource5">
                                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Nợ/C&#243;" DataField="DEBATE_FAKE" meta:resourcekey="BoundFieldResource6">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Center" Width="80px" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Số tiền" DataField="AMOUNT" meta:resourcekey="BoundFieldResource7">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="T&#236;nh trạng" DataField="STATUS_FAKE" meta:resourcekey="BoundFieldResource8">
                                    <HeaderStyle HorizontalAlign="Center" Width="180px" /> 
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="M&#227; ng&#226;n h&#224;ng nhận" DataField="R_CI_CODE"
                                    meta:resourcekey="BoundFieldResource9">
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                            </Columns>
                           <EmptyDataTemplate>
                                <asp:Label ID="lblEmptyDataGrid" runat="server" meta:resourcekey="lblGrdMsgEmptyResource1"
                            Text="Kh&#244;ng tồn tại"></asp:Label>
                            </EmptyDataTemplate>
                         <PagerSettings Mode="NumericFirstLast" />
                        </asp:GridView>
                        </div>
                        <hr style="margin:10 0 10 0;" size="1" />
                    <asp:TextBox ID="txtMessage" runat="server" BorderStyle="None" BorderWidth="0px"
                                    Height="120px" ReadOnly="True" TextMode="MultiLine" Visible="False" Width="750px" class="citad-txt"
                                    meta:resourcekey="txtMessageResource1"></asp:TextBox>
                    <uc1:MessageBox ID="MessageBox1" runat="server" />
                    </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>