excelname

This commit is contained in:
venbatechnologies@gmail.com 2018-08-21 15:38:23 +05:30
parent a732e0c9dd
commit e4d9536bb4

View File

@ -85,6 +85,8 @@ $scope.newreglist='';
$scope.isLoaderShow ='';
$scope.load = '';
$scope.isShow= '';
$scope.fromd='';
$scope.tod='';
$scope.getDetails = function (form,myModel)
{
// alert('in')
@ -92,9 +94,44 @@ $scope.isShow= '';
//console.log(form.$dirty);
var from = $scope.filters.from_date;
var to = $scope.filters.to_date;
var university = myModel.myUnivSearch
var university = myModel.myUnivSearch ;
// console.log(from)
var f = new Date(from),
month = '' + (f.getMonth() + 1),
day = '' + f.getDate(),
year = f.getFullYear();
if (month.length < 2) month = '0' + month;
if (day.length < 2) day = '0' + day;
var from_dt = [day, month ,year].join('-');
var t = new Date(to),
month = '' + (t.getMonth() + 1),
day = '' + t.getDate(),
year = t.getFullYear();
if (month.length < 2) month = '0' + month;
if (day.length < 2) day = '0' + day;
var to_dt = [day, month ,year].join('-');
$scope.fromd = from_dt;
$scope.tod = to_dt;
var getstudentdetails = {
method: 'POST',
@ -136,12 +173,23 @@ $scope.isShow= '';
var mystyle = {
sheetid: 'New Registration List',
$scope.exportData = function ()
{
//alert()
$scope.sam = 'New-Registration List from '+$scope.fromd+' to '+$scope.tod;
var mystyle = {
sheetid:$scope.sam,
headers: true,
caption: {
title:'New Registration List',
width: '500px',
title: $scope.sam,
width: '1000px',
style:'font-size:50px;bold:true'
},
// style:'background:#00FF00',
@ -150,12 +198,7 @@ $scope.isShow= '';
},
};
$scope.exportData = function ()
{
//alert()
console.log(mystyle);