student details

This commit is contained in:
venbatechnologies@gmail.com 2018-10-13 16:36:21 +05:30
parent 78036cc366
commit b2c5743406
2 changed files with 74 additions and 0 deletions

View File

@ -785,6 +785,75 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
// $scope.editCourseId = -1;
}
$scope.cancelnotification = function()
{
$scope.msgdetID = '-1';
}
$scope.MailDetails='';
$scope.MessageDetails = '';
$scope.StudentIDDet = '';
$scope.msgdetID = -1;
$scope.setmessageId = function (student)
{
//console.log(student);return false;
var studentID= student.StudentID;
var phonenumber = student.MobileNumber;
var email = student.EmailID;
var sentnotification = {
method: 'POST',
url: apiPoint.url + 'Getnotificcations/',
headers: {
'Content-Type': 'application/json'
},
data: {
StudentID: studentID,
Phone: phonenumber,
Email:email,
loginBranch: localDetails.localBranchID,
createdBy: localDetails.localUserID,
}
};
$http(sentnotification).then(function (response) {
if(response.data.status == 200)
{
$scope.MailDetails=response.data.maildetails;
$scope.MessageDetails = response.data.msgdetails;
$scope.StudentIDDet = response.data.StudentID;
$scope.msgdetID = $scope.StudentIDDet[0].StudentID;
//console.log($scope.msgdetID);
}
});
}
$scope.addStudentCourse = function () {
$scope.myModelCourse = {
'university': '',

View File

@ -245,6 +245,8 @@
<i class="ti-user" tooltip="Personal Details" ng-click="setEditId(p.Student_Course_id, p.StudentID);"></i>
<!--<input type=button class="btn btn-blue btn-xs" id="editCourseRowBtn{{p.StaffID}}" value="Course Details" ng-click="setEditCourseId(p.StudentID);">-->
<i class="ti-write" tooltip="Course Details" ng-click="setEditCourseId(p.Student_Course_id, p.StudentID);"></i>
<i class="fa fa-envelope-o" tooltip="Sent Message/Email Details" ng-click="setmessageId(p);"></i>
</td>
</tr>
<tr ng-show="editId === p.Student_Course_id" ng-if="editId === p.Student_Course_id">
@ -253,6 +255,9 @@
<tr ng-show="editCourseId === p.Student_Course_id" ng-if="editCourseId === p.Student_Course_id">
<td colspan="8" ng-include src="'assets/views/student/editStudentCourseDetails.html'"></td>
</tr>
<tr ng-show="p.StudentID ==msgdetID" ng-if="p.StudentID ==msgdetID">
<td colspan="8" ng-include src="'assets/views/student/messageDetails.html'"></td>
</tr>
</tbody>
</table>
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">