coursecode added in send sms

This commit is contained in:
venbatechnologies@gmail.com 2018-11-02 13:12:30 +05:30
parent ffc7ec858d
commit 88aa19747b
3 changed files with 7 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class Broadcast_model extends CI_Model {
$resultArr['UniversityID'] = $clip->UniversityID;
$resultArr['UniversityName'] = $clip->UniversityName;
// Course Details
$this->db->select('t2.CourseID, t2.CourseName');
$this->db->select('t2.CourseID, t2.CourseName,t2.CourseCode');
$this->db->from('' . COURSE . ' as t2');
$this->db->where('t2.UniversityID', $clip->UniversityID);
$this->db->where('t2.IsActive', 1);

View File

@ -121,6 +121,8 @@ app.controller('sendSMSsuperadminCtrl', ["$scope","$rootScope", "$filter", "ngTa
$http(empListreq).then(function (response) {
if (response.data.univList) {
$scope.universityData = response.data.university_details;
} else {
}
});
@ -128,11 +130,14 @@ app.controller('sendSMSsuperadminCtrl', ["$scope","$rootScope", "$filter", "ngTa
$scope.getUniveId = function (univ) {
let name = JSON.parse(univ);
// console.log(name)
$scope.searchData.University = name.UniversityID;
$scope.searchData.Course = '';
$scope.searchData.Batch = '';
$scope.courseData = name.Course;
$scope.batchData = name.Batch;
//call service for array list in desc order based on date
angular.forEach($scope.batchData,function (values,key) {
var parts = values.BatchDate.split("-");

View File

@ -56,7 +56,7 @@
<select ui-select2 class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
<option value="" selected>Select Course</option>
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseCode}}-{{itemCourse.CourseName}}</option>
</select>
</div>