hallticket duplicate issue

This commit is contained in:
venbatechnologies@gmail.com 2019-02-02 17:23:14 +05:30
parent e33cefbf95
commit a1717e71b4
2 changed files with 1480 additions and 1466 deletions

73
Apollo/assets/js/controllers/generateHallTicketCtrl.js Executable file → Normal file
View File

@ -166,36 +166,36 @@ $scope.generateButtonStatus = false;
//console.log($scope.studentInfo); //console.log($scope.studentInfo);
angular.forEach(($scope.studentInfo),function(studentInfo,key) // angular.forEach(($scope.studentInfo),function(studentInfo,key)
{ // {
//console.log($scope.studentInfo); // //console.log($scope.studentInfo);
if(studentInfo.balpayable != 0) // if(studentInfo.balpayable != 0)
{ // {
var mobileno = studentInfo.MobileNumber; // var mobileno = studentInfo.MobileNumber;
var sendmsg = // var sendmsg =
{ // {
method: 'POST', // method: 'POST',
url: apiPoint.url + 'SendMessagetoFeeBalance/', // url: apiPoint.url + 'SendMessagetoFeeBalance/',
headers: // headers:
{ // {
'Content-Type': 'application/json' // 'Content-Type': 'application/json'
}, // },
data: // data:
{ // {
mobileno:mobileno, // mobileno:mobileno,
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID, // branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
} // }
}; // };
$http(sendmsg).then(function (response) // $http(sendmsg).then(function (response)
{ // {
console.log(response.data); // console.log(response.data);
}); // });
} // }
//break; // //break;
}); // });
} }
@ -221,15 +221,28 @@ $scope.generateButtonStatus = false;
$scope.selectedStudentsID = []; $scope.selectedStudentsID = [];
$scope.isClick = function(e) $scope.isClick = function(e)
{ {
// alert();
var ide = e.target; var ide = e.target;
var val = (ide.checked ? true : false); 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){ 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 = value;
sid.FeeDetails = invalue;
} }
}); });

7
Apollo/assets/views/hallticket/generatehallticket.html Executable file → Normal file
View File

@ -136,7 +136,8 @@
<table class="table table-hover" ng-controller="studentModalDemoCtrl"> <table class="table table-hover" ng-controller="studentModalDemoCtrl">
<thead> <thead>
<tr> <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 <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> <span class="glyphicon sort-icon" ng-show="sortKey=='Firstname'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th> </th>
@ -173,9 +174,9 @@
<tr> <tr>
<!-- <td ><span ng-if="p.balpayable !=0" > --> <!-- <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> --> <!-- <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" > <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>
<td> <td>