use of org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm in project head by mifos.
the class InterOfficeTransferAction method loadFromOffices.
public ActionForward loadFromOffices(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
InterOfficeTransferActionForm actionForm = (InterOfficeTransferActionForm) form;
List<OfficeGlobalDto> fromOfficeDetailsDtos = null;
if (actionForm.getFromOfficeHierarchy().equals("")) {
fromOfficeDetailsDtos = null;
} else if (actionForm.getFromOfficeHierarchy().equals("6")) {
// to
// recognize
// center
fromOfficeDetailsDtos = accountingServiceFacade.loadCustomerForLevel(new Short("3"));
} else if (actionForm.getFromOfficeHierarchy().equals("7")) {
// to
// recognize
// group
fromOfficeDetailsDtos = accountingServiceFacade.loadCustomerForLevel(new Short("2"));
} else {
fromOfficeDetailsDtos = accountingServiceFacade.loadOfficesForLevel(Short.valueOf(actionForm.getFromOfficeHierarchy()));
}
storingSession(request, "IOFromOfficeHierarchy", fromOfficeDetailsDtos);
return mapping.findForward(ActionForwards.load_success.toString());
}
use of org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm in project head by mifos.
the class InterOfficeTransferAction method preview.
public ActionForward preview(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
InterOfficeTransferActionForm actionForm = (InterOfficeTransferActionForm) form;
storingSession(request, "InterOfficeTransferActionForm", actionForm);
return mapping.findForward(ActionForwards.preview_success.toString());
}
Aggregations