org.kuali.kfs.fp.document.web.struts
Class CashReceiptForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.kuali.rice.kns.web.struts.pojo.PojoFormBase
          extended by org.kuali.rice.kns.web.struts.form.KualiForm
              extended by org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
                  extended by org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
                      extended by org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentFormBase
                          extended by org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase
                              extended by org.kuali.kfs.fp.document.web.struts.CashReceiptForm
All Implemented Interfaces:
Serializable, CapitalAssetEditable, org.kuali.rice.kns.web.struts.pojo.PojoForm

public class CashReceiptForm
extends KualiAccountingDocumentFormBase
implements CapitalAssetEditable

This class is the action form for Cash Receipts.

See Also:
Serialized Form

Field Summary
protected  List baselineChecks
           
protected static String CAN_PRINT_COVERSHEET_SIG_STR
           
protected  CapitalAssetInformation capitalAssetInformation
           
protected  String checkEntryMode
           
protected  List checkEntryModes
           
protected  org.kuali.rice.kns.util.KualiDecimal checkTotal
           
protected  Check newCheck
           
protected static long serialVersionUID
           
 
Fields inherited from class org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase
editableAccounts, forcedLookupOptionalFields, hideDetails, LOG, newSourceLine, newTargetLine, sourceFile, targetFile
 
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
forcedReadOnlyFields
 
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
adHocActionRequestCodes, attachmentFile, documentActions, editingMode, suppressAllButtons
 
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiForm
extraButtons
 
Fields inherited from class org.kuali.rice.kns.web.struts.pojo.PojoFormBase
requiredNonEditableProperties
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
CashReceiptForm()
          Constructs a CashReceiptForm.java.
 
Method Summary
 Check getBaselineCheck(int index)
          Implementation creates empty Checks as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.
 List getBaselineChecks()
           
 CapitalAssetInformation getCapitalAssetInformation()
          Gets the capitalAssetInformation attribute.
 String getCashDrawerStatusMessage()
          This method will build out a message in the case the document is ENROUTE and the cash drawer is closed.
 CashReceiptDocument getCashReceiptDocument()
           
 String getCheckEntryMode()
           
 List getCheckEntryModes()
           
 org.kuali.rice.kns.util.KualiDecimal getCheckTotal()
           
protected  String getDefaultDocumentTypeName()
           
protected  List<String> getExcludedmethodToCall()
          get the names of the methods to call that can be excluded from the "be used" check.
 String getFinancialDocumentStatusMessage()
          Gets the financialDocumentStatusMessage which is dependent upon document state.
 Check getNewCheck()
           
 boolean hasBaselineCheck(int index)
           
 boolean isCheckEntryDetailMode()
           
 boolean isCoverSheetPrintingAllowed()
          determines if the CashReceiptDocument is in a state that allows printing of the cover sheet.
 void populate(javax.servlet.http.HttpServletRequest request)
          Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading the two select lists on the page.
 void setBaselineChecks(List baselineChecks)
          Sets the current List of baseline checks to the given List
 void setCapitalAssetInformation(CapitalAssetInformation capitalAssetInformation)
          Sets the capitalAssetInformation attribute.
 void setCheckEntryMode(String checkEntryMode)
           
 void setCheckTotal(org.kuali.rice.kns.util.KualiDecimal checkTotal)
           
 void setNewCheck(Check newCheck)
           
 
Methods inherited from class org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase
createNewSourceAccountingLine, createNewTargetAccountingLine, customInitMaxUploadSizes, getAccountingLineImportInstructionsUrl, getCurrencyFormattedSourceTotal, getCurrencyFormattedTargetTotal, getEditableAccounts, getFinancialDocument, getForcedLookupOptionalFields, getHideDetails, getNewSourceLine, getNewTargetLine, getSourceFile, getTargetFile, harvestAccountingLines, isHideDetails, populateAccountingLine, populateAccountingLines, populateAccountingLinesForResponse, populateSourceAccountingLine, populateTargetAccountingLine, repopulateOverrides, setEditableAccounts, setForcedLookupOptionalFields, setHideDetails, setNewSourceLine, setNewTargetLine, setSourceFile, setTargetFile, shouldMethodToCallParameterBeUsed
 
Methods inherited from class org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentFormBase
extendDocInfoToThreeColumns, generateErrorCorrectionButton, getExtraButtons, populateHeaderFields
 
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
discoverDocumentTypeName, formatReversalDate, getForcedReadOnlyFields, getTransactionalDocument, instantiateTransactionalDocumentByDocumentTypeName, populateEmptyMultiSelect, populateFalseCheckboxes, populationSpecialEmptyFields, setForcedReadOnlyFields
 
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
addRequiredNonEditableProperties, buildHtmlLink, getAdditionalScriptFile, getAdditionalScriptFiles, getAdHocActionRequestCodes, getAdHocRoutePerson, getAdHocRoutePersons, getAdHocRouteWorkgroup, getAdHocRouteWorkgroups, getAnnotation, getAttachmentFile, getBoNotes, getCommand, getDocId, getDocNum, getDocTypeName, getDocument, getDocumentActions, getDocumentHandlerUrl, getEditingMode, getErrorMapFromPreviousRequest, getFormKey, getInitiator, getInitiatorNetworkId, getMessageMapFromPreviousRequest, getNewAdHocRoutePerson, getNewAdHocRouteWorkgroup, getNewNote, getPersonInquiryUrlLink, getStandardHeaderFields, getWorkflowDocument, hasDocumentId, initializeHeaderNavigationTabs, instantiateDocument, isDocumentEnRoute, isFormDocumentInitialized, isHasWorkflowDocument, isReturnToActionList, isSuppressAllButtons, isUserDocumentInitiator, reset, setAdditionalScriptFile, setAdditionalScriptFiles, setAdHocActionRequestCodes, setAdHocRoutePersons, setAdHocRouteWorkgroups, setAnnotation, setAttachmentFile, setBoNotes, setCommand, setDerivedValuesOnForm, setDocId, setDocNum, setDocTypeName, setDocument, setDocumentActions, setEditingMode, setErrorMapFromPreviousRequest, setFormKey, setMessageMapFromPreviousRequest, setNewAdHocRoutePerson, setNewAdHocRouteWorkgroup, setNewNote, setReturnToActionList, setSuppressAllButtons, shouldPropertyBePopulatedInForm, validate
 
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiForm
clearEditablePropertyInformation, getActionFormUtilMap, getAnchor, getBackLocation, getCurrentTabIndex, getDisplayedErrors, getDisplayedInfo, getDisplayedWarnings, getDocInfo, getExtraButton, getFieldNameToFocusOnAfterSubmit, getHeaderNavigationTabs, getMethodToCall, getNavigationCss, getNextArbitrarilyHighIndex, getNumColumns, getRefreshCaller, getTabState, getTabStates, incrementTabIndex, isFieldLevelHelpEnabled, populateBackLocation, populateFieldLevelHelpEnabled, reset, retrieveFormValueForLookupInquiryParameters, setActionFormUtilMap, setAnchor, setBackLocation, setCurrentTabIndex, setDocInfo, setExtraButton, setExtraButtons, setFieldLevelHelpEnabled, setFieldNameToFocusOnAfterSubmit, setHeaderNavigationTabs, setMethodToCall, setNavigationCss, setNumColumns, setRefreshCaller, setTabStates
 
Methods inherited from class org.kuali.rice.kns.web.struts.pojo.PojoFormBase
addMaxUploadSize, cacheUnconvertedValue, copyPopulateEditablePropertiesToActionEditableProperties, formatterClassForKeypath, formatValue, getActionEditablePropertiesGuid, getEditableProperties, getFormatter, getFormatterTypes, getIsNewForm, getMaxUploadSizes, getMethodToCallsToBypassSessionRetrievalForGETRequests, getParameter, getParameterValues, getPopulateEditableProperties, getPopulateEditablePropertiesGuid, getPropertyType, getRequiredNonEditableProperties, getStrutsActionMappingScope, getUnconvertedValues, getUnknownKeys, initMaxUploadSizes, isPropertyEditable, isPropertyNonEditableButRequired, populateForProperty, postprocessRequestParameters, processValidationFail, registerEditableProperty, registerIsNewForm, registerRequiredNonEditableProperty, registerStrutsActionMappingScope, setActionEditablePropertiesGuid, setFormatterType, setFormatterTypes, setPopulateEditablePropertiesGuid, setUnconvertedValues
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

CAN_PRINT_COVERSHEET_SIG_STR

protected static final String CAN_PRINT_COVERSHEET_SIG_STR
See Also:
Constant Field Values

newCheck

protected Check newCheck

checkTotal

protected org.kuali.rice.kns.util.KualiDecimal checkTotal

checkEntryMode

protected String checkEntryMode

checkEntryModes

protected List checkEntryModes

baselineChecks

protected List baselineChecks

capitalAssetInformation

protected CapitalAssetInformation capitalAssetInformation
Constructor Detail

CashReceiptForm

public CashReceiptForm()
Constructs a CashReceiptForm.java.

Method Detail

getDefaultDocumentTypeName

protected String getDefaultDocumentTypeName()
Overrides:
getDefaultDocumentTypeName in class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase

populate

public void populate(javax.servlet.http.HttpServletRequest request)
Description copied from class: KualiAccountingDocumentFormBase
Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading the two select lists on the page.

Specified by:
populate in interface org.kuali.rice.kns.web.struts.pojo.PojoForm
Overrides:
populate in class KualiAccountingDocumentFormBase
See Also:
PojoForm.populate(javax.servlet.http.HttpServletRequest)

getCashReceiptDocument

public CashReceiptDocument getCashReceiptDocument()
Returns:
CashReceiptDocument

getNewCheck

public Check getNewCheck()
Returns:
Check

setNewCheck

public void setNewCheck(Check newCheck)
Parameters:
newCheck -

setCheckTotal

public void setCheckTotal(org.kuali.rice.kns.util.KualiDecimal checkTotal)
Parameters:
checkTotal -

getCheckTotal

public org.kuali.rice.kns.util.KualiDecimal getCheckTotal()
Returns:
KualiDecimal

getCheckEntryModes

public List getCheckEntryModes()
Returns:
List of LabelValueBeans representing all available check entry modes

getCheckEntryMode

public String getCheckEntryMode()
Returns:
String

setCheckEntryMode

public void setCheckEntryMode(String checkEntryMode)
Parameters:
checkEntryMode -

isCheckEntryDetailMode

public boolean isCheckEntryDetailMode()
Returns:
boolean

getBaselineChecks

public List getBaselineChecks()
Returns:
current List of baseline checks for use in update detection

setBaselineChecks

public void setBaselineChecks(List baselineChecks)
Sets the current List of baseline checks to the given List

Parameters:
baselineChecks -

hasBaselineCheck

public boolean hasBaselineCheck(int index)
Parameters:
index -
Returns:
true if a baselineCheck with the given index exists

getBaselineCheck

public Check getBaselineCheck(int index)
Implementation creates empty Checks as a side-effect, so that Struts' efforts to set fields of lines which haven't been created will succeed rather than causing a NullPointerException.

Parameters:
index -
Returns:
baseline Check at the given index

getFinancialDocumentStatusMessage

public String getFinancialDocumentStatusMessage()
Gets the financialDocumentStatusMessage which is dependent upon document state.

Returns:
Returns the financialDocumentStatusMessage.

getCashDrawerStatusMessage

public String getCashDrawerStatusMessage()
This method will build out a message in the case the document is ENROUTE and the cash drawer is closed.

Returns:
String

isCoverSheetPrintingAllowed

public boolean isCoverSheetPrintingAllowed()
determines if the CashReceiptDocument is in a state that allows printing of the cover sheet.

Returns:
boolean

getCapitalAssetInformation

public CapitalAssetInformation getCapitalAssetInformation()
Description copied from interface: CapitalAssetEditable
Gets the capitalAssetInformation attribute.

Specified by:
getCapitalAssetInformation in interface CapitalAssetEditable
Returns:
Returns the capitalAssetInformation.
See Also:
CapitalAssetEditable.getCapitalAssetInformation()

setCapitalAssetInformation

public void setCapitalAssetInformation(CapitalAssetInformation capitalAssetInformation)
Description copied from interface: CapitalAssetEditable
Sets the capitalAssetInformation attribute.

Specified by:
setCapitalAssetInformation in interface CapitalAssetEditable
See Also:
CapitalAssetEditable.setCapitalAssetInformation(org.kuali.kfs.fp.businessobject.CapitalAssetInformation)

getExcludedmethodToCall

protected List<String> getExcludedmethodToCall()
Description copied from class: KualiAccountingDocumentFormBase
get the names of the methods to call that can be excluded from the "be used" check.

Overrides:
getExcludedmethodToCall in class KualiAccountingDocumentFormBase
Returns:
the names of the methods to call that can be excluded from the "be used" check
See Also:
KualiAccountingDocumentFormBase.getExcludedmethodToCall()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.