Export excel for University form enrolment screen
This commit is contained in:
parent
c645fdd1a8
commit
66e60c8898
@ -6,7 +6,7 @@
|
||||
|
||||
app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$http", "API_POINTS", "$state", '$rootScope', '$cookies', 'md5', 'ipCookie', '$timeout', '$window', "flowFactory", "$interval", 'SweetAlert', function ($scope, toaster, $filter, ngTableParams, $http, apiPoint, $state, $rootScope, $cookies, md5, ipCookie, $timeout, $window, flowFactory, $interval, SweetAlert) {
|
||||
/**
|
||||
* student university fee details compare
|
||||
* student university fee details compare
|
||||
*/
|
||||
|
||||
// get local client details
|
||||
@ -179,7 +179,28 @@ app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$fil
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//export excel
|
||||
var mystyle = {
|
||||
sheetid: 'Enrolment Details',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'Student Form Enrolment Details',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:16px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportData = function () {
|
||||
alasql('SELECT CAST(FormID as NUMBER) as FormID,EnrolmentNo as EnrolmentNo,FormType as FormType,concat(Firstname,Lastname) as StudentName,Fathername as FatherName,UniversityName as University,CourseName as Course,SemesterYear as SemYear INTO XLS("EnrolmentDetails.xls",?) FROM ?',[mystyle,$scope.data]);
|
||||
};
|
||||
//end of export excel
|
||||
$scope.editId = -1;
|
||||
$scope.setEditId=function(id){
|
||||
$scope.editId = id;
|
||||
@ -339,6 +360,28 @@ app.controller('student_university_fee_compareCtrl', ["$scope", "toaster", "$fil
|
||||
}
|
||||
});
|
||||
}
|
||||
//export excel
|
||||
var mystyle1 = {
|
||||
sheetid: 'Unmatched Records',
|
||||
headers: true,
|
||||
caption: {
|
||||
title:'Unmatched Records',
|
||||
width: '300px',
|
||||
style:'font-size:50px;'
|
||||
},
|
||||
// style:'background:#00FF00',
|
||||
column: {
|
||||
style:'font-size:16px'
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
$scope.exportDataTab2 = function () {
|
||||
alasql('SELECT CAST(FormID as NUMBER) as FormID,EnrolmentNo as EnrolmentNo,SemesterYear as SemesterYear,CAST(MobileNumber AS NUMBER) as MobileNumber,StudentName as StudentName,UniversityCode as UniversityCode,UniversityName as UniversityName,CourseCode as CourseCode,CourseName as CourseName,FatherName as FatherName,MotherName as MotherName,EmailID as EmailID INTO XLS("UnmatchedRecords.xls",?) FROM ?',[mystyle1,$scope.unMatchedRecordDetails]);
|
||||
};
|
||||
//End of export excel
|
||||
$scope.manualEnModel={
|
||||
"enrolmentNo": '',
|
||||
"formID":"",
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
<div class="col-md-5 form-group" ng-class="{'has-error':manualEnForm.manualFormID.$dirty && manualEnForm.manualFormID.$invalid, 'has-success':manualEnForm.manualFormID.$valid}">
|
||||
<label> Form ID <span class="symbol required"></span>
|
||||
</label>
|
||||
</label>
|
||||
|
||||
<input type="text" tabindex="6" placeholder="Enter Form ID"
|
||||
class="form-control" name="manualFormID"
|
||||
@ -207,6 +207,11 @@
|
||||
|
||||
<div>
|
||||
<!--{{data | json}}-->
|
||||
<div class="row" style="text-align: right;">
|
||||
|
||||
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
<div ng-if="Searchloader">
|
||||
<div align="center" >
|
||||
<h3 style="color: blue;">Loading...</h3></div>
|
||||
@ -331,6 +336,9 @@
|
||||
<div class="col-md-2" style="margin-top: 20px;">
|
||||
<button class="btn btn-success" ng-disabled="!misMatchUnivSearch" ng-click="getUnmatchedRecord(misMatchsSearchData)">Get Record</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div ng-if="unMatchedLoadingStatus">
|
||||
<div style="color: blue; align: center;" align="center"> Loading...</div>
|
||||
@ -339,6 +347,13 @@
|
||||
<div style="color: red; align: center;" align="center"> No Record Found ...</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" style="text-align: right;">
|
||||
|
||||
<button class="btn btn-success btn-o" ng-click="exportDataTab2()">Export to Excel</button>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container table-responsive" ng-if="!unMatchedNoRecordFound && unMatchedRecordDetails">
|
||||
<div ng-if="unMatchedRecordDetailsType == 'EnrolmentIDFile'">
|
||||
<table class="table table-border table-hover" >
|
||||
|
||||
Loading…
Reference in New Issue
Block a user