form id capture details , list search changes : kdk
This commit is contained in:
parent
f5f2cd08f0
commit
799b9b60d0
@ -70,7 +70,7 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
||||
$scope.getUniversitySearchList = function () {
|
||||
var empListreq = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getUniversitySessionDetails/',
|
||||
url: apiPoint.url + 'getUnivCourseFromFileDetails/',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
@ -90,36 +90,26 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
||||
|
||||
$scope.searchData = {
|
||||
"University": "",
|
||||
"Session": "",
|
||||
"Course": "",
|
||||
"Status": ""
|
||||
}
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.sessionData = "";
|
||||
$scope.courseData = "";
|
||||
|
||||
$scope.getUniveId = function (univ) {
|
||||
$scope.sessionData = "";
|
||||
if (univ === '') {
|
||||
$scope.myUnivSearch = "";
|
||||
$scope.courseData = "";
|
||||
$scope.searchData.University = '';
|
||||
// $scope.searchData.Course = '';
|
||||
// $scope.searchData.Batch = '';
|
||||
// $scope.courseData = name.Course;
|
||||
// $scope.batchData = name.Batch;
|
||||
$scope.searchData.Session = '';
|
||||
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.searchData.Course = '';
|
||||
} else {
|
||||
let name = JSON.parse(univ);
|
||||
$scope.searchData.University = name.UniversityID;
|
||||
// $scope.searchData.Course = '';
|
||||
// $scope.searchData.Batch = '';
|
||||
// $scope.courseData = name.Course;
|
||||
// $scope.batchData = name.Batch;
|
||||
$scope.searchData.Session = '';
|
||||
$scope.sessionData = name.SessionDetails;
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.searchData.University = name.univCode;
|
||||
$scope.courseData = name.univCourseDetails;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
//For session dropdown
|
||||
$scope.filterSessionDetails = "";
|
||||
$scope.$watch('searchData.University', function (newValue, oldValue) {
|
||||
@ -140,7 +130,7 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
|
||||
|
||||
$scope.onSubmit = function () {
|
||||
$scope.Searchloader = true;
|
||||
if ($scope.searchData.University !== '' && $scope.searchData.Session !== '') {
|
||||
if ($scope.searchData.University !== '' && $scope.searchData.Course !== '') {
|
||||
$scope.Searchloader = true;
|
||||
var empListreq = {
|
||||
method: 'POST',
|
||||
|
||||
@ -225,7 +225,6 @@
|
||||
<a ui-sref="app.student.studentUnivFormIdFeeDetails" ng-click="checkSuperAdmin()">
|
||||
<span class="title" translate="sidebar.nav.student.STUDENTFROMIDFEEDETAILS"> STUDENT FORMID FEE DETAILS </span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@ -58,22 +58,22 @@
|
||||
</label>
|
||||
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="university" ng-model="myUnivSearch" ng-change="getUniveId(myUnivSearch)">
|
||||
<option value="" disabled selected>Select University</option>
|
||||
<option ng-repeat="item in universitySearchData" value="{{item}}">{{item.UniversityName}}</option>
|
||||
<option ng-repeat="item in universitySearchData" value="{{item}}">{{item.univName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="form-field-select-2">
|
||||
Session
|
||||
Course
|
||||
</label>
|
||||
<select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="session" ng-model="searchData.Session">
|
||||
<option value="" selected>Select Session</option>
|
||||
<option ng-repeat="itemSession in sessionData" value="{{itemSession.SessionID}}">{{itemSession.SessionName}}</option>
|
||||
<select ui-select2 class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="session" ng-model="searchData.Course">
|
||||
<option value="" selected>Select Course</option>
|
||||
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseCode}}">{{itemCourse.CourseName}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2" style="padding-top: 2.3%;">
|
||||
<div class="pull-right">
|
||||
|
||||
<button ng-disabled="searchData.Session == '' || searchData.University == ''" type="submit" class="btn btn-success btn-o"
|
||||
<button ng-disabled="searchData.Course == '' || searchData.University == ''" type="submit" class="btn btn-success btn-o"
|
||||
tabindex="8">
|
||||
Submit
|
||||
</button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user