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
a67b60bd
Commit
a67b60bd
authored
Jun 24, 2019
by
Md Suleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard change for sub status
parent
75ca5ce0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
DashboardService.java
.../java/com/nisum/myteam/service/impl/DashboardService.java
+7
-5
No files found.
src/main/java/com/nisum/myteam/service/impl/DashboardService.java
View file @
a67b60bd
package
com
.
nisum
.
myteam
.
service
.
impl
;
package
com
.
nisum
.
myteam
.
service
.
impl
;
import
com.nisum.myteam.exception.handler.MyTeamException
;
import
com.nisum.myteam.exception.handler.MyTeamException
;
import
com.nisum.myteam.model.dao.Account
;
import
com.nisum.myteam.model.dao.*
;
import
com.nisum.myteam.model.dao.Domain
;
import
com.nisum.myteam.model.dao.Employee
;
import
com.nisum.myteam.model.dao.Project
;
import
com.nisum.myteam.model.dao.Resource
;
import
com.nisum.myteam.model.vo.EmployeeDashboardVO
;
import
com.nisum.myteam.model.vo.EmployeeDashboardVO
;
import
com.nisum.myteam.model.vo.ResourceVO
;
import
com.nisum.myteam.model.vo.ResourceVO
;
import
com.nisum.myteam.service.IDashboardService
;
import
com.nisum.myteam.service.IDashboardService
;
...
@@ -39,6 +35,9 @@ public class DashboardService implements IDashboardService {
...
@@ -39,6 +35,9 @@ public class DashboardService implements IDashboardService {
@Autowired
@Autowired
private
AccountService
accountService
;
private
AccountService
accountService
;
@Autowired
private
SubStatusService
subStatusService
;
@Override
@Override
public
List
<
EmployeeDashboardVO
>
getEmployeesDashBoard
()
{
public
List
<
EmployeeDashboardVO
>
getEmployeesDashBoard
()
{
//List<Employee> allEmployees = employeeRepo.findAll();
//List<Employee> allEmployees = employeeRepo.findAll();
...
@@ -152,7 +151,10 @@ public class DashboardService implements IDashboardService {
...
@@ -152,7 +151,10 @@ public class DashboardService implements IDashboardService {
for
(
Employee
employee:
allEmployees
){
for
(
Employee
employee:
allEmployees
){
EmployeeDashboardVO
employeeDashboardVO
=
new
EmployeeDashboardVO
();
EmployeeDashboardVO
employeeDashboardVO
=
new
EmployeeDashboardVO
();
EmployeeSubStatus
subStatus
=
subStatusService
.
getCurrentSubStatus
(
employee
.
getEmployeeId
());
BeanUtils
.
copyProperties
(
employee
,
employeeDashboardVO
);
BeanUtils
.
copyProperties
(
employee
,
employeeDashboardVO
);
if
(
subStatus
!=
null
)
employeeDashboardVO
.
setEmpSubStatus
(
subStatus
.
getSubStatus
());
employeeDashboard
.
add
(
employeeDashboardVO
);
employeeDashboard
.
add
(
employeeDashboardVO
);
}
}
...
...
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