use of org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase in project cu-kfs by CU-CommunityApps.
the class CapitalAssetInformationActionBase method checkSelectForCapitalAccountingLines.
/**
* checks "select" check box on capital accounting lines if there are
* corresponding capital asset records.
*
* @param calfb
*/
protected void checkSelectForCapitalAccountingLines(CapitalAccountingLinesFormBase calfb) {
CapitalAccountingLinesDocumentBase caldb = (CapitalAccountingLinesDocumentBase) calfb.getFinancialDocument();
List<CapitalAccountingLines> capitalAccountingLines = caldb.getCapitalAccountingLines();
KualiAccountingDocumentFormBase kadfb = calfb;
List<CapitalAssetInformation> currentCapitalAssetInformation = this.getCurrentCapitalAssetInformationObject(kadfb);
for (CapitalAccountingLines capitalAccountingLine : capitalAccountingLines) {
if (currentCapitalAssetInformation.size() <= 0) {
capitalAccountingLine.setSelectLine(false);
} else {
CapitalAssetInformation existingCapitalAsset = getCapitalAssetCreated(capitalAccountingLine, currentCapitalAssetInformation);
if (ObjectUtils.isNotNull(existingCapitalAsset)) {
capitalAccountingLine.setSelectLine(true);
} else {
capitalAccountingLine.setSelectLine(false);
}
}
}
}
use of org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase in project cu-kfs by CU-CommunityApps.
the class CuPreEncumbranceAction method setTabStates.
protected void setTabStates(ActionForm form) {
KualiAccountingDocumentFormBase kualiForm = (KualiAccountingDocumentFormBase) form;
AccountingDocument accountingDocument = kualiForm.getFinancialDocument();
Map<String, String> tabStates = kualiForm.getTabStates();
setAutomaticPartialDisEncumbrancesTabsOpen(accountingDocument, tabStates);
setGeneralLedgerPendingEntriesTabOpenWhenGLPEsExist(accountingDocument, tabStates);
kualiForm.setTabStates(tabStates);
}
Aggregations