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
24440c83
Commit
24440c83
authored
Jan 24, 2020
by
Prayas Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Utilization Report Issue and fixed css issue in manage employee screen
parent
45e1ec52
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
ReportService.java
...ain/java/com/nisum/myteam/service/impl/ReportService.java
+2
-2
ResourceService.java
...n/java/com/nisum/myteam/service/impl/ResourceService.java
+6
-0
custom-theme.css
src/main/webapp/WEB-INF/css/custom-theme.css
+1
-0
newRoleTemplate.html
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
+1
-1
No files found.
src/main/java/com/nisum/myteam/service/impl/ReportService.java
View file @
24440c83
...
@@ -80,7 +80,7 @@ public class ReportService implements IReportService {
...
@@ -80,7 +80,7 @@ public class ReportService implements IReportService {
billableC
++;
billableC
++;
}
else
if
(
resource
!=
null
&&
resource
.
getBillableStatus
().
equals
(
"Trainee"
))
{
}
else
if
(
resource
!=
null
&&
resource
.
getBillableStatus
().
equals
(
"Trainee"
))
{
traineeC
++;
traineeC
++;
}
else
if
(
resource
!=
null
&&
resource
.
getBillableStatus
().
equals
(
"Non-Billable"
)
){
}
else
if
(
resource
!=
null
){
nonBillableC
++;
nonBillableC
++;
}
}
}
}
...
@@ -160,7 +160,7 @@ public class ReportService implements IReportService {
...
@@ -160,7 +160,7 @@ public class ReportService implements IReportService {
billableEmployees
.
add
(
mappingReports
(
employee
,
resource
));
billableEmployees
.
add
(
mappingReports
(
employee
,
resource
));
}
else
if
(
resource
!=
null
&&
resource
.
getBillableStatus
().
equals
(
"Trainee"
))
{
}
else
if
(
resource
!=
null
&&
resource
.
getBillableStatus
().
equals
(
"Trainee"
))
{
trainees
.
add
(
mappingReports
(
employee
,
resource
));
trainees
.
add
(
mappingReports
(
employee
,
resource
));
}
else
{
}
else
if
(
resource
!=
null
)
{
nonBillableEmployees
.
add
(
mappingReports
(
employee
,
resource
));
nonBillableEmployees
.
add
(
mappingReports
(
employee
,
resource
));
}
}
}
}
...
...
src/main/java/com/nisum/myteam/service/impl/ResourceService.java
View file @
24440c83
...
@@ -1144,6 +1144,7 @@ public class ResourceService implements IResourceService {
...
@@ -1144,6 +1144,7 @@ public class ResourceService implements IResourceService {
public
Resource
makeResourceInactive
(
String
employeeId
,
Date
endDate
){
public
Resource
makeResourceInactive
(
String
employeeId
,
Date
endDate
){
Resource
futureAllocation
=
resourceRepo
.
findOneByEmployeeIdAndStatus
(
employeeId
,
MyTeamUtils
.
STATUS_PROPOSED
);
Resource
futureAllocation
=
resourceRepo
.
findOneByEmployeeIdAndStatus
(
employeeId
,
MyTeamUtils
.
STATUS_PROPOSED
);
Resource
currentAllocation
=
resourceRepo
.
findOneByEmployeeIdAndStatus
(
employeeId
,
MyTeamUtils
.
STATUS_ENGAGED
);
Resource
currentAllocation
=
resourceRepo
.
findOneByEmployeeIdAndStatus
(
employeeId
,
MyTeamUtils
.
STATUS_ENGAGED
);
Resource
latestAllocation
=
this
.
getLatestResourceByEmpId
(
employeeId
);
if
(
Objects
.
nonNull
(
futureAllocation
)){
if
(
Objects
.
nonNull
(
futureAllocation
)){
resourceRepo
.
delete
(
futureAllocation
);
resourceRepo
.
delete
(
futureAllocation
);
}
}
...
@@ -1153,6 +1154,11 @@ public class ResourceService implements IResourceService {
...
@@ -1153,6 +1154,11 @@ public class ResourceService implements IResourceService {
currentAllocation
.
setStatus
(
MyTeamUtils
.
STATUS_RELEASED
);
currentAllocation
.
setStatus
(
MyTeamUtils
.
STATUS_RELEASED
);
resourceRepo
.
save
(
currentAllocation
);
resourceRepo
.
save
(
currentAllocation
);
}
}
if
(
Objects
.
nonNull
(
latestAllocation
)
&&
latestAllocation
.
getStatus
().
equals
(
MyTeamUtils
.
STATUS_RELEASED
)
&&
latestAllocation
.
getProjectId
().
equals
(
MyTeamUtils
.
BENCH_PROJECT_ID
))
{
latestAllocation
.
setBillingEndDate
(
endDate
);
resourceRepo
.
save
(
latestAllocation
);
}
return
null
;
return
null
;
}
}
}
}
\ No newline at end of file
src/main/webapp/WEB-INF/css/custom-theme.css
View file @
24440c83
...
@@ -644,6 +644,7 @@ cursor: pointer;
...
@@ -644,6 +644,7 @@ cursor: pointer;
width
:
1500px
;
width
:
1500px
;
height
:
1200px
;
height
:
1200px
;
margin-left
:
1%
;
margin-left
:
1%
;
max-height
:
70%
;
}
}
.new-role-dialog-content
{
.new-role-dialog-content
{
overflow-x
:
hidden
;
overflow-x
:
hidden
;
...
...
src/main/webapp/WEB-INF/templates/newRoleTemplate.html
View file @
24440c83
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
<!--row-->
</md-dialog-content>
<!--row-->
</md-dialog-content>
<md-dialog-actions
layout=
"row"
>
<md-dialog-actions
layout=
"row"
style=
"margin-bottom:20px;"
>
<div
role=
"alert"
class=
"col-sm-8 error-msg"
>
<div
role=
"alert"
class=
"col-sm-8 error-msg"
>
<span
ng-if=
"errorMessage"
class=
"error"
style=
"color: red; text-align:left;"
>
{{alertMsg}}
</span>
<span
ng-if=
"errorMessage"
class=
"error"
style=
"color: red; text-align:left;"
>
{{alertMsg}}
</span>
</div>
</div>
...
...
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