university changes done
This commit is contained in:
parent
bfcedd7eeb
commit
d6ca166006
@ -69,7 +69,8 @@ app.controller('universityCtrl', ["$scope", "toaster", "$filter", "ngTableParams
|
|||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
data: $scope.myModel.UniversityID,
|
data: $scope.myModel.UniversityID,
|
||||||
check: 'univId'
|
check: 'univId',
|
||||||
|
branchCode: localDetails.localBranchID,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$http(checkReq).then(function (response) {
|
$http(checkReq).then(function (response) {
|
||||||
@ -118,6 +119,7 @@ app.controller('universityCtrl', ["$scope", "toaster", "$filter", "ngTableParams
|
|||||||
data: {
|
data: {
|
||||||
data: p,
|
data: p,
|
||||||
updatedBy: localDetails.localUserID,
|
updatedBy: localDetails.localUserID,
|
||||||
|
branchCode: localDetails.localBranchID
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$http(req).then(function (response) {
|
$http(req).then(function (response) {
|
||||||
@ -161,6 +163,7 @@ app.controller('universityCtrl', ["$scope", "toaster", "$filter", "ngTableParams
|
|||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
data: $scope.myModel,
|
data: $scope.myModel,
|
||||||
|
branchCode: localDetails.localBranchID,
|
||||||
createdBy: localDetails.localUserID,
|
createdBy: localDetails.localUserID,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -168,7 +171,12 @@ app.controller('universityCtrl', ["$scope", "toaster", "$filter", "ngTableParams
|
|||||||
if (response.data.addUniv == true) {
|
if (response.data.addUniv == true) {
|
||||||
swal("", "University details added successfully.", "success");
|
swal("", "University details added successfully.", "success");
|
||||||
$state.go($state.current, {}, { reload: true });
|
$state.go($state.current, {}, { reload: true });
|
||||||
} else {
|
}
|
||||||
|
else if(response.data.addUniv == false){
|
||||||
|
swal("","This University Id is already exist!", "error");
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
// $scope.ldloading1[loading.replace('-', '_')] = false;
|
// $scope.ldloading1[loading.replace('-', '_')] = false;
|
||||||
swal("","Something went wrong, please try again.", "error");
|
swal("","Something went wrong, please try again.", "error");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user