student details
This commit is contained in:
parent
78036cc366
commit
b2c5743406
@ -785,6 +785,75 @@ app.controller('studentCtrl', ["$scope", "toaster", "$filter", "ngTableParams",
|
|||||||
// $scope.editCourseId = -1;
|
// $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.addStudentCourse = function () {
|
||||||
$scope.myModelCourse = {
|
$scope.myModelCourse = {
|
||||||
'university': '',
|
'university': '',
|
||||||
|
|||||||
@ -245,6 +245,8 @@
|
|||||||
<i class="ti-user" tooltip="Personal Details" ng-click="setEditId(p.Student_Course_id, p.StudentID);"></i>
|
<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);">-->
|
<!--<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="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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-show="editId === p.Student_Course_id" ng-if="editId === p.Student_Course_id">
|
<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">
|
<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>
|
<td colspan="8" ng-include src="'assets/views/student/editStudentCourseDetails.html'"></td>
|
||||||
</tr>
|
</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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user