<%--<%@ Page Language="vb" AutoEventWireup="false"   CodeBehind="UCP_Intersection_Field_Master.aspx.vb" Inherits="FinIQWebApp.UCP_Intersection_Field_Master"  %>--%>
<%@ Page Language="vb" AutoEventWireup="true" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="UCP_Intersection_Field_Master.aspx.vb" Inherits="FinIQWebApp.UCP_Intersection_Field_Master"  EnableViewState="true"  %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />   
    <style>
        

       

        .alignLeft {
            text-align: left !important;
        }

        .alignRight {
            text-align: right !important;
        }

        .alignCenter {
            text-align: center !important;
        }
       
        .Grid {
            table-layout: fixed;
        }

            .Grid th, .Grid td {
                word-wrap: break-word;
            }

       
        .CheckboxListCore_Field_VisibilityPanel {
            width: 150px;
            border-bottom-width: thin;
        }

        .CheckboxListHedging_TypePanel {
            width: 190px;
            border-bottom-width: thin;
        }
               .Enabled-button {
            width: 90px;
            /*  margin-left: 5px;*/
        }

        .tablespace {
            margin-top: 10px;
        }

        /*.lblDisp
        {
            text-align:left;    
            height:20px;
        }*/

        .panel {
            top: 250px;
            left: 580px;
            position: absolute;
            display: none;
        }

        .displayNone {
            display: none;
        }

        .panelContainer {
            /*background-color: #CCCCCC;*/
            background-color: whitesmoke;
        }

       
        .divLoading {
            position: absolute;
            top: 48px;
            left: 260px;
        }

      

        .topTable {
            /*margin-left: 10px;
            margin-top: 10px;
            margin-bottom: 20px;*/
        }

        .MiddleContainer {
            margin-left: 10px;
        }

        /*.Grid td {
            white-space:normal;
        }*/
        .Gridview {
            table-layout: fixed;
            /*width:100%;*/
        }
        /*.ctl00_MainContent_gvTemplateMaster a, .Grid a:link {
            color: #3B66D6;
        }*/
        .paddingLarge {
            padding-left: 20px;
        }

        .paddingSmall {
            padding-left: 10px;
        }

        .width_Name {
            width: 95px;
        }

        .width_txtName {
            width: 320px;
        }

        .EditColWidthPayoff {
            min-width: 100px !important;
            max-width: 500px !important;
        }

        .EditColWidthDynamicHedgingGroupingKey {
            min-width: 100px !important;
            max-width: 500px !important;
        }

        .DeleteContainer {
            padding: 10px 10px 10px 10px;
            margin-left: 574.5px;
            margin-top: 181.5px;
            display: none;
            border-radius: 10px;
            width: 280px;
            height: 100px;
            position: absolute;
            box-shadow: 3px 3px 4px #666;
            border: solid 1px #ddd;
            border-collapse: collapse;
        }

        /*Added by TejaswiniB 09-Feb-2021*/
        .width_4_char{  
                    width: 4ch;
            max-width: 4ch;
            min-width: 4ch;
        }
		/*Added by Bhagyashri B 03-01-2020*/
        .width_8_char {
            width: 8ch;
            max-width: 8ch;
            min-width: 8ch;
        }

        .width_64_char {
            width: 64ch;
            max-width: 64ch !important;
            min-width: 64ch;
        }

        .width_32_char {
            width: 32ch;
            max-width: 32ch;
            min-width: 32ch;
        }

        .width_24_char {
            width: 24ch;
            max-width: 32ch;
            min-width: 24ch;
        }

        .width_16_char {
            width: 16ch;
            max-width: 16ch;
            min-width: 16ch;
        }

        /*Added to hide Beneficiary column by Bhagyashri B 10-01-2020*/
        .visibleFalse {
            display: none;
        }
        /*End By bhagyashri B*/

        .GridHeader {
            background-color: #ededed !important;
        }

        /*Added by Bhagyashri B 27-01-2020 BNPINT-295*/
        .showToggle {
            background-image: url("../App_Resources/Embedded_Actions.png");
        }

        .hideToggle, .showToggle, .EnableToggle, .DisableToggle {
            width: 196px !important;
            height: 28px !important;
            border: none 0px #FFF !important;
            color: #FFF !important;
            outline: 0 !important;
            background-color: #FFFFFF;
            background-repeat: no-repeat;
            background-size: contain;
        }

        .hideToggle {
            background-image: url("../App_Resources/Regular_Action.png");
        }
        /*End by Bhagyashri B*/
  

    </style>
         <asp:Label ID="lblsearchname" runat="server" Style="margin-right: 2px;" Text="Name"></asp:Label>
        <asp:TextBox ID="txtsearch" Style="width: 55ch;" runat="server" AutoPostBack="True"></asp:TextBox>
    <br />
    <br />

   

    
        <asp:Button ID="btnload" runat="server" Text="Load" CssClass="btn" Width="90px" Style="margin-right: 2px;"/>
        
        <asp:Button ID="btninsert" runat="server" Text="Insert" CssClass="btn" Width="90px" Style="margin-right: 2px;"/>
        <asp:Button ID="btnexport" runat="server" Text="Export" CssClass="btn" Width="90px" Style="margin-right: 2px;" />
        
            <asp:DropDownList ID="ddlmisc1" runat="server" AutoPostBack="True" Style="margin-right: 2px;">
                <asp:ListItem>Button</asp:ListItem>
                <asp:ListItem>D3</asp:ListItem>
                <asp:ListItem>Device</asp:ListItem>
                <asp:ListItem>EQC</asp:ListItem>
                <asp:ListItem>Funds</asp:ListItem>
                <asp:ListItem>Grid</asp:ListItem>
                <asp:ListItem>Layout</asp:ListItem>
                <asp:ListItem>Layout Style</asp:ListItem>
                <asp:ListItem>Native FX</asp:ListItem>
                <asp:ListItem>Tab</asp:ListItem>
                <asp:ListItem Value="NULL">All</asp:ListItem>
            </asp:DropDownList>

           <asp:DropDownList ID="ddlActiveInactive" runat="server" AutoPostBack="true" CssClass="width_16_char" Style="margin-right: 2px;">
            <asp:ListItem Text="All" Value="NULL">All</asp:ListItem>
            <asp:ListItem Value="Y">Only Active</asp:ListItem>
            <asp:ListItem Value="N">Only Deactive</asp:ListItem>
           </asp:DropDownList>
      <asp:TextBox ID="txtpaging" runat="server" AutoPostBack="True" Width="32px">99</asp:TextBox>
        Records Per Page                                                                                  
        <asp:Label ID="lblError" runat="server" Style="padding-left: 25px; margin-left: 10px;" CssClass="lblError" Width="250px"></asp:Label>
       <br />
    <br />
    <br />
    
        
        
        
            
                    
        <%--<asp:GridView ID="GridView1" runat="server" AllowPaging="True" OnPageIndexChanging="OnPageIndexChanging">
        </asp:GridView>--%>
        <asp:GridView ID="gvifmaster" runat="server" AutoGenerateColumns="False"   CssClass="Grid"
                      
                     DataKeyNames="UCIF_Id" AutoGenerateDeleteButton="True"   
                    AutoGenerateEditButton="True" onrowcancelingedit="gvifmaster_RowCancelingEdit"   
                    onrowdeleting="gvifmaster_RowDeleting" onrowediting="gvifmaster_RowEditing"   
                    onrowupdating="gvifmaster_RowUpdating" AllowSorting="True" ShowHeaderWhenEmpty="True"  AllowPaging="True" OnPageIndexChanging="OnPageIndexChanging" ForeColor="Black" CellPadding="1" PageSize="99"> 
                    <SelectedRowStyle CssClass="GridItemSelect" />
                                <RowStyle CssClass="GridItem" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />
                                <PagerSettings Mode="NumericFirstLast"
                                    FirstPageText="First"
                                    LastPageText="Last"
                                    Position="Bottom" />
                    <Columns>  
                        <asp:TemplateField HeaderText="ID" > 
                            <HeaderStyle CssClass="width_8_char" Wrap="true" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtId" runat="server" Text='<%# Bind("UCIF_Id") %>' Enabled="False"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblId" runat="server" Text='<%# Bind("UCIF_Id") %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:LinkButton ID="Insertlnkbtn" runat="server" OnClick="Insert">Insert</asp:LinkButton>
                                <asp:LinkButton ID="Cancellnkbtn" runat="server" OnClick="CancelInsert">Cancel</asp:LinkButton>
                            </FooterTemplate>
                        </asp:TemplateField>  
                        <asp:TemplateField HeaderText="Field Name">  
                            <HeaderStyle CssClass="width_32_char" />
                            <ItemStyle Wrap="true" HorizontalAlign="left" CssClass="width_32_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtFieldName" runat="server" Text='<%# Bind("UCIF_Field_Name") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblFieldName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Field_Name").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditFieldName" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Display Name"> 
                            <HeaderStyle CssClass="width_32_char" />
                            <ItemStyle Wrap="true" HorizontalAlign="left" CssClass="width_32_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtDisplayName" runat="server" Text='<%# Bind("UCIF_Display_Name") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblDisplayName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Display_Name").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditDisplayName" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Active YN">
                            <HeaderStyle CssClass="width_8_char" />
                                        
                            <EditItemTemplate>  
                                <%--<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("UCIF_Active_YN") %>' CssClass="txt"></asp:TextBox>--%>
                                <asp:DropDownList ID="ddlActive"  runat="server"  CssClass="ddl width_8_char">
                                        <asp:ListItem Text="Y" Value="Y" >Y</asp:ListItem>
                                        <asp:ListItem Text="N" Value="N">N</asp:ListItem>
                                   </asp:DropDownList>
                            </EditItemTemplate>  
                            <ItemStyle CssClass="width_16_char" HorizontalAlign="Center" />
                            <ItemTemplate>  
                                <asp:Label ID="lblActive" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Active_YN").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>
                            <FooterTemplate>
                                <%--<asp:TextBox ID="TextBoxE4" runat="server"></asp:TextBox>--%>
                                <asp:DropDownList ID="ddlActive"  runat="server"  CssClass="ddl width_8_char">
                                        <asp:ListItem Text="Y" Value="Y" >Y</asp:ListItem>
                                        <asp:ListItem Text="N" Value="N">N</asp:ListItem>
                                   </asp:DropDownList>
                              
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="UCIF_Misc1">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtMisc1" runat="server" Text='<%# Bind("UCIF_Misc1") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblMisc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Misc1").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditMisc1" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="UCIF_Misc2">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtMisc2" runat="server" Text='<%# Bind("UCIF_Misc2") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblMisc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Misc2").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditMisc2" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="UCIF_Misc3">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtMisc3" runat="server" Text='<%# Bind("UCIF_Misc3") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate> 
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>  
                                <asp:Label ID="lblMisc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Misc3").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditMisc3" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="UCIF_Misc4">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtMisc4" runat="server" Text='<%# Bind("UCIF_Misc4") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate> 
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>  
                                <asp:Label ID="lblMisc4"  runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Misc4").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditMisc4" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="UCIF_Misc5"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtMisc5" runat="server" Text='<%# Bind("UCIF_Misc5") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblMisc5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Misc5").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditMisc5" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Docgen YN">  
                            <HeaderStyle CssClass="width_8_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtDocgenYN" runat="server" Text='<%# Bind("UCIF_Docgen_YN") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblDocgenYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Docgen_YN").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditDocgenYN" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Docgen Deal Event">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtDocgenDealEvent" runat="server" Text='<%# Bind("UCIF_Docgen_Deal_Event") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblDocgenDealEvent" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Docgen_Deal_Event").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditDocgenDealEvent" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Docgen Product Event">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtDocgenProductEvent" runat="server" Text='<%# Bind("UCIF_Docgen_Product_Event") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblDocgenProductEvent" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Docgen_Product_Event").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditDocgenProductEvent" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Docgen Event">  
                            <HeaderStyle CssClass="width_8_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtDocgenEvent" runat="server" Text='<%# Bind("UCIF_Docgen_Event") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblDocgenEvent" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Docgen_Event").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditDocgenEvent" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Docgen Level">  
                            <HeaderStyle CssClass="width_8_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtDocgenLevel" runat="server" Text='<%# Bind("UCIF_Docgen_Level") %>' CssClass="txt"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblDocgenLevel" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UCIF_Docgen_Level").ToString) %>' CssClass="lbl" ></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditDocgenLevel" runat="server" CssClass="txt"></asp:TextBox>
                               
                            </FooterTemplate>
                        </asp:TemplateField>
                    </Columns>  
                    
                </asp:GridView>
    </asp:content>

