Search in sources :

Example 6 with FaseForm

use of com.tomasio.projects.trainning.form.FaseForm in project trainning by fernandotomasio.

the class TurmasEfetivasController method removeFase.

public void removeFase(int index) {
    RequestContext requestContext = RequestContextHolder.getRequestContext();
    List<FaseForm> fases = (List) requestContext.getFlowScope().getCollection("fasesDataList");
    fases.remove(index);
}
Also used : ArrayList(java.util.ArrayList) List(java.util.List) RequestContext(org.springframework.webflow.execution.RequestContext) FaseForm(com.tomasio.projects.trainning.form.FaseForm)

Example 7 with FaseForm

use of com.tomasio.projects.trainning.form.FaseForm in project trainning by fernandotomasio.

the class TurmasEfetivasController method retrieveFaseForm.

public FaseForm retrieveFaseForm(int index) {
    RequestContext requestContext = RequestContextHolder.getRequestContext();
    List<FaseForm> fases = (List) requestContext.getFlowScope().getCollection("fasesDataList");
    FaseForm form = fases.get(index);
    // inserção de campos para exibição na tela de confirmação
    if (form.getLocalId() != 1) {
        OrganizacaoDTO om = organizationalService.findOrganizacao(form.getLocalId());
        form.setLocalSigla(om.getSigla());
    }
    form.setIndex(index);
    return form;
}
Also used : ArrayList(java.util.ArrayList) List(java.util.List) RequestContext(org.springframework.webflow.execution.RequestContext) OrganizacaoDTO(com.tomasio.projects.trainning.dto.OrganizacaoDTO) FaseForm(com.tomasio.projects.trainning.form.FaseForm)

Aggregations

FaseForm (com.tomasio.projects.trainning.form.FaseForm)7 ArrayList (java.util.ArrayList)4 FaseDTO (com.tomasio.projects.trainning.dto.FaseDTO)3 OrganizacaoDTO (com.tomasio.projects.trainning.dto.OrganizacaoDTO)3 List (java.util.List)3 RequestContext (org.springframework.webflow.execution.RequestContext)3 TurmaPlanejadaDTO (com.tomasio.projects.trainning.dto.TurmaPlanejadaDTO)2 CursoDTO (com.tomasio.projects.trainning.dto.CursoDTO)1 ItemPlanejamentoDTO (com.tomasio.projects.trainning.dto.ItemPlanejamentoDTO)1 TurmaEfetivaDTO (com.tomasio.projects.trainning.dto.TurmaEfetivaDTO)1 TurmaPlanejadaForm (com.tomasio.projects.trainning.form.TurmaPlanejadaForm)1