<%@ Page Language="C#" 
MasterPageFile="~/CITAD.Master" 
AutoEventWireup="true" 
Codebehind="DanhSachLenhTraSoatDen.aspx.cs"
Inherits="CITAD.Modules.TaoTraLoiTraSoatDen.Web.DanhSachLenhTraSoatDen" 
Culture="auto"
UICulture="auto" 
EnableEventValidation ="false"
Title="Danh sách yêu cầu tra soát đến" meta:resourcekey="PageResource1" %>

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

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
	    window.document.onkeydown=KeyDown;
        var strFeatureMDlg = "dialogHeight:400px;center:yes;dialogWidth:610px;resizable:yes;status:no;scroll:no;";

        function fcnShowCIList(txtci_id)
        {
            if (event.keyCode==115) //F4
            {
                if(!document.getElementById(txtci_id).readOnly)
                {
                    rValue = window.showModalDialog('../DanhSachNganHang/frmCIList.aspx' + '?randomNumber=' + Math.random(),"",strFeatureMDlg);
                    if(rValue!=undefined) 
                    {
                        document.getElementById(txtci_id).value = rValue;
                        __doPostBack(txtci_id,'');
                    }
                }
                event.keyCode=9;
            }
        }
        
        ///Tạo phím tắt:
        window.document.onkeyup=ShortcutKeys;
        function ShortcutKeys()
        {
                if(event.ctrlKey)
                {
                    if(window.event.keyCode==69) //Đóng
                    {
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuClose');
                    }
                    if(window.event.keyCode==50) //Mở
                    {
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuOpen');
                    }
                    if(window.event.keyCode==52) //Truy vấn
                    {
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuIquiry');
                    }
                }
                //alert(event.keyCode);
 
        }
    </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 class="toolbar" cellpadding="0" cellspacing="0" width="770">
            <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" TabIndex="9">
                            <Items>
                                <asp:MenuItem Text="Home" Value="mnuClose" meta:resourcekey="MenuItemResource1" NavigateUrl="~/Default.aspx"
                                    SeparatorImageUrl="~/Images/toolbar/citad-toolbar-sperator.gif" ImageUrl="~/Images/Menu/home.gif">
                                </asp:MenuItem>
                                <asp:MenuItem Text="Chọn mở" Value="mnuOpen" meta:resourcekey="MenuItemResource2"
                                    ImageUrl="~/Images/Menu/open.gif"></asp:MenuItem>
                                <asp:MenuItem Text="Truy vấn" Value="mnuIquiry" meta:resourcekey="MenuItemResource4"
                                    ImageUrl="~/Images/Menu/search.gif"></asp:MenuItem>
                            </Items>
                            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                            <StaticSelectedStyle CssClass="citad-menu-selected" />
                            <StaticHoverStyle CssClass="citad-menu-hover" />
                    </asp:Menu>
                </td>
            </tr>
        </table> 
                <fieldset>
                            <legend>
                                <asp:Label ID="Label4" runat="server" Text="Th&#244;ng tin truy vấn" meta:resourcekey="Label4Resource1" TabIndex="-1"></asp:Label></legend>
                            <table width="100%">
                              <tr>
                                    <td style="width: 70px; height: 42px;" align="right">
                                        <asp:Label ID="Label1" runat="server" Text="Số hiệu giao dịch" meta:resourcekey="Label1Resource1" TabIndex="-1"></asp:Label></td>
                                    <td style="width: 108px; height: 42px;">
                                        <asp:TextBox ID="txtSerian_No" runat="server" Width="107px" meta:resourcekey="txtSerian_NoResource1" TabIndex="5"></asp:TextBox></td>
                                    <td style="width: 93px; height: 42px;" align="right">
                                        <asp:Label ID="lblBankB" runat="server" Text="Ng&#226;n h&#224;ng gửi" meta:resourcekey="lblBankBResource1" TabIndex="-1"></asp:Label></td>
                                    <td style="width: 87px; height: 42px;">
                                        <asp:TextBox ID="txtBankB" runat="server" Width="100px" meta:resourcekey="txtBankBResource1" TabIndex="6"></asp:TextBox></td>
                                    <td style="height: 42px;" align="right">
                                        <asp:CheckBox ID="chkRV_Date" runat="server" Text="Ng&#224;y nhận" Width="80px" OnCheckedChanged="chkRV_Date_CheckedChanged"
                                            meta:resourcekey="chkRV_DateResource1" AutoPostBack="True" TabIndex="7" /></td>
                                    <td align="left" style="width: 100px; height: 42px">
                                        <asp:TextBox ID="txtTrx_Date" runat="server" Width="70px" meta:resourcekey="txtTrx_DateResource1" MaxLength="8" TabIndex="8"></asp:TextBox>
                                        <asp:ImageButton ID="imgCalendar" runat="server" ImageUrl="~/Images/Calendar.png"
                                            meta:resourcekey="imgCalendarResource1" /></td>
                                </tr>
                                <tr>
                                    <td colspan="4" valign="bottom">
                                        <fieldset id="fsTrxType" style="width: 380px">
                                            <legend>
                                                <asp:Label ID="grbTrxType" runat="server" Text="Loại giao dịch" meta:resourcekey="grbTrxTypeResource1" TabIndex="-1"></asp:Label></legend>
                                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                                            <asp:RadioButton ID="rdbLV" runat="server" GroupName="TrxType" Text="Gi&#225; trị thấp"
                                                meta:resourcekey="rdbLVResource1" TabIndex="1" />
                                            <asp:RadioButton ID="rdbHV" runat="server" GroupName="TrxType" Text="Gi&#225; trị cao"
                                                meta:resourcekey="rdbHVResource1" TabIndex="2" />
                                            <asp:RadioButton ID="rdbAll" runat="server" Checked="True" GroupName="TrxType" Text="Tất cả"
                                                meta:resourcekey="rdbAllResource1" TabIndex="3" />
                                        </fieldset>
                                    </td>
                                    <td align="right" valign="middle" style="width: 70px">
                                        <asp:Label ID="lblTrxStatus" runat="server" Text="T&#236;nh trạng" meta:resourcekey="lblTrxStatusResource1"
                                            Width="65px" TabIndex="-1"></asp:Label></td>
                                    <td valign="middle" align="left" style="width: 100px">
                                        <asp:DropDownList ID="cboTrxStatus" runat="server" meta:resourcekey="cboTrxStatusResource1" TabIndex="4">
                                        </asp:DropDownList></td>
                                </tr>
                              
                            </table>
                        </fieldset>
            <table width="100%">
                <tr>
                    <td align="right">
                        <asp:Label ID="lblTongSo" runat="server" meta:resourcekey="lblTongSoResource1" Text="Tổng số" Font-Bold="True"></asp:Label>
                        <asp:Label ID="lblCount" runat="server" Font-Bold="True"></asp:Label></td>
                </tr>
            </table>
                <asp:GridView ID="grvTrxList" runat="server" 
                    AllowPaging="True" 
                    AllowSorting="True"
                    AutoGenerateColumns="False" 
                    Style="width: 100%" 
                    meta:resourcekey="grvTrxListResource1"
                    DataKeyNames="MSG_KEY,MAC" 
                    CellPadding="2" 
                    CssClass="grid" 
                    OnPageIndexChanging="grvTrxList_PageIndexChanging" 
                    TabIndex="-1" 
                    OnSelectedIndexChanged="grvTrxList_SelectedIndexChanged" 
                    OnSorting="grvTrxList_Sorting">
                    <Columns>
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign ="Center" />
                            <HeaderTemplate>
                                <asp:CheckBox ID="chkCheckAll" runat="server" onclick="return CheckAll(this,'chkOne');" meta:resourcekey="chkCheckAllResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="chkOne" runat="server" type="checkbox" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="TT" HeaderText="TT" meta:resourcekey="BoundFieldResource1">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign ="Center" />
                        </asp:BoundField>
                        <%--<asp:BoundField DataField="SO_HIEU_GIAO_DICH" HeaderText="Số hiệu giao dịch tra so&#225;t"
                            meta:resourcekey="BoundFieldResource2">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>--%>
                          <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                            <HeaderTemplate>                                
                                <asp:LinkButton runat="server" ID="lblSO_HIEU_GIAO_DICH" Text="Số hiệu giao dịch" CommandName="Sort" CommandArgument="SO_HIEU_GIAO_DICH" meta:resourcekey="lblSO_HIEU_GIAO_DICHResource1" />
                            </HeaderTemplate>
                            <HeaderStyle Width="60px" HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtSO_HIEU_GIAO_DICH" runat="server" CommandName="Select" Text='<%# Bind("SO_HIEU_GIAO_DICH") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                        <asp:BoundField DataField="LOAI_GIAO_DICH" HeaderText="Loại giao dịch" meta:resourcekey="BoundFieldResource3">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <%--<asp:BoundField HeaderText="Nợ/C&#243;" meta:resourcekey="BoundFieldResource8">
                        <HeaderStyle Width="100px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>--%>

                        <asp:BoundField DataField="TINH_TRANG" HeaderText="T&#236;nh trạng" meta:resourcekey="BoundFieldResource5">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MA_NGAN_HANG_GUI" HeaderText="M&#227; NH gửi" meta:resourcekey="BoundFieldResource6" SortExpression="MA_NGAN_HANG_GUI">
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="NganHangB_ID" HeaderText="NganHangB_ID" Visible="False"
                            meta:resourcekey="BoundFieldResource7" />
                        <asp:BoundField DataField="MSG_KEY" HeaderText="MSG_KEY" Visible="False" meta:resourcekey="BoundFieldResource4" />
                    </Columns>
                    <EmptyDataTemplate>
                        <asp:Label ID="lblEmptyDataGrid" runat="server" meta:resourcekey="lblEmptyDataGridResource1"
                            Text="Kh&#244;ng tồn tại bản ghi"></asp:Label>
                    </EmptyDataTemplate>
                    <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" />
                </asp:GridView>
                <asp:Button ID="hiddenTargetControlForModalPopup" runat="server" meta:resourcekey="hiddenTargetControlForModalPopupResource1" Style="display: none" />
            <br />
            <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True"
                Format="dd/MM/yyyy" PopupButtonID="imgCalendar" TargetControlID="txtTrx_Date">
            </ajaxToolkit:CalendarExtender>
                <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtTrx_Date"
                    Mask="99/99/9999" MaskType="Date" ErrorTooltipEnabled="True" CultureAMPMPlaceholder=""
                    CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
                    CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
                    Enabled="True">
                </cc1:MaskedEditExtender>
            <uc1:MessageBox ID="MessageBox1" runat="server" />
               <%-- <cc1:ModalPopupExtender ID="programmaticModalPopup" runat="server"
        BackgroundCssClass="modalBackground" BehaviorID="programmaticModalPopupBehavior"
        DropShadow="True" DynamicServicePath="" Enabled="True" PopupControlID="programmaticPopup"
        PopupDragHandleControlID="programmaticPopup" RepositionMode="RepositionOnWindowScroll"
        TargetControlID="hiddenTargetControlForModalPopup">
        </cc1:ModalPopupExtender>--%>
               <%-- <asp:Panel ID="programmaticPopup" runat="server" Style="display: none" CssClass="modalPopup"
        Width="400px" meta:resourcekey="programmaticPopupResource1">
        <p style="font-size: 14px;">
            <asp:Label ID="lblThongBao" meta:resourcekey="lblThongBaoResource1" runat="server"
                Font-Bold="True" Text="Th&#244;ng B&#225;o"></asp:Label>
        </p>
        <p>
            <asp:Label ID="lblTitle" runat="server" meta:resourcekey="lblTitleResource1"></asp:Label>
        </p>
        <p style="text-align: center;">
            <asp:Button ID="btnOK" runat="server" Text="OK" meta:resourcekey="btnOKResource1"
                CssClass="citad-btn" Width="79px" />
        </p>
    </asp:Panel>--%>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>
