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

<%@ Register Src="~/FinIQ_User_Controls/DateControl.ascx" TagPrefix="uc1" TagName="DateControl" %>

<%--<!DOCTYPE html>--%>
  
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../../App_Themes/Style1.css" rel="stylesheet" type="text/css" />
    <%-- Javed--on 9-Nov-2016--%>
      <script language="javascript" type="text/javascript" src='<%=ResolveClientUrl("~/FinIQJS/jquery.min.js")%>'></script>
    <link href="../../FinIQJS/jquery-ui.min.css" rel="stylesheet" />
<script class="include" type="text/javascript" src='<%=ResolveClientUrl("~/FinIQJS/Jquery/jquery-ui.js")%>'></script>
    <script src="../../FinIQJS/jQuery_lib/conformationBox.js" type="text/javascript"></script>
    <script src="../../FinIQJS/popup.js" type="text/javascript"></script>
    <script src="../../FinIQJS/popup_detail.js" type="text/javascript"></script>
    <%-- Javed--on 9-Nov-2016--%>
    <script src="../../FinIQJS/FinIQCommon.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src='<%=ResolveClientUrl("~/FinIQJS/CalendarPopup.js")%>'></script>
   
</head>
<body>
    <style>

        .PnlUpper {
            width: 960px;
            border: solid 1px #cccccc;
            margin-left: 8px;
        }

        .grpType {
            width: 80px;
            height: 36px;
            margin: 8px;
            float: left;
        }
        .lbl {
            margin-left: 20px;
        }
        .dropdown {
            margin: 4px;
            margin-left: 10px;
            float: left;
        }
        .button {
           Width:120px;
           font: normal 13px verdana !important; 
           height:30px !important;           
           border:solid 1px #CCCCCC !important;
           border-collapse:collapse !important;        
           color:#000000 !important;      
           background-color:#F2F2F3 !important;           
       }
       .fldLower {
            width: 970px; 
            height: 460px;          
            margin: 8px;
            overflow: auto;
        }
        .Grid td {
            white-space: nowrap;
        }
        
    </style>
    
    <form id="form1" runat="server">
          <asp:ScriptManager ID="scrpmgr1" runat="server"></asp:ScriptManager> 
    <div>
        <asp:Panel runat="server" ID="pnlUpper">
                <fieldset Class="PnlUpper">
                    <table>
                        <tr>
                            <td>                           
                                <fieldset class="grpType">
                                    <asp:RadioButton ID="radioTranche" Text="Tranche" runat="server" CssClass="radio" GroupName="Type" />
                                    <asp:RadioButton ID="radioELN" Text="ELN" runat="server" CssClass="radio" GroupName="Type" />
                                </fieldset>                           
                            </td>

                            <td>
                                <asp:Label ID="lblEvent" class="lbl" runat="server" Text="Event"></asp:Label>
                            </td>

                            <td>
                                <asp:DropDownList ID="ddlEvent" CssClass="ddl dropdown" runat="server"  Width="160px">
                                </asp:DropDownList>                               
                            </td>

                         <td>
                                        <asp:Label ID="lblFrom" runat="server" CssClass="lbl">From</asp:Label>
                                    </td>
                                    <td >
                                        <uc1:DateControl ID="txtFromDate" runat="server" CalenderCss="btn1" DoPostBack="false"
                                            TextBoxCss="txt" TextBoxSize="90px" />
                                    </td>
                            <td style="width:30px;"></td>

                           
                              <td>
                                        <asp:Label ID="lblTo" runat="server" CssClass="lbl">To</asp:Label>
                                    </td>
                                    <td>
                                        <uc1:DateControl ID="txtToDate" runat="server" CalenderCss="btn1" DoPostBack="false"
                                            TextBoxCss="txt" TextBoxSize="90px" />

                                         <td>
                                <asp:Button ID="btnGenerate" runat="server" class="button" Text="Generate"></asp:Button>
                            </td>
                                        <%--    <div id="testdiv11" style="Z-INDEX: 102; LEFT: 584px; VISIBILITY: hidden; POSITION: absolute; TOP: 70px; BACKGROUND-COLOR: white; layer-background-color: white"
                                            onmouseout="document.body.style.cursor = 'Default';">
                                        </div>--%>
                                 
										
                                    </td>
                        </tr>
                    </table>
               </fieldset>          
            </asp:Panel>
   
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
            <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server">
                <fieldset class="fldLower">
                    <asp:GridView ID="grdReport" runat="server" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="None" BorderWidth="0px" CellPadding="3"
                                                CssClass="Grid" PageSize="15" AllowPaging="true" ShowHeaderWhenEmpty="true">
                            <HeaderStyle CssClass="GridHeader" />
                                               
                            <Columns>                                             
                                                                                        

                                <asp:TemplateField HeaderText="Event Name" ItemStyle-Width="150px" runat="server">
                                    <ItemTemplate>
                                        <asp:Label ID="lblEventName" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.EventName").ToString)%>'/>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Issuer Name" runat="server">
                                    <ItemTemplate>
                                        <asp:Label ID="lblIssuerName" CssClass="lbl" runat="server" Text= '<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Issuer_Name").ToString)%>'/>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Product Name" runat="server">
                                    <ItemTemplate>
                                        <asp:Label ID="lblProductName" CssClass="lbl" runat="server" Text= '<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Product_Name").ToString)%>'/>
                                    </ItemTemplate>
                                </asp:TemplateField>                               

                            </Columns>
                        </asp:GridView>  
                </fieldset>
            </asp:Panel>
                <
         </ContentTemplate> 
                      
        </asp:UpdatePanel>
    </div>                     
    </form>
</body>
</html>
