Commit 4eb98a78 authored by Prayas Jain's avatar Prayas Jain

Fixed Reserved Report and Login Report Issue

parent c7f42e06
...@@ -968,6 +968,7 @@ public class ResourceService implements IResourceService { ...@@ -968,6 +968,7 @@ public class ResourceService implements IResourceService {
List<ReserveReportsVO> reserveReportsList = new ArrayList<>(); List<ReserveReportsVO> reserveReportsList = new ArrayList<>();
if (resourcesList != null && resourcesList.size() > 0) { if (resourcesList != null && resourcesList.size() > 0) {
resourcesList = resourcesList.stream().filter(r -> isAllocationActiveToday(r)).collect(Collectors.toList());
Project project = null; Project project = null;
for (Resource resource : resourcesList) { for (Resource resource : resourcesList) {
ReserveReportsVO reserveReportsVO = new ReserveReportsVO(); ReserveReportsVO reserveReportsVO = new ReserveReportsVO();
......
...@@ -23,7 +23,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $ ...@@ -23,7 +23,7 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
enableHorizontalScrollbar:1, enableHorizontalScrollbar:1,
columnDefs : [ columnDefs : [
{field : 'employeeId',displayName: 'EmpId', enableColumnMenu: true, enableSorting: true,enableFiltering: true, width:'*',cellClass: 'grid-align'}, {field : 'employeeId',displayName: 'EmpId', enableColumnMenu: true, enableSorting: true,enableFiltering: true, width:'*',cellClass: 'grid-align'},
{field : 'employeeName',displayName: 'Employee Name', enableColumnMenu: true, enableSorting: true,enableFiltering: true,cellClass: 'grid-align',width:'*'}, {field : 'employeeName',displayName: 'Emp Name', enableColumnMenu: true, enableSorting: true,enableFiltering: true,cellClass: 'grid-align',width:'*'},
{field : 'mobileNumber',displayName: 'Mobile', enableColumnMenu: false, enableSorting: false,enableFiltering: false,cellClass: 'grid-align', width:'*'}, {field : 'mobileNumber',displayName: 'Mobile', enableColumnMenu: false, enableSorting: false,enableFiltering: false,cellClass: 'grid-align', width:'*'},
{field : 'empStatus',displayName: 'Status', enableColumnMenu: false, enableSorting: false,enableFiltering: true,width:'*'}, {field : 'empStatus',displayName: 'Status', enableColumnMenu: false, enableSorting: false,enableFiltering: true,width:'*'},
{field : 'empSubStatus.subStatus',displayName: 'Sub Status', enableColumnMenu: false, enableSorting: true,enableFiltering:true,width:'*',cellClass:function(grid,row,col){ {field : 'empSubStatus.subStatus',displayName: 'Sub Status', enableColumnMenu: false, enableSorting: true,enableFiltering:true,width:'*',cellClass:function(grid,row,col){
...@@ -690,8 +690,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $ ...@@ -690,8 +690,8 @@ myApp.controller("assignRoleController",function($scope, myFactory, $mdDialog, $
$mdDialog.show($mdDialog.confirm({ $mdDialog.show($mdDialog.confirm({
skipHide: true, skipHide: true,
textContent: 'Are you sure you want to cancel this?', textContent: 'Are you sure you want to cancel this?',
ok: 'ok', ok: 'Yes',
cancel: 'cancel' cancel: 'No'
})).then(function () { })).then(function () {
$mdDialog.hide('Cancelled'); $mdDialog.hide('Cancelled');
}) })
......
...@@ -1737,8 +1737,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1737,8 +1737,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
$mdDialog.show($mdDialog.confirm({ $mdDialog.show($mdDialog.confirm({
skipHide: true, skipHide: true,
textContent: 'Are you sure you want to cancel this?', textContent: 'Are you sure you want to cancel this?',
ok: 'ok', ok: 'Yes',
cancel: 'cancel' cancel: 'No'
})).then(function () { })).then(function () {
$mdDialog.hide('Cancelled'); $mdDialog.hide('Cancelled');
}) })
...@@ -1748,8 +1748,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1748,8 +1748,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
$mdDialog.show($mdDialog.confirm({ $mdDialog.show($mdDialog.confirm({
skipHide: true, skipHide: true,
textContent: 'Are you sure you want to cancel this?', textContent: 'Are you sure you want to cancel this?',
ok: 'ok', ok: 'Yes',
cancel: 'cancel' cancel: 'No'
})).then(function () { })).then(function () {
$mdDialog.hide('Cancelled'); $mdDialog.hide('Cancelled');
}) })
...@@ -1767,8 +1767,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1767,8 +1767,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
$mdDialog.show($mdDialog.confirm({ $mdDialog.show($mdDialog.confirm({
skipHide: true, skipHide: true,
textContent: 'Are you sure you want to cancel this?', textContent: 'Are you sure you want to cancel this?',
ok: 'ok', ok: 'Yes',
cancel: 'cancel' cancel: 'No'
})).then(function () { })).then(function () {
$mdDialog.hide('Cancelled'); $mdDialog.hide('Cancelled');
}) })
...@@ -1824,8 +1824,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1824,8 +1824,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
$mdDialog.show($mdDialog.confirm({ $mdDialog.show($mdDialog.confirm({
skipHide: true, skipHide: true,
textContent: 'Are you sure you want to cancel this?', textContent: 'Are you sure you want to cancel this?',
ok: 'ok', ok: 'Yes',
cancel: 'cancel' cancel: 'No'
})).then(function () { })).then(function () {
removeTab("cancel"); removeTab("cancel");
$scope.myForm.$setPristine(); $scope.myForm.$setPristine();
...@@ -1838,8 +1838,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1838,8 +1838,8 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
$mdDialog.show($mdDialog.confirm({ $mdDialog.show($mdDialog.confirm({
skipHide: true, skipHide: true,
textContent: 'Are you sure you want to cancel this?', textContent: 'Are you sure you want to cancel this?',
ok: 'ok', ok: 'Yes',
cancel: 'cancel' cancel: 'No'
})).then(function () { })).then(function () {
removeTab("cancel"); removeTab("cancel");
$scope.myForm.$setPristine(); $scope.myForm.$setPristine();
......
...@@ -639,6 +639,23 @@ cursor: pointer; ...@@ -639,6 +639,23 @@ cursor: pointer;
.update-Teammate .form-inline { .update-Teammate .form-inline {
margin-bottom : 15px; margin-bottom : 15px;
} }
.new-role-template {
overflow:none;
width:1500px;
height:1200px;
margin-left: 1%;
}
.new-role-dialog-content{
overflow-x:hidden;
overflow-y:auto;
padding:15px 15px 0 15px;
}
.new-role-template .action-content{
padding:0;
}
.new-role-template .error-msg {
padding:0;
}
.billable-table { .billable-table {
margin-top : 10px; margin-top : 10px;
} }
......
<md-dialog aria-label="Role Template" <md-dialog aria-label="Role Template" class="new-role-template">
style="width:1500px;height:1200px; margin-left: 1%;">
<form ng-cloak name="myForm"> <form ng-cloak name="myForm">
<md-toolbar> <md-toolbar>
...@@ -12,7 +11,7 @@ ...@@ -12,7 +11,7 @@
</div> </div>
</md-toolbar> </md-toolbar>
<md-dialog-content style="padding: 15px;"> <md-dialog-content class="new-role-dialog-content">
<div class="row"> <div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"> <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
...@@ -117,13 +116,13 @@ ...@@ -117,13 +116,13 @@
</tr> </tr>
<tr> <!-- <tr>
<td colspan="12"> <td colspan="12">
<div role="alert"> <div role="alert">
<span ng-if="errorMessage" class="error" style="color: red;">{{alertMsg}}</span> <span ng-if="errorMessage" class="error" style="color: red;">{{alertMsg}}</span>
</div> </div>
</td> </td>
</tr> </tr> -->
</table> </table>
</div> </div>
...@@ -241,12 +240,20 @@ ...@@ -241,12 +240,20 @@
<!--row--> </md-dialog-content> <!--row--> </md-dialog-content>
<md-dialog-actions layout="row"> <md-button <md-dialog-actions layout="row">
<div role="alert" class="col-sm-9 error-msg">
<span ng-if="errorMessage" class="error" style="color: red; text-align:left;">{{alertMsg}}</span>
</div>
<div class="col-sm-3 action-content">
<md-button
class="md-raised" data-ng-click="validateFields(); button=true" class="md-raised" data-ng-click="validateFields(); button=true"
style="width:120px;background: cadetblue;color:white;"> style="width:120px;background: cadetblue;color:white;">
{{templateTitle}} </md-button> <md-button class="md-raised" ng-click="cancel()" {{templateTitle}} </md-button>
<md-button class="md-raised" ng-click="cancel()"
style="width:120px;background: cadetblue;color:white;"> style="width:120px;background: cadetblue;color:white;">
Cancel </md-button> </md-dialog-actions> Cancel </md-button>
</div>
</md-dialog-actions>
</form> </form>
</md-dialog> </md-dialog>
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