<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ViewAttachedDocument.aspx.vb" Inherits="FinIQWebApp.ViewAttachedDocument" %>

<!DOCTYPE html>


<style type="text/css">
    
    .grayBorder {
            border-color: #D5D5D5 !important;
            height: 30px !important;
            width:755px !important;
            font-weight: normal !important;
            font-size: 11px;
            font-family: Verdana, Helvetica, sans-serif !important;
        }

</style>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>

<body>
    <link href="../App_Themes/UCPCTL.css?V=1" rel="stylesheet" type="text/css" />
    <form id="form1" runat="server">
        <div>
            <table>
                <tr>
                    <%--<td align="left" valign="top" style="width: 210px;">
                        <table style="padding: 0px; border: none 0px; border-collapse: collapse;">
                            <tr>
                                <td colspan="2">
                                    <asp:Label ID="lblFinIQ" CssClass="FinIQ" runat="server" Text="FinIQ"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Label ID="lblComapnyName" CssClass="ComapnyName" runat="Server" Text="The Financial Engineering Company"></asp:Label>
                                </td>

                                <td></td>
                                <td></td>
                            </tr>
                        </table>

                    </td>--%>

                    <td align="left" valign="top" style="width: 550px;">
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblStatus" runat="server"></asp:Label>
                                    <asp:Label ID="lblErrorMessage" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblerror" CssClass="grayBorder" ForeColor="red" runat="server"></asp:Label>

                                </td>

                            </tr>
                        </table>
                    </td>

                </tr>

            </table>
        </div>
        <%--<div height ="180px">
        <asp:label id="lblerror" CssClass="lbl" ForeColor="red" runat="server" text=""></asp:label>
    </div>--%>
        <asp:GridView ID="grdAttachedDocuments" runat="server" AllowPaging="True" AllowSorting="True"
            Style="margin-top: 0.5%" AutoGenerateColumns="False" BorderStyle="Ridge" BorderWidth="2px" ShowHeaderWhenEmpty="true"
            CellPadding="3" CssClass="Grid" BorderColor="#F5F5F5" PageSize="10" Width="100%" RowStyle-VerticalAlign="Middle" RowStyle-HorizontalAlign="Center">
            <Columns>

                <%--<asp:TemplateField HeaderText="Event Name" ItemStyle-Width="200" ItemStyle-BorderColor="#D5D5D5"
                    ItemStyle-CssClass="grayBorder" HeaderStyle-CssClass="grayBorder">
                    <ItemTemplate>
                        <asp:Label ID="lblEventName" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(If(DataBinder.Eval(Container, "DataItem.Event_Name") Is DBNull.Value, "", DataBinder.Eval(Container, "DataItem.Event_Name"))).toString %>'></asp:Label>

                    </ItemTemplate>
                </asp:TemplateField>--%>
                <asp:TemplateField HeaderText="File Name" ItemStyle-Width="100px" ItemStyle-CssClass="grayBorder"
                    HeaderStyle-CssClass="grayBorder">
                    <ItemTemplate>
                        <asp:Label ID="lblFileName" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(If(DataBinder.Eval(Container, "DataItem.file_name") Is DBNull.Value, "", DataBinder.Eval(Container, "DataItem.file_name"))).ToString%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Doc Type" ItemStyle-Width="100px" ItemStyle-CssClass="grayBorder"
                    HeaderStyle-CssClass="grayBorder">
                    <ItemTemplate>
                        <asp:Label ID="lblDocType" runat="server" Text='<%#Microsoft.Security.Application.Encoder.HtmlEncode(If(DataBinder.Eval(Container, "DataItem.DOC_TYPE") Is DBNull.Value, "", DataBinder.Eval(Container, "DataItem.DOC_TYPE"))).toString %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="View" ItemStyle-Width="100px" ItemStyle-CssClass="grayBorder"
                    HeaderStyle-CssClass="grayBorder">
                    <ItemTemplate>
                                                <asp:LinkButton ID="lnkViewDoc" runat="server" Text='View' CommandArgument="<%# Container.DataItemIndex %>" Style="text-align:center;" ></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>

            </Columns>
        </asp:GridView>
    </form>
</body>
</html>
