excelname
This commit is contained in:
parent
a732e0c9dd
commit
e4d9536bb4
@ -85,6 +85,8 @@ $scope.newreglist='';
|
|||||||
$scope.isLoaderShow ='';
|
$scope.isLoaderShow ='';
|
||||||
$scope.load = '';
|
$scope.load = '';
|
||||||
$scope.isShow= '';
|
$scope.isShow= '';
|
||||||
|
$scope.fromd='';
|
||||||
|
$scope.tod='';
|
||||||
$scope.getDetails = function (form,myModel)
|
$scope.getDetails = function (form,myModel)
|
||||||
{
|
{
|
||||||
// alert('in')
|
// alert('in')
|
||||||
@ -92,9 +94,44 @@ $scope.isShow= '';
|
|||||||
//console.log(form.$dirty);
|
//console.log(form.$dirty);
|
||||||
var from = $scope.filters.from_date;
|
var from = $scope.filters.from_date;
|
||||||
var to = $scope.filters.to_date;
|
var to = $scope.filters.to_date;
|
||||||
var university = myModel.myUnivSearch
|
var university = myModel.myUnivSearch ;
|
||||||
// console.log(from)
|
// 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 = {
|
var getstudentdetails = {
|
||||||
|
|
||||||
method: 'POST',
|
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,
|
headers: true,
|
||||||
caption: {
|
caption: {
|
||||||
title:'New Registration List',
|
title: $scope.sam,
|
||||||
width: '500px',
|
width: '1000px',
|
||||||
style:'font-size:50px;bold:true'
|
style:'font-size:50px;bold:true'
|
||||||
},
|
},
|
||||||
// style:'background:#00FF00',
|
// style:'background:#00FF00',
|
||||||
@ -150,12 +198,7 @@ $scope.isShow= '';
|
|||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
console.log(mystyle);
|
||||||
|
|
||||||
|
|
||||||
$scope.exportData = function ()
|
|
||||||
{
|
|
||||||
//alert()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user