
<%@ Page Language="C#" MasterPageFile="~/CITAD.Master"
    AutoEventWireup="true" CodeBehind="frmLetterGWMonitoring.aspx.cs" 
    Inherits="CITAD.Modules.CIGATEWAY_Monitoring.Web.frmLetterGWMonitoring" 
    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>
                 
                 <td align="left" style="margin-left:50px">
                <asp:Label ID="lblTypeLetter" runat="server" Text="Loại dịch vụ " meta:resourcekey="lblTypeLetterResource1"></asp:Label>
           
                 <td><asp:DropDownList ID="ddlTypeLetter" OnSelectedIndexChanged="ddlTypeLetter_SelectedIndexChanged" runat="server" Width="200px" meta:resourcekey="ddlTypeLetterResource1">
                </asp:DropDownList></td>
            </tr>
        </table>

            <cc1:TabContainer ID="TabContainer1" runat="server" 
                OnActiveTabChanged="TabContainer1_ActiveTabChanged1" 
                ActiveTabIndex="1" 
                AutoPostBack="True" 
                meta:resourcekey="TabContainer1Resource1" Width="770px" >
                <cc1:TabPanel ID="tpgOutgoingProcess" runat="server" 
                    HeaderText="Lệnh đ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;" >                                                    
                                                    </td>                                              
                                                <td align="right" valign="top" style="padding-right: 180px; " >
                                                    <asp:Label ID="Label7" runat="server" Text="Tổng số lệnh thành công:" meta:resourcekey="lblTotalResource2" Font-Bold="True" Width="160px"></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ố lệnh lỗi:" Width="120px"></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"  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 HorizontalAlign="Center" Width="40px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource2" >
                                                                        <HeaderStyle HorizontalAlign="Center" Width="130px" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="130px" />
                                                                        <HeaderTemplate>
                                                                            <table>
                                                                                <tr>
                                                                                    <td><asp:Label ID="lblOutFile1" runat="server" Text="T&#234;n file" meta:resourcekey="lblOutFile1Resource1" Width="130px"></asp:Label></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td><asp:TextBox ID="txtOutFile" runat="server" MaxLength="25" meta:resourcekey="txtOutFileResource1" Width="130px"></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="130px" 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="160px" />
                                                                    <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="160px" meta:resourcekey="cboFileStatusResource1" ></asp:DropDownList></td>
                                                                            </tr>
                                                                        </table>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="160px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblFILE_STATUS" runat="server" Width="160px" 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ố lệnh" 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ố lệnh 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ố lệnh 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="65px" />
                                                                    <ItemStyle Width="65px" />
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="lblErrorList" runat="server" Text="Chi tiết lỗi" Width="65px" meta:resourcekey="lblErrorListResource1"></asp:Label>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lbtErrorList" runat="server" CommandName="Select" Width="65px" 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 lệnh" 
                                            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="SERIAL_NO,TRX_DATE,O_CI_CODE,TRX_TYPE" 
                                                            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 HorizontalAlign="Center" Width="40px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="Loại dịch vụ" meta:resourcekey="TemplateFieldResource21">                                                
                                                                    <HeaderTemplate>
                                                                        <asp:Label ID="lbllblTRX_TYPE2" runat="server"  Width="130px" Text="Loại dịch vụ" meta:resourcekey="lbllblTRX_TYPE2Resource1"></asp:Label>        
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblLETTER_TYPE" runat="server" Text='<%# Bind("LETTER_TYPE") %>' Width="130px" meta:resourcekey="lblTRX_TYPEResource1" ></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left"  Width="130px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="130px" />                                                                   
                                                                </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:LinkButton ID="lblRELATION_NO" runat="server" CommandName="Select" Width="140px" Text='<%# Bind("RELATION_NO_ORG") %>' meta:resourcekey="lblRELATION_NOResource1">></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Số điện tra soát" meta:resourcekey="TemplateFieldResource20">                                                
                                                                    <HeaderTemplate>
                                                                          <asp:Label ID="lblSERIAL_NO" runat="server" Width="120px" Text="Số điện tra soát" meta:resourcekey="lblSERIAL_NOResource1" ></asp:Label>                                                                                                                                    
                                                                         </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="120px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblSERIAL_NO1" runat="server" Width="120px" Text='<%# Bind("SERIAL_NO") %>' meta:resourcekey="Label3Resource1"></asp:Label>
                                                                    </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="130px" meta:resourcekey="lblOutAMTResource1" ></asp:Label>        
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtOutAMT" runat="server" Width="130px" MaxLength="22" 
                                                                                    AutoPostBack="false" onkeypress="onEnter(this)" OnTextChanged="OutgoingTransaction_TextChanged" meta:resourcekey="txtOutAMTResource1"  ></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                        
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Right" Width="130px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="130px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblAMOUNT" runat="server" Width="130px" Text='<%# Bind("AMOUNT_ORG") %>' 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="200px" 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="200px" 
                                                                                    AutoPostBack="true" OnSelectedIndexChanged="OutgoingTransaction_TextChanged" 
                                                                                    meta:resourcekey="cboOutTrxStatusResource1" >
                                                                                    </asp:DropDownList>            
                                                                                </td>
                                                                            </tr>
                                                                        </table>                                                    
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblCHECK_CODE" runat="server" Width="200px" Text='<%# Bind("CHECK_CODE") %>' meta:resourcekey="lblCHECK_CODEResource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" Width="200px" />   
                                                                    <ItemStyle HorizontalAlign="Left" Width="200px" />                                             
                                                                </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="Lệnh đế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;">                                                                                             
                                                </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: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ố lệnh" 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 lệnh" 
                                             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,SERIAL_NO,O_CI_CODE,TRX_TYPE" 
                                                        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>                                                                   
                                                                           <asp:Label ID ="lblTrxType2" Text ="Loại dịch vụ" runat ="server" Width="120px" meta:resourcekey="lblTrxType2Resource1" ></asp:Label>
                                                                   </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblLETTER_TYPE" runat="server" Text='<%# Bind("LETTER_TYPE") %>' Width="120px" meta:resourcekey="lblTRX_TYPEResource2"></asp:Label>
                                                                    </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Số điện tra soát" meta:resourcekey="TemplateFieldResource11">
                                                                    <HeaderTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <td><asp:Label ID="lblSerianNo" runat="server" Width="100px" Text="Số điện tra soát" 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_ORG") %>'
                                                                     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_ORG") %>' 
                                                                            meta:resourcekey="Label5Resource1">
                                                                        </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="Lệnh đi bằng DB"
                        meta:resourcekey="tpgOutgoingProcessByDBResource1">
                    <ContentTemplate>
                        <div style="width:760px; overflow-x:scroll;">
                            <table>
                                <tr>
                                    <td align="left">
                                                                         </td>
                                    <td align="right" style="padding-right: 90px;">
                                        <asp:Label ID="Label3" runat="server" Text="Tổng số lệnh: "  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="TRX_DATE,SERIAL_NO,O_CI_CODE,TRX_TYPE" 
                                        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="TemplateFieldResource21">                                                
                                                <HeaderTemplate>                                                  
                                                                <asp:Label ID="lblTRX_TYPE2" runat="server"  Width="130px" Text="Loại dịch vụ" meta:resourcekey="lblTRX_TYPE2Resource1"></asp:Label>        
                                                        </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblLETTER_TYPE" runat="server" Text='<%# Bind("LETTER_TYPE") %>' Width="130px" meta:resourcekey="lblTRX_TYPEResource1" ></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left"  Width="130px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="130px" />                                                                   
                                            </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_ORG") %>' meta:resourcekey="lblRELATION_NOResource1"></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Số điện tra soát" meta:resourcekey="TemplateFieldResource20">                                                
                                                <HeaderTemplate>                                                 
                                                                <asp:Label ID="lblSERIAL_NO2" runat="server" Width="120px" Text="Số điện tra soát" meta:resourcekey="lblSERIAL_NOResource1" ></asp:Label>        
                                                  </HeaderTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="120px" />
                                                <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblSERIAL_NO" runat="server" Width="120px" Text='<%# Bind("SERIAL_NO") %>' meta:resourcekey="Label3Resource1"></asp:Label>
                                                </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="120px" meta:resourcekey="lblOutAMTResource1" ></asp:Label>        
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="txtOutAMT" runat="server"   Width="120px" 
                                                                AutoPostBack="false" onkeypress="onEnter(this)" 
                                                                OnTextChanged="OutgoingProcessByDB_TextChanged" MaxLength="22" 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_ORG") %>' 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="200px" 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="200px" AutoPostBack="true" 
                                                                 OnSelectedIndexChanged="OutgoingProcessByDB_TextChanged" meta:resourcekey="cboOutTrxStatusResource1" >
                                                                </asp:DropDownList>            
                                                            </td>
                                                        </tr>
                                                    </table>                                                    
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblCHECK_CODE" runat="server" Width="200px" Text='<%# Bind("CHECK_CODE") %>' meta:resourcekey="lblCHECK_CODEResource1"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Center" Width="200px" />   
                                                <ItemStyle HorizontalAlign="Left" Width="200px" />                                             
                                            </asp:TemplateField>    
                                        </Columns>                                        
                                        <PagerSettings Mode="NumericFirstLast" />
                                    </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                           <br />
                            
                            
                        </div>
                    </ContentTemplate>
                
                </cc1:TabPanel>
                <cc1:TabPanel ID="tpgIncomingProcessByDB" runat="server" HeaderText="Lệnh đế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" style="width: 500px">
                                                   </td>
                                                <td align="right" valign="top" >
                                                    <asp:Label ID="Label4" runat="server" Text="Tổng số lệnh: " meta:resourcekey="lblTotalInTrxResource1" Font-Bold="True" Width="190px" ></asp:Label>
                                                    <asp:Label ID="lblTotalInTrx" runat="server" Font-Bold="True"  ></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>                                    
                                   
                                </tr>
                            </table><br />
                          
                            <asp:GridView DataKeyNames="TRX_DATE,SERIAL_NO,O_CI_CODE,TRX_TYPE" 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" />
                                                
                                            </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>
                                                     <asp:Label ID ="lblTrxType2" Text ="Loại dịch vụ" runat ="server" meta:resourcekey="lblTrxType2Resource1" Width="150px"></asp:Label>
                                             </HeaderTemplate>
                                            <ItemStyle HorizontalAlign="Left" />
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblLETTER_TYPE" runat="server" Text='<%# Bind("LETTER_TYPE") %>' meta:resourcekey="lblTRX_TYPEResource2"></asp:Label>
                                            </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Số điện tra soát" meta:resourcekey="TemplateFieldResource11">
                                            <HeaderTemplate>
                                                <table width="10px">
                                                    <tr>
                                                        <td><asp:Label ID="lblSerianNo" runat="server" Width="130px" Text="Số điện tra soát" 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:LinkButton ID="lblRELATION_NO" runat="server" CommandName="Select" Width="130px" Text='<%# Bind("RELATION_NO_ORG") %>' 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_ORG") %>' 
                                                    meta:resourcekey="Label5Resource1">
                                                </asp:Label>
                                            </ItemTemplate>
                                    </asp:TemplateField>
                                    
                                </Columns>                                        
                                <PagerSettings Mode="NumericFirstLast" />
                             </asp:GridView>
                        </div>
                    </ContentTemplate>
                </cc1:TabPanel>
                               
                
            </cc1:TabContainer>

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