hlrcapi.radiuscentral.com
Open in
urlscan Pro
3.212.247.37
Public Scan
URL:
https://hlrcapi.radiuscentral.com/Service/Scripts_API/DYSResponse.js
Submission Tags: falconsandbox
Submission: On October 07 via api from US — Scanned from DE
Submission Tags: falconsandbox
Submission: On October 07 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
"use strict"; var _apiController = 'api/dys/'; var _ajDefaultMessage = 'Loading.....'; var _ajDefaultMessage_Error='Error! An error occurred.' var _objTemplate_Yes = ''; var _objTemplate_No = ''; var _defaultCurrencyTitle = '--Select currency--'; var _qryDYSReqId = ''; //Check dysStatus function fnGetDYSReqStatus() { var userEmailId = _objUser.logInUserEmailId; if (_deploymentEnv.toLowerCase() == 'local') { _qryDYSReqId = '43259E2D-904E-4F28-BC38-BF25AF124C69'; } else { _qryDYSReqId = getParameterByName('ReqId'); //'cef90366-eb98-416c-bb3f-4c329fbd73ee'; } _methodName = 'GetDYSReqStatus?userEmailId=' + userEmailId + '&dysReqId=' + _qryDYSReqId; _methodNameError = _methodName; fnExecuteAjaxRequest(_apiController +_methodName, _methodNameError).then(function (data) { if(data.length>0) { var result = $.parseJSON(data); if (result.IsValidRequest == true) { $("#lblDYSDesc").html(result.ProspectName); $("#lblReplyByDate").html("Reply by Date: " + result.RequestReplyByDate); } else { fnShowAlertMessage(vAlert_Error, result.ErrorMessage); fnShowOrHideCtrl('divDYSResponse_ContentWrapper_FirstTab', false); fnShowOrHideCtrl('btnNext_Form', false); } } }); } $(document).ready(function () { //set default values to dropdown $("#ddlAB_In_Currency").prepend("<option value='0'>" + _defaultCurrencyTitle + "</option>"); $("#ddlAB_Ot_Currency").prepend("<option value='0'>" + _defaultCurrencyTitle + "</option>"); $("#ddlAM_In_Currency").prepend("<option value='0'>" + _defaultCurrencyTitle + "</option>"); $("#ddlAM_Ot_Currency").prepend("<option value='0'>" + _defaultCurrencyTitle + "</option>"); $("#ddlAB_In_Currency_No").prepend("<option value='0'>" + _defaultCurrencyTitle + "</option>"); $("#ddlAM_In_Currency_No").prepend("<option value='0'>" + _defaultCurrencyTitle + "</option>"); if (fnSetLoginUser_Common()) { fnGetDYSReqStatus(); } //Show model dialog box $('#modal-add-response-event').modal({ }) //Close model dialog box $(function () { $('#modal-add-response-event').on('hide.bs.modal', function (e) { var vPrevPageUrl = document.referrer; if (vPrevPageUrl.length > 0) { window.location.href = vPrevPageUrl; } }); }); //Do you $('input[type=radio][name=rdoProvideService]').change(function () { if (this.value == 'Yes') { $("#section-1").show(); $("#event-title-container-2").hide(); } else { $("#event-title-container-2").show(); $("#section-1").hide(); //Set default values $("#rdoAreYouAwareComp_BT_Yes").prop("checked", true); $("#rdoAreYouAwareComp_BT_No").prop("checked", false); $("#divCompBusiness").show(); $("#rdoYouAwareComp_ME_Yes").prop("checked", true); $("#rdoAreYouAwareComp_ME_No").prop("checked", false); $("#divCompMeetingsAndEvents").show(); } }); //Competitors-Provide Business $('input[type=radio][name=rdoAreYouAwareComp_BT]').change(function () { if (this.value == 'Yes') { $("#divCompBusiness").show(); } else { $("#divCompBusiness").hide(); } }); //Competitors-Provide Events & Meetings $('input[type=radio][name=rdoAreYouAwareComp_ME]').change(function () { if (this.value == 'Yes') { $("#divCompMeetingsAndEvents").show(); } else { $("#divCompMeetingsAndEvents").hide(); } }); //Submite DYS Response $('#btnSubmitDYSResponse').on('click', function (event) { var vData = new Object(); var doYouProdServices = $("input[name='rdoProvideService']:checked").val(); //Call WebApiCall if (doYouProdServices == 'Yes') { var SubmitDYSResYes = new Object(); SubmitDYSResYes.ReqId = _qryDYSReqId; SubmitDYSResYes.UserEmailId=_objUser.logInUserEmailId; SubmitDYSResYes.DoYouProdServices=_objTemplate_Yes.doYouProdServices; SubmitDYSResYes.ProdServicesId=_objTemplate_Yes.provideService_Id SubmitDYSResYes.ManEServicesId = _objTemplate_Yes.mAndE_Service_Id; SubmitDYSResYes.DoYouContRel=_objTemplate_Yes.doYouContraRel; //New SubmitDYSResYes.DoYouContRel_Desc= _objTemplate_Yes.doYouContraRel_Desc; //New SubmitDYSResYes.DoYouChallenges=_objTemplate_Yes.doYouHaveChallenges; SubmitDYSResYes.DoYouChallenges_Desc=_objTemplate_Yes.doYouHaveChallenges_Desc; SubmitDYSResYes.StartDt=_objTemplate_Yes.startDate; SubmitDYSResYes.EndDt = _objTemplate_Yes.endDate; SubmitDYSResYes.IsOnGoing = _objTemplate_Yes.isOnGoing; SubmitDYSResYes.AB_In_Currency=_objTemplate_Yes.ab_In_Currency; SubmitDYSResYes.AB_In_Amount=_objTemplate_Yes.ab_In_Amount; SubmitDYSResYes.AB_Ot_Currency=_objTemplate_Yes.ab_Ot_Currency; SubmitDYSResYes.AB_Ot_Amount=_objTemplate_Yes.ab_Ot_Amount; SubmitDYSResYes.AM_In_Currency=_objTemplate_Yes.am_In_Currency; //New SubmitDYSResYes.AM_In_Amount=_objTemplate_Yes.am_In_Amount; //New SubmitDYSResYes.AM_Ot_Currency=_objTemplate_Yes.am_Ot_Currency; //New SubmitDYSResYes.AM_Ot_Amount=_objTemplate_Yes.am_Ot_Ammount; //New SubmitDYSResYes.Comments = _objTemplate_Yes.moreInformation; vData = SubmitDYSResYes; _methodName = _apiController + 'SaveDYSRepYes'; _methodNameError = 'SaveDYSRepYes'; var hl_auth_token = $.cookie(_hlAuthToken); $.ajax({ type: "GET", url: _webApiServiceUrl + _methodName, data: SubmitDYSResYes, xhrFields: { withCredentials: true }, contentType: "application/x-www-form-urlencoded; charset=utf-8", dataType: "json", success: function (data) { if (data == 'Success') { fnShowAlertMessage(vAlert_Succes, resp_Submit_Success); fnShowOrHideCtrl('divDYSRequest_ContentWrapper_FirstTab', false); fnShowOrHideCtrl('event-next-container', false); fnShowOrHideCtrl('event-reset-container', false); fnShowOrHideCtrl('event-submit-container', false); fnShowOrHideCtrl('event-edit-container', false); fnShowOrHideCtrl('event-close-container', true); fnShowOrHideCtrl('divModalBoday', false); } else { fnShowAlertMessage(vAlert_Error, resp_Submit_Error); } }, failure: function (data) { // }, error: function (jqXHR, textStatus, errorThrown) { var errorCode = jqXHR.status; var errorDesc = errorThrown; //fnReportError(methodName, errorMessage, errorCode, errorDesc); fnShowAlertMessage(vAlert_Error, ajaxProcessingError_Message); } }); } else { var SubmitDYSResNo = new Object(); SubmitDYSResNo.ReqId = _qryDYSReqId; SubmitDYSResNo.UserEmailId = _objUser.logInUserEmailId; SubmitDYSResNo.DoYouProdServices = _objTemplate_No.doYouProdServices; SubmitDYSResNo.AwareCompBT = _objTemplate_No.areYouAwareComp_BT; SubmitDYSResNo.AwareCompBTId = _objTemplate_No.arrCompetitor_BT_Id; SubmitDYSResNo.AwareCompME = _objTemplate_No.areYouAwareComp_ME; SubmitDYSResNo.AwareCompMEId = _objTemplate_No.arrCompetitor_ME_Id; SubmitDYSResNo.AB_In_Currency = _objTemplate_No.ab_In_Currency; SubmitDYSResNo.AB_In_Amount = _objTemplate_No.ab_In_Amount; SubmitDYSResNo.AM_In_Currency = _objTemplate_No.am_In_Currency; //New SubmitDYSResNo.AM_In_Amount = _objTemplate_No.am_In_Amount; //New SubmitDYSResNo.Comments = _objTemplate_No.moreInformation; vData = SubmitDYSResNo; _methodName =_apiController + 'SaveDYSRepNo'; _methodNameError = 'SaveDYSRepNo'; var hl_auth_token = $.cookie(_hlAuthToken); $.ajax({ type: "GET", url: _webApiServiceUrl + _methodName, data: SubmitDYSResNo, xhrFields: { withCredentials: true }, contentType: "application/x-www-form-urlencoded; charset=utf-8", dataType: "json", success: function (data) { if (data == 'Success') { fnShowAlertMessage(vAlert_Succes, resp_Submit_Success); fnShowOrHideCtrl('divDYSRequest_ContentWrapper_FirstTab', false); fnShowOrHideCtrl('event-next-container', false); fnShowOrHideCtrl('event-reset-container', false); fnShowOrHideCtrl('event-submit-container', false); fnShowOrHideCtrl('event-edit-container', false); fnShowOrHideCtrl('event-close-container', true); fnShowOrHideCtrl('divModalBoday', false); } else { fnShowAlertMessage(vAlert_Error, resp_Submit_Error); } }, failure: function (data) { // }, error: function (jqXHR, textStatus, errorThrown) { var errorCode = jqXHR.status; var errorDesc = errorThrown; //fnReportError(methodName, errorMessage, errorCode, errorDesc); fnShowAlertMessage(vAlert_Error, ajaxProcessingError_Message); } }); } }); //Event Next - button $('#btnNext_Form').on('click', function (event) { if (fnCheckFormValidations()) { $('#divDYSResponse_ContentWrapper_FirstTab').hide(); $('#event-title-container-disp-1').hide(); $('#event-title-container-disp-2').hide(); $('#btnNext_Form').hide(); $('#divDYSResponse_ContentWrapper_SecondTab').show(); $('#btnSubmitDYSResponse').show(); $('#bntEdit_Form').show(); //Set control values for Yes Template if (_objTemplate_Yes.doYouProdServices == "Yes") { //fnShowAlertMessage(vAlert_Succes, 'Yes Template - All Success'); $('#event-title-container-disp-1').show(); $('#lblDoYouProdServices_Disp').html(_objTemplate_Yes.doYouProdServices); $('#lblProvideServicesDesc_Disp').html(_objTemplate_Yes.provideService_Desc); $('#lblMEServicesDesc_Disp').html(_objTemplate_Yes.mAndE_Service_Desc); $('#lblDoYouContRel_Disp').html(_objTemplate_Yes.doYouContraRel); $('#lblDoYouContRel_Desc_Disp').html(_objTemplate_Yes.doYouContraRel_Desc); $('#lblDoYouChallenges_Disp').html(_objTemplate_Yes.doYouHaveChallenges); $('#lblDoYouChallenges_Desc_Disp').html(_objTemplate_Yes.doYouHaveChallenges_Desc); $('#lblStartDt_Disp').html(_objTemplate_Yes.startDate); $('#lblEndDt_Disp').html(_objTemplate_Yes.isOnGoing); $('#lblAB_In_Currency_Disp').html(_objTemplate_Yes.ab_In_Currency); $('#lblAB_In_Amount_Disp').html(_objTemplate_Yes.ab_In_Amount); $('#lblAB_Ot_Currency_Disp').html(_objTemplate_Yes.ab_Ot_Currency); $('#lblAB_Ot_Amount_Disp').html(_objTemplate_Yes.ab_Ot_Amount); $('#lblAM_In_Currency_Disp').html(_objTemplate_Yes.am_In_Currency); $('#lblAM_In_Amount_Disp').html(_objTemplate_Yes.am_In_Amount); $('#lblAM_Ot_Currency_Disp').html(_objTemplate_Yes.am_Ot_Currency); $('#lblAM_Ot_Amount_Disp').html(_objTemplate_Yes.am_Ot_Ammount); $('#lblComments_Disp').html(decodeURI(_objTemplate_Yes.moreInformation)); } else if (_objTemplate_No.doYouProdServices == "No") { //fnShowAlertMessage(vAlert_Succes, 'No Template - All Success'); $('#event-title-container-disp-2').show(); $('#lblDoYouProvide_Disp').html(_objTemplate_No.doYouProdServices); $('#lblAwareComp_BT_Disp').html(_objTemplate_No.areYouAwareComp_BT); //areYouAwareComp_BT $('#lblAwareComp_BT_Desc_Disp').html(_objTemplate_No.arrCompetitor_BT_Desc); $('#lblAwareComp_ME_Disp').html(_objTemplate_No.areYouAwareComp_ME); $('#lblAwareComp_ME_Desc_Disp').html(_objTemplate_No.arrCompetitor_ME_Desc); $('#lblAB_In_Currency_No_Disp').html(_objTemplate_No.ab_In_Currency); $('#lblAB_In_Amount_No_Disp').html(_objTemplate_No.ab_In_Amount); $('#lblAM_In_Currency_No_Disp').html(_objTemplate_No.am_In_Currency); $('#lblAM_In_Amount_No_Disp').html(_objTemplate_No.am_In_Amount); $('#lblComments_Disp').html(decodeURI(_objTemplate_No.moreInformation)); } } else { fnShowAlertMessage(vAlert_Error, 'Please provide data for mandatory fields.'); //event.preventDefault(); } event.preventDefault(); }); //Event Edit - button $('#bntEdit_Form').on('click', function (event) { $('#divDYSResponse_ContentWrapper_FirstTab').show(); $('#divDYSResponse_ContentWrapper_SecondTab').hide(); $('#btnSubmitDYSResponse').hide(); $('#bntEdit_Form').hide(); $('#btnNext_Form').show(); event.preventDefault(); }); //Event Save - button //Check form validations function fnCheckFormValidations() { var isPageValid = true; //Hide all error message tags $('#error_ProvideServices').hide(); $('#error_MeetingsAndEvents').hide(); $('#error_ContRelation').hide(); $('#error_AnyChallenges').hide(); $('#error_StartDate').hide(); $('#error_EndDate').hide(); $('#error_CompBusiness').hide(); $('#error_CompMeetingsAndEvents').hide(); $('#divAlertMessage').hide(); //Common variables var doYouProdServices = ''; var serviceId = ''; var serviceDesc = ''; _objTemplate_No = ''; _objTemplate_Yes = ''; var moreInformation = encodeURI($("#txtComments").val()); //Yes Template variables var arrProvideService_Id = []; var arrProvideService_Desc = []; var arrMandE_Service_Id = []; var arrMandE_Service_Desc = []; var doYouContraRel = '' var doYouContraRel_Desc = ''; var doYouHaveChallenges = '' var doYouHaveChallenges_Desc = ''; var startDate = ''; var endDate = ''; var isOnGoing = ''; var ab_In_Currency = ''; var ab_In_Amount = ''; var ab_Ot_Currency = ''; var ab_Ot_Amount = ''; var am_In_Currency = ''; var am_In_Amount = ''; var am_Ot_Currency = ''; var am_Ot_Ammount = ''; //No Template valiables var areYouAwareComp_BT = ''; var arrCompetitor_BT_Id = []; var arrCompetitor_BT_Desc = []; var areYouAwareComp_ME = ''; var arrCompetitor_ME_Id = []; var arrCompetitor_ME_Desc = []; //Check providing BTandME services doYouProdServices = $("input[name='rdoProvideService']:checked").val(); if (doYouProdServices == 'Yes') { //Checking for Services your company provides $.each($("input[name='rdoProvideServicesList']:checked"), function (item, x) { serviceDesc = jQuery('label[for=PS' + $(this).val() + ']').html(); //Description //alert(serviceDesc); serviceId = $(this).val(); // Id if (serviceDesc == 'Other') { serviceDesc += ':' + $('#txtProvideServices_Others').val(); arrProvideService_Id.push(serviceId + '-Other:' + $('#txtProvideServices_Others').val()); } else { arrProvideService_Id.push(serviceId); } arrProvideService_Desc.push(serviceDesc); }); if (arrProvideService_Desc.length == 0) { $('#error_ProvideServices').show(); isPageValid = false; } //Checking Meetings & Events Services serviceDesc = ''; serviceId = ''; $.each($("input[name='rdoMEServiceId_List']:checked"), function () { serviceDesc = jQuery('label[for=PM'+ $(this).val() + ']').html(); serviceId = $(this).val(); // Id //alert(serviceDesc); if (serviceDesc == 'Other') { serviceDesc += ':' + $('#txtMEServiceId_Others').val(); arrMandE_Service_Id.push(serviceId + '-Other:' + $('#txtMEServiceId_Others').val()); } else { arrMandE_Service_Id.push(serviceId); } arrMandE_Service_Desc.push(serviceDesc); }); if (arrMandE_Service_Desc.length == 0) { $('#error_MeetingsAndEvents').show(); isPageValid = false; } //Contractual relationship doYouContraRel = $("input[name='rdoContRelation']:checked").val(); doYouContraRel_Desc = encodeURI($("#txtContRelation_Desc").val()); if (doYouContraRel == 'Yes' && doYouContraRel_Desc.length == 0) { $('#error_ContRelation').show(); isPageValid = false; } //Any Challenges doYouHaveChallenges = $("input[name='rdoDoYouChallenges']:checked").val(); doYouHaveChallenges_Desc = $("#txtDoYouChallenges_Desc").val(); if (doYouHaveChallenges == 'Yes' && doYouHaveChallenges_Desc.length == 0) { $('#error_AnyChallenges').show(); isPageValid = false; } //Start and End dates startDate = $('#txtStartDt').val(); endDate = $('#txtEndDt').val(); isOnGoing = $('#chkOngoing').is(':checked') ? "OnGoing" : $('#txtEndDt').val(); if (startDate.length == 0) { $('#error_StartDate').show(); isPageValid = false; } if (isOnGoing.length == 0) { $('#error_EndDate').show(); isPageValid = false; } if ($('#ddlAB_In_Currency option:selected').text().trim() != _defaultCurrencyTitle) { ab_In_Currency = $('#ddlAB_In_Currency option:selected').text().trim(); ab_In_Amount = $('#txtAB_In_Amount').val(); } if ($('#ddlAB_Ot_Currency option:selected').text() != _defaultCurrencyTitle) { ab_Ot_Currency = $('#ddlAB_Ot_Currency option:selected').text().trim(); ab_Ot_Amount = $('#txtAB_Ot_Amount').val(); } if ($('#ddlAM_In_Currency option:selected').text() != _defaultCurrencyTitle) { am_In_Currency = $('#ddlAM_In_Currency option:selected').text().trim(); am_In_Amount = $('#txtAM_In_Amount').val(); } if ($('#ddlAM_Ot_Currency option:selected').text().trim() != _defaultCurrencyTitle) { am_Ot_Currency = $('#ddlAM_Ot_Currency option:selected').text().trim(); am_Ot_Ammount = $('#txtAM_Ot_Amount').val(); } } else if (doYouProdServices == 'No') { //Get Business Travel competitors serviceDesc = ''; serviceId = ''; areYouAwareComp_BT = $("input[name='rdoAreYouAwareComp_BT']:checked").val(); if (areYouAwareComp_BT == 'Yes') { $.each($("input[name='rdoAreYouAwareComp_BT_List']:checked"), function () { serviceDesc = jQuery('label[for=BT' + $(this).val() + ']').html(); serviceId = $(this).val(); //alert(serviceDesc); if (serviceDesc == 'Other') { serviceDesc += ':' + $('#txtAreYouAwareComp_BT_Others').val(); arrCompetitor_BT_Id.push(serviceId+'-Other:' + $('#txtAreYouAwareComp_BT_Others').val()); } else { arrCompetitor_BT_Id.push(serviceId); } arrCompetitor_BT_Desc.push(serviceDesc); }); if (arrCompetitor_BT_Desc.length == 0) { $('#error_CompBusiness').show(); isPageValid = false; } } ////Get Meetings and Events Services serviceDesc = ''; serviceId = ''; areYouAwareComp_ME = $("input[name='rdoAreYouAwareComp_ME']:checked").val(); if (areYouAwareComp_ME == 'Yes') { $.each($("input[name='rdoAreYouAwareComp_ME_List']:checked"), function () { serviceDesc = jQuery('label[for=ME' + $(this).val() + ']').html(); serviceId = $(this).val(); //alert(serviceDesc); if (serviceDesc == 'Other') { serviceDesc += ':' + $('#txtAreYouAwareComp_ME_Others').val(); arrCompetitor_ME_Id.push(serviceId + '-Other:' + $('#txtAreYouAwareComp_ME_Others').val()); } else { arrCompetitor_ME_Id.push(serviceId); } arrCompetitor_ME_Desc.push(serviceDesc); }); if (arrCompetitor_ME_Desc.length == 0) { $('#error_CompMeetingsAndEvents').show(); isPageValid = false; } } // if ($('#ddlAB_In_Currency_No option:selected').text().trim() != _defaultCurrencyTitle) { ab_In_Currency = $('#ddlAB_In_Currency_No option:selected').text().trim(); ab_In_Amount = $('#txtAB_In_Amount_No').val(); } if ($('#ddlAM_In_Currency_No option:selected').text().trim() != _defaultCurrencyTitle) { am_In_Currency = $('#ddlAM_In_Currency_No option:selected').text().trim(); am_In_Amount = $('#txtAM_In_Amount_No').val(); } } if (isPageValid) { //Push values to Json object if (doYouProdServices == 'Yes') { _objTemplate_Yes = JSON.parse('{"doYouProdServices":"'+doYouProdServices+'",' + '"provideService_Id":"' + arrProvideService_Id + '",' + '"provideService_Desc":"' + arrProvideService_Desc + '",' + '"mAndE_Service_Id":"' + arrMandE_Service_Id + '",' + '"mAndE_Service_Desc":"' + arrMandE_Service_Desc + '",' + '"doYouContraRel":"' + doYouContraRel + '",' + '"doYouContraRel_Desc":"' + decodeURI(doYouContraRel_Desc) + '",' + '"doYouHaveChallenges":"' + doYouHaveChallenges + '",' + '"doYouHaveChallenges_Desc":"' + doYouHaveChallenges_Desc + '",' + '"startDate":"' + startDate + '",' + '"endDate":"' + endDate + '",' + '"isOnGoing":"' + isOnGoing + '",' + '"ab_In_Currency":"' + ab_In_Currency + '",' + '"ab_In_Amount":"' + ab_In_Amount + '",' + '"ab_Ot_Currency":"' + ab_Ot_Currency + '",' + '"ab_Ot_Amount":"' + ab_Ot_Amount + '",' + '"am_In_Currency":"' + am_In_Currency + '",' + '"am_In_Amount":"' + am_In_Amount + '",' + '"am_Ot_Currency":"' + am_Ot_Currency + '",' + '"am_Ot_Ammount":"' + am_Ot_Ammount + '",' + '"moreInformation":"' + moreInformation + '"}'); } else if(doYouProdServices =='No') { _objTemplate_No = JSON.parse('{"doYouProdServices":"' + doYouProdServices + '",' + '"areYouAwareComp_BT":"' + areYouAwareComp_BT + '",' + '"arrCompetitor_BT_Id":"' + arrCompetitor_BT_Id + '",' + '"arrCompetitor_BT_Desc":"' + arrCompetitor_BT_Desc + '",' + '"areYouAwareComp_ME":"' + areYouAwareComp_ME + '",' + '"arrCompetitor_ME_Id":"' + arrCompetitor_ME_Id + '",' + '"arrCompetitor_ME_Desc":"' + arrCompetitor_ME_Desc + '",' + '"ab_In_Currency":"' + ab_In_Currency + '",' + '"ab_In_Amount":"' + ab_In_Amount + '",' + '"am_In_Currency":"' + am_In_Currency + '",' + '"am_In_Amount":"' + am_In_Amount + '",' + '"moreInformation":"' + moreInformation +'"}'); } } return isPageValid; } }); var app = angular.module('ng-DYSResponse-app', []) //app.controller('ng-partnerServices-controller', function ($scope, $http, $window) { // $scope.DefaultLabel = "Loading....."; // var post = $http({ // method: "GET", // url: appMethodNameURL, // dataType: 'json', // data: {}, // headers: { "Content-Type": "application/json" } // }); // post.success(function (data, status) { // $scope.DefaultLabel = "Please Select"; // $scope.PartnerServices = $.parseJSON(data); // }); // post.error(function (data, status) { // $window.alert(data.Message); // }); //}); app.controller("ng-DisplayTemplateYes-controller", function ($scope) { $scope.testName = 'TestBind'; }); //Get Partner Services app.controller("ng-PartnerServices-controller", function ($scope, $http) { $scope.DefaultLabel = _ajDefaultMessage; $http.get(_webApiServiceUrl + _apiController + 'GetDYSPartnerServices?groupId=1'). success(function (data, status, headers, config) { $scope.DefaultLabel = "Please Select"; $scope.PartnerServicesList = $.parseJSON(data); }). error(function (data, status, headers, config) { // log error //alert(_ajDefaultMessage_Error + JSON.stringify({ data: data })); alert('WebAPI error'); }); }); //Get Partner Services app.controller("ng-MeetingsAndEventsServices-controller", function ($scope, $http) { $scope.DefaultLabel = _ajDefaultMessage; $http.get(_webApiServiceUrl + _apiController + 'GetDYSPartnerServices?groupId=2'). success(function (data, status, headers, config) { $scope.DefaultLabel = "Please Select"; $scope.MeetingsAndEventsServicesList = $.parseJSON(data); }). error(function (data, status, headers, config) { // log error //alert(_ajDefaultMessage_Error + JSON.stringify({ data: data })); alert('WebAPI error'); }); }); //Get Competitors app.controller("ng-CompBusiness-controller", function ($scope, $http) { $scope.DefaultLabel = _ajDefaultMessage; $http.get(_webApiServiceUrl + _apiController + 'GetPartnerIncumbentAgencies?groupId=1'). success(function (data, status, headers, config) { $scope.DefaultLabel = "Please Select"; $scope.CompBusinessList = $.parseJSON(data); }). error(function (data, status, headers, config) { // log error //alert(_ajDefaultMessage_Error + JSON.stringify({ data: data })); alert('WebAPI error'); }); }); //Get Competitors app.controller("ng-CompMeetingsAndEvents-controller", function ($scope, $http) { $scope.DefaultLabel = _ajDefaultMessage; $http.get(_webApiServiceUrl + _apiController + 'GetPartnerIncumbentAgencies?groupId=2'). success(function (data, status, headers, config) { $scope.DefaultLabel = "Please Select"; $scope.CompMeetingsAndEventsList = $.parseJSON(data); }). error(function (data, status, headers, config) { // log error //alert(_ajDefaultMessage_Error + JSON.stringify({ data: data })); alert('WebAPI error'); }); }); //Get Currency app.controller("ng-Currency-controller", function ($scope, $http) { $scope.DefaultLabel = _ajDefaultMessage; $http.get(_webApiServiceUrl + _apiController + 'GetCurrencyTypes'). success(function (data, status, headers, config) { $scope.DefaultLabel = "Select Currency"; $scope.CurrencyList = $.parseJSON(data); }). error(function (data, status, headers, config) { // log error //alert(_ajDefaultMessage_Error + JSON.stringify({ data: data })); alert('WebAPI error'); }); });