course details changes done
This commit is contained in:
parent
cb85051a5c
commit
b5ee9ea639
@ -19,7 +19,8 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
"comments":'',
|
"comments":'',
|
||||||
"enquiryStatus":'',
|
"enquiryStatus":'',
|
||||||
"alterMobileNumber":'',
|
"alterMobileNumber":'',
|
||||||
"address":''
|
"address":'',
|
||||||
|
"important":false
|
||||||
};
|
};
|
||||||
|
|
||||||
//get current date
|
//get current date
|
||||||
@ -76,6 +77,7 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* make a search date array
|
* make a search date array
|
||||||
*/
|
*/
|
||||||
@ -121,6 +123,57 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* mark call as important
|
||||||
|
* created by kms
|
||||||
|
* */
|
||||||
|
$scope.markAsImportant = function (trackID,flag) {
|
||||||
|
|
||||||
|
var markas = {
|
||||||
|
method: 'POST',
|
||||||
|
url: apiPoint.url + 'callAsImportantFlag/',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
flag:flag,
|
||||||
|
trackId:trackID,
|
||||||
|
updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
|
||||||
|
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$http(markas).then(function (response) {
|
||||||
|
if (response.data.status==200 && response.data.updatedStatus) {
|
||||||
|
$scope.checkToDateForMark($scope.myModel);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$scope.checkToDateForMark($scope.myModel);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* check to date while marking
|
||||||
|
* */
|
||||||
|
$scope.checkToDateForMark = function (value) {
|
||||||
|
|
||||||
|
if(value.searchDate==null || value.searchDate==undefined){
|
||||||
|
$scope.myModel.dateTo='';
|
||||||
|
$scope.myModel.search='';
|
||||||
|
$scope.toMinDate = '';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$scope.filterSearch=$filter('date')(value.searchDate, 'dd-MM-yyyy');
|
||||||
|
$scope.search=$scope.filterSearch;
|
||||||
|
|
||||||
|
}
|
||||||
|
$scope.searchDateArray(value);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* edit track details
|
* edit track details
|
||||||
* created by kms
|
* created by kms
|
||||||
@ -426,6 +479,8 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user