<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="BasketArray_Metadata.aspx.vb" Inherits="FinIQWebApp.BasketArray_Metadata" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%--added by roshni 13 sep--%>
<%@ Register Src="~/BasketArray_Tab_Controls/basketArray_Metadata.ascx" TagPrefix="uc1" TagName="MataData" %>
<%@ Register Src="~/BasketArray_Tab_Controls/basketArray_FunctionDefinition.ascx" TagPrefix="uc2" TagName="FunctionDefination" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <asp:ScriptManagerProxy ID="ScriptManagerProxy1" EnableViewState="true" runat="server"></asp:ScriptManagerProxy>
    <link href="../App_Themes/workflowCSS.css" rel="stylesheet" type="text/css" />
    <script src="../FinIQJS/DragDrop.js"></script>
    <link href="../FinIQJS/DateTimePicker.css" rel="stylesheet" type="text/css" />
    <script src="../FinIQJS/DateTimePicker.js" type="text/javascript"></script>
    
    <style type="text/css">
        .DSNmaxColumnWidth {
            width: 200px;
        }

        .tdSpace {
            width: 50px;
        }

        .tdspaceddl {
            width: 225px;
        }

        .ui-widget-content.ui-widget {
            border-bottom: solid 0px #DDDDDD !important;
        }

        .tdSpace {
            min-width: 250px;
            max-width: 250px;
        }

        .DateWidth {
            min-width: 75px !important;
            max-width: 75px !important;
        }

        .CIFWidth {
            min-width: 80px !important;
            max-width: 80px !important;
        }

        .NumberCol {
            min-width: 110px !important;
            max-width: 110px !important;
        }

        .AcNoCol {
            min-width: 110px;
            max-width: 150px;
        }
    </style>

   

    <asp:TextBox ID="TextBox1" runat="server" Text="" Width="0px" Height="0px" ForeColor="White" Visible="false"></asp:TextBox>
    <asp:Label ID="lblerror" Visible="true" Text="" runat="server" CssClass="lblerror"></asp:Label>

    <table  border="0">
        <tr>
            <td colspan="2">
                <asp:UpdateProgress ID="UpdateProgress1" runat="server" Visible="true" DisplayAfter="1">
                    <ProgressTemplate>
                        <div style="position: absolute; top: 55px; left: 620px">
                            <img alt="Loading" src="../App_Resources/loading.gif" width="30" height="30" /><%--style="margin-left: 1000px"--%>
                            <span class="lbl">Loading...</span>
                        </div>
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top;">
                <table style="width: 235px; display: inline-block; float: left; margin-right: 0px;">
                    <tr>
                        <td>
                            <asp:Label ID="lblModule" Width="65px" runat="server" Text="Module" CssClass="lbl"></asp:Label>
                            <%--</td>
                            <td class="tdspaceddl">--%>
                            <asp:DropDownList ID="ddlModule" runat="server" CssClass="ddl" AutoPostBack="true" Style="width: 160px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblScheme" Width="65px" runat="server" Text="Scheme" CssClass="lbl"></asp:Label>
                            <%--</td>

                            <td class="tdspaceddl">--%>
                            <asp:DropDownList ID="ddlScheme" runat="server" AutoPostBack="true" CssClass="ddl" Style="width: 160px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblTemplate" Width="65px" runat="server" Text="Template" CssClass="lbl"></asp:Label>
                            <%-- </td>
                            <td class="tdspaceddl">--%>
                            <asp:DropDownList ID="ddlTemplate" runat="server" AutoPostBack="true" CssClass="ddl" Style="width: 160px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="width: 102%">
                                <table style="width: 102%;margin-left: -5px;">
                                    <tr>
                                        <td style="vertical-align: auto">

                                            <asp:Panel ID="pnlTabLinks" runat="server" visile="false">


                                                <asp:GridView ID="GrdLinkTab" ShowHeaderWhenEmpty="false" EmptyDataText="No Records Found"
                                                    rules="All" ShowHeader="false" runat="server" AllowPaging="true" PageSize="20" PagerStyle-Height="32px"
                                                    AutoGenerateColumns="false" HeaderuStyle-CssClass="GridHeaderTitle" Width="100%"
                                                    CssClass="Queues" CellPadding="0" RowHeadersWidthSizeMode="DisableResizing;" SelectedRowStyle-Wrap="true"
                                                    CellSpacing="0">
                                                    <SelectedRowStyle CssClass="GridItemSelect" BackColor="#f7f7f7" />
                                                    <RowStyle CssClass="GridItem1" BorderStyle="None" />
                                                    <HeaderStyle CssClass="GridHeader"/>
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />

                                                    <%-- <FooterStyle Height ="42px" />--%>

                                                    <RowStyle CssClass="GridItem" Wrap="true" />

                                                    <%--<SelectedRowStyle CssClass="GridItemSelect"></SelectedRowStyle>--%>
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="lblqueuedatagrid" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="" HeaderStyle-CssClass="GridHeader" HeaderStyle-ForeColor="White">
                                                            <HeaderStyle Height="38PX" />
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="TabName" runat="server"
                                                                    Text='<%# DataBinder.Eval(Container, "DataItem.TabName")%>'
                                                                    CommandArgument='<%# Bind("TabName")%>' CommandName="Select" OnClick="LinkButton_Click"></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <ItemStyle CssClass="GridItems" VerticalAlign="Middle" HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <SelectedRowStyle Wrap="False" />
                                                </asp:GridView>

                                            </asp:Panel>

                                        </td>

                                    </tr>
                                </table>

                                <div id="dialog_Confirm" title="Conformation-box" style="display: none; overflow: hidden; height: 750px; border: solid 1px #DDDDDD; border-bottom-width: 0px;">
                                    <iframe id="iFrame_Reconfirm" style="overflow: auto; width: 250px; height: 750px; border: 0px"></iframe>
                                </div>
                            </div>
                        </td>

                    </tr>
                </table>
            </td>
            <td colspan="2" style="vertical-align: top;">

                <table style="float: left;">
                    <tr>
                        <td>
                            <asp:Panel ID="BasketDesignerMain1" runat="server">
                                <asp:Panel ID="pnlMataData" runat="server" EnableViewState="true">

                                    <uc1:MataData ID="BasketMataData" Visible="true" runat="server" EnableViewState="true" />
                                </asp:Panel>
                            </asp:Panel>
                            <%--  <asp:Label ID="Label1" CssClass="lbl" Width="25px" Visible="true" runat="server" EnableViewState="true" Text="METADATA"></asp:Label>--%>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Panel ID="BasketDesignerMain" runat="server">
                                <asp:Panel ID="pnlFunctionDefination" runat="server" EnableViewState="true">

                                    <uc2:FunctionDefination ID="oBasketFunctionDefination" Visible="true" runat="server" EnableViewState="true" />
                                </asp:Panel>
                            </asp:Panel>
                            <%--<asp:Label ID="Label2" CssClass="lbl" Width="25px" Visible="true" runat="server" EnableViewState="true" Text="FUNCTION DEFINATION"></asp:Label>--%>
                        </td>
                    </tr>
                </table>

            </td>
        </tr>


    </table>
    <asp:HiddenField ID="hdnBASessionID" Value="" runat="server" EnableViewState="true" />
    <script>

        var confo
        function Confirm() {
           // 

            confo = $("#dialog_Confirm").dialog({
                title: 'Grid/Tab Display Name',
                modal: true,
                autoOpen: true,
                width: 250,
                height: 750,
                close: function () {
                }
            });
            $("#iFrame_Reconfirm").prop("src", "FrmALlTabNamelist.aspx");
            confo.dialog('open');
        }

        function applyTabs() {

            __doPostBack('btnTabApply', 'OnClick');

        };
        function closeDia() {
            applyTabs();
            $("#dialog_Confirm").dialog("close");
        }
    </script>
</asp:Content>

