|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.rules.PromptBeforeValidationBase
org.kuali.kfs.fp.document.validation.impl.DisbursementVoucherDocumentPreRules
public class DisbursementVoucherDocumentPreRules
Checks warnings and prompt conditions for dv document.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
org.kuali.rice.kns.rules.PromptBeforeValidationBase.ContextSession |
| Nested classes/interfaces inherited from interface org.kuali.kfs.fp.document.DisbursementVoucherConstants |
|---|
DisbursementVoucherConstants.DocumentStatusCodes, DisbursementVoucherConstants.DvPdpExtractGroup, DisbursementVoucherConstants.PaymentReasonCodes, DisbursementVoucherConstants.RouteLevelNames, DisbursementVoucherConstants.TabByReasonCode, DisbursementVoucherConstants.TabKey |
| Field Summary |
|---|
| Fields inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
buttonClicked, event, form, LOG, question |
| Constructor Summary | |
|---|---|
DisbursementVoucherDocumentPreRules()
|
|
| Method Summary | |
|---|---|
protected boolean |
allowTurningOnOfSpecialHandling(DisbursementVoucherDocument dvDocument)
Allows the automatic turning on of special handling indicator - which will not be allowed at the Campus route level |
protected boolean |
checkBankCodeActive(DisbursementVoucherDocument dvDocument)
If bank specification is enabled, prompts user to use the continuation bank code when the given bank code is inactive |
protected boolean |
checkForeignDraftTabState(DisbursementVoucherDocument dvDocument)
Returns true if the state of all the tabs is valid, false otherwise. |
protected boolean |
checkNonEmployeeTravelTabState(DisbursementVoucherDocument dvDocument)
This method checks non-employee travel tab state is valid |
protected void |
checkSpecialHandlingIndicator(DisbursementVoucherDocument dvDocument)
If the special handling name and address 1 fields have value, this will mark the special handling indicator for the user. |
protected boolean |
checkWireTransferTabState(DisbursementVoucherDocument dvDocument)
This method returns true if the state of all the tabs is valid, false otherwise. |
protected void |
clearForeignDraftValues(DisbursementVoucherWireTransfer dvForeignDraft)
This method sets foreign currency type code and name to null for passed in disbursement foreign draft object |
protected void |
clearWireTransferValues(DisbursementVoucherWireTransfer dvWireTransfer)
This method sets all values in the passed in disbursement wire transfer object to null |
boolean |
doPrompts(org.kuali.rice.kns.document.Document document)
Executes pre-rules for Disbursement Voucher Document |
protected String |
getValidPaymentReasonsAsString(List<String> validPaymentReasonCodes)
put the valid payment reason codes along with their description together |
protected boolean |
hasForeignDraftValues(DisbursementVoucherWireTransfer dvForeignDraft)
Returns true if foreign draft tab contains any data in any fields. |
protected boolean |
hasNonEmployeeTravelGeneralValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
Returns true if any values are not blank on non employee travel tab |
protected boolean |
hasNonEmployeeTravelPerDiemValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
Returns true if non employee travel tab contains data in any of the fields in the per diem section |
protected boolean |
hasNonEmployeeTravelPersonalVehicleValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
Returns true if non employee travel tab contains data in any of the fields in the personal vehicle section |
protected boolean |
hasNonEmployeeTravelValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
Returns true if non-employee travel tab contains any data in any of its fields |
protected boolean |
hasWireTransferValues(DisbursementVoucherWireTransfer dvWireTransfer)
Returns true if wire transfer tab contains any data in any fields. |
| Methods inherited from class org.kuali.rice.kns.rules.PromptBeforeValidationBase |
|---|
abortRulesCheck, askOrAnalyzeYesNoQuestion, processPrompts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisbursementVoucherDocumentPreRules()
| Method Detail |
|---|
public boolean doPrompts(org.kuali.rice.kns.document.Document document)
doPrompts in class org.kuali.rice.kns.rules.PromptBeforeValidationBasedocument - submitted document
org.kuali.rice.kns.rules.PromptBeforeValidationBase#doRules(org.kuali.rice.kns.document.MaintenanceDocument)protected void checkSpecialHandlingIndicator(DisbursementVoucherDocument dvDocument)
dvDocument - submitted disbursement voucher documentprotected boolean allowTurningOnOfSpecialHandling(DisbursementVoucherDocument dvDocument)
dvDocument - the document to allow turning on of special handling for
protected boolean checkNonEmployeeTravelTabState(DisbursementVoucherDocument dvDocument)
dvDocument - submitted disbursement voucher document
protected boolean hasNonEmployeeTravelValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
dvNonEmplTrav - disbursement voucher non employee travel object
protected boolean hasNonEmployeeTravelGeneralValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
dvNonEmplTrav - disbursement voucher non employee travel object
protected boolean hasNonEmployeeTravelPerDiemValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
dvNonEmplTrav - disbursement voucher non employee travel object
protected boolean hasNonEmployeeTravelPersonalVehicleValues(DisbursementVoucherNonEmployeeTravel dvNonEmplTrav)
dvNonEmplTrav - disbursement voucher non employee travel object
protected boolean checkForeignDraftTabState(DisbursementVoucherDocument dvDocument)
dvDocument - submitted disbursemtn voucher document
protected boolean hasForeignDraftValues(DisbursementVoucherWireTransfer dvForeignDraft)
dvForeignDraft - disbursement foreign draft object
protected void clearForeignDraftValues(DisbursementVoucherWireTransfer dvForeignDraft)
dvForeignDraft - disbursement foreign draft objectprotected boolean checkWireTransferTabState(DisbursementVoucherDocument dvDocument)
dvDocument - submitted disbursement voucher document
protected boolean checkBankCodeActive(DisbursementVoucherDocument dvDocument)
dvDocument - document containing bank code
protected boolean hasWireTransferValues(DisbursementVoucherWireTransfer dvWireTransfer)
dvWireTransfer - disbursement voucher wire transfer
protected void clearWireTransferValues(DisbursementVoucherWireTransfer dvWireTransfer)
dvWireTransfer - protected String getValidPaymentReasonsAsString(List<String> validPaymentReasonCodes)
validPaymentReasonCodes - the given valid payment reason codes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||