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

<%@ 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==69) //Đóng
                {
                    __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuClose');
                }
                else if(window.event.keyCode==52) //Truy vấn
                {
                    __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuIquiry');
                }
                else if(window.event.keyCode==53) //In
                {
                    __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuPrint');
                }
            }
        }
    </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">
                <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" 
                            StaticSelectedStyle-CssClass="citad-menu-selected"
                            StaticMenuItemStyle-HorizontalPadding="5px" 
                            StaticMenuItemStyle-VerticalPadding="2px">
                            <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="In" Value="mnuPrint" meta:resourcekey="MenuItemResource2" ImageUrl="~/Images/Menu/print.gif">
                                </asp:MenuItem>
                                <asp:MenuItem Text="Truy vấn" Value="mnuIquiry" meta:resourcekey="MenuItemResource4"
                                    ImageUrl="~/Images/Menu/search.gif"></asp:MenuItem>
                            </Items>
                        </asp:Menu>
                    </td>
                </tr>
            </table>
                <table style="margin-bottom:7px;">
                    <tr>
                        <td style="width: 112px">
                            <asp:Label ID="Label1" runat="server" meta:resourcekey="Label1Resource1" Text="Ngày giao dịch"></asp:Label></td>
                        <td style="width: 105px" align="right">
                            <asp:Label ID="Label5" runat="server" meta:resourcekey="Label5Resource1" Text="Loại dịch vụ"></asp:Label></td>
                        <td>
                            <asp:DropDownList ID="cboServiceType" AutoPostBack="true" runat="server" meta:resourcekey="cboServiceTypeResource1"
                                Width="200px" TabIndex="2" OnSelectedIndexChanged="cboServiceType_SelectedIndexChanged">
                            </asp:DropDownList></td>
                        <td align="right" colspan="">
                            <asp:CheckBox ID="chkHoiSoChinh" AutoPostBack="true" runat="server" Text="Hội sở chính" OnCheckedChanged="chkHoiSoChinh_CheckedChanged" 
                                meta:resourcekey="chkHoiSoChinhResource1" Enabled="False" />
                            <asp:DropDownList ID="cboThanhVien" AutoPostBack="true" runat="server" meta:resourcekey="cboThanhVienResource1"
                                Width="142px" Enabled="False" TabIndex="3" OnSelectedIndexChanged="cboThanhVien_SelectedIndexChanged">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td style="width: 112px;">
                            <asp:TextBox ID="txtTrxDate" runat="server" meta:resourcekey="txtTrxDateResource1"
                                CssClass="citad-txt" AutoPostBack="true" Width="81px" TabIndex="1" OnTextChanged="txtTrxDate_TextChanged"></asp:TextBox>
                            <asp:ImageButton ID="imgCalendar" runat="server" ImageUrl="~/Images/Calendar.png"
                                meta:resourcekey="imgCalendarResource1" />&nbsp;
                        </td>
                        <td style="width: 105px;" align="right">
                            <asp:Label ID="Label6" runat="server" Text="Chiều giao dịch" meta:resourcekey="Label6Resource1"></asp:Label></td>
                        <td>
                            <fieldset id="Fieldset1" style="width: 194px;">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td style="width: 90px">
                                <asp:RadioButton ID="rdbDi" AutoPostBack="true" runat="server" Text="Đi" GroupName="Fieldset1" meta:resourcekey="rdbDiResource1" Checked="True" TabIndex="4" OnCheckedChanged="rdbDi_CheckedChanged" /></td>
                                        <td>
                                <asp:RadioButton ID="rdbDen" AutoPostBack="true" runat="server" Text="Đến" GroupName="Fieldset1" meta:resourcekey="rdbDenResource1" TabIndex="5" OnCheckedChanged="rdbDen_CheckedChanged" /></td>
                                    </tr>
                                </table>
                            </fieldset>
                            </td>
                        <td align="right" colspan="1">
                            <asp:Label ID="lblTongSoTrang" runat="server" meta:resourcekey="lblTongSoResource2" Text="Tổng số trang" Visible ="False" Font-Bold="True" ></asp:Label>
                            <asp:Label ID="lblCountTrang" runat="server" Font-Bold="True"></asp:Label></td>
                    </tr>
                </table>
                            <ajaxToolkit:CalendarExtender id="CalendarExtender1" runat="server" 
                                TargetControlID="txtTrxDate" 
                                PopupButtonID="imgCalendar" 
                                Format="dd/MM/yyyy" 
                                Enabled="True">
                            </ajaxToolkit:CalendarExtender>        
                <asp:GridView ID="grvListTrans" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False"
                    AllowSorting="True" 
                    meta:resourcekey="grvListTransResource1" 
                    CellPadding="2"
                    OnRowDataBound="grvListTrans_RowDataBound" 
                    CssClass="grid" 
                    OnPageIndexChanging="grvListTrans_PageIndexChanging">
                    <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" />
                    <EmptyDataTemplate>
                        <asp:Label ID="lblEmptyDataGrid" runat="server" meta:resourcekey="lblEmptyDataGridResource1"
                            Text="Kh&#244;ng tồn tại bản ghi"></asp:Label>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField DataField="TT" HeaderText="TT" meta:resourcekey="BoundFieldResource1">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Số hiệu giao dịch" DataField="SoHieu" meta:resourcekey="BoundFieldResource2">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="M&#227; ng&#226;n h&#224;ng" DataField="MaNganHang" meta:resourcekey="BoundFieldResource3">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="T&#234;n ng&#226;n h&#224;ng" DataField="TenNganHang"
                            meta:resourcekey="BoundFieldResource4">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="180px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="180px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Nợ " DataField="No" meta:resourcekey="BoundFieldResource5">
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Width="80px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="C&#243;" DataField="Co" meta:resourcekey="BoundFieldResource6">
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Width="80px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Dịch vụ" DataField="DichVu" meta:resourcekey="BoundFieldResource7">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="NganHang_ID" HeaderText="NganHang_ID" Visible="False"
                            meta:resourcekey="BoundFieldResource8" />
                    </Columns>
                </asp:GridView>
                <table>
                    <tr>
                        <td align="right" style="width: 183px">
                            <asp:Label Style="color: maroon" ID="Label2" runat="server" meta:resourcekey="Label2Resource1"
                                Text="Tổng số giao dịch:" Font-Bold="True"></asp:Label></td>
                        <td>
                            <asp:Label ID="lblCountTran" runat="server" meta:resourcekey="lblCountTranResource1"
                                Text="0"></asp:Label></td>
                        <td align="right" style="width: 142px">
                            <asp:Label Style="color: maroon" ID="Label3" runat="server" meta:resourcekey="Label3Resource1"
                                Text="Tổng Nợ:" Font-Bold="True"></asp:Label></td>
                        <td style="width: 88px">
                            <asp:Label ID="lblSumDebit" runat="server" meta:resourcekey="lblSumDebitResource1"
                                Text="0"></asp:Label></td>
                        <td align="right" style="width: 118px">
                            <asp:Label Style="color: maroon" ID="Label4" runat="server" meta:resourcekey="Label4Resource1"
                                Text="Tổng C&#243;:" Font-Bold="True"></asp:Label></td>
                        <td style="width: 118px">
                            <asp:Label ID="lblSumCredit" runat="server" meta:resourcekey="lblSumCreditResource1"
                                Text="0"></asp:Label></td>
                    </tr>
                </table>
                <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtTrxDate"
                    Mask="99/99/9999" MaskType="Date" ErrorTooltipEnabled="True" CultureAMPMPlaceholder=""
                    CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
                    CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
                    Enabled="True">
                </ajaxToolkit:MaskedEditExtender>
                <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskedEditExtender1"
                    ControlToValidate="txtTrxDate" EmptyValueMessage="Date is required" InvalidValueMessage="Date is invalid"
                    Display="Dynamic" EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="MKE"
                    ErrorMessage="MaskedEditValidator1" meta:resourcekey="MaskedEditValidator1Resource1"></ajaxToolkit:MaskedEditValidator>&nbsp;
        <fieldset>
            <table>
                <tr>
                    <td style="width: 222px; height: 24px">
                        <asp:RadioButton ID="rdbInBank" runat="server" Checked="True" Text="Dữ liệu tại ngân hàng"
                            Font-Bold="True" Font-Italic="False" GroupName="flset" meta:resourcekey="rdbInBankResource1" AutoPostBack="True" OnCheckedChanged="rdbInBank_CheckedChanged" TabIndex="6" /></td>
                    <td style="width: 305px; height: 24px">
                        <asp:RadioButton ID="rdbInRPC" runat="server" Text="Dữ liệu nhận về từ trung tâm xử lý"
                            Style="color: blue" Font-Bold="True" Font-Italic="False" GroupName="flset" meta:resourcekey="rdbInRPCResource1" AutoPostBack="True" OnCheckedChanged="rdbInRPC_CheckedChanged" TabIndex="7" /></td>
                    <td style="width: 173px; height: 24px">
                        <asp:RadioButton ID="rdbReport" runat="server" Text="Báo cáo đối soát" Style="color: red"
                            Font-Bold="True" Font-Italic="False" GroupName="flset" meta:resourcekey="rdbReportResource1" AutoPostBack="True" OnCheckedChanged="rdbReport_CheckedChanged" TabIndex="8" /></td>
                </tr>
            </table>
        </fieldset>
                <uc1:MessageBox ID="MessageBox1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>