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

<%@ Register Src="../../Controls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" EnableScriptGlobalization="True"
         EnableScriptLocalization="True" CombineScripts="True" EnablePageMethods="true"  />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate >
    <div>
        <table class="citad-toolbar" cellpadding="0" cellspacing="0" >
                        <tr><td class="citad-toolbar-tdleft"></td>
                        <td class="citad-toolbar-tdmain">
                        <asp:Menu ID="Menu1" runat="server"  
                            DynamicHorizontalOffset="2" 
                            Font-Names="Verdana"
                            Font-Size="11px"
                            OnMenuItemClick="Menu1_MenuItemClick"
                            Orientation="Horizontal" 
                            CssClass="citad-menu" 
                            StaticSubMenuIndent="10px" 
                            meta:resourcekey="Menu1Resource1"
                            
                            StaticHoverStyle-CssClass="citad-menu-hover"
                            StaticMenuStyle-CssClass="citad-menu"
                            StaticSelectedStyle-CssClass="citad-menu-selected"
                            
                            StaticMenuItemStyle-HorizontalPadding="5px"
                            StaticMenuItemStyle-VerticalPadding="2px">
                            <Items>
                            <asp:MenuItem Text="Tho&#225;t" Value="mnuClose" NavigateUrl="~/Default.aspx" ImageUrl="~/Images/Menu/home.gif" SeparatorImageUrl="~/Images/toolbar/citad-toolbar-sperator.gif"  meta:resourcekey="MenuItemResource1"></asp:MenuItem>
                            
                            <asp:MenuItem ImageUrl="~/Images/Menu/print.gif" SeparatorImageUrl="~/Images/toolbar/citad-toolbar-sperator.gif" meta:resourcekey="MenuItemResource2"
                                Text="In" Value="mnuPrint"></asp:MenuItem>
                            
                            <asp:MenuItem ImageUrl="~/Images/Menu/print.gif" SeparatorImageUrl="~/Images/toolbar/citad-toolbar-sperator.gif" meta:resourcekey="MenuItemResource3"
                                Text="In Lại" Value="mnuReprint"></asp:MenuItem>
                            
                            <asp:MenuItem ImageUrl="~/Images/Menu/search.gif" meta:resourcekey="MenuItemResource4"
                                Text="Truy vấn" Value="mnuIquiry"></asp:MenuItem>
                            </Items>
                            
                        </asp:Menu>
                        </td>
                       </tr>
                    </table>
    </div>
    <fieldset>
        <legend>
            <asp:Label ID="lblInGiayBao" runat="server" meta:resourcekey="lblInGiayBaoResource1"></asp:Label>
        </legend>
        <table style="width: 765px" cellpadding="0" cellspacing="1">
            <tr>
                <td style="height: 6px; text-align: left;"><asp:Label ID="lblNgaygiaodich" runat="server" meta:resourcekey="lblNgaygiaodichResource1"
                                        Width="87px"></asp:Label></td>
                <td style="height: 6px; text-align: left;">
                    <asp:TextBox ID="dtpNgayGD" runat="server" Width="64px" Height="16px" style="text-align:right" meta:resourcekey="dtpNgayGDResource1" CssClass="citad-txt" AutoPostBack="True" OnTextChanged="dtpNgayGD_TextChanged"></asp:TextBox>
                    <asp:ImageButton ID="imgCalendar" runat="server" ImageUrl="~/Images/Calendar.png"
                        meta:resourcekey="imgCalendarResource1" /></td>
                <td style="height: 6px; text-align: right;">
                    <asp:Label ID="lblSohieu" runat="server" Text="Số hiệu giao dịch" Width="96px" meta:resourcekey="lblSoHieu" ></asp:Label></td>
                <td style="height: 6px;">
                    &nbsp;<asp:TextBox ID="txtSoHieuGD" runat="server" style="text-align:right;" Enabled="true" CssClass="citad-txt" Width="90px"></asp:TextBox></td>
                <td style="height: 6px"></td>
                <td rowspan="2" style="vertical-align: top" >
                    <fieldset style="vertical-align: top; text-align: center"   >
                        <legend>
                            <asp:Label ID="lblChieuGD" runat="server" meta:resourcekey="lblChieuGDResource1"></asp:Label>
                        </legend>
                        <table style="width: 151px" cellpadding="0" cellspacing="1">
                            <tr>
                                <td style="width: 41px; height: 22px;">
                                    <asp:RadioButton ID="rdbDi" GroupName ="Group1" runat="server" Width="71px" meta:resourcekey="rdbDiResource1" Checked="True" AutoPostBack="True" OnCheckedChanged="rdbDi_CheckedChanged" /></td>
                                <td style="width: 15px; height: 22px;">
                                    <asp:RadioButton ID="rdbDen" GroupName ="Group1" runat="server" Width="76px" meta:resourcekey="rdbDenResource1" AutoPostBack="True" OnCheckedChanged="rdbDen_CheckedChanged" /></td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
                <td rowspan="2" style="vertical-align: top" >
                <fieldset style="vertical-align: top; text-align: center">
                    <legend>
                        <asp:Label ID="lblPrint" runat="server" meta:resourcekey="lblPrintResource1"></asp:Label>
                    </legend>
                    <table cellpadding="0" cellspacing="1" >
                        <tr>
                            <td style="width: 63px; height: 20px;">
                                <asp:RadioButton ID="rdbNoPrint" GroupName ="Group2" Text ="print" runat="server" Width="67px" meta:resourcekey="rdbNoPrintResource1" Checked="True" AutoPostBack="True" OnCheckedChanged="rdbNoPrint_CheckedChanged" /></td>
                            <td style="width: 70px; height: 20px;">
                                <asp:RadioButton ID="rdbPrinted" GroupName ="Group2" Text ="printed" runat="server" Width="84px" meta:resourcekey="rdbPrintedResource1" AutoPostBack="True" OnCheckedChanged="rdbPrinted_CheckedChanged" /></td>
                        </tr>
                    </table>
                </fieldset>
                </td>
                
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblOR_CI_ID" runat="server" Text="Ngân hàng đối ứng" meta:resourcekey="lblOR_CI_ID"></asp:Label></td>
                <td>
                    <asp:TextBox ID="txtOCI_Code" runat="server" CssClass="citad-txt" MaxLength="12"
                        meta:resourcekey="txtRCI_CodeResource1" TabIndex="3" Width="85px" Height="16px"></asp:TextBox></td>
                <td style="text-align: right;">
                    <asp:Label ID="lblSobuttoan" runat="server" Text="Số bút toán" meta:resourcekey="lblSoButToan"></asp:Label></td>
                <td>
                    &nbsp;<asp:TextBox ID="txtSoButtoan" runat="server" style="text-align:right;" Enabled="true"  CssClass="citad-txt" Width="90px"></asp:TextBox></td>
                <td></td>
                
            </tr>
            
        </table>
   </fieldset> 
        
         <div>
             <table width="100%">
               <%-- <tr>
                    <td align="right">
                        <asp:Label ID="lblTongSo" runat="server" meta:resourcekey="lblTongSoResource1"
                            Text="Tổng số" Visible="False"></asp:Label>
                        <asp:Label ID="lblCount" runat="server"></asp:Label>
                        
                        </td>
                </tr>--%>
                <tr>
                    <td align="right">
                    <asp:Label ID="lblTong" runat="server" meta:resourcekey="lblTongResource1"></asp:Label>
                     </td>
                 </tr>
            </table>

       
                <asp:GridView ID="grvInGiayBao" CellPadding="2" 
                    CssClass="grid" 
                    runat="server"  
                    DataKeyNames="MSG_KEY" 
                    AutoGenerateColumns="False" 
                    AllowPaging="True"                       
                    Style="width:770px" 
                    OnPageIndexChanging="grvInGiayBao_PageIndexChanging" 
                    OnRowDataBound="grvInGiayBao_RowDataBound" 
                    meta:resourcekey="grvInGiayBaoResource1" AllowSorting="True" OnSorting="grvInGiayBao_Sorting" >
                    <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,'chkOne');" meta:resourcekey="chkCheckAllResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <input type ="checkbox" id ="chkOne" runat ="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" Width="15px" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource2" >
                            <HeaderTemplate  >
                                <asp:Label ID="lblNo" Text ="STT" runat = "server" meta:resourcekey="lblNoResource1"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("No") %>
                            </ItemTemplate> 
                            <ItemStyle HorizontalAlign="Center" Width="10px" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource3">
                            <HeaderTemplate>                                
                                <asp:LinkButton runat="server" ID="lblSerial_No" Text="Số hiệu giao dịch" CommandName="Sort" CommandArgument="SERIAL_NO" meta:resourcekey="lblSerial_NoResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("SERIAL_NO") %>
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource5"   >
                                    <HeaderTemplate  >
                                        <asp:Label ID="lblTrx_type" Text ="Loại giao dịch" runat = "server" meta:resourcekey="lblTrx_typeResource1" ></asp:Label>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Eval("LOAIGIAODICH") %>
                                    </ItemTemplate> 
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                         <asp:TemplateField meta:resourcekey="TemplateFieldResource4"   >
                            <HeaderTemplate>                                
                                <asp:LinkButton runat="server" ID="lblRelation_No" Text="Số bút toán" CommandName="Sort" CommandArgument="RELATION_NO" meta:resourcekey="lblRelation_NoResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("RELATION_NO") %>
                            </ItemTemplate> 
                            <ItemStyle HorizontalAlign="Center" />
                             <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        
                      <asp:TemplateField meta:resourcekey="TemplateFieldResource5" >
                            <HeaderTemplate>                                
                                 <asp:LinkButton runat="server" ID="lblCI_CODE" Text="M&#227; Ng&#226;n h&#224;ng" CommandName="Sort" CommandArgument="CI_CODE" meta:resourcekey="lblCI_CODEResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("CI_CODE") %>
                            </ItemTemplate> 
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>                        
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource6"   >
                            <HeaderTemplate>                                
                                 <asp:LinkButton runat="server" ID="lblCI_NAME" Text="T&#234;n Ng&#226;n h&#224;ng" CommandName="Sort" CommandArgument="CI_NAME" meta:resourcekey="lblCI_NAMEResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("CI_NAME") %>
                            </ItemTemplate> 
                            <ItemStyle HorizontalAlign="Left" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource7" >
                            <HeaderTemplate>                                
                                 <asp:LinkButton runat="server" ID="lblAmount" Text="Số tiền" CommandName="Sort" CommandArgument="AMOUNT" meta:resourcekey="lblAmountResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("AMOUNT") %>
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource8"  >
                            <HeaderTemplate>                                
                                 <asp:LinkButton runat="server" ID="lblSD_Time" Text="Thời gian" CommandName="Sort" CommandArgument="SD_TIME" meta:resourcekey="lblSD_TimeResource1" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("SD_TIME") %>
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <asp:Label ID="lblNoAnyRecord" runat="server" meta:resourcekey="lblNoAnyRecordResource1"></asp:Label>
                </EmptyDataTemplate>
            </asp:GridView>
             </div>
                
            <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="dtpNgayGD" Enabled="True" Format="dd/MM/yyyy" PopupButtonID="imgCalendar">
            </ajaxToolkit:CalendarExtender>
            <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Enabled="True"
                Mask="99/99/9999" MaskType="Date" TargetControlID="dtpNgayGD">
            </ajaxToolkit:MaskedEditExtender>
            <asp:HiddenField ID="hidID" runat="server" />
            <uc1:MessageBox ID="MessageBox1" runat="server" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID ="Menu1" EventName ="MenuItemClick" />
        </Triggers> 
    </asp:UpdatePanel>
</asp:Content> 