session master changes done

This commit is contained in:
gandhimathi 2018-04-20 13:09:23 +05:30
parent f087b10402
commit 645cfedbc7

View File

@ -98,7 +98,9 @@ app.controller('sessionMasterCtrl', ["$scope","$rootScope","toaster", "$filter",
sessionDate: $filter('date')(new Date(myModel.date), 'dd-MM-yyyy'), sessionDate: $filter('date')(new Date(myModel.date), 'dd-MM-yyyy'),
universityName: myModel.universityName, universityName: myModel.universityName,
status: myModel.switchsetting, status: myModel.switchsetting,
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchCode:JSON.parse(localStorage.getItem('localObj')).localBranchID
} }
}; };
$http(addSession).then(function (response) { $http(addSession).then(function (response) {
@ -162,7 +164,9 @@ app.controller('sessionMasterCtrl', ["$scope","$rootScope","toaster", "$filter",
sessionName: editModel.editSessionName, sessionName: editModel.editSessionName,
status: myModel.IsActive, status: myModel.IsActive,
university: university.list, university: university.list,
updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchCode:JSON.parse(localStorage.getItem('localObj')).localBranchID
} }
}; };
$http(update).then(function (response) { $http(update).then(function (response) {
@ -198,7 +202,9 @@ app.controller('sessionMasterCtrl', ["$scope","$rootScope","toaster", "$filter",
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
data: { data: {
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchCode:JSON.parse(localStorage.getItem('localObj')).localBranchID
} }
}; };