use of org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm in project head by mifos.
the class MultipleGeneralLedgerAction method submit.
public ActionForward submit(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
int stage = 1;
insertionSaveAndStage(actionForm, request, stage);
return mapping.findForward("submit_success");
}
use of org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm in project head by mifos.
the class MultipleGeneralLedgerAction method saveStageSubmit.
public ActionForward saveStageSubmit(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
int stage = 0;
//
insertionSaveAndStage(actionForm, request, stage);
return mapping.findForward("submit_success");
}
use of org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm in project head by mifos.
the class MultipleGeneralLedgerAction method previous.
public ActionForward previous(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
/*String [] accounthead=actionForm.getAccountHead1();
String [] amounts=actionForm.getAmount1();
String [] trannotes=actionForm.getNotes1();
int total=0;
List<GLCodeDto> glcodelist=new ArrayList<GLCodeDto>();
for(int i=0;i<amounts.length;i++)
{
total =total+ Integer.parseInt(amounts[i]);
GLCodeDto gLcodeDto= new GLCodeDto();
gLcodeDto.setAccountHead(accounthead[i]);
gLcodeDto.setAmounts(amounts[i]);
gLcodeDto.setTrannotes(trannotes[i]);
glcodelist.add(gLcodeDto);
}
*/
storingSession(request, "accounHeadValues", glcodelist);
storingSession(request, "GeneralLedgerActionForm", actionForm);
return mapping.findForward(ActionForwards.previous_success.toString());
}
use of org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm in project head by mifos.
the class MultipleGeneralLedgerAction method loadAccountHeads.
public ActionForward loadAccountHeads(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
List<GLCodeDto> accountingDtos = null;
accountingDtos = accountingServiceFacade.accountHead(actionForm.getMainAccount());
List<GLCodeDto> snolist = null;
snolist = new ArrayList<GLCodeDto>();
int sno = 1;
GLCodeDto gLcodeDto = new GLCodeDto();
gLcodeDto.setSno(sno);
snolist.add(gLcodeDto);
storingSession(request, "SNoList", snolist);
storingSession(request, "AccountHeadGlCodes", accountingDtos);
return mapping.findForward(ActionForwards.load_success.toString());
}
Aggregations