use of org.mifos.dto.domain.GLCodeDto in project head by mifos.
the class InterOfficeTransferAction method loadCreditAccount.
public ActionForward loadCreditAccount(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
InterOfficeTransferActionForm actionForm = (InterOfficeTransferActionForm) form;
List<GLCodeDto> accountingDtos = null;
/*
* if( (actionForm.getFromOfficeHierarchy().equals(actionForm.
* getToOfficeHierarchy())) &&
* (actionForm.getFromOffice().equals(actionForm.getToOffice()))){
* accountingDtos =
* accountingServiceFacade.loadCreditAccounts(actionForm
* .getDebitAccountHead());
*
* }else{ accountingDtos =
* accountingServiceFacade.loadCreditAccounts(actionForm
* .getDebitAccountHead()); }
*/
accountingDtos = accountingServiceFacade.loadCreditAccounts(actionForm.getDebitAccountHead());
storingSession(request, "CreditAccounts", accountingDtos);
return mapping.findForward(ActionForwards.load_success.toString());
}
use of org.mifos.dto.domain.GLCodeDto in project head by mifos.
the class JournalVoucherAction method loadCreditAccount.
public ActionForward loadCreditAccount(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
JournalVoucherActionForm actionForm = (JournalVoucherActionForm) form;
List<GLCodeDto> accountingDtos = null;
accountingDtos = accountingServiceFacade.loadCreditAccounts(actionForm.getDebitAccountHead());
storingSession(request, "CreditAccounts", accountingDtos);
return mapping.findForward(ActionForwards.load_success.toString());
}
use of org.mifos.dto.domain.GLCodeDto in project head by mifos.
the class JournalVoucherAction method load.
public ActionForward load(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
JournalVoucherActionForm actionForm = (JournalVoucherActionForm) form;
List<GLCodeDto> accountingDtos = null;
List<RolesActivityDto> rolesactivitydto = null;
accountingDtos = accountingServiceFacade.loadDebitAccounts();
java.util.Date voucherDate = DateUtils.getCurrentDateWithoutTimeStamp();
actionForm.setVoucherDate(voucherDate);
rolesactivitydto = accountingServiceFacade.jvloadRolesActivity();
UserContext context = getUserContext(request);
actionForm.setOfficeLevelId(String.valueOf(context.getOfficeLevelId()));
List listOfOfficeHierarchyObject = getOfficeLevels(actionForm);
boolean journalVoucherSave = rolesactivitydto.isEmpty();
storingSession(request, "listOfOffices", listOfOfficeHierarchyObject);
storingSession(request, "jvsave", journalVoucherSave);
storingSession(request, "DebitAccountGlCodes", accountingDtos);
return mapping.findForward(ActionForwards.load_success.toString());
}
use of org.mifos.dto.domain.GLCodeDto in project head by mifos.
the class MultipleGeneralLedgerAction method loadMainAccounts.
public ActionForward loadMainAccounts(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
List<GLCodeDto> accountingDtos = null;
if (actionForm.getTrxnType().equals("CR") || actionForm.getTrxnType().equals("CP")) {
accountingDtos = accountingServiceFacade.mainAccountForCash();
} else if (actionForm.getTrxnType().equals("BR") || actionForm.getTrxnType().equals("BP")) {
accountingDtos = accountingServiceFacade.mainAccountForBank();
}
storingSession(request, "MainAccountGlCodes", accountingDtos);
return mapping.findForward(ActionForwards.load_success.toString());
}
use of org.mifos.dto.domain.GLCodeDto in project head by mifos.
the class SingleGeneralLedgerAction method loadAccountHeads.
public ActionForward loadAccountHeads(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
SingleGeneralLedgerActionForm actionForm = (SingleGeneralLedgerActionForm) form;
List<GLCodeDto> accountingDtos = null;
accountingDtos = accountingServiceFacade.accountHead(actionForm.getMainAccount());
storingSession(request, "AccountHeadGlCodes", accountingDtos);
return mapping.findForward(ActionForwards.load_success.toString());
}
Aggregations