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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UCP/LayoutDesignControls/UCP_LayoutDesign_Control.ascx" TagPrefix="uc1" TagName="LayoutDesign" %>
<%@ Register Src="~/UCP/LayoutDesignControls/UCP_ModuleSchemeTemplateSearch_Control.ascx" TagPrefix="uc2" TagName="ModuleSchemeTemplateSearch" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Src="~/UCP/LayoutDesignControls/UCP_LayoutStyleMapping_Control.ascx" TagPrefix="uc_LSM" TagName="LayoutStyleMapping" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <script src="../FinIQJS/jquery-1.9.1.js"></script>
    <script src="../FinIQJS/jquery-ui.min.js"></script>
    <meta http-equiv="Content-Language" content="en" />
    <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/workflowCSS.css" rel="stylesheet" />
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>

    <%--For AutoCompleteExtender--%>
    <script type="text/javascript">
        function clientShowing(sender, e) {

            var extender = sender;
            var oldSetText = extender._setText;
            extender._setText = function (item) {
                if (jQuery(item).hasClass('listHeader')) {
                    return;
                }
                oldSetText.call(extender, item);
            };
        }

        function clientPopulated(sender, e) {

            var extender = sender;
            var completionList = extender.get_completionList();

            jQuery(completionList).prepend('<option class="listHeader" value="volvo" disabled>Module | Scheme | Template</option>')
        }
    </script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <style>
                .CollpseCSS1 {
                    margin-top: 5px;
                    width: 100% !important;
                    min-width: 1880px !important;
                    text-align: left;
                    letter-spacing: normal;
                }

                /*.CollpseCSS1, .CollpseCSS1:hover
        {
            padding: 7px;
            border-radius: 2px;
            height: 30px;
            margin-top: 5px;
           width:100% !important;
           min-width:1880px !important;
           text-align:left;  
            letter-spacing: normal;

        }
        .CollpseCSS1 span {   
                                
            height:18px !important;            
            font:normal 11px/18px verdana !important;
        }

        .CollpseCSS1
        {
            
            background-color: #777777 !important;
            border:solid 1px #777777 !important;
            cursor:pointer;
            color:#ffffff;
        }
          .CollpseCSS1:hover
        {
              cursor:pointer;
              border:solid 1px #827f7f !important;
              background-color: #827f7f  !important;
              color:#ffffff;

        }*/

                .btn, .btn:hover {
                    text-align: left !important;
                    box-shadow: 0px 2px #ddd !important;
                    outline: none !important;
                }

                .ddl {
                    width: 100px;
                }

                .constantWidth {
                    width: 6px;
                }

                .auto-style1 {
                    width: 11px;
                }

                .txtTable {
                    width: 50px;
                    height: 25px;
                    text-align: center !important;
                }

                .btnTable {
                    width: 50px;
                    height: 24px;
                    color: #000000 !important;
                    cursor: pointer !important;
                    text-align: center !important;
                    font: normal 11px verdana !important;
                    background-color: buttonface;
                }

                .tdWidthConstant {
                    width: 100px;
                }

                .GridHeader td, .GridHeader th {
                    background-color: #e6e6e6 !important;
                }

                .dateWidth {
                    Width: 80px;
                }

                .btnExcel {
                    padding-bottom: 5px !important;
                }

                .GridItem td {
                    border-bottom: solid 1px #dddddd !important;
                    border-right: solid 1px #dddddd !important;
                    border-top: solid 1px #dddddd !important;
                    border-left: solid 1px #dddddd !important;
                    max-width: 300px;
                    overflow-wrap: break-word;
                }

                .tabButn {
                    text-align: left !important;
                    margin-top: 5px;
                    width: 100% !important;
                    min-width: 1880px !important;
                    letter-spacing: normal;
                    background-color: white;
                    border: none;
                    border-bottom: 1px solid #cccccc;
                    padding-bottom: 10px;
                }

                /*Added by Bhagyashri B*/

                /* For autocomplete using AutoCompleteExtender */
                .autoComplete_completionList {
                    border: 1px solid #cccccc;
                    list-style: none;
                    background: inherit;
                    overflow: auto;
                    padding-left: 1px;
                }

                .autocomplete_highlightedItem {
                    background-color: #efefef;
                    font-size: 14px;
                    padding: 1px;
                }

                .autocomplete_listItem {
                    padding: 2px;
                }

                .listHeader {
                    background-color: #cccccc !important;
                    color: black !important;
                    cursor: default !important;
                }

                /* For autocomplete using jquery */
                .TableModSchmTmplSearchResult_new, .TableModSchmTmplSearchResult_new th {
                    border: solid 1px #DDDDDD;
                    border-collapse: collapse !important;
                }

                    .TableModSchmTmplSearchResult_new th {
                        background-color: #f2f2f3;
                        font: normal 11px/22px verdana !important;
                    }

                /*End by Bhagyashri B*/

                /*.btn
                {
                    width:auto !important;
                }*/

                .lblLayoutDesign {
                    padding-right: 5px !important;
                    padding-left: 5px !important;
                }
            </style>

            <%--          <cc1:CollapsiblePanelExtender ID="cpFunctionDefinition" runat="server" TargetControlID="pnlFunctionDefinition"
                ExpandControlID="btnFunctionDefinition" CollapseControlID="btnFunctionDefinition" Collapsed="false"
                ImageControlID="imgBackgroundIntroduction"
                SuppressPostBack="True"></cc1:CollapsiblePanelExtender>--%>

            <table runat="server" id="tblMain">
                <tr>
                    <td colspan="13">
                        <asp:Label ID="lblError" runat="server" Style="padding-left: 25px;" CssClass="lblError" Width="250px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <%--Added by Bhagyashri B on 20 Sept 2019 for Search--%>
                     <td colspan="2">
                       <uc2:ModuleSchemeTemplateSearch runat="server" ID="modSchmTmplSrch" EnableViewState="true" Visible="true" OnValueSelected="updateModSchmTmplValues" />
                    </td>
                    <%-- End by Bhagyashri B --%>
                    <td colspan="2">
                        <asp:Label ID="lblModule" runat="server" Text="Module" CssClass="lbl lblLayoutDesign"></asp:Label>
                        <asp:DropDownList ID="ddlModule" runat="server" Width="188px" CssClass="ddl lblLayoutDesign" AutoPostBack="true"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lblScheme" runat="server" Text="Scheme" CssClass="lbl lblLayoutDesign"></asp:Label>
                        <asp:DropDownList ID="ddlScheme" runat="server" Width="170px" AutoPostBack="true" CssClass="ddl lblLayoutDesign"></asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lblTemplate" runat="server" Text="Template" CssClass="lbl lblLayoutDesign"></asp:Label>
                        <asp:DropDownList ID="ddlTemplate" runat="server" Width="170px" AutoPostBack="true" CssClass="ddl"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnExpandAll" Style="text-align: center !important;" Text="Expand" runat="server" CssClass="btn" />
                    </td>
                    <td>
                        <asp:Button ID="btnCollapseAll" Style="text-align: center !important;" Text="Collapse" runat="server" CssClass="btn" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" CssClass="btn" Style="text-align: center !important;" runat="server" Text="Export" />
                    </td>
                    <%--<Start> Added by Pratibha on 3-Dec-2019 to generate RDLC--%>
                    <td>
                        <asp:Button ID="btnRDLC" CssClass="btn" Style="text-align: center !important;" runat="server" Text="Generate RDLC" />
                    </td>
                    <%--<End> Added by Pratibha on 3-Dec-2019 to generate RDLC--%>
                </tr>
              
                <%--<tr>        tr commented by BhagyashriB on 27-Dec-2021
                    <td >
                      <asp:DropDownList ID="ddlModuleType" runat="server" CssClass="ddl" AutoPostBack="true">
                          <asp:ListItem Selected="True"  Text="Natural"></asp:ListItem>
                          <asp:ListItem  Text="Embedded"></asp:ListItem>
                      </asp:DropDownList>
                    </td>                   

                    <%-- <tr>--

                    
                    <%-- Added by Tejaswini On 7 Feb 2019 For Report Mode--

                    <td style="padding-left: 20px;">
                        <asp:Button ID="btnDSNRep" CssClass="btn" Style="text-align: center !important;" runat="server" Text="Layout Designer" />
                    </td>

                    <td style="padding-left: 20px;">
                        <asp:Button ID="btnUDFMETRep" CssClass="btn" Style="text-align: center !important;" runat="server" Text="UDF Metadata" />
                    </td>
                    <%-- END by Tejaswini             
                </tr>--%>
            </table>

            <table>


                <%--Layout--%>
                <tr>
                    <td>
                        <asp:Button ID="btnLayout" runat="server" Style="text-align: left !important;" Text="Layout" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlLayout" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <asp:Panel ID="Panel1" runat="server" EnableViewState="true">
                                            <%--ScrollBars="Auto"--%>
                                            <uc1:LayoutDesign ID="oUCPLayout" runat="server" EnableViewState="true" />
                                        </asp:Panel>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%-- Layout Style Mapping --%>
                <tr>
                    <td>
                        <asp:Button ID="btnLayoutStyleMapping" runat="server" Style="text-align: left !important;" Text="Layout Style Mapping" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlLayoutStyleMapping" runat="server" Visible="false">
                            <div>
                                <uc_LSM:LayoutStyleMapping ID="oUCP_LSM" runat="server" EnableViewState="true" />
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Template Master--%>
                <tr>
                    <td>
                        <asp:Button ID="btnTemplateMaster" Style="text-align: left !important;" runat="server" Text="Template Master" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlTemplateMaster" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdTemplateMaster" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdTemplateMasterIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdTemplateMaster" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%-- Meta Data--%>
                <tr>
                    <td>
                        <asp:Button ID="btnUDFMetaData" runat="server" Style="text-align: left !important;" Text="Meta Data" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlUDFMetaData" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdUDFMetaData" runat="server" AllowPaging="True" PageSize="999" GridLines="Both" OnPageIndexChanging="grdUDFMetaDataIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdUDFMetaData" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Function Definition --%>
                <tr>
                    <td>
                        <asp:Button ID="btnFunctionDefinition" runat="server" Style="text-align: left !important;" Text="Function Definition" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlFunctionDefinition" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdFunctionDefinition" GridLines="Both" runat="server" AllowPaging="True" PageSize="999" OnPageIndexChanging="grdFunctionDefinitionIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />

                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdFD" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                    <asp:TemplateField ItemStyle-CssClass="EditColWidth" HeaderStyle-CssClass="EditColWidth" ItemStyle-HorizontalAlign="Center">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkButton" CommandArgument='<%#Eval("UFD_ID")%>' runat="server" CausesValidation="false" Text="Select" OnClick="FunctionDefinitionTest_Click"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="UFD_ID" ItemStyle-Width="60px" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbl_Ufd_id" runat="server" Text='<%#Eval("UFD_ID")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>

                        <asp:Panel ID="pnlFunctionDefinitionTest" runat="server" Visible="false">
                            <div>

                                <div>
                                    <asp:Button ID="btnFDTestHide" runat="server" Text="Hide" CssClass="btn " />
                                    <asp:GridView ID="grdFunctionDefinitionTest" GridLines="Both" runat="server" Style="margin-bottom: 20px; margin-top: 10px">
                                        <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                        <RowStyle CssClass="GridItem" />
                                        <HeaderStyle CssClass="GridHeader" />
                                        <FooterStyle CssClass="GridFooter" />
                                        <PagerStyle CssClass="GridPager" />

                                        <EmptyDataTemplate>
                                            <asp:Label ID="lblGrdFunctionDefinitionTest" runat="server" Text="No data found."></asp:Label>
                                        </EmptyDataTemplate>
                                        <Columns>
                                        </Columns>
                                    </asp:GridView>
                                </div>

                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Intersection --%>
                <tr>
                    <td>
                        <asp:Button ID="btnIntersection" runat="server" Style="text-align: left !important;" Text="Intersection" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlIntersection" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdIntersection" runat="server" AllowPaging="True" PageSize="999" GridLines="Both" OnPageIndexChanging="grdIntersectionIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdIntersection" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Layout Override Mapping --%>
                <tr>
                    <td>
                        <asp:Button ID="btnLayoutOverrideMapping" runat="server" Style="text-align: left !important;" Text="Layout Override Mapping" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlLayoutOverrideMapping" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdLayoutOverrideMapping" runat="server" AllowPaging="True" GridLines="Both" PageSize="15" OnPageIndexChanging="grdLayoutOverrideMappingIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />

                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdLOM" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Customer Grid Mapping --%>
                <tr>
                    <td>
                        <asp:Button ID="btnCustGridMapping" runat="server" Style="text-align: left !important;" Text="Customer Grid Mapping" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlCustGridMapping" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdCustGridMapping" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdCustGridMappingIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdCustGridMapping" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%-- Dynamic Customer Grid--%>
                <tr>
                    <td>
                        <asp:Button ID="btnDynamicCustGrid" runat="server" Style="text-align: left !important;" Text="Dynamic Customer Grid" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlDynamicCustGrid" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdDynamicCustGrid" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdDynamicCustGridIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdDynamicCustGrid" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%-- Tab Mapping --%>
                <tr>
                    <td>
                        <asp:Button ID="btnTabMapping" runat="server" Style="text-align: left !important;" Text="Tab Mapping" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlTabMapping" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdTabMapping" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdTabMappingIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdTabMapping" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%-- Custom Tab--%>
                <tr>
                    <td>
                        <asp:Button ID="btnCustomTab" runat="server" Style="text-align: left !important;" Text="Custom Tab" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlCustomTab" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdCustomTab" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdCustomTabIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdCustomTab" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%-- Field Tab Mapping--%>
                <tr>
                    <td>
                        <asp:Button ID="btnFieldTabMapping" runat="server" Style="text-align: left !important;" Text="Field Tab Mapping" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlFieldTabMapping" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdFieldTabMapping" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdFieldTabMappingIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdFieldTabMapping" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Custom Arary--%>
                <tr>
                    <td>
                        <asp:Button ID="btnCustomArray" runat="server" Style="text-align: left !important;" Text="Custom Array" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlCustomArray" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdCustomArray" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdCustomArrayIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdCustomArray" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Edit Rights--%>
                <tr>
                    <td>
                        <asp:Button ID="btnEditRights" runat="server" Style="text-align: left !important;" Text="Edit Rights" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlEditRights" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdEditRights" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdEditRightsIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdEditRights" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Product Recipe--%>
                <tr>
                    <td>
                        <asp:Button ID="btnProductRecipe" runat="server" Style="text-align: left !important;" Text="Product Recipe" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlProductRecipe" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdProductRecipe" runat="server" AllowPaging="True" PageSize="15" GridLines="Both" OnPageIndexChanging="grdProductRecipeIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdProductRecipe" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Rule Master Source--%>
                <tr>
                    <td>
                        <asp:Button ID="btnRuleMasterSource" runat="server" Style="text-align: left !important;" Text="Rule Master" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlRuleMasterSource" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdRuleMasterSource" runat="server" AllowPaging="True" PageSize="999" GridLines="Both" OnPageIndexChanging="grdRuleMasterSourceIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdRuleMasterSource" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Rule Details Source--%>
                <tr>
                    <td>
                        <asp:Button ID="btnRuleDetailSource" runat="server" Style="text-align: left !important;" Text="Rule Details" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlRuleDetailSource" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdRuleDetailSource" runat="server" AllowPaging="True" PageSize="999" GridLines="Both" OnPageIndexChanging="grdRuleDetailSourceIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblGrdRuleDetailSource" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </tr>

                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>


                <%--Template Workflow--%>
                <tr>
                    <td>
                        <asp:Button ID="btnTemplateWfl" runat="server" Style="text-align: left !important;" Text="Template Workflow Map" CssClass="tabButn CollpseCSS1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlTemplateWfl" runat="server" Visible="false">
                            <div>
                                <table>
                                    <tr>
                                        <div>
                                            <asp:GridView ID="grdTemplateWfl" runat="server" AllowPaging="True" PageSize="999" GridLines="Both" OnPageIndexChanging="grdTemplateWflIndexChanging" Style="margin-bottom: 20px;">
                                                <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <EmptyDataTemplate>
                                                    <asp:Label ID="lblgrdTemplateWfl" runat="server" Text="No data found."></asp:Label>
                                                </EmptyDataTemplate>
                                                <Columns>
                                                </Columns>
                                            </asp:GridView>
                                        </div>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>

            </table>

            <asp:HiddenField ID ="hdnDSNReportSessionID" runat="server" Value="0" EnableViewState="true" />
        </ContentTemplate>
        
        <Triggers>
            <asp:PostBackTrigger ControlID="btnexport" />
             <asp:PostBackTrigger ControlID="btnRDLC" /><%-- Added by Pratibha on 3-Dec-2019 to generate RDLC--%>
        </Triggers>

    </asp:UpdatePanel>
    <%--<Start> Added by Pratibha on 3-Dec-2019 to generate RDLC--%>
    <div>
         <rsweb:ReportViewer ID="ReportViewer1" runat="server" Visible="False" Font-Names="Verdana" Font-Size="8pt"  WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" ZoomPercent="100">
    </rsweb:ReportViewer>
    </div>
   <%--<End> Added by Pratibha on 3-Dec-2019 to generate RDLC--%>
</asp:Content>
