Commit c5e0760a authored by Md Suleman's avatar Md Suleman

Updated add employee alocation to bench project and some ui change

parent d956888e
...@@ -594,7 +594,7 @@ public class ResourceService implements IResourceService { ...@@ -594,7 +594,7 @@ public class ResourceService implements IResourceService {
resourceBench.setBillingStartDate(employee.getDateOfJoining() != null ? employee.getDateOfJoining() : new Date()); resourceBench.setBillingStartDate(employee.getDateOfJoining() != null ? employee.getDateOfJoining() : new Date());
resourceBench.setBillableStatus(MyTeamUtils.BENCH_BILLABILITY_STATUS); resourceBench.setBillableStatus(MyTeamUtils.BENCH_BILLABILITY_STATUS);
resourceBench.setEmployeeId(employee.getEmployeeId()); resourceBench.setEmployeeId(employee.getEmployeeId());
resourceBench.setBillingEndDate(employee.getEndDate()); resourceBench.setBillingEndDate(projectService.getProjectByProjectId(MyTeamUtils.BENCH_PROJECT_ID).getProjectEndDate());
resourcePersisted = addResource(resourceBench, loginEmpId); resourcePersisted = addResource(resourceBench, loginEmpId);
return resourcePersisted; return resourcePersisted;
......
...@@ -1655,12 +1655,12 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1655,12 +1655,12 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
url: appConfig.appUri + "resources/project/"+ $scope.projectId + "?status=" + $scope.status url: appConfig.appUri + "resources/project/"+ $scope.projectId + "?status=" + $scope.status
}).then(function mySuccess(response) { }).then(function mySuccess(response) {
$scope.gridOptions.data = response.data.records; $scope.gridOptions.data = response.data.records;
if(status == "InActive" || status == "Both"|| dataToPass.status == "InActive"){ // if(status == "InActive" || dataToPass.status == "InActive"){
$scope.gridOptions.columnDefs[5].visible = false; // $scope.gridOptions.columnDefs[5].visible = false;
} // }
else{ // else{
$scope.gridOptions.columnDefs[5].visible = true; // $scope.gridOptions.columnDefs[5].visible = true;
} // }
for(i=0;i<$scope.gridOptions.data.length;i++){ for(i=0;i<$scope.gridOptions.data.length;i++){
if($scope.gridOptions.data[i].resourceRole == 'Lead'){ if($scope.gridOptions.data[i].resourceRole == 'Lead'){
$scope.gridOptions.data[i].resourceRole = "Lead"; $scope.gridOptions.data[i].resourceRole = "Lead";
......
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