Commit 5533fe34 authored by Prayas Jain's avatar Prayas Jain

Updated_Employee_Efforts

parent 2506cf52
......@@ -40,9 +40,9 @@ myApp.controller("assignEmployeeEffortrsController",function($scope,exportUiGrid
exporterCsvFilename: 'EmployeeEfforts.csv',
exporterExcelFilename:'EmployeeEfforts',
exporterPdfDefaultStyle: {fontSize: 9},
exporterPdfTableStyle: {margin: [30, 30, 30, 30]},
exporterPdfTableStyle: {margin: [15, 15, 15, 15]},
exporterPdfTableHeaderStyle: {fontSize: 10, bold: true, italics: true, color: 'red'},
exporterPdfHeader: { text: "Shift Details", style: 'headerStyle' },
exporterPdfHeader: { text: "Employee Efforts", style: 'headerStyle' },
exporterPdfFooter: function ( currentPage, pageCount ) {
return { text: currentPage.toString() + ' of ' + pageCount.toString(), style: 'footerStyle' };
},
......@@ -102,7 +102,7 @@ myApp.controller("assignEmployeeEffortrsController",function($scope,exportUiGrid
if(difference < 0 ){
showAlert('From Date should not be greater than To Date');
$scope.fromDate = priorDt;
$scope.toDate = new Date(fromDate.getTime() + (6 * 24 * 60 * 60 * 1000));
$scope.toDate = today;
}else{
$scope.fromDate = dateValue;
$scope.toDate = new Date($scope.fromDate.getTime() + (6 * 24 * 60 * 60 * 1000));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment