<%@ Page Language="C#" MasterPageFile="~/CITAD.Master" 
AutoEventWireup="true" CodeBehind="frmErrorList.aspx.cs" 
Inherits="CITAD.Web.Modules.CIGATEWAY_Monitoring.frmErrorList" 
Title="Chi tiết lỗi" 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">
<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>                    
                            </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>
           
           <asp:GridView ID="dgvErrorList" runat="server" 
                CellPadding="1"
                AllowPaging="True"
                AutoGenerateColumns="False" 
                CssClass="grid" DataKeyNames="FILE_NAME" 
                OnRowDataBound="dgvErrorList_RowDataBound" 
                OnPageIndexChanging="dgvErrorList_PageIndexChanging" 
                meta:resourcekey="dgvOutgoingFileResource1" Width="760px" 
                >
                <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:BoundField DataField="File_Name" HeaderText="T&#234;n file" meta:resourcekey="BoundFieldResource2" />
                    <asp:BoundField DataField="trx_date" HeaderText="Ng&#224;y GD" meta:resourcekey="BoundFieldResource3" />
                    <asp:BoundField DataField="ProcessingTime" HeaderText="Thời điểm xử lý" meta:resourcekey="BoundFieldResource4" />
                    <asp:BoundField DataField="ErrorMsg" HeaderText="Th&#244;ng b&#225;o lỗi" meta:resourcekey="BoundFieldResource5" />
                    <asp:TemplateField HeaderText="Nội dung" meta:resourcekey="TemplateFieldFieldResource1">
                        <ItemStyle Width="300px" HorizontalAlign="Left" />
                        <ItemTemplate>
                            <div style="width:300px; overflow-x:scroll;">
                                <asp:Label ID="lblErrorMsg" runat="server" Text='<%#Bind("MsgContent") %>' Width="300px"></asp:Label>
                            </div>
                            
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                </Columns>
                <PagerSettings Mode="NumericFirstLast" />
            </asp:GridView>

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