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

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      <meta http-equiv="Content-Language" content="en"/>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
<style type="text/css">
   

.margin
    {
        margin-left:15px;
        
    }
.upperMargin
    {
        margin-left:70px;
    }
.fldset
{
        font-size:12px;
        padding:10px;
        width:475px;
        line-height:1.8;
        height:650px;
        display: inline-block;
        float:left;
        margin-top:10px;

}
.div
    {
        border:1px #F9F9F9;
        height:630px;
        overflow-y: scroll;
    }
.legend
    {
     height:75px;
     margin-top:-35px;
    }

    .listbox
    {
       width:475px;
       height:627px;
     }
    .grpbox
    {
        width:100%;
        float:left;
    }
    .grpboxwidth
    {
        width:540px;
    }
    .status
    {
        text-align:center;
        border:1px solid grey;
        height:70px;
        padding-top:10px;
        margin:6px;
        width:992px;
    }
    .Subbtn
    {
           Width:70px;
           font: normal 13px verdana !important; 
           height:25px !important;           
           border:solid 1px #CCCCCC !important;
           border-collapse:collapse !important;        
           color:#000000 !important;      
           background-color:#F2F2F3 !important;
           border-radius: 5px;
         
    }
    .textbox
    {
        width:250px;
        margin-left:10px;
    }
    .divMargin
    {
        margin-left:455px;
    }
    .ddlWidth
    {
        width:223px;
    }
    .rightMargin
    {
        padding-right:35px;
    }
    .ddl1Width
    {
        width:140px;
    }
</style>
    <%--<link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />--%> <%-- Commented by Pratik S || 29-Sept-2021 || Black Theme Changes --%>
  <asp:UpdatePanel ID="updpnl_new" runat="server" UpdateMode="Conditional" EnableViewState="true" >
        
     <ContentTemplate>
            <div>
            <table id="Table1" runat="server">
                <tr>
                   <td class="rightMargin">
                      <asp:Button ID = "btnmap" CssClass="btn" runat="server" Text="Map/Unmap" Value="" Width="92px" autopostback="True"></asp:Button>
                   </td>

                    <td class=""> 
                      <asp:DropDownList ID="ddlComboObjectType" runat="server" Class="ddl ddl1Width" autopostback="True">
                      </asp:DropDownList>
                    </td>

                    <td class="rightMargin">
                      <asp:DropDownList ID="ddlSuperType" runat="server" Class="ddl ddlWidth"  autopostback="True">
                      </asp:DropDownList>
                    </td>

                  <%--  <td>
                        <asp:button ID="btnload" runat="server" Text="Load"></asp:button>
                    </td>--%>

                    <td>
                        <asp:Label id="lblMessage" text=""  runat="server" Class="lblError" />
                    </td>
                </tr>
            </table>
              
            <fieldset class="fldset">
                <legend>Templates <asp:Label id="label" AssociatedControlId="TemplateSearch" Text="Search" runat="server" CssClass="margin" />
                    <asp:TextBox ID ="TemplateSearch" runat="server"  autopostback="True" CssClass="txt"></asp:TextBox>
                    <asp:Button ID = "btnfind" CssClass="btn" runat="server" Text="Find" Width="70px" Value="" autopostback="True"></asp:Button> 
                </legend>  
                 <asp:ListBox ID="lbFillTemplate" runat="server" DataTextField="Name" DataValueField="ID" CssClass="lst listbox" autopostback="True">
                 </asp:ListBox>
               
           </fieldset>
            <fieldset class="fldset">
                <legend>Workflow Types  <asp:CheckBox ID="CheckBoxCO" Text="Select All" TextAlign="Right" runat="server" autopostback="True" Class="margin" ></asp:CheckBox></legend>
                <div class="div">
                    <asp:CheckBoxList ID="cblWorkFlowType" runat="server" autopostback="True" OnSelectedIndexChanged="cblWorkFlowType_SelectedIndexChanged" CssClass="">
                    </asp:CheckBoxList>
                </div>
            </fieldset>
           </div> 
       </ContentTemplate>

    </asp:UpdatePanel>

    <script type="text/javascript">

        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);

        function InitializeRequest(sender, args) {
        }

        function EndRequest(sender, args) {
            $("#<%=TemplateSearch.ClientID%>").keydown(function (e) {
                var code = e.keyCode || e.which;

                if (code == 13) {
                    document.getElementById('<%=btnfind.ClientID%>').click();
                }
            });
        }

        $("#<%=TemplateSearch.ClientID%>").keydown(function (e) {
            var code = e.keyCode || e.which;

            if (code == 13) {
                document.getElementById('<%=btnfind.ClientID%>').click();
            }
        });
    </script>
    
</asp:Content>

