student admittedBy for super admin : kdk

This commit is contained in:
dineshkumarkannan 2018-06-07 17:29:31 +05:30
parent d43efd8bec
commit b8983fd12c
2 changed files with 43 additions and 5 deletions

View File

@ -1470,6 +1470,27 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
} }
$scope.employeeList = '';
$scope.getEmployeeList = function() {
var getEmpListBranch = {
method: 'POST',
url: apiPoint.url + 'getEmployeeDetailsBranch/',
headers: {
'Content-Type': 'application/json'
},
data: {
data: localDetails
}
};
$http(getEmpListBranch).then(function (response) {
if (response.data.employeeList) {
$scope.employeeList = response.data.employees_details;
} else {
$scope.employeeList = '';
}
});
}
// $scope.getBranchList = function () { // $scope.getBranchList = function () {
// $scope.loader = true; // $scope.loader = true;
// var empListreq = { // var empListreq = {
@ -1507,6 +1528,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.getStudentList(); $scope.getStudentList();
$scope.getUniversityList(); $scope.getUniversityList();
$scope.getUniversitySearchList(); $scope.getUniversitySearchList();
$scope.getEmployeeList();
// $scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy'); // $scope.myModel.dateofbirth = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
$scope.myModelCourseAdd.dateofjoining = $filter('date')($scope.currentDate, 'dd-MM-yyyy'); $scope.myModelCourseAdd.dateofjoining = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
$scope.myModelCourse.dateofjoining = $filter('date')($scope.currentDate, 'dd-MM-yyyy'); $scope.myModelCourse.dateofjoining = $filter('date')($scope.currentDate, 'dd-MM-yyyy');
@ -1540,7 +1562,8 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
'referredmobilenumber': '', 'referredmobilenumber': '',
'switchsetting': true, 'switchsetting': true,
'DeactiveComments': '', 'DeactiveComments': '',
'Comments': '' 'Comments': '',
'admittedBy': ''
}; };
$scope.myModelCourse = { $scope.myModelCourse = {
@ -1993,7 +2016,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.myModelCourseObjExitStu = {}; $scope.myModelCourseObjExitStu = {};
$scope.myModelCourseObjStu = {}; $scope.myModelCourseObjStu = {};
$scope.onSlecetUniv = function () { $scope.onSlecetUniv = function () {
$scope.courseData = []; $scope.courseData = [];
$scope.batchData = ''; $scope.batchData = '';
$scope.myModelCourse.course = ''; $scope.myModelCourse.course = '';
$scope.myModelCourse.batch = ''; $scope.myModelCourse.batch = '';
@ -2026,7 +2049,7 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
$scope.myModelCourseObj={}; $scope.myModelCourseObj={};
$scope.onSlecetUnivAdd = function () { $scope.onSlecetUnivAdd = function () {
$scope.courseDataAdd = []; $scope.courseDataAdd = [];
$scope.batchDataAdd = ''; $scope.batchDataAdd = '';
$scope.myModelCourseAdd.course = ''; $scope.myModelCourseAdd.course = '';
$scope.myModelCourseAdd.batch = ''; $scope.myModelCourseAdd.batch = '';
@ -2344,7 +2367,8 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
'referredmobilenumber': '', 'referredmobilenumber': '',
'switchsetting': true, 'switchsetting': true,
'DeactiveComments': '', 'DeactiveComments': '',
'Comments': '' 'Comments': '',
'admittedBy': ''
}; };
$scope.myModelCourseAdd = { $scope.myModelCourseAdd = {
'university': '', 'university': '',
@ -2499,7 +2523,8 @@ app.controller('studentSuperAdminCtrl', ["$scope", "toaster", "$filter", "ngTabl
'referredmobilenumber': '', 'referredmobilenumber': '',
'switchsetting': true, 'switchsetting': true,
'DeactiveComments': '', 'DeactiveComments': '',
'Comments': '' 'Comments': '',
'admittedBy':''
}; };
$scope.myModelCourseAdd = { $scope.myModelCourseAdd = {
'university': '', 'university': '',

View File

@ -625,6 +625,19 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4">
<label>
Admitted by <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="27" class="cs-select cs-skin-elastic" name="admittedBy" ng-model="myModel.admittedBy"
required>
<option value="" disabled selected>Select Admitted By</option>
<option ng-repeat="item in employeeList" value="{{item.StaffID}}">{{item.Firstname}} {{item.Lastname}}</option>
</select>
<span class="error text-small block" ng-if="Form.admittedBy.$dirty && Form.admittedBy.$error.required">Admitted By is Required</span>
</div>
<div class="col-md-4"> <div class="col-md-4">
<label> <label>
Active/De-Active Active/De-Active