<%@ Page Language="C#" MasterPageFile="~/CITAD.Master" 
AutoEventWireup="true" CodeBehind="frmExport.aspx.cs" 
Inherits="CITAD.Web.Modules.CIGATEWAY_Monitoring.frmExport" 
Title="Untitled Page" 
 meta:resourcekey="PageResource1"
 Culture="auto" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../Controls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript">
    function onEnter(objTxt)
    {
      if (event.keyCode==13)
      {
        event.keyCode = null;
        __doPostBack(objTxt.name,'');  
        objTxt.focus();        
        return false;
      }  
    }    
</script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="width:770px; overflow-x:scroll;"> 
        <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"
                                Orientation="Horizontal" 
                                CssClass="citad-menu" 
                                StaticSubMenuIndent="10px" 
                                meta:resourcekey="Menu1Resource1" OnMenuItemClick="Menu1_MenuItemClick"                                
                                >
                                <Items>
                                    <asp:MenuItem Text="Đ&#243;ng" Value="tsbClose" meta:resourcekey="MenuItemResource1" ImageUrl="~/Images/Menu/home.gif" SeparatorImageUrl="~/Images/menu/separator_h.gif"></asp:MenuItem>                    
                                    <asp:MenuItem Text="Chi tiết" Value="tsbView" meta:resourcekey="MenuItemResource2" ImageUrl="~/Images/Menu/open.gif" SeparatorImageUrl="~/Images/menu/separator_h.gif"></asp:MenuItem>                                    
                                    <asp:MenuItem Text="Export" Value="tsbExport" meta:resourcekey="MenuItemResource3" ImageUrl="~/Images/Menu/add.gif" SeparatorImageUrl="~/Images/menu/separator_h.gif"></asp:MenuItem>
                                    <asp:MenuItem Text="Truy vấn" Value="tsbQuery" meta:resourcekey="MenuItemResource4" ImageUrl="~/Images/Menu/search.gif"></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>
            <tr>
            <td align="left">
                <asp:Label ID="lblDate" runat="server" Text="Ng&#224;y" meta:resourcekey="lblDateResource1"></asp:Label>
             </td>
             <td align="left"> 
                   <asp:TextBox ID="txtDate" runat="server" meta:resourcekey="txtDateResource1" OnTextChanged="txtDate_TextChanged" ></asp:TextBox>
                <asp:ImageButton ID="imgCalendar" runat="server" ImageUrl="~/Images/Calendar.png"  
                                    meta:resourcekey="imgCalendarResource1" />
                
                <cc1:MaskedEditValidator ID="MaskedEditValidator1" runat="server" 
                    ControlToValidate="txtDate" 
                    EmptyValueBlurredText="*" 
                    EmptyValueMessage="Date is required" 
                    InvalidValueBlurredMessage="*"
                    InvalidValueMessage="Date is invalid" 
                    Display="Dynamic" 
                    ControlExtender="MaskedEditExtender1" ValidationGroup="VG_Submit" ErrorMessage="MaskedEditValidator1" meta:resourcekey="MaskedEditValidator1Resource1" />                    
                 <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                    Format="dd/MM/yyyy" 
                    TargetControlID="txtDate" PopupButtonID="imgCalendar" 
                    Enabled="True" />
                    
                 <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server"
                    Enabled="True" 
                    TargetControlID="txtDate"
                    MaskType="Date" 
                    Mask="99/99/9999" 
                    ErrorTooltipEnabled="True"
                    AutoCompleteValue="20/08/2008" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" />
                 </td>
            </tr>
        </table>
                    <table>
                        <tr>
                            <td align="left">
                                <table>
                                    <tr>
                                        <td align="left" valign="top" colspan="2">
                                        <asp:RadioButton ID="rdbGDChuyentien" runat="server" GroupName="rdbNhomGD" Text="Giao dịch chuyển tiền" Checked="True" meta:resourcekey="GDChuyentienResource1" AutoPostBack="True" OnCheckedChanged="rdbGDChuyentien_CheckedChanged"/>
                                        <asp:RadioButton ID="rdbDLDoiChieuDi" runat="server" GroupName="rdbNhomGD" Text="Dữ liệu đối chiếu cuối ngày-chiều đi" meta:resourcekey="DLDoiChieuDiResource1" AutoPostBack="True" OnCheckedChanged="rdbDLDoiChieuDi_CheckedChanged" Width="257px" />
                                        <asp:RadioButton ID="rdbDLDoiChieuDen" runat="server" GroupName="rdbNhomGD" Text="Dữ liệu đối chiếu cuối ngày-chiều đến" meta:resourcekey="DLDoiChieuDenResource1" Width="309px" AutoPostBack="True" OnCheckedChanged="rdbDLDoiChieuDen_CheckedChanged" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" style="width: 500px">
                                            <asp:RadioButton ID="rdbGTCDenBangDB" runat="server" Text="Giá trị cao" GroupName="rdbNhomDenBangDB" meta:resourcekey="HVResource1" AutoPostBack="True" OnCheckedChanged="rdbGTCDenBangDB_CheckedChanged" />
                                            <asp:RadioButton ID="rdbGTTDenBangDB" runat="server" Text="Giá trị thấp" GroupName="rdbNhomDenBangDB" meta:resourcekey="LVResource1" AutoPostBack="True" OnCheckedChanged="rdbGTTDenBangDB_CheckedChanged" />
                                            <asp:RadioButton ID="rdbTCDenBangDB" runat="server" Text="Tất cả" Checked="True" GroupName="rdbNhomDenBangDB" meta:resourcekey="AllResource1" AutoPostBack="True" OnCheckedChanged="rdbTCDenBangDB_CheckedChanged" />                            
                                        </td>
                                        <td align="right" valign="top" >
                                            <asp:Label ID="Label4" runat="server" Text="Tổng số GD: " meta:resourcekey="lblTotalInTrxResource1" Font-Bold="True" Width="190px" ></asp:Label>
                                            <asp:Label ID="lblTotalInTrx" runat="server" Font-Bold="True"  ></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table><br />
                                          
                    <asp:GridView DataKeyNames="TRX_DATE,RELATION_NO,O_CI_CODE" ID="grvIncomingProcessByDB" runat="server" 
                        CellPadding="1"                                         
                        AllowPaging="True"
                        AutoGenerateColumns="False" 
                        CssClass="grid" Width="800px" OnPageIndexChanging="grvIncomingProcessByDB_PageIndexChanging" OnRowDataBound="grvIncomingProcessByDB_RowDataBound" OnSelectedIndexChanged="grvIncomingProcessByDB_SelectedIndexChanged" meta:resourcekey="grvIncomingProcessByDBResource1" 
                        >
                        <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:TemplateField meta:resourcekey="TemplateFieldResource1">                                                
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkCheckAll" runat="server" onclick="return CheckAll(this,'chkOneInTrans')" Width="20px" meta:resourcekey="chkCheckAllResource1" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <input id="chkOneInTrans" type="checkbox" runat="server" style="width: 20px;" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                                    <HeaderStyle  HorizontalAlign="Center" Width="20px" />
                                </asp:TemplateField>
                            <asp:BoundField HeaderText="STT" meta:resourcekey="BoundFieldResource7" >
                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                <HeaderStyle Width="40px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="Loại dịch vụ" meta:resourcekey="TemplateFieldResource10">                                                
                                    <HeaderTemplate>
                                       <table>
                                        <tr>
                                           <td><asp:Label ID ="lblTrxType2" Text ="Loại dịch vụ" runat ="server" meta:resourcekey="lblTrxType2Resource1" Width="150px"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:DropDownList ID="cboInTrxType" runat="server" Visible="False" Width="150px" meta:resourcekey="cboInTrxTypeResource1" >
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                       </table>                                                    
                                    </HeaderTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblTRX_TYPE" runat="server" Text='<%# Bind("TRX_TYPE") %>' meta:resourcekey="lblTRX_TYPEResource2"></asp:Label>
                                    </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Số hiệu" meta:resourcekey="TemplateFieldResource11">
                                    <HeaderTemplate>
                                        <table width="10px">
                                            <tr>
                                                <td><asp:Label ID="lblSerianNo" runat="server" Width="130px" Text="Số hiệu" meta:resourcekey="lblSerianNoResource1"></asp:Label></td>
                                            </tr>
                                            <tr>
                                                <td><asp:TextBox ID="txtSerianNo" runat="server" Width="130px" 
                                                MaxLength="8" meta:resourcekey="txtSerianNoResource1" onkeypress="onEnter(this)"
                                                 OnTextChanged="IncomingProcessByDB_TextChanged" ></asp:TextBox></td>
                                            </tr>
                                        </table>                                                    
                                    </HeaderTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="Label2" runat="server"  Width="130px" Text='<%# Bind("SERIAL_NO") %>' meta:resourcekey="Label2Resource1"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="130px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Số b&#250;t to&#225;n" meta:resourcekey="TemplateFieldResource12">
                                   <HeaderTemplate  >
                                        <table><tr>
                                            <td>
                                                <asp:Label ID="lblRELATION_NO2" runat="server" Width="130px" Text="Số b&#250;t to&#225;n" meta:resourcekey="lblRELATION_NO2Resource2"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtInRelationNo" runat="server" Width="130px" onkeypress="onEnter(this)"
                                                MaxLength="40" meta:resourcekey="txtInRelationNoResource1" OnTextChanged="IncomingProcessByDB_TextChanged" ></asp:TextBox>    
                                            </td>
                                        </tr>
                                       </table> 
                                    </HeaderTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="130px" />
                                    <HeaderStyle HorizontalAlign="Center"  Width="130px" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lblRELATION_NO" runat="server" CommandName="Select" Width="130px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource2"></asp:LinkButton>
                                    </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ng&#226;n h&#224;ng gửi" meta:resourcekey="TemplateFieldResource13">
                                    <HeaderTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblOCICode" runat="server" Width="130px" Text="Ng&#226;n h&#224;ng gửi" meta:resourcekey="lblOCICodeResource1"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="txtOCICode" runat="server" Width="130px" onkeypress="onEnter(this)" OnTextChanged="IncomingProcessByDB_TextChanged"
                                                    MaxLength="12" meta:resourcekey="txtOCICodeResource1" 
                                                     ></asp:TextBox>        
                                                </td>
                                            </tr>
                                        </table>
                                        
                                    </HeaderTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="130px" />
                                    <HeaderStyle HorizontalAlign="Center" Width="130px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblO_CI_CODE" runat="server" Width="130px" Text='<%# Bind("O_CI_CODE") %>' meta:resourcekey="Label4Resource2"></asp:Label>
                                    </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Số tiền" meta:resourcekey="TemplateFieldResource14">
                                    <HeaderTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblInAMT" runat="server" Width="130px" Text="Số tiền" meta:resourcekey="lblInAMTResource1"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="txtInAMT" runat="server" Width="130px" onkeypress="onEnter(this)" OnTextChanged="IncomingProcessByDB_TextChanged"
                                                    MaxLength="22" meta:resourcekey="txtInAMTResource1"></asp:TextBox>        
                                                </td>
                                            </tr>
                                        </table>

                                    </HeaderTemplate>
                                    <ItemStyle HorizontalAlign="Right" Width="130px" />
                                    <HeaderStyle HorizontalAlign="Center" Width="130px"  />
                                    <ItemTemplate>
                                        <asp:Label ID="lblAMOUNTIn" runat="server" Width="130px" Text='<%# Bind("AMOUNT") %>' 
                                            meta:resourcekey="Label5Resource1"></asp:Label>
                                    </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="T&#236;nh trạng giao dịch" Visible="False" meta:resourcekey="TemplateFieldResource15">
                                    <HeaderTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblInTrxStatus" runat="server" Text="T&#236;nh trạng giao dịch" meta:resourcekey="lblInTrxStatusResource1"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList ID="cboInTrxStatus" runat="server" Visible="False" Width="160px" meta:resourcekey="cboInTrxStatusResource1" >
                                                    </asp:DropDownList>        
                                                </td>
                                            </tr>
                                        </table>                                                   
                                        
                                    </HeaderTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblCHECK_CODE" runat="server" Text='<%# Bind("CHECK_CODE") %>' meta:resourcekey="lblCHECK_CODEResource2"></asp:Label>
                                    </ItemTemplate>
                            </asp:TemplateField>    
                        </Columns>                                        
                        <PagerSettings Mode="NumericFirstLast" />
                    </asp:GridView>
                <uc1:MessageBox ID="MessageBox1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>    
    </div>

</asp:Content>
