Blame |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.controller.managedbean;
import java.io.Serializable;
import javax.inject.Inject;
import javax.inject.Named;
import org.springframework.context.annotation.Scope;
import br.com.ec.domain.dto.DreDTO;
import br.com.ec.domain.service.consolidado.ConsolidadoService;
import br.com.ec.domain.service.formapagamento.FormaPagamentoService;
import br.edu.cesmac.core.generic.GenericService;
import br.edu.cesmac.core.util.DataUtils;
import br.edu.cesmac.web.generic.AbstractBean;
@Named
@Scope
("view")
public class DreBean
extends AbstractBean
<DreDTO
> implements Serializable {
private static final long serialVersionUID = 1L
;
private ConsolidadoService consolidadoService
;
private FormaPagamentoService formaPagamentoService
;
@Inject
public DreBean
(ConsolidadoService consolidadoService, FormaPagamentoService formaPagamentoService
) {
this.
consolidadoService = consolidadoService
;
this.
formaPagamentoService = formaPagamentoService
;
}
@
Override
public void preCarregamento
() {
setEntidade
(new DreDTO
(DataUtils.
getPrimeiroDiaDoAnoAtual(), DataUtils.
getUltimoDiaDoAnoAtual()));
}
@
Override
public void limparEntidade
() {
setEntidade
(new DreDTO
());
}
@
Override
public GenericService
<DreDTO
> getService
() {
return null;
}
@
Override
public DreDTO getEntidade
() {
return entidade
;
}
@
Override
public DreDTO getId
() {
return getEntidade
();
}
/********************************************************************/
public void consultarDRE
() {
}
}