Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
c5e0760a
Commit
c5e0760a
authored
May 22, 2019
by
Md Suleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated add employee alocation to bench project and some ui change
parent
d956888e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
ResourceService.java
...n/java/com/nisum/myteam/service/impl/ResourceService.java
+1
-1
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+6
-6
No files found.
src/main/java/com/nisum/myteam/service/impl/ResourceService.java
View file @
c5e0760a
...
@@ -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
.
ge
tEndDate
());
resourceBench
.
setBillingEndDate
(
projectService
.
getProjectByProjectId
(
MyTeamUtils
.
BENCH_PROJECT_ID
).
getProjec
tEndDate
());
resourcePersisted
=
addResource
(
resourceBench
,
loginEmpId
);
resourcePersisted
=
addResource
(
resourceBench
,
loginEmpId
);
return
resourcePersisted
;
return
resourcePersisted
;
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
c5e0760a
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment