hallticket duplicate issue
This commit is contained in:
parent
e33cefbf95
commit
a1717e71b4
73
Apollo/assets/js/controllers/generateHallTicketCtrl.js
Executable file → Normal file
73
Apollo/assets/js/controllers/generateHallTicketCtrl.js
Executable file → Normal file
@ -166,36 +166,36 @@ $scope.generateButtonStatus = false;
|
||||
//console.log($scope.studentInfo);
|
||||
|
||||
|
||||
angular.forEach(($scope.studentInfo),function(studentInfo,key)
|
||||
{
|
||||
//console.log($scope.studentInfo);
|
||||
if(studentInfo.balpayable != 0)
|
||||
{
|
||||
var mobileno = studentInfo.MobileNumber;
|
||||
var sendmsg =
|
||||
{
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'SendMessagetoFeeBalance/',
|
||||
headers:
|
||||
{
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
data:
|
||||
{
|
||||
mobileno:mobileno,
|
||||
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
}
|
||||
};
|
||||
// angular.forEach(($scope.studentInfo),function(studentInfo,key)
|
||||
// {
|
||||
// //console.log($scope.studentInfo);
|
||||
// if(studentInfo.balpayable != 0)
|
||||
// {
|
||||
// var mobileno = studentInfo.MobileNumber;
|
||||
// var sendmsg =
|
||||
// {
|
||||
// method: 'POST',
|
||||
// url: apiPoint.url + 'SendMessagetoFeeBalance/',
|
||||
// headers:
|
||||
// {
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// data:
|
||||
// {
|
||||
// mobileno:mobileno,
|
||||
// branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
|
||||
// }
|
||||
// };
|
||||
|
||||
$http(sendmsg).then(function (response)
|
||||
{
|
||||
console.log(response.data);
|
||||
});
|
||||
// $http(sendmsg).then(function (response)
|
||||
// {
|
||||
// console.log(response.data);
|
||||
// });
|
||||
|
||||
|
||||
}
|
||||
//break;
|
||||
});
|
||||
// }
|
||||
// //break;
|
||||
// });
|
||||
|
||||
|
||||
}
|
||||
@ -221,15 +221,28 @@ $scope.generateButtonStatus = false;
|
||||
$scope.selectedStudentsID = [];
|
||||
$scope.isClick = function(e)
|
||||
{
|
||||
|
||||
// alert();
|
||||
|
||||
var ide = e.target;
|
||||
var val = (ide.checked ? true : false);
|
||||
var sid = e.target.id;
|
||||
var sid1 = e.target.id;
|
||||
var sid = sid1.substr(0,4);
|
||||
var sem = sid1.substr(4,17);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
angular.forEach($scope.studentInfo,function(value,key){
|
||||
if(sid == value.StudentID)
|
||||
console.log(sem);
|
||||
if(parseInt(sid) == value.StudentID)
|
||||
{
|
||||
console.log(value);
|
||||
var invalue = value.FeeDetails.filter(fees=>fees.Sem_Year == sem);
|
||||
// console.log(invalue);
|
||||
|
||||
sid = value;
|
||||
sid.FeeDetails = invalue;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
7
Apollo/assets/views/hallticket/generatehallticket.html
Executable file → Normal file
7
Apollo/assets/views/hallticket/generatehallticket.html
Executable file → Normal file
@ -136,7 +136,8 @@
|
||||
<table class="table table-hover" ng-controller="studentModalDemoCtrl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:3%"><input type="checkbox" ng-model="myModel.all" id="all" name="all" ng-click="isCheckAll($event);" class="form-control"></th>
|
||||
<!-- <th style="width:3%"><input type="checkbox" ng-model="myModel.all" id="all" name="all" ng-click="isCheckAll($event);" class="form-control"></th> -->
|
||||
<th></th>
|
||||
<th ng-click="sort('Firstname')">Student Name
|
||||
<span class="glyphicon sort-icon" ng-show="sortKey=='Firstname'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
||||
</th>
|
||||
@ -173,9 +174,9 @@
|
||||
<tr>
|
||||
<!-- <td ><span ng-if="p.balpayable !=0" > -->
|
||||
<!-- <input type="checkbox" ng-checked="myModel.all" id="{{p.StudentID}}" name="{{p.StudentID}}" class="form-control" ng-click="isClick($event)"/></span> -->
|
||||
<td>
|
||||
<td style="width:3%">
|
||||
<div ng-if="p.balpayable <=0" >
|
||||
<input type="checkbox" ng-checked="myModel.all" id="{{p.StudentID}}" name="{{p.StudentID}}" class="form-control" ng-click="isClick($event)"/></div>
|
||||
<input type="checkbox" ng-checked="myModel.all" id="{{p.StudentID}}{{p.semyr}}" name="{{p.StudentID}}" class="form-control" ng-click="isClick($event)"/></div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user