Export excel in Student University FormId Fees Details screen

This commit is contained in:
gandhimathi 2018-09-10 16:00:48 +05:30
parent 75709262e4
commit da7e5c18fe
2 changed files with 54 additions and 2 deletions

View File

@ -162,7 +162,28 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
}
}
//Export excel
var mystyle1 = {
sheetid: 'Student University FormId Fees Details',
headers: true,
caption: {
title:'Student University FormId Fees 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,FormType as FormType,CentreCode as CentreCode,Session as Session,CAST(Year as NUMBER) as Year,Semester as Semester,Student_Name as Student_Name,Father_Name as Father_Name,CourseCode as CourseCode,CAST(ActualCourseFee as NUMBER) as ActualCourseFee,CAST(CourseFee as NUMBER) as CourseFee,CAST(ExamFee as NUMBER) as ExamFee,CAST(EnrollmentFee as NUMBER) as EnrollmentFee,CAST(ProspectusFee as NUMBER) as ProspectusFee,CAST(ReRegFee as NUMBER) as ReRegFee,CAST(CreditTransferFee as NUMBER) as CreditTransferFee,CAST(LateralEntryFee as NUMBER) as LateralEntryFee,CAST(DualSpclFee as NUMBER) as DualSpclFee,CAST(OtherFee as NUMBER) as OtherFee,CAST(NRIFEE as NUMBER) as NRIFEE,CAST(ProvisionalFee as NUMBER) as ProvisionalFee,CAST(MigrationFee as NUMBER) as MigrationFee,CAST(UrgentResultDMCFee as NUMBER) as UrgentResultDMCFee,CAST(AdditionalFee as NUMBER) as AdditionalFee,CAST(Amount as NUMBER) as Amount INTO XLS("FormIdFeesDetails.xls",?) FROM ?',[mystyle1,$scope.data]);
};
//End of export excel
$scope.myObj = {
// "color" : "green",
"font-size": "inherit"
@ -330,7 +351,28 @@ app.controller('studentUnivFormIdFeeDetailsCtrl', ["$scope", "toaster", "$filter
}
});
}
//Export Excel
var mystyle = {
sheetid: 'Student University FormId Unmatched Records',
headers: true,
caption: {
title:'Student University FormId Unmatched Records',
width: '300px',
style:'font-size:50px;'
},
// style:'background:#00FF00',
column: {
style:'font-size:16px'
},
};
$scope.exportDataTab3 = function () {
alasql('SELECT CAST(FormID as NUMBER) as FormID,FormType as FormType,CentreCode as CentreCode,CourseCode as CourseCode,CAST(ActualCourseFee as NUMBER) as ActualCourseFee,CAST(CourseFee as NUMBER) as CourseFee,CAST(Amount as NUMBER) as Amount INTO XLS("FormIdUnmatchedRecords.xls",?) FROM ?',[mystyle,$scope.unMatchedRecordDetails]);
};
//End of export excel
// get subtab details for the formid fee details get form the university
$scope.subTabActive = function (tab) {

View File

@ -101,6 +101,11 @@
</div>
<h2> {{statusMessage}} </h2>
</div>
<div class="row" style="text-align: right;">
<button class="btn btn-success btn-o" ng-click="exportData()">Export to Excel</button>
</div>
<div class="table-responsive" ng-if="studentData">
<table class="table table-hover">
<thead>
@ -752,6 +757,11 @@
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
</dir-pagination-controls>
</div>
<div class="row" style="text-align: right;">
<button class="btn btn-success btn-o" ng-click="exportDataTab3()">Export to Excel</button>
</div>
<div ng-if="unMatchedRecordDetailsType == 'FormIDFile'">
<table class="table table-border table-hover">
<thead>