if (getSelectedCombo() == 1) {
int beneficiarID = Integer.parseInt(getBeneficiarFilter());
getContext().getRequest().getSession(true).setAttribute("idBeneficiarCurent", beneficiarID);
getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", 0);
getContext().getRequest().getSession(true).setAttribute("idForajCurent", 0);
return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
} else if (getSelectedCombo() == 2) {
int amplasamentID = Integer.parseInt(amplasamentFilter);
getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", amplasamentID);
getContext().getRequest().getSession(true).setAttribute("idForajCurent", 0);
return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
} else if (getSelectedCombo() == 3) {
int beneficiarID = Integer.parseInt(getBeneficiarFilter());
getContext().getRequest().getSession(true).setAttribute("idBeneficiarCurent", beneficiarID);
getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", 0);
getContext().getRequest().getSession(true).setAttribute("idForajCurent", 0);
return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
} else {
Object b = getContext().getRequest().getSession(true).getAttribute("idBeneficiarCurent");
if (b != null) {
int bI = Integer.parseInt(b.toString());
if (bI > 0) {
setIdBeneficiarCurent(bI);
}
Object a = getContext().getRequest().getSession(true).getAttribute("idAmplasamentCurent");
if (a != null) {
int aI = Integer.parseInt(a.toString());
if (aI > 0) {
setIdAmplasamentCurent(aI);
}
Object f = getContext().getRequest().getSession(true).getAttribute("idForajCurent");
if (f != null) {
int fI = Integer.parseInt(f.toString());
if (fI > 0) {
setIdForajCurent(fI);
}
}
}
}
}
return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
}