Subversion Repositories Integrator Subversion

Rev

Rev 227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 227 Rev 229
Line 7... Line 7...
7
7
8
import org.springframework.context.annotation.Scope;
8
import org.springframework.context.annotation.Scope;
9
import org.springframework.stereotype.Controller;
9
import org.springframework.stereotype.Controller;
10
10
11
import br.com.ec.core.generic.GenericService;
11
import br.com.ec.core.generic.GenericService;
12
import br.com.ec.domain.dto.DashboardDTO;
-
 
-
 
12
import br.com.ec.domain.dto.TempoRealDTO;
13
import br.com.ec.domain.service.DashboardService;
13
import br.com.ec.domain.service.DashboardService;
14
import br.com.ec.web.generic.AbstractBean;
14
import br.com.ec.web.generic.AbstractBean;
15
15
16
@Controller("dashboardBean")
16
@Controller("dashboardBean")
17
@Scope("view")
17
@Scope("view")
18
public class DashboardBean extends AbstractBean<DashboardDTO> implements Serializable {
-
 
-
 
18
public class DashboardBean extends AbstractBean<TempoRealDTO> implements Serializable {
19
19
20
        private static final long serialVersionUID = 1L;
20
        private static final long serialVersionUID = 1L;
21
       
21
       
22
        private DashboardService dashboardService;
22
        private DashboardService dashboardService;
23
23
Line 25... Line 25...
25
        public DashboardBean(DashboardService dashboardService) {
25
        public DashboardBean(DashboardService dashboardService) {
26
                this.dashboardService = dashboardService;
26
                this.dashboardService = dashboardService;
27
        }
27
        }
28
28
29
        @Override
29
        @Override
30
        public GenericService<DashboardDTO> getService() {
-
 
-
 
30
        public GenericService<TempoRealDTO> getService() {
31
                return dashboardService;
31
                return dashboardService;
32
        }
32
        }
33
33
34
        @Override
34
        @Override
35
        public DashboardDTO getId() {
-
 
-
 
35
        public TempoRealDTO getId() {
36
                return null;
36
                return null;
37
        }
37
        }
38
       
38
       
39
        @Override
39
        @Override
40
        public void limparEntidade() {
40
        public void limparEntidade() {
41
                setEntidade(new DashboardDTO());
-
 
-
 
41
                setEntidade(new TempoRealDTO());
42
        }
42
        }
43
       
43
       
44
        @PostConstruct
44
        @PostConstruct
45
        private void iniciarConsolidacoes() {
45
        private void iniciarConsolidacoes() {
46
                setEntidade(dashboardService.consultarDashboardDoDia());
46
                setEntidade(dashboardService.consultarDashboardDoDia());