﻿// Copyright Zerone Consulting Pvt. Ltd. 2009
//
// All rights are reserved. Reproduction or transmission in whole or in part,in
// any form or by any means, electronic, mechanical or otherwise, is prohibited
// without the prior written consent of the copyright owner.
//
// Filename      :	peddl.js
// Purpose       :  peddl.js
// Creation Date :	23/December/2009
// Author        :	Naveenkumar C N
// 
// Change History
// Changed By :
// Date :
// Purpose :

function AttachPEDDL(textBox, hidden, requestKeyWord, requestPage) {
    $('#' + textBox).keydown
    (
         function(event) {
             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }
             $('#' + hidden).val("0");
         }
    );
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            formatItem: formatItem,
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    )
    .result
    (
        function(event, item) {
            $('#' + textBox).val(item[0].split('║')[1]);
            $('#' + hidden).val(item[0].split('║')[0]);
        }
    );

    function formatItem(row) {
        var result = "";

        try {
            $('#' + hidden).val(0);
            result = row[0].split('║')[1];
        }
        catch (exc) {
        }

        return result;
    }
}

function AttachPEDDLWithCallBack(textBox, hidden, requestKeyWord, requestPage, onResult) {
    $('#' + textBox).keydown
    (
         function(event) {
             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }
             $('#' + hidden).val("0");
         }
    );
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            formatItem: formatItem,
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    )
    .result
    (
        function(event, item) {
            $('#' + textBox).val(item[0].split('║')[1]);
            $('#' + hidden).val(item[0].split('║')[0]);
            onResult();
        }
    );

    function formatItem(row) {
        var result = "";

        try {
            $('#' + hidden).val(0);
            result = row[0].split('║')[1];
        }
        catch (exc) {
        }

        return result;
    }
}

function AttachLookupPEDDL(textBox, requestKeyWord, requestPage) {
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            mustMatch: true,
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    )
    ;
}

function AttachLookupPEDDL2(minChars, textBox, requestKeyWord, requestPage) {
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: minChars,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            mustMatch: true,
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    )
    ;
}

//Changed by Dipin
//Added one parameter - maxRows
function AttachLookupNonMatchPEDDL(textBox, requestKeyWord, requestPage, maxRows) {
    if (maxRows == null) {
        maxRows = 10;
    }
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            mustMatch: false,
            max: maxRows,
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    )
    ;
}

//Added by Dipin
//Added one parameter - maxRows and must match the keyword
function AttachLookupMustMatchPEDDL(textBox, requestKeyWord, requestPage, maxRows) {
    if (maxRows == null) {
        maxRows = 10;
    }
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            mustMatch: true,
            max: maxRows,
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    )
    ;
}

function AttachMultiplePEDDL(textBox, requestKeyWord, requestPage) {
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            multiple: true,
            mustMatch: false,
            multipleSeparator: ', ',
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    );
}

function AttachMultiplePEDDL2(minChars, textBox, requestKeyWord, requestPage) {
    $('#' + textBox).autocomplete
    (requestPage, {
        delay: 5,
        minChars: minChars,
        matchSubset: 1,
        matchContains: 1,
        cacheLength: 1,
        autoFill: false,
        multiple: true,
        mustMatch: false,
        multipleSeparator: ', ',
        extraParams:
            {
                SearchType: requestKeyWord
            }
    }
    );
}

// 4972 : Added by Ajmal Mohamed
// isAllowOnlyValidData : true for allow and false for not allow
function AttachRelationalPEDDL(textBox, hidden, requestKeyWord, parentControl, requestPage, isAllowOnlyValidData) {

    // 4972 : Added by Ajmal Mohamed

    if (isAllowOnlyValidData == null || isAllowOnlyValidData != true) {
        isAllowOnlyValidData = false
    }

    $('#' + textBox).keydown
    (

        function(event) {
            if (event.keyCode == '9' || event.keyCode == '13') {
                return;
            }
            $('#' + hidden).val("0");
        }
    );
    var locAutocomplete = $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            // 4972 : Added by Ajmal Mohamed
            mustMatch: isAllowOnlyValidData,
            formatItem: formatItem,
            extraParams:
            {
                SearchType: requestKeyWord,
                AdditionalParams: $('#' + parentControl).val()
            }
        }
    ).result
    (
        function(event, item) {
            $('#' + textBox).val(item[0].split('║')[1]);
            $('#' + hidden).val(item[0].split('║')[0]);
        }
    );

    $('#' + parentControl).change
    (
        function() {
            $('#' + textBox).val("");
            $('#' + hidden).val("0");
            locAutocomplete.flushCache();
            locAutocomplete.setOptions
            (
                {
                    extraParams:
                    {
                        SearchType: requestKeyWord,
                        AdditionalParams: $('#' + parentControl).val()
                    }
                }
            );
        }
    );

    function formatItem(row) {
        var result = "";

        try {
            $('#' + hidden).val(0);
            result = row[0].split('║')[1];
        }
        catch (exc) {
        }

        return result;
    }
}


function getresult() {
    alert($('#txtPassportCountry').val() + "-" + $('#hdnPassportCountry').val());
}


function AttachMultipleRelationalPEDDL(parentControl, textBox, requestKeyWord, requestPage) {
    var locAutocomplete = $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 0,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            multiple: true,
            multipleSeparator: ', ',
            extraParams:
            {
                SearchType: requestKeyWord,
                AdditionalParams: $('#' + parentControl).val()
            }
        }
    );

    $('#' + parentControl).change
    (
        function() {
            $('#' + textBox).val("");
            locAutocomplete.flushCache();
            locAutocomplete.setOptions
            (
                {
                    extraParams:
                    {
                        SearchType: requestKeyWord,
                        AdditionalParams: $('#' + parentControl).val()
                    }
                }
            );
        }
    );

}


function AttachLookupPEDDLBankBranch(textBox, ddlBank, ddlBranch, requestKeyWord, requestPage, hdnBranchId) {

    var bankId = $('#' + ddlBank).val();
    var locAutocomplete = $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            formatItem: formatItem,
            extraParams:
            {
                SearchType: requestKeyWord,
                BankId: bankId
            }
        }
    ).result
    (
        function(event, item) {
            $('#' + textBox).val(item[0].split('║')[0]);
            $('#' + ddlBranch).val("");
            $('#' + ddlBranch).val(item[0].split('║')[1]);
            $('#' + hdnBranchId).val(item[0].split('║')[1]);
        }
    );

    $('#' + ddlBank).change
    (
        function() {
            $('#' + textBox).val("");
            $('#' + ddlBranch).val("0");
            locAutocomplete.flushCache();
            locAutocomplete.setOptions
            (
                {
                    extraParams:
                    {
                        SearchType: requestKeyWord,
                        BankId: $('#' + ddlBank).val()
                    }
                }
            );
        }
    );

    function formatItem(row) {
        var result = "";

        try {

            result = row[0].split('║')[0];
        }
        catch (exc) {
        }

        return result;
    }
}



function AttachSearchPEDDL(textBox, hidden, datatypeId, requestKeyWord, requestPage, secondPEDDLKeyword, secondPEDDL, moduleId) {
    var childPEDDL = AttachSearchRelationalPEDDL(secondPEDDL, textBox, requestPage);

    $('#' + textBox).keydown
    (
        function(event) {
            if (event.keyCode == '9' || event.keyCode == '13') {
                return;
            }
            $('#' + hidden).val("0");
            $('#' + datatypeId).val("0");
            $('#' + secondPEDDLKeyword).val("0");
        }
    );
    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            formatItem: formatItem,
            mustMatch: false,
            noItem: function(txt) {
                txt.value = "";
            },
            extraParams:
            {

                SearchType: requestKeyWord,
                ModuleValue: $('#' + moduleId).val()

            }
        }
    )
    .result
    (
        function(event, item) {


            $('#' + textBox).val(item[0].split('║')[1]);
            $('#' + hidden).val(item[0].split('║')[0]);
            $('#' + datatypeId).val(item[0].split('║')[2]);
            $('#' + secondPEDDLKeyword).val(item[0].split('║')[3]);
            var searchType = $('#' + secondPEDDLKeyword).val();

            childPEDDL.setOptions
            (
                {
                    extraParams:
                    {
                        SearchType: searchType
                    }
                }
            );

            var ddlSearch = $('#' + secondPEDDLKeyword).parent().find("select[id$='ddlSearchCondition']");
            $("option", ddlSearch).remove();
            $(ddlSearch).append("<option value='0'>Contains</option>");
            $(ddlSearch).append("<option value='1'>Does not contain</option>");
            $(ddlSearch).append("<option value='2'>Equals</option>");
            $(ddlSearch).append("<option value='3'>Between</option>");
            $(ddlSearch).append("<option value='4'>Greater Than</option>");
            $(ddlSearch).append("<option value='5'>Less Than</option>");
            $(ddlSearch).append("<option value='6'>yes</option>");
            $(ddlSearch).append("<option value='7'>No</option>");


            var helpDiv;
            helpDiv = $('#' + datatypeId).parent().find("div[id$='dvhelp']");


            if (item[0].split('║')[2] == "3") {


                // $('#' + datatypeId).parent().find("div[id$='dvhelp']").fadeIn();



                // alert("$('#" + datatypeId + "').parent().find(\"div[id$='dvhelp']\").fadeOut();");
                //  $('#' + datatypeId).parent().find("div[id$='boolHelp']").fadeOut();

                $("option[value='0']", ddlSearch).remove();
                $("option[value='1']", ddlSearch).remove();

                $("option[value='6']", ddlSearch).remove();
                $("option[value='7']", ddlSearch).remove();

                SetPositionBasedOnControl($('#' + secondPEDDL), helpDiv);
                helpDiv.html("Please type date in format dd MMM yyyy eg:04 jun 2008.<br />For between use 04 jun 2008 to 16 jun 2008").fadeIn();
                setTimeout("$('#" + datatypeId + "').parent().find(\"div[id$='dvhelp']\").fadeOut();", 5000);

            }
            else if (item[0].split('║')[2] == "4") {
                $("option[value='0']", ddlSearch).remove();
                $("option[value='1']", ddlSearch).remove();

                $("option[value='3']", ddlSearch).remove();
                $("option[value='4']", ddlSearch).remove();
                $("option[value='5']", ddlSearch).remove();
                $("option[value='6']", ddlSearch).remove();
                $("option[value='7']", ddlSearch).remove();


                SetPositionBasedOnControl($('#' + secondPEDDL), helpDiv);
                helpDiv.html("Please type yes or no").fadeIn();
                setTimeout("$('#" + datatypeId + "').parent().find(\"div[id$='dvhelp']\").fadeOut();", 6000);


            }
            else {
                helpDiv.fadeOut();
                $("option[value='3']", ddlSearch).remove();
                $("option[value='4']", ddlSearch).remove();
                $("option[value='5']", ddlSearch).remove();
                $("option[value='6']", ddlSearch).remove();
                $("option[value='7']", ddlSearch).remove();


            }



        }
    );

    function formatItem(row) {
        var result = "";

        try {
            $('#' + hidden).val(0);
            $('#' + datatypeId).val(0);
            $('#' + secondPEDDLKeyword).val(0);
            result = row[0].split('║')[1];
        }
        catch (exc) {
        }

        return result;
    }


    // private relational peddl for search
    function AttachSearchRelationalPEDDL(textBox, parentControl, requestPage) {

        var tr = GetParent($('#' + textBox)[0], "tr");
        var hdnSearchFor = $(tr).find(":hidden[id$='hdnSearchFor']");
        var hdnSecondRequest = $(tr).find(":hidden[id$='hdnSecondRequest']");
        var searchType = hdnSecondRequest.val();

        var locAutocomplete = $('#' + textBox).autocomplete
        (
            requestPage,
            {
                delay: 5,
                minChars: 2,
                matchSubset: 1,
                matchContains: 1,
                cacheLength: 1,
                autoFill: false,
                formatItem: formatItem,
                extraParams:
                {
                    SearchType: searchType
                }
            }
        ).result
        (
            function(event, item) {
                $('#' + textBox).val(item[0].split('║')[0]);

            }
        );
        $('#' + parentControl).change
        (
            function() {
                $('#' + textBox).val("");
            }
        );

        $('#' + parentControl).keydown
        (
             function(event) {
                 if (event.keyCode == '9' || event.keyCode == '13') {
                     return;
                 }


                 $('#' + textBox).val("");
                 hdnSearchFor.val("");
                 hdnSecondRequest.val("");
             }
        );

        function formatItem(row) {
            var result = "";

            try {

                result = row[0].split('║')[0];
            }
            catch (exc) {
            }

            return result;
        }

        return locAutocomplete;
    }



    function GetParent(obj, tag) {
        while (obj != null) {
            obj = obj.parentNode;

            if (obj.tagName.toLowerCase() == tag.toLowerCase()) {
                return obj;
            }
        }

        return null;
    }
}



function SetPositionBasedOnControl(parentControl, childControl) {


    var vleft = parentControl.position().left;
    var vtop = parentControl.position().top + parentControl.height();
    childControl.css({

        "left": vleft,
        "top": vtop

    });
}

//Added by Dipin - 21 Apr 2011
function AttachLookUpMustMatchPeddl(textBox, hidden, requestKeyWord, requestPage, maxRows) {
    $('#' + textBox).keydown
    (
         function(event) {
             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }
             $('#' + hidden).val("0");
         }
    );

    if (maxRows == null) {
        maxRows = 10;
    }

    $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            formatItem: formatItem,
            autoFill: false,
            mustMatch: false,
            max: maxRows,
            extraParams:
            {
                SearchType: requestKeyWord
            }
        }
    )
    .result
    (
        function(event, item) {
            $('#' + textBox).val(item[0].split('║')[1]);
            $('#' + hidden).val(item[0].split('║')[0]);
        }
    );

    function formatItem(row) {
        var result = "";

        try {
            $('#' + hidden).val(0);
            result = row[0].split('║')[1];
        }
        catch (exc) {
        }

        return result;
    }
}


/*
Author      : Benaiah John
Date        : 18-Jan-2011
Purpose     : Task #5235 : PDDL in convert to contact(PM: T38687)

Changed by  : Dipin P Mohanan
Date        : 21-Apr-2011
Purpose     : Added one parameter for getting rows.
*/
function AttachCompanyClientLookupPEDDL(textBox, requestKeyWord, requestPage, hdnCompanyClientId, maxRows) {
    var companyId = $('#' + hdnCompanyClientId).val();

    if (maxRows == null) {
        maxRows = 10;
    }

    $('#' + textBox).keydown
    (
         function(event) {
             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }
             $('#' + hdnCompanyClientId).val("");
         }
    );
    $('#' + textBox).autocomplete
    (

        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            mustMatch: true,
            scrollHeight: 130,
            max: maxRows,
            extraParams:
            {
                SearchType: requestKeyWord,
                Company_Id: companyId
            }
        }
    );
}


//Added by Nishar - 21 Apr 2011
function AttachCompanyClientLookupPEDDLWithHidden(textBox, requestKeyWord, requestPage, hdnCompanyClientId, maxRows, hiddenclientId) {

    var companyId = $('#' + hdnCompanyClientId).val();

    if (maxRows == null) {
        maxRows = 10;
    }

    $('#' + textBox).keydown
    (
         function(event) {
             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }
             $('#' + hdnCompanyClientId).val("");
             $('#' + hiddenclientId).val("0");
         }
    );
    $('#' + textBox).autocomplete
            (
                requestPage,
                {
                    delay: 5,
                    minChars: 2,
                    matchSubset: 1,
                    matchContains: 1,
                    cacheLength: 1,
                    autoFill: false,
                    mustMatch: false,
                    formatItem: formatItem,
                    scrollHeight: 130,
                    max: maxRows,
                    extraParams:
                    {
                        SearchType: requestKeyWord,
                        Company_Id: companyId
                    }
                }
            )
            .result
            (
                function(event, item) {
                    $('#' + textBox).val(item[0].split('║')[1]);
                    $('#' + hiddenclientId).val(item[0].split('║')[0]);
                }
            );

    function formatItem(row) {
        var result = "";

        try {
            $('#' + hiddenclientId).val(0);
            result = row[0].split('║')[1];
        }
        catch (exc) {
            alert('error');
        }
        return result;
    }
}


function AttachCompanyClientLookupPEDDLFillWithHidden(textBox, requestKeyWord, requestPage, hdnCompanyClientId, maxRows, hiddenclientId) {

    var companyId = $('#' + hdnCompanyClientId).val();

    if (maxRows == null) {
        maxRows = 10;
    }

    $('#' + textBox).keydown
    (
         function(event) {
             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }
             $('#' + hdnCompanyClientId).val("");
             $('#' + hiddenclientId).val("0");
         }
    );
         $('#' + textBox).autocomplete
            (
                requestPage,
                {
                    delay: 5,
                    minChars: 2,
                    matchSubset: 1,
                    matchContains: 1,
                    cacheLength: 1,
                    autoFill: true,
                    mustMatch: false,
                    formatItem: formatItem,
                    scrollHeight: 130,
                    max: maxRows,
                    extraParams:
                    {
                        SearchType: requestKeyWord,
                        Company_Id: companyId
                    }
                }
            )
            .result
            (
                function(event, item) {
                    $('#' + textBox).val(item[0].split('║')[1]);
                    $('#' + hiddenclientId).val(item[0].split('║')[0]);
                }
            );

    function formatItem(row) {
        var result = "";

        try {
            $('#' + hiddenclientId).val(0);
            result = row[0].split('║')[1];
        }
        catch (exc) {
            alert('error');
        }
        return result;
    }
}

                            

//START: 8689 Purchase Order Management Part 2
//Sobish Joseph - 15-Jul-2011
//Overload for GenericLookupPEDDL (To specify the minimum number of charectors to show peddl)
function GenericLookupPEDDL(textBox, requestKeyWord, requestPage, maxRows, parMustMatch, parAutoFill, hdnObjectID, parExtraHdnObjectID, minchar) {
    /// <summary>
    /// This Method create configurable PEDDL
    /// <param name="textBox">Text box which PEDDL whould attach</param>
    /// <param name="requestKeyWord">Keyword for the function to identity the request</param>
    /// <param name="requestPage">Default Parameter</param>
    /// <param name="maxRows">Maximum number of rows to return (nullable default 10)</param>
    /// <param name="parMustMatch">Must match any of the value from list to fill in text box else blank(nullable default 'false')</param>
    /// <param name="parAutoFill">Auto fill when selecting the item(nullable default 'false')</param>
    /// <param name="hdnObjectID">Id of the object, where to store the selected items value(nullable)</param>
    /// <param name="parExtraHdnObjectID">Extra parameter like, Id of previosly selected item(nullable)</param>
    /// <param name="minchar">Minimum number of charectors to show the peddl</param>
    /// </summary>

    if (parMustMatch == null) {
        parMustMatch = false;
    }
    if (parAutoFill == null) {
        parAutoFill = false;
    }
    if (maxRows == null) {
        maxRows = 10;
    }

    if (hdnObjectID != null) {
        $('#' + textBox).keydown
        (

         function(event) {

             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }

             $('#' + hdnObjectID).val("");

         });
    }



    $('#' + textBox).autocomplete
            (
                requestPage,
                {
                    delay: 5,
                    minChars: minchar,
                    matchSubset: 1,
                    matchContains: 1,
                    cacheLength: 1,
                    autoFill: parAutoFill,
                    mustMatch: parMustMatch,
                    formatItem: formatItem,
                    scrollHeight: 130,
                    max: maxRows,
                    extraParams:
                    {
                        SearchType: requestKeyWord,
                        extraParameter: function() {
                            if (parExtraHdnObjectID != null && $('#' + parExtraHdnObjectID).length > 0) {
                                return $('#' + parExtraHdnObjectID).val();
                            }
                            else {
                                return '';
                            }

                        }


                    }
                }
            )
            .result
            (
                function(event, item) {
                    if (item[0]) {
                        if (hdnObjectID != null) {
                            $('#' + textBox).val(item[0].split('║')[1]);
                            $('#' + hdnObjectID).val(item[0].split('║')[0]);

                        }
                        else {
                            $('#' + textBox).val(item[0]);
                        }
                    }
                    else {
                        $('#' + textBox).val('No match!');
                    }
                }
            );

    function formatItem(row) {
        var result = "";

        try {
            //$('#' + hdnObjectID).val(0);
            if (hdnObjectID != null) {
                result = row[0].split('║')[1];
            }
            else {
                result = row[0];
            }
        }
        catch (exc) {

        }
        return result;
    }

}

//END: 8689 Purchase Order Management Part 2
//Sobish Joseph - 15-Jul-2011

//START: 9127 : 4124: Education updates and values - Remaining part
//Sreekanth M. S, 24-August-2011

function AttachPEDDLMultiple(textBox, requestKeyWord, requestPage, EduType, callBackFunction) {

    $('#' + textBox).keydown
        (
         function(event) {

             if (event.keyCode == '9' || event.keyCode == '13') {
                 return;
             }
         });

         var locAutocomplete = $('#' + textBox).autocomplete
    (
        requestPage,
        {
            delay: 5,
            minChars: 2,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 1,
            autoFill: false,
            multiple: true,
           
            //START: 9548: Education updates and values - Remaining part - Issues in PEDDL
            //Sreekanth M. S, 10-10-2011
            
            // mustMatch: true,
            mustMatch: false,

            //END: 9548: Education updates and values - Remaining part - Issues in PEDDL
            //Sreekanth M. S, 10-10-2011
            
            multipleSeparator: ', ',
            max: 100,
            extraParams:
            {
                SearchType: requestKeyWord,
                EducationType: EduType
            }
        }
    ).result(function(event, item) {

        var qualifName = item;

        if (qualifName == "Other") {
            callBackFunction();
        }
    });
}
//END: 9127 : 4124: Education updates and values - Remaining part
//Sreekanth M. S, 24-August-2011
