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

<%@ 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" %>
<%@ 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>
<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"
                        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="Thống k&#234;" Value="tsbReport" 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à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" 
                    Enabled="True" 
                    Display="dynamic" 
                    ControlExtender="MaskedEditExtender1" ValidationGroup="VG_Submit" />
                    
                 <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                    Format="dd/MM/yyyy" 
                    TargetControlID="txtDate" PopupButtonID="imgCalendar" 
                    Enabled="True" />
                    
                 <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" 
                    AutoComplete="true"
                    Enabled="True" 
                    TargetControlID="txtDate"
                    MaskType="Date" 
                    Mask="99/99/9999" 
                    ErrorTooltipEnabled="true" 
                    MessageValidatorTip="true"
                    AutoCompleteValue="20/08/2008" />
                 </td>
            </tr>
        </table>

            <cc1:TabContainer ID="TabContainer1" runat="server" 
                OnActiveTabChanged="TabContainer1_ActiveTabChanged1" 
                ActiveTabIndex="3" 
                AutoPostBack="True" 
                meta:resourcekey="TabContainer1Resource1" Width="770px" >
                <cc1:TabPanel ID="tpgOutgoingProcess" runat="server" 
                    HeaderText="GD đi bằng FILE" 
                    meta:resourcekey="tpgOutgoingProcessResource1" > 
                    <ContentTemplate>
                        <table cellpadding="0" cellspacing="0" style="font-family:Tahoma, Arial;font-size:10pt;">
                            <tr>
                                <td align="left" valign="top" style="width: 760px">
                                <div style="width:760px; overflow:scroll;">
                                    <asp:Panel ID="rgbOutgoingFile" runat="server" GroupingText="Danh sách File" 
                                       meta:resourcekey="rgbOutgoingFileResource1" Width="885px"  Height="250px" >
                                        <table cellpadding="0" cellspacing="0" >
                                            <tr align="left" valign="top" >
                                                <td align="left" valign="top" style="height: 20px; width: 0px;" >                                                    
                                                    <asp:RadioButton ID="rdbOutgoingFiles" runat="server" meta:resourcekey="rdbOutgoingFiles" Text="t0" GroupName="TrxType" Checked="True" OnCheckedChanged="rdbOutgoingFiles_CheckedChanged" Visible="False" />
                                                    <asp:RadioButton ID="rdbOutgoingFilesResult" runat="server" meta:resourcekey="rdbOutgoingFilesResult" Text="t4" GroupName="TrxType" Visible="False" />
                                                    
                                                    </td>                                              
                                                <td align="right" valign="top" style="padding-right: 180px; " >
                                                    <asp:Label ID="Label7" runat="server" Text="Tổng số GD thành công:" meta:resourcekey="lblTotalResource2" Font-Bold="True" Width="159px"></asp:Label>
                                                    <asp:Label ID="lblTotalSucc_Trx" runat="server" Font-Bold="True" ></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:Label
                                                        ID="Label5" runat="server" Font-Bold="True" meta:resourceKey="lblTotalResource3"
                                                        Text="Tổng số GD lỗi:" Width="100px"></asp:Label>
                                                        <asp:Label ID="lblTotalErr_Trx" runat="server"
                                                            Font-Bold="True"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <asp:Label ID="Label1" runat="server" Font-Bold="True"
                                                                meta:resourceKey="lblTotalResource1" Text="Tổng số file:" Width="121px"></asp:Label>
                                                    <asp:Label ID="lblTotalOutFile" runat="server" Font-Bold="True"></asp:Label>
                                                </td>
                                                
                                             </tr>
                                            <tr><!--OnSelectedIndexChanged="dgvOutgoingFile_SelectedIndexChanged" -->
                                                <td colspan="2" valign="top" align="left" style="height: 340px" >
                                                        <asp:GridView ID="dgvOutgoingFile" runat="server" 
                                                            CellPadding="1"
                                                            AllowPaging="True"
                                                            AutoGenerateColumns="False" 
                                                            CssClass="grid" DataKeyNames="FILE_NAME,ProcessingTime" 
                                                            OnRowDataBound="dgvOutgoingFile_RowDataBound" 
                                                            OnPageIndexChanging="dgvOutgoingFile_PageIndexChanging" 
                                                            OnSelectedIndexChanged="dgvOutgoingFile_SelectedIndexChanged"
                                                            meta:resourcekey="dgvOutgoingFileResource1" 
                                                            Width="880px" 
                                                            OnSelectedIndexChanging="dgvOutgoingFile_SelectedIndexChanging" PageSize="7" 
                                                            > 
                                                            <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 HeaderText="STT"  meta:resourcekey="BoundFieldResource1" >
                                                                    <ItemStyle Width="20px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource2" >
                                                                        <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                                        <HeaderTemplate>
                                                                            <table>
                                                                                <tr>
                                                                                    <td><asp:Label ID="lblOutFile1" runat="server" Text="T&#234;n file" meta:resourcekey="lblOutFile1Resource1" Width="120px"></asp:Label></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td><asp:TextBox ID="txtOutFile" runat="server" MaxLength="25" meta:resourcekey="txtOutFileResource1" Width="120px"></asp:TextBox></td>
                                                                                </tr>
                                                                            </table>
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <%--<asp:Label ID="lblFILE_NAME" runat="server" Width="90px" Text='<%# Bind("FILE_NAME") %>' meta:resourcekey="lblFILE_NAMEResource1"  ></asp:Label>--%>
                                                                            <asp:LinkButton ID="lblFILE_NAME" runat="server" Width="120px" CommandName="Select" Text='<%# Bind("FILE_NAME") %>' OnClick="dgvOutgoingFile_SelectedIndexChanged" meta:resourcekey="lblFILE_NAMEResource1"></asp:LinkButton>
                                                                            
                                                                        </ItemTemplate>
                                                                </asp:TemplateField>
                                                                
                                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource3">
                                                                    <HeaderStyle HorizontalAlign="Center" Width="170px" />
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td><asp:Label ID="lblFILE_STATUS2" runat="server" Text="Trạng th&#225;i" meta:resourcekey="lblFILE_STATUS2Resource1" Width="110px"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td><asp:DropDownList ID="cboFileStatus" runat="server" Width="170px" meta:resourcekey="cboFileStatusResource1" ></asp:DropDownList></td>
                                                                            </tr>
                                                                        </table>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="170px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblFILE_STATUS" runat="server" Width="170px" Text='<%# Bind("FILE_STATUS") %>' meta:resourcekey="lblFILE_STATUSResource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="lblTongSoGD2" runat="server" Text="Tổng số GD" Width="60px" meta:resourcekey="lblTongSoGD2Resource1"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Right" Width="60px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblTongSoGD" runat="server" Text='<%# Bind("TRX_CNT") %>' ></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>  
                                                                                                                                  
                                                                <asp:TemplateField>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="80px" />
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="lblSUCC_CNT2" runat="server" Width="80px" Text="Số GD thành công"  meta:resourcekey="lblSUCC_CNT2Resource1"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Right" Width="80px" />    
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblSUCC_CNT" runat="server" Width="80px" Text='<%# Bind("SUCC_CNT") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="lblERR_CNT2" runat="server" Width="60px" Text="Số GD lỗi" meta:resourcekey="lblERR_CNT2Resource1" ></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Right" Width="60px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblERR_CNT" runat="server" Width="60px" Text='<%# Bind("ERR_CNT") %>' >                                                                            
                                                                        </asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <HeaderStyle Width="50px" />
                                                                    <ItemStyle Width="50px" />
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="lblErrorList" runat="server" Text="Chi tiết lỗi" Width="50px" meta:resourcekey="lblErrorListResource1"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lbtErrorList" runat="server" CommandName="Select" Width="50px" OnClick="lbtErrorList_Click"   ></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                
                                                                <asp:BoundField DataField="ProcessingTime" HeaderText="Thời điểm xử l&#253;" meta:resourcekey="BoundFieldProcessingTimeResource1"  >
                                                                    <ItemStyle Width="120px" />
                                                                    <HeaderStyle Width="120px" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="FileErrorMsg" HeaderText="M&#244; tả lỗi" meta:resourcekey="BoundFieldFileErrorMsgResource1" >
                                                                    <ItemStyle Width="200px" />
                                                                    
                                                                </asp:BoundField>
                                                                
                                                            </Columns>
                                                            <PagerSettings Mode="NumericFirstLast" />
                                                        </asp:GridView>
                                                    
                                                    </td>
                                                </tr> 
                                            </table>                    
                                        </asp:Panel>
                                </div>
                                </td>
                                    
                            </tr>
                            <tr>
                                <td align="left" valign="top" style="width: 760px"><!-- style="width: 451px"-->
                                    <div style="width:760px; overflow-x:scroll;"> 
                                         <asp:Panel ID="rgbOutgoingTrx" runat="server" GroupingText="Danh sách giao dịch" 
                                            meta:resourcekey="rgbOutgoingTrxResource1" Width="815px">
                                            <table cellpadding="0" cellspacing="0">                     
                                                <tr>
                                                    <td rowspan="2" style="padding-right: 0px; margin-right: 0px; " valign="top" align="left"> 
                                                        <asp:GridView DataKeyNames="RELATION_NO,TRX_DATE,O_CI_CODE" 
                                                            ID="dgvOutgoingTransaction" runat="server" 
                                                            CellPadding="1"                                         
                                                            AllowPaging="True"
                                                            AutoGenerateColumns="False" 
                                                            CssClass="grid"                                                            
                                                            OnPageIndexChanging="dgvOutgoingTransaction_PageIndexChanging" 
                                                            OnRowDataBound="dgvOutgoingTransaction_RowDataBound" 
                                                            meta:resourcekey="dgvOutgoingTransactionResource1" PageSize="5" 
                                                            Width="810px" OnSelectedIndexChanged="dgvOutgoingTransaction_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:TemplateField meta:resourcekey="TemplateFieldResource1">                                                
                                                                    <HeaderTemplate>
                                                                        <asp:CheckBox ID="chkCheckAll" runat="server"  onclick="return CheckAll(this,'chkOneOutTrans')"   meta:resourcekey="chkCheckAllResource1"  />
                                                                        <%--<asp:Label ID="lblOne" runat="server" Width="20px" meta:resourcekey="lblOneResource1"></asp:Label>--%>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <input id="chkOneOutTrans" type="checkbox" runat="server" style="width: 20px;"  />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle  HorizontalAlign="Center" Width="20px" />
                                                                    <ItemStyle  HorizontalAlign="Center" Width="20px" />                                                                    
                                                                </asp:TemplateField>
                                                                <asp:BoundField HeaderText="STT" meta:resourcekey="BoundFieldResource5" DataField="LinePosition" >                                                                    
                                                                    <ItemStyle Width="40px" />
                                                                    <HeaderStyle Width="40px" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="Loại dịch vụ" meta:resourcekey="TemplateFieldResource4">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lbllblTRX_TYPE2" runat="server"  Width="100px" Text="Loại dịch vụ" meta:resourcekey="lbllblTRX_TYPE2Resource1"></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:DropDownList ID="cboOutTrxType" runat="server" Width="100px" Visible="false" meta:resourcekey="cboOutTrxTypeResource1">
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                                                
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblTRX_TYPE" runat="server" Text='<%# Bind("TRX_TYPE") %>' Width="100px" meta:resourcekey="lblTRX_TYPEResource1" ></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left"  Width="100px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />                                                                   
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Số b&#250;t to&#225;n" meta:resourcekey="TemplateFieldResource5">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblRELATION_NO2" runat="server" Width="140px" Text="Số b&#250;t to&#225;n" meta:resourcekey="lblRELATION_NO2Resource1" ></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtOutRelationNo" runat="server" AutoPostBack="false" 
                                                                                         onkeypress="onEnter(this)"  OnTextChanged="OutgoingTransaction_TextChanged"  
                                                                                        MaxLength="40" Width="140px" meta:resourcekey="txtOutRelationNoResource1" ></asp:TextBox>
                                                                                    
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                              
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="140px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="140px" />
                                                                    <ItemTemplate>
                                                                        <%--<asp:Label ID="lblRELATION_NO" runat="server" Width="140px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource1"></asp:Label>
                                                                        --%>
                                                                        <asp:LinkButton ID="lblRELATION_NO" runat="server" CommandName="Select" Width="140px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource1">></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Ng&#226;n h&#224;ng nhận" meta:resourcekey="TemplateFieldResource6">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblR_CI_CODE2" runat="server" Width="110px" Text="Ng&#226;n h&#224;ng nhận" meta:resourcekey="lblRCICodeResource1" ></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtRCICode" runat="server" Width="110px" MaxLength="12" 
                                                                                    AutoPostBack="false" onkeypress="onEnter(this)" OnTextChanged="OutgoingTransaction_TextChanged" meta:resourcekey="txtRCICodeResource1"  ></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                        
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="110px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="110px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblR_CI_CODE" runat="server" Width="120px" Text='<%# Bind("R_CI_CODE") %>' meta:resourcekey="Label3Resource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Số tiền" meta:resourcekey="TemplateFieldResource7">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblOutAMT" runat="server" Text="Số tiền" Width="120px" meta:resourcekey="lblOutAMTResource1" ></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtOutAMT" runat="server" Width="120px" MaxLength="22" 
                                                                                    AutoPostBack="false" onkeypress="onEnter(this)" OnTextChanged="OutgoingTransaction_TextChanged" meta:resourcekey="txtOutAMTResource1"  ></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                        
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Right" Width="120px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblAMOUNT" runat="server" Width="120px" Text='<%# Bind("AMOUNT") %>' meta:resourcekey="Label4Resource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="T&#236;nh trạng xử l&#253;" meta:resourcekey="TemplateFieldResource8">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblCHECK_CODE2" runat="server" Width="220px" Text="T&#236;nh trạng xử lý" meta:resourcekey="lblCHECK_CODE2Resource1"></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>                                                                
                                                                                    <asp:DropDownList ID="cboOutTrxStatus" runat="server" Width="220px" 
                                                                                    AutoPostBack="true" OnSelectedIndexChanged="OutgoingTransaction_TextChanged" 
                                                                                    meta:resourcekey="cboOutTrxStatusResource1" >
                                                                                    </asp:DropDownList>            
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblCHECK_CODE" runat="server" Width="220px" Text='<%# Bind("CHECK_CODE") %>' meta:resourcekey="lblCHECK_CODEResource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="220px" />   
                                                                    <ItemStyle HorizontalAlign="Left" Width="220px" />                                             
                                                                </asp:TemplateField>    
                                                            </Columns>                                        
                                                            <PagerSettings Mode="NumericFirstLast" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </div> 
                                </td>
                            </tr>
                            
                        </table>
                    </ContentTemplate>
                </cc1:TabPanel>
                <cc1:TabPanel ID="tpgIncomingProcess" runat="server" HeaderText="GD đến bằng FILE" 
                    meta:resourcekey="tpgIncomingProcessResource1" style="margin-left:5px;">
                    <ContentTemplate>
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left" valign="top" > 
                                   <div style="width:760px; overflow:scroll;"> 
                                    <asp:Panel ID="rgbIncomingFile" runat="server" GroupingText="Danh sách File" 
                                        Height="252px" meta:resourcekey="rgbIncomingFileResource1" >
                                        <table cellpadding="0" cellspacing="0">  
                                            <tr>
                                                <td align="left" style="width: 454px;">
                                                    <asp:RadioButton ID="rdbIncomingTrx" runat="server" GroupName="IncomingTrx" Text="Lệnh chuyển tiền đến" Checked="True" 
                                                    meta:resourcekey="rdbIncomingTrxResource1" AutoPostBack="True" OnCheckedChanged="rdbIncomingTrx_CheckedChanged" />
                                                    <asp:RadioButton ID="rdbCompareTrx" runat="server" GroupName="IncomingTrx" Text="Dữ liệu đối chiếu cuối ngày" meta:resourcekey="rdbCompareTrxResource1" 
                                                    AutoPostBack="True" OnCheckedChanged="rdbCompareTrx_CheckedChanged" />                                                   
                                                </td>
                                                <td align="right" style="padding-right: 10px;">
                                                    <asp:Label ID="Label2" runat="server" Text="Tổng số file: " meta:resourcekey="lblTotalInFileResource1" Font-Bold="True" Width="180px"></asp:Label>
                                                    <asp:Label ID="lblTotalInFile" runat="server" Font-Bold="True" ></asp:Label>                                                    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" >
                                                    <asp:GridView  ID="dgvIncomingFileResult" runat="server" CellPadding="1"                         
                                                        AllowPaging="True"                         
                                                        AutoGenerateColumns="False" 
                                                        CssClass="grid" RowHeaderColumn="FILE_NAME" DataKeyNames="FILE_NAME" 
                                                        OnRowDataBound="dgvIncomingFileResult_RowDataBound" 
                                                        OnPageIndexChanging="dgvIncomingFileResult_PageIndexChanging"
                                                         meta:resourcekey="dgvIncomingFileResultResource1" 
                                                         OnSelectedIndexChanged="dgvIncomingFileResult_SelectedIndexChanged" 
                                                         Width="735px" PageSize="7"                        
                                                        >
                                                        <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 HeaderText="STT" meta:resourcekey="BoundFieldResource6" >
                                                                <HeaderStyle HorizontalAlign="Center" Width="40px"  />
                                                                <ItemStyle HorizontalAlign="Center" Width="40px" />                                                                
                                                            </asp:BoundField>
                                                            <asp:TemplateField HeaderText="T&#234;n file" meta:resourcekey="TemplateFieldResource9">                                      
                                                                <HeaderStyle HorizontalAlign="Center"  Width="600px" />
                                                                <HeaderTemplate>
                                                                    <table width="100%">
                                                                        <tr align="center">
                                                                            <td align="center">
                                                                                <asp:Label ID="lblFILE_NAME2" runat="server" Text="Tên file" Width="250px" meta:resourcekey="lblFILE_NAME2Resource1" ></asp:Label>        
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="center">
                                                                            <td align="center">
                                                                                <asp:TextBox ID="txtInFileName" runat="server" Width="250px" MaxLength="25" meta:resourcekey="txtInFileNameResource1" ></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>                         
                                                                </HeaderTemplate>                                        
                                                              <ItemStyle HorizontalAlign="Left" Width="600px" />
                                                               <ItemTemplate>
                                                                    <%--<asp:Label ID="lblFILE_NAME" runat="server" Width="150px" Text='<%# Bind("FILE_NAME") %>' meta:resourcekey="lblFILE_NAMEResource2"></asp:Label>--%>
                                                                    <asp:LinkButton ID="lblFILE_NAME" runat="server" Width="190px" CommandName="Select" Text='<%# Bind("FILE_NAME") %>' meta:resourcekey="lblFILE_NAMEResource2"></asp:LinkButton>
                                                                </ItemTemplate> 
                                                                
                                                            </asp:TemplateField> 
                                                            <asp:TemplateField>
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <HeaderTemplate>
                                                                    <asp:Label ID="lblTRX_CNT_IN" runat="server" Text="Tổng số GD" Width="80px" meta:resourcekey="lblTRX_CNT_INResource1"></asp:Label>
                                                                </HeaderTemplate>
                                                                <ItemStyle HorizontalAlign="Right" />
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblTRX_CNT" runat="server" Width="80px" Text='<%# Bind("TRX_CNT") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                    
                                                        </Columns>
                                                    </asp:GridView>
                                                    
                                                </td>
                                            </tr> 
                                        </table>                    
                                    </asp:Panel>
                                   </div>
                                </td>
                                
                            </tr>
                            <tr>
                                <td align="left" valign="top" >
                                   <div style="width:760px; overflow-x:scroll;"> 
                                    <asp:Panel ID="rgbIncomingTrx" runat="server" GroupingText="Danh sách giao dịch" 
                                             Width="753px"  meta:resourcekey="rgbIncomingTrxResource1"> 
                                            <table cellpadding="0" cellspacing="0">                     
                                                <tr>
                                                    <td rowspan="1" style="padding-right: 0px; margin-right: 0px; height: 204px;" valign="top" align="left">                                       
                                                <asp:GridView DataKeyNames="TRX_DATE,RELATION_NO,O_CI_CODE" 
                                                        ID="dgvIncomingTransaction" runat="server" 
                                                        CellPadding="1"                                         
                                                        AllowPaging="True"
                                                        AutoGenerateColumns="False" 
                                                        CssClass="grid" OnRowDataBound="dgvIncomingTransaction_RowDataBound" 
                                                        meta:resourcekey="dgvIncomingTransactionResource1" 
                                                        OnPageIndexChanging="dgvIncomingTransaction_PageIndexChanging" 
                                                        PageSize="5" Width="750px" OnSelectedIndexChanged="dgvIncomingTransaction_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:TemplateField meta:resourcekey="TemplateFieldResource1">                                                
                                                                    <HeaderTemplate>
                                                                        <asp:CheckBox ID="chkCheckAll" runat="Server" onclick="return CheckAll(this,'chkOneInTrans')" Width="20px" />
                                                                        <%--<asp:Label ID="lblOne" runat="server" Width="20px" meta:resourcekey="lblOneResource3"></asp:Label>--%>
                                                                    </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" DataField="LinePosition" >
                                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                                                <HeaderStyle HorizontalAlign="Center" 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" Width="120px" meta:resourcekey="lblTrxType2Resource1" ></asp:Label></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <asp:DropDownList ID="cboInTrxType" runat="server" Width="120px" Visible="false" meta:resourcekey="cboInTrxTypeResource1" >
                                                                                </asp:DropDownList>
                                                                            </td>
                                                                        </tr>
                                                                       </table>                                                    
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblTRX_TYPE" runat="server" Text='<%# Bind("TRX_TYPE") %>' Width="120px" meta:resourcekey="lblTRX_TYPEResource2"></asp:Label>
                                                                    </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Số hiệu" meta:resourcekey="TemplateFieldResource11">
                                                                    <HeaderTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <td><asp:Label ID="lblSerianNo" runat="server" Width="100px" Text="Số hiệu" meta:resourcekey="lblSerianNoResource1"></asp:Label></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td><asp:TextBox ID="txtSerianNo" runat="server"   Width="100px" AutoPostBack="false" 
                                                                                onkeypress="onEnter(this)" OnTextChanged="txtSerianNo_TextChanged" 
                                                                                MaxLength="8" meta:resourcekey="txtSerianNoResource1" ></asp:TextBox></td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Label2" runat="server"  Width="100px" Text='<%# Bind("SERIAL_NO") %>' meta:resourcekey="Label2Resource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                            </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="100px" 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="100px" AutoPostBack="false"
                                                                                 onkeypress="onEnter(this)" OnTextChanged="txtSerianNo_TextChanged"   
                                                                                 MaxLength="40" meta:resourcekey="txtInRelationNoResource1"></asp:TextBox>    
                                                                            </td>
                                                                        </tr>
                                                                       </table> 
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                                                                    <ItemTemplate>
                                                                        <%--<asp:Label ID="lblRELATION_NO" runat="server" Width="100px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource2"></asp:Label>
                                                                    --%>
                                                                    <asp:LinkButton ID="lblRELATION_NO" runat="server" CommandName="Select" Width="100px" 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="110px" 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="110px" AutoPostBack="false" 
                                                                                    onkeypress="onEnter(this)" OnTextChanged="txtSerianNo_TextChanged"   
                                                                                    MaxLength="12" meta:resourcekey="txtOCICodeResource1"></asp:TextBox>        
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                        
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="110px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="110px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblO_CI_CODE" runat="server" Width="110px" 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="170px" Text="Số tiền" meta:resourcekey="lblInAMTResource1"></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtInAMT" runat="server" Width="170px" AutoPostBack="false" 
                                                                                    onkeypress="onEnter(this)" OnTextChanged="txtSerianNo_TextChanged"   
                                                                                    MaxLength="22" meta:resourcekey="txtInAMTResource1"></asp:TextBox>        
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                              
                                                                        
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Right" Width="170px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="170px"  />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblAMOUNTIn" runat="server" Width="170px" 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" Width="130px" 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="130px" meta:resourcekey="cboInTrxStatusResource1" >
                                                                                    </asp:DropDownList>        
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                   
                                                                        
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="130px" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="130px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblCHECK_CODE" runat="server" Width="130px" Text='<%# Bind("CHECK_CODE") %>' meta:resourcekey="lblCHECK_CODEResource2"></asp:Label>
                                                                    </ItemTemplate>
                                                            </asp:TemplateField>    
                                                        </Columns>                                        
                                                        <PagerSettings Mode="NumericFirstLast" />
                                                     </asp:GridView> 
                                                  </td>
                                              </tr>
                                              </table>
                                     </asp:Panel>
                                   </div>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>     
                </cc1:TabPanel>
                <cc1:TabPanel ID="tpgOutgoingProcessByDB" runat="server" HeaderText="GD đi bằng DB"
                        meta:resourcekey="tpgOutgoingProcessByDBResource1">
                    <ContentTemplate>
                        <div style="width:760px; overflow-x:scroll;">
                            <table>
                                <tr>
                                    <td align="left">
                                        <asp:RadioButton ID="rdbGTCDiBangDB" runat="server" Text="Giá trị cao" GroupName="rdbNhomDiBangDB" meta:resourcekey="HVResource1" AutoPostBack="True" OnCheckedChanged="rdbGTCDiBangDB_CheckedChanged" />
                                        <asp:RadioButton ID="rdbGTTDiBangDB" runat="server" Text="Giá trị thấp" GroupName="rdbNhomDiBangDB" meta:resourcekey="LVResource1" AutoPostBack="True" OnCheckedChanged="rdbGTTDiBangDB_CheckedChanged" />
                                        <asp:RadioButton ID="rdbTCDiBangDB" runat="server" Text="Tất cả" Checked="True" GroupName="rdbNhomDiBangDB" meta:resourcekey="AllResource1" AutoPostBack="True" OnCheckedChanged="rdbTCDiBangDB_CheckedChanged" />
                            
                                    </td>
                                    <td align="right" style="padding-right: 90px;">
                                        <asp:Label ID="Label3" runat="server" Text="Tống số GD: "  meta:resourcekey="lblTotalOutTrxResource1" Font-Bold="True"></asp:Label><asp:Label ID="lblTotalOutTrx" runat="server" Font-Bold="True" ></asp:Label>
                            
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                            <asp:GridView DataKeyNames="RELATION_NO,TRX_DATE,O_CI_CODE" 
                                        ID="grvOutgoingProcessByDB" runat="server" 
                                        CellPadding="1"                                         
                                        AllowPaging="True"
                                        AutoGenerateColumns="False" 
                                        CssClass="grid" Width="880px" OnPageIndexChanging="grvOutgoingProcessByDB_PageIndexChanging" 
                                        OnRowDataBound="grvOutgoingProcessByDB_RowDataBound" 
                                        OnSelectedIndexChanged="grvOutgoingProcessByDB_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:TemplateField meta:resourcekey="TemplateFieldResource1">                                                
                                                <HeaderTemplate>
                                                    <asp:CheckBox ID="chkCheckAll" runat="server"  onclick="return CheckAll(this,'chkOneOutTrans')"   meta:resourcekey="chkCheckAllResource1"  />
                                                    <%--<asp:Label ID="lblOne" runat="server" Width="20px" meta:resourcekey="lblOneResource1"></asp:Label>--%>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <input id="chkOneOutTrans" 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="BoundFieldResource5" >
                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="Loại dịch vụ" meta:resourcekey="TemplateFieldResource4">                                                
                                                <HeaderTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lbllblTRX_TYPE2" runat="server"  Width="120px" Text="Loại dịch vụ" meta:resourcekey="lbllblTRX_TYPE2Resource1"></asp:Label>        
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:DropDownList ID="cboOutTrxType" runat="server" Width="120px" Visible="false" meta:resourcekey="cboOutTrxTypeResource1">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                    </table>                                                                                
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTRX_TYPE" runat="server" Text='<%# Bind("TRX_TYPE") %>' Width="120px" meta:resourcekey="lblTRX_TYPEResource1" ></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left"  Width="120px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="120px" />                                                                   
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Số b&#250;t to&#225;n" meta:resourcekey="TemplateFieldResource5">                                                
                                                <HeaderTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lblRELATION_NO2" runat="server" Width="100px" Text="Số b&#250;t to&#225;n" meta:resourcekey="lblRELATION_NO2Resource1" ></asp:Label>        
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtOutRelationNo" runat="server" Width="100px" 
                                                                AutoPostBack="false" onkeypress="onEnter(this)" 
                                                                OnTextChanged="OutgoingProcessByDB_TextChanged" MaxLength="40"  
                                                                meta:resourcekey="txtOutRelationNoResource1" ></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                    </table>                                              
                                                </HeaderTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                <ItemTemplate>
                                                    <%--<asp:Label ID="lblRELATION_NO" runat="server" Width="140px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource1"></asp:Label>--%>
                                                    <asp:LinkButton ID="lblRELATION_NO" runat="server" CommandName="Select" Width="100px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource1"></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Ng&#226;n h&#224;ng nhận" meta:resourcekey="TemplateFieldResource6">                                                
                                                <HeaderTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lblR_CI_CODE2" runat="server" Width="120px" Text="Ng&#226;n h&#224;ng nhận" meta:resourcekey="lblRCICodeResource1" ></asp:Label>        
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtRCICode" runat="server" Width="120px"  
                                                                AutoPostBack="false" onkeypress="onEnter(this)" 
                                                                OnTextChanged="OutgoingProcessByDB_TextChanged"  MaxLength="12" 
                                                                meta:resourcekey="txtRCICodeResource1"  ></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                    </table>                                                    
                                                    
                                                </HeaderTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="120px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblR_CI_CODE" runat="server" Width="120px" Text='<%# Bind("R_CI_CODE") %>' meta:resourcekey="Label3Resource1"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Số tiền" meta:resourcekey="TemplateFieldResource7">                                                
                                                <HeaderTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lblOutAMT" runat="server" Text="Số tiền" Width="100px" meta:resourcekey="lblOutAMTResource1" ></asp:Label>        
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtOutAMT" runat="server"   Width="100px" 
                                                                AutoPostBack="false" onkeypress="onEnter(this)" 
                                                                OnTextChanged="OutgoingProcessByDB_TextChanged" MaxLength="22" meta:resourcekey="txtOutAMTResource1"  ></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                    </table>                                                    
                                                    
                                                </HeaderTemplate>
                                                <ItemStyle HorizontalAlign="Right" Width="100px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblAMOUNT" runat="server" Width="100px" Text='<%# Bind("AMOUNT") %>' meta:resourcekey="Label4Resource1"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="T&#236;nh trạng giao dịch" meta:resourcekey="TemplateFieldResource8">                                                
                                                <HeaderTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="lblCHECK_CODE2" runat="server" Width="210px" Text="T&#236;nh trạng giao dịch" meta:resourcekey="lblCHECK_CODE2Resource1"></asp:Label>        
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>                                                                
                                                                <asp:DropDownList ID="cboOutTrxStatus" runat="server" Width="250px" AutoPostBack="true" 
                                                                 OnSelectedIndexChanged="OutgoingProcessByDB_TextChanged" meta:resourcekey="cboOutTrxStatusResource1" >
                                                                </asp:DropDownList>            
                                                            </td>
                                                        </tr>
                                                    </table>                                                    
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblCHECK_CODE" runat="server" Width="270px" Text='<%# Bind("CHECK_CODE") %>' meta:resourcekey="lblCHECK_CODEResource1"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Center" Width="210px" />   
                                                <ItemStyle HorizontalAlign="Left" Width="210px" />                                             
                                            </asp:TemplateField>    
                                        </Columns>                                        
                                        <PagerSettings Mode="NumericFirstLast" />
                                    </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                           <br />
                            
                            
                        </div>
                    </ContentTemplate>
                
                </cc1:TabPanel>
                <cc1:TabPanel ID="tpgIncomingProcessByDB" runat="server" HeaderText="GD đến bằng DB" 
                            meta:resourcekey="tpgIncomingProcessByDBResource1">
                    <ContentTemplate>
                        <div style="width:760px; overflow-x:scroll;">
                            <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>                                    
                                    <%--<td align="right" valign="top" style="width: 153px;" >
                                        <asp:Label ID="Label4" runat="server" Text="Tổng số GD: " meta:resourcekey="lblTotalInTrxResource1" Font-Bold="True" Width="147px" ></asp:Label>
                                        <asp:Label ID="lblTotalInTrx" runat="server" Font-Bold="True"  ></asp:Label>
                                    </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" OnPageIndexChanging="grvIncomingProcessByDB_PageIndexChanging" OnRowDataBound="grvIncomingProcessByDB_RowDataBound" OnSelectedIndexChanged="grvIncomingProcessByDB_SelectedIndexChanged" Width="800px" 
                                >
                                <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" />
                                                <%--<asp:Label ID="lblOne" runat="server" Width="20px" meta:resourcekey="lblOneResource3"></asp:Label>--%>
                                            </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"
                                                         AutoPostBack="false" 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" 
                                                        AutoPostBack="false" 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:Label ID="lblRELATION_NO" runat="server" Width="130px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource2"></asp:Label>--%>
                                                <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" 
                                                            AutoPostBack="false" 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" 
                                                            AutoPostBack="false" 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>
                        </div>
                    </ContentTemplate>
                </cc1:TabPanel>
                <cc1:TabPanel ID="tpgOutgoingFileResult" runat="server" HeaderText="DS file kết quả GD đi" 
                            meta:resourcekey="tpgOutgoingFileResultResource1">
                   <ContentTemplate>
                        <table cellpadding="0" cellspacing="0" style="font-family:Tahoma, Arial;font-size:10pt;">
                            <tr>
                                <td align="left" valign="top" style="width: 760px"> 
                                <div style="width:760px; overflow:scroll;">
                                    <asp:Panel ID="Panel1" runat="server" GroupingText="Danh sách File" 
                                       meta:resourcekey="rgbOutgoingFileResource1" Height="200px" > 
                                        <table cellpadding="0" cellspacing="0" >                                           
                                            <tr>
                                                <td colspan="2" valign="top" align="left" >
                                                        <asp:GridView ID="grvOutgoingFileResult" runat="server" 
                                                            CellPadding="1"
                                                            AllowPaging="True"
                                                            AutoGenerateColumns="False" 
                                                            CssClass="grid" DataKeyNames="FILE_NAME"                                                             
                                                            meta:resourcekey="grvOutgoingFileResultResource1" 
                                                            Width="730px"  PageSize="7" 
                                                            OnPageIndexChanging="grvOutgoingFileResult_PageIndexChanging" 
                                                            OnRowDataBound="grvOutgoingFileResult_RowDataBound" OnPageIndexChanged="grvOutgoingFileResult_PageIndexChanged" OnSelectedIndexChanged="grvOutgoingFileResult_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 HeaderText="STT"  meta:resourcekey="BoundFieldResource1" >
                                                                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="T&#234;n file" meta:resourcekey="TemplateFieldFILE_NAMEResource1">
                                                                    
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lbtFILE_NAME" runat="server" CommandName="Select" Text='<%# Bind("FILE_NAME") %>'></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="500px" />
                                                                    <HeaderStyle Width="500px" />
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="CREATE_TIME" HeaderText="Ng&#224;y tạo" meta:resourcekey="BoundFieldCREATE_TIMEResource1" />
                                                            </Columns>
                                                            <PagerSettings Mode="NumericFirstLast" />
                                                        </asp:GridView>                                                    
                                                    </td>
                                                </tr> 
                                            </table>                    
                                        </asp:Panel>
                                </div>
                                </td>                                    
                            </tr>
                            <tr>
                                <td align="left" valign="top" style="width: 760px">
                                    <div style="width:760px; overflow-x:scroll;"> 
                                         <asp:Panel ID="Panel2" runat="server" GroupingText="Danh sách giao dịch" 
                                            meta:resourcekey="rgbOutgoingTrxResource1" Width="760px">
                                            <table cellpadding="0" cellspacing="0">                     
                                                <tr>
                                                    <td rowspan="2" style="padding-right: 0px; margin-right: 0px; " valign="top" align="left"> 
                                                        <asp:GridView DataKeyNames="RELATION_NO,TRX_DATE,O_CI_CODE" 
                                                            ID="grvTrans_OutgoingFileResult" runat="server" 
                                                            CellPadding="1"                                         
                                                            AllowPaging="True"
                                                            AutoGenerateColumns="False" 
                                                            CssClass="grid" 
                                                            OnPageIndexChanging="grvTrans_OutgoingFileResult_PageIndexChanging" 
                                                            OnRowDataBound="grvTrans_OutgoingFileResult_RowDataBound" 
                                                            meta:resourcekey="dgvOutgoingTransactionResource1" 
                                                            PageSize="5" Width="890px" 
                                                            OnSelectedIndexChanged="grvTrans_OutgoingFileResult_SelectedIndexChanged" 
                                                            OnPageIndexChanged="grvTrans_OutgoingFileResult_PageIndexChanged" 
                                                            >
                                                            <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,'chkOneTrans_ByOutgoingFileResult')"   meta:resourcekey="chkCheckAllResource1"  />
                                                                        <%--<asp:Label ID="lblOne" runat="server" Width="20px" meta:resourcekey="lblOneResource1"></asp:Label>--%>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <input id="chkOneTrans_ByOutgoingFileResult" type="checkbox" runat="server" style="width: 20px;"  />
                                                                    </ItemTemplate>
                                                                    <ItemStyle  HorizontalAlign="Center" Width="20px" />
                                                                    <HeaderStyle Width="20px" HorizontalAlign="Center" />
                                                                </asp:TemplateField>
                                                                <asp:BoundField HeaderText="STT" meta:resourcekey="BoundFieldResource5" DataField="LinePosition" >
                                                                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                                                                    <HeaderStyle Width="40px" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="Loại dịch vụ" meta:resourcekey="TemplateFieldResource4">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lbllblTRX_TYPE2" runat="server"  Width="160px" Text="Loại dịch vụ" meta:resourcekey="lbllblTRX_TYPE2Resource1"></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:DropDownList ID="cboOutTrxType" runat="server" Width="160px" Visible="false" meta:resourcekey="cboOutTrxTypeResource1">
                                                                                    </asp:DropDownList>
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                                                
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblTRX_TYPE" runat="server" Text='<%# Bind("TRX_TYPE") %>' Width="160px" meta:resourcekey="lblTRX_TYPEResource1" ></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left"  Width="160px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="160px" />                                                                   
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Số b&#250;t to&#225;n" meta:resourcekey="TemplateFieldResource5">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblRELATION_NO2" runat="server" Width="140px" Text="Số b&#250;t to&#225;n" meta:resourcekey="lblRELATION_NO2Resource1" ></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtOutRelationNo" runat="server" AutoPostBack="false" onkeypress="onEnter(this)"  OnTextChanged="txtOutRelationNo_TextChanged"  MaxLength="40" Width="140px" meta:resourcekey="txtOutRelationNoResource1" ></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                              
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="140px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="140px" />
                                                                    <ItemTemplate>
                                                                        <%--<asp:Label ID="lblRELATION_NO" runat="server" Width="140px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource1"></asp:Label>
                                                                        --%>
                                                                        <asp:LinkButton ID="lblRELATION_NO" runat="server" CommandName="Select" Width="140px" Text='<%# Bind("RELATION_NO") %>' meta:resourcekey="lblRELATION_NOResource1">></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Ng&#226;n h&#224;ng nhận" meta:resourcekey="TemplateFieldResource6">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblR_CI_CODE2" runat="server" Width="120px" Text="Ng&#226;n h&#224;ng nhận" meta:resourcekey="lblRCICodeResource1" ></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtRCICode" runat="server" Width="120px" MaxLength="12" AutoPostBack="false" onkeypress="onEnter(this)"  OnTextChanged="txtOutRelationNo_TextChanged" meta:resourcekey="txtRCICodeResource1"  ></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="120px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblR_CI_CODE" runat="server" Width="120px" Text='<%# Bind("R_CI_CODE") %>' meta:resourcekey="Label3Resource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Số tiền" meta:resourcekey="TemplateFieldResource7">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblOutAMT" runat="server" Text="Số tiền" Width="120px" meta:resourcekey="lblOutAMTResource1" ></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtOutAMT" runat="server" Width="120px" MaxLength="22" AutoPostBack="false" onkeypress="onEnter(this)" OnTextChanged="txtOutRelationNo_TextChanged" meta:resourcekey="txtOutAMTResource1"  ></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                        
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Right" Width="120px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblAMOUNT" runat="server" Width="120px" Text='<%# Bind("AMOUNT") %>' meta:resourcekey="Label4Resource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="T&#236;nh trạng GD" meta:resourcekey="TemplateFieldRESPONSE_CODEResource8">                                                
                                                                    <HeaderTemplate>
                                                                        <table>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Label ID="lblCHECK_CODE2" runat="server" Width="185px" Text="Tình trạng GD" meta:resourcekey="lblCHECK_CODE2Resource3"></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>                                                                
                                                                                    <asp:DropDownList ID="cboOutTrxStatus" runat="server" Width="185px" Visible="false" AutoPostBack="true" OnTextChanged="txtOutRelationNo_TextChanged"  meta:resourcekey="cboOutTrxStatusResource1" >
                                                                                    </asp:DropDownList>            
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblRESPONSE_CODE" runat="server" Width="185px" Text='<%# Bind("RESPONSE_CODE") %>' meta:resourcekey="lblRESPONSE_CODEResource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="185px" />   
                                                                    <ItemStyle HorizontalAlign="Left" Width="185px" />                                             
                                                                </asp:TemplateField>    
                                                            </Columns>                                        
                                                            <PagerSettings Mode="NumericFirstLast" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </div> 
                                </td>
                            </tr>
                            
                        </table>
                    </ContentTemplate>
                </cc1:TabPanel>
                
                
            </cc1:TabContainer>

            <uc1:MessageBox ID="MessageBox1" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>  

