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

<%@ 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 type="text/javascript">
	    window.document.onkeydown=KeyDown;
	    function formload()
	    {
	        document.getElementById('<%=txtRelation_No.ClientID %>').focus();
	    }
    </script>
    <cc1:ToolkitScriptManager runat="Server" EnableScriptGlobalization="True" EnableScriptLocalization="True" ID="ScriptManager1" CombineScripts="True" /> 
    <div style="width:770px;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="cboTrx_Status" EventName="SelectedIndexChanged" />
                <asp:AsyncPostBackTrigger ControlID="grvListTrx" EventName="RowDataBound" />
                <asp:AsyncPostBackTrigger ControlID="Menu1" EventName="MenuItemClick" />
            </Triggers>
            <ContentTemplate>
            <table class="citad-toolbar" cellpadding="0" cellspacing="0" style="width:100%" >
                <tr valign="middle"><td class="citad-toolbar-tdleft"></td>
                    <td class="citad-toolbar-tdmain" align="left">
                        <asp:Menu ID="Menu1" runat="server" OnMenuItemClick="Menu1_MenuItemClick"
                            Font-Names="Verdana"
                            Font-Size="11px"
                            
                            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 Text="Tho&#225;t" Value="mnuClose"  ImageUrl="~/Images/Menu/home.gif" meta:resourcekey="MenuItemResource1" SeparatorImageUrl="~/Images/Menu/separator_h.gif"></asp:MenuItem>
                                <asp:MenuItem Text="Th&#234;m mới" Value="mnuAdd" ImageUrl="~/Images/Menu/add.gif" meta:resourcekey="MenuItemResource3" SeparatorImageUrl="~/Images/Menu/separator_h.gif"></asp:MenuItem>
                                <asp:MenuItem Text="Chọn mở" Value="mnuOpen" ImageUrl="~/Images/Menu/open.gif" meta:resourcekey="MenuItemResource4" SeparatorImageUrl="~/Images/Menu/separator_h.gif"></asp:MenuItem>
                                <asp:MenuItem Text="Truy vấn" Value="mnuQuery" ImageUrl="~/Images/Menu/search.gif" meta:resourcekey="MenuItemResource5"></asp:MenuItem>
                            </Items>
                            <StaticMenuStyle CssClass="citad-menu" />
                            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                            <StaticSelectedStyle CssClass="citad-menu-selected" />
                            <StaticHoverStyle CssClass="citad-menu-hover" />
                        </asp:Menu>
                    </td>
               </tr>
            </table>
                   
            <table border="0" style="border-collapse:collapse; width:100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <table border="0" style="border-collapse:collapse; width:100%" cellpadding="0" cellspacing="2">
                            <tr>
                                <td>
                                    <asp:Label ID="lblRelation_No" runat="server" meta:resourcekey="Label1Resource1"  Text="Số bút toán"></asp:Label></td>
                                <td>
                                    <asp:TextBox ID="txtRelation_No" CssClass="citad-txt" runat="server" meta:resourcekey="txtRelation_NoResource1"
                                    onpropertychange="Upper()" MaxLength="40"></asp:TextBox></td>
                                <td align="right">
                                    <asp:Label ID="lblTrx_Status" runat="server" meta:resourcekey="lblTrx_StatusResource1" Text="Tình trạng"></asp:Label></td>
                                <td colspan="3">
                                    <asp:DropDownList ID="cboTrx_Status" runat="server" Width="232px" meta:resourcekey="cboTrx_StatusResource1">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td colspan="2" valign="middle">
                                    <fieldset>
                                        <legend>
                                            <asp:Label ID="grbTrxType" runat="server" meta:resourcekey="grbTrxTypeResource1" Text="Loại giao dịch"></asp:Label>
                                        </legend>
                                        <table border="0">
                                            <tr>
                                                <td><asp:RadioButton ID="rdbLV" runat="server" meta:resourcekey="rdbLVResource1" Text="Giá trị thấp" GroupName="TrxType" /></td>
                                                <td><asp:RadioButton ID="rdbHV" runat="server" meta:resourcekey="rdbHVResource1" Text="Giá trị cao" GroupName="TrxType" /></td>
                                                <td><asp:RadioButton ID="rdbAll" runat="server" meta:resourcekey="rdbAllResource1" Checked="True" Text="Tất cả" GroupName="TrxType" /></td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                                <td valign="middle" align="right">
                                    <asp:Label ID="lblRCI" runat="server" meta:resourcekey="lblRCIResource1" Text="Ngân hàng nhận"></asp:Label></td>
                                <td valign="middle" align="left">
                                    <asp:TextBox ID="txtRCICode" CssClass="citad-txt" runat="server" meta:resourcekey="TextBox1Resource1"></asp:TextBox></td>
                                <td valign="middle" align="right">
                                    <asp:Label ID="lblSerial_No" runat="server" meta:resourcekey="lblSerial_NoResource1" Text="Số hiệu giao dịch"></asp:Label></td>
                                <td valign="middle">
                                    <asp:TextBox ID="txtSerial_No" CssClass="citad-txt" runat="server" meta:resourcekey="TextBox2Resource1"></asp:TextBox></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

                <asp:GridView DataKeyNames="ID" ID="grvListTrx" runat="server" 
                    meta:resourcekey="dgvListTrxResource1" 
                    AllowPaging="True" 
                    OnPageIndexChanging="grvListTrx_PageIndexChanging" 
                    OnRowDataBound="grvListTrx_RowDataBound" 
                    CssClass="grid"
                    AutoGenerateColumns="False" 
                    OnSelectedIndexChanged="grvListTrx_SelectedIndexChanged">
                    <FooterStyle CssClass="grid-footer" />
                    <RowStyle CssClass="grid-row" />
                    <SelectedRowStyle CssClass="grid-selectedRow" />
                    <PagerStyle CssClass="grid-pager" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="grid-header" />
                    <AlternatingRowStyle CssClass="grid-alternating" />
                    <Columns>
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                            <HeaderTemplate>
                                <asp:CheckBox ID="chkCheckAll" runat="server" onclick="return CheckAll(this,'chkOne');" meta:resourcekey="chkCheckAllResource1"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="chkOne" type="checkbox" runat="server" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="20px"/>
                            <HeaderStyle HorizontalAlign="Center" Width="20px"/>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="STT" meta:resourcekey="TemplateFieldResource11"   >
                            <HeaderTemplate>
                                <asp:Label ID="lblSTT" Text ="STT" runat="server" meta:resourcekey="lblSTTResource1" ></asp:Label>
                            </HeaderTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="30px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="RELATION_NO" HeaderText="Số b&#250;t to&#225;n" meta:resourcekey="BoundFieldResource1">
                            <HeaderStyle HorizontalAlign="Center" Width="80px"/>
                            <ItemStyle HorizontalAlign="Center" Width="80px"/>
                        </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                            <HeaderTemplate>
                                <asp:Label runat="server" ID="lblSerialNo" Text="Số hiệu GD" meta:resourcekey="BoundFieldResource2"></asp:Label>
                            </HeaderTemplate>
                            <HeaderStyle Width="70px" HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtSerialNo" runat="server" CommandName="Select" Text='<%# Bind("SERIAL_NO") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                         </asp:TemplateField>
                        
                        
                        <asp:BoundField HeaderText="Loại giao dịch" meta:resourcekey="BoundFieldResource3">
                            <HeaderStyle HorizontalAlign="Center"/>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Nợ c&#243;" meta:resourcekey="BoundFieldResource4">
                            <HeaderStyle HorizontalAlign="Center" Width="80px" />
                            <ItemStyle HorizontalAlign="Center" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Số tiền" DataField="AMOUNT"  meta:resourcekey="BoundFieldResource5">
                            <HeaderStyle HorizontalAlign="Center" Width="10px"/>
                            <ItemStyle HorizontalAlign="Right" Width="10px"/>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="T&#236;nh trạng" meta:resourcekey="BoundFieldResource6">
                            <HeaderStyle HorizontalAlign="Center"/>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="M&#227; ng&#226;n h&#224;ng nhận" DataField="CI_CODE"
                            meta:resourcekey="BoundFieldResource7">
                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                        </asp:BoundField>
                    </Columns>
                    <EmptyDataTemplate>
                    <asp:Label ID="lblEmptyDataGrid" runat="server" meta:resourcekey="lblEmptyDataGridResource1"
                        Text="Kh&#244;ng tồn tại"></asp:Label>
                </EmptyDataTemplate>
                </asp:GridView>
                <uc1:MessageBox ID="MessageBox1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>