Java Doc for VoucherForm.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » financial » web » struts » form » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.module.financial.web.struts.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.kfs.web.struts.form.KualiAccountingDocumentFormBase
   org.kuali.module.financial.web.struts.form.VoucherForm

All known Subclasses:   org.kuali.module.financial.web.struts.form.AuxiliaryVoucherForm,  org.kuali.module.financial.web.struts.form.JournalVoucherForm,
VoucherForm
public class VoucherForm extends KualiAccountingDocumentFormBase (Code)
This class is the Struts specific form object that works in conjunction with the pojo utilities to build the UI for Voucher Document instances. This class is unique in that it leverages a helper data structure called the VoucherAccountingLineHelper because Voucher documents, under some/none conditions, presents the user with a debit and credit column for amount entry. New accounting lines use specific credit and debit amount fields b/c the new line is explicitly known; however, already existing accounting lines need to exist within a list with ordering that matches the accounting lines source list.


Field Summary
protected  StringselectedAccountingPeriod
    

Constructor Summary
public  VoucherForm()
    

Method Summary
public  AccountingPeriodgetAccountingPeriod()
    
public  ListgetAccountingPeriods()
     This method retrieves the list of valid accounting periods to display.
public  StringgetCurrencyFormattedCreditTotal()
     This method retrieves the voucher's credit total formatted as currency.
public  StringgetCurrencyFormattedDebitTotal()
     This method retrieves the voucher's debit total formatted as currency.
public  StringgetCurrencyFormattedTotal()
     This method retrieves the voucher's total formatted as currency.
public  StringgetFormattedReversalDate()
     This method returns the reversal date in the format MMM d, yyyy.
public  KualiDecimalgetNewSourceLineCredit()
     This method retrieves the credit amount of the new accounting line that was added.
public  KualiDecimalgetNewSourceLineDebit()
     This method retrieves the debit amount of the new accounting line that was added.
public  StringgetSelectedAccountingPeriod()
     This method retrieves the selectedAccountingPeriod.
public  VoucherDocumentgetVoucherDocument()
    
public  VoucherAccountingLineHelpergetVoucherLineHelper(int index)
     This method retrieves the proper voucher helper line data structure at the passed in list index so that it matches up with the correct accounting line at that index.
public  ListgetVoucherLineHelpers()
     Accessor to the list of VoucherAccountingLineHelper instances.
public  voidpopulate(HttpServletRequest request)
     Overrides the parent to call super.populate and then to call the two methods that are specific to loading the two select lists on the page.
protected  voidpopulateAccountingPeriodListForRendering()
     This method retrieves all of the "open for posting" accounting periods and prepares them to be rendered in a dropdown UI component.
protected  voidpopulateCreditAndDebitAmounts()
     If the balance type is an offset generation balance type, then the user is able to enter the amount as either a debit or a credit, otherwise, they only need to deal with the amount field in this case we always need to update the underlying bo so that the debit/credit code along with the amount, is properly set.
protected  voidpopulateSelectedVoucherAccountingPeriod()
     This method parses the accounting period value from the form and builds a basic AccountingPeriod object so that the voucher is properly persisted with the accounting period set for it.
public  voidpopulateSourceAccountingLine(SourceAccountingLine sourceLine)
     Override the parent, to push the chosen accounting period and balance type down into the source accounting line object.
protected  booleanprocessDebitAndCreditForAllSourceLines()
     This method iterates through all of the source accounting lines associated with the voucher doc and accounts for any changes to the credit and debit amounts, populate the source lines' amount and debit/credit code fields appropriately, so that they can be persisted accurately.
protected  booleanprocessDebitAndCreditForNewSourceLine()
     This method uses the newly entered debit and credit amounts to populate the new source line that is to be added to the voucher document.
protected  booleanprocessDebitAndCreditForSourceLine(SourceAccountingLine sourceLine, KualiDecimal debitAmount, KualiDecimal creditAmount, int index)
     This method checks the debit and credit attributes passed in, figures out which one has a value, and sets the source accounting line's amount and debit/credit attribute appropriately.
public  voidsetAccountingPeriods(List accountingPeriods)
     This method sets the list of valid accounting periods to display.
public  voidsetNewSourceLineCredit(KualiDecimal newSourceLineCredit)
     This method sets the credit amount of the new accounting line that was added.
public  voidsetNewSourceLineDebit(KualiDecimal newSourceLineDebit)
     This method sets the debit amount of the new accounting line that was added.
public  voidsetSelectedAccountingPeriod(String selectedAccountingPeriod)
     This method sets the selectedAccountingPeriod.
public  voidsetVoucherLineHelpers(List voucherLineHelpers)
     This method sets the list of helper lines for the form.
protected  booleanvalidateCreditAndDebitAmounts(KualiDecimal debitAmount, KualiDecimal creditAmount, int index)
     This method checks to make sure that there isn't a value in both the credit and debit columns for a given accounting line.

Field Detail
selectedAccountingPeriod
protected String selectedAccountingPeriod(Code)




Constructor Detail
VoucherForm
public VoucherForm()(Code)
Supplements a constructor for this voucher class




Method Detail
getAccountingPeriod
public AccountingPeriod getAccountingPeriod()(Code)
AccountingPeriod associated with the currently selected period



getAccountingPeriods
public List getAccountingPeriods()(Code)
This method retrieves the list of valid accounting periods to display. List



getCurrencyFormattedCreditTotal
public String getCurrencyFormattedCreditTotal()(Code)
This method retrieves the voucher's credit total formatted as currency. String



getCurrencyFormattedDebitTotal
public String getCurrencyFormattedDebitTotal()(Code)
This method retrieves the voucher's debit total formatted as currency. String



getCurrencyFormattedTotal
public String getCurrencyFormattedTotal()(Code)
This method retrieves the voucher's total formatted as currency. String



getFormattedReversalDate
public String getFormattedReversalDate()(Code)
This method returns the reversal date in the format MMM d, yyyy. String



getNewSourceLineCredit
public KualiDecimal getNewSourceLineCredit()(Code)
This method retrieves the credit amount of the new accounting line that was added. KualiDecimal



getNewSourceLineDebit
public KualiDecimal getNewSourceLineDebit()(Code)
This method retrieves the debit amount of the new accounting line that was added. KualiDecimal



getSelectedAccountingPeriod
public String getSelectedAccountingPeriod()(Code)
This method retrieves the selectedAccountingPeriod. String



getVoucherDocument
public VoucherDocument getVoucherDocument()(Code)
Helper method to make casting easier VoucherDocument



getVoucherLineHelper
public VoucherAccountingLineHelper getVoucherLineHelper(int index)(Code)
This method retrieves the proper voucher helper line data structure at the passed in list index so that it matches up with the correct accounting line at that index.
Parameters:
  index - VoucherAccountingLineHelper



getVoucherLineHelpers
public List getVoucherLineHelpers()(Code)
Accessor to the list of VoucherAccountingLineHelper instances. This method retrieves the list of helper line objects for the form. List



populate
public void populate(HttpServletRequest request)(Code)
Overrides the parent to call super.populate and then to call the two methods that are specific to loading the two select lists on the page. In addition, this also makes sure that the credit and debit amounts are filled in for situations where validation errors occur and the page reposts.
See Also:   org.kuali.core.web.struts.pojo.PojoForm.populate(javax.servlet.http.HttpServletRequest)



populateAccountingPeriodListForRendering
protected void populateAccountingPeriodListForRendering()(Code)
This method retrieves all of the "open for posting" accounting periods and prepares them to be rendered in a dropdown UI component.



populateCreditAndDebitAmounts
protected void populateCreditAndDebitAmounts()(Code)
If the balance type is an offset generation balance type, then the user is able to enter the amount as either a debit or a credit, otherwise, they only need to deal with the amount field in this case we always need to update the underlying bo so that the debit/credit code along with the amount, is properly set.



populateSelectedVoucherAccountingPeriod
protected void populateSelectedVoucherAccountingPeriod()(Code)
This method parses the accounting period value from the form and builds a basic AccountingPeriod object so that the voucher is properly persisted with the accounting period set for it.



populateSourceAccountingLine
public void populateSourceAccountingLine(SourceAccountingLine sourceLine)(Code)
Override the parent, to push the chosen accounting period and balance type down into the source accounting line object. In addition, check the balance type to see if it's the "External Encumbrance" balance and alter the encumbrance update code on the accounting line appropriately.
See Also:   org.kuali.core.web.struts.form.KualiTransactionalDocumentFormBase.populateSourceAccountingLine(org.kuali.core.bo.SourceAccountingLine)



processDebitAndCreditForAllSourceLines
protected boolean processDebitAndCreditForAllSourceLines()(Code)
This method iterates through all of the source accounting lines associated with the voucher doc and accounts for any changes to the credit and debit amounts, populate the source lines' amount and debit/credit code fields appropriately, so that they can be persisted accurately. This accounts for the fact that users may change the amounts and/or flip-flop the credit debit amounts on any accounting line after the initial add of the accounting line. boolean



processDebitAndCreditForNewSourceLine
protected boolean processDebitAndCreditForNewSourceLine()(Code)
This method uses the newly entered debit and credit amounts to populate the new source line that is to be added to the voucher document. boolean True if the processing was successful, false otherwise.



processDebitAndCreditForSourceLine
protected boolean processDebitAndCreditForSourceLine(SourceAccountingLine sourceLine, KualiDecimal debitAmount, KualiDecimal creditAmount, int index)(Code)
This method checks the debit and credit attributes passed in, figures out which one has a value, and sets the source accounting line's amount and debit/credit attribute appropriately. It assumes that if it finds something in the debit field, it's a debit entry, otherwise it's a credit entry. If a user enters a value into both fields, it will assume the debit value, then when the br eval framework applies the "add" rule, it will bomb out. If first checks to make sure that there isn't a value in both the credit and debit columns.
Parameters:
  sourceLine -
Parameters:
  debitAmount -
Parameters:
  creditAmount -
Parameters:
  index - if -1, then its a new line, if not -1 then it's an existing line boolean True if the processing was successful, false otherwise.



setAccountingPeriods
public void setAccountingPeriods(List accountingPeriods)(Code)
This method sets the list of valid accounting periods to display.
Parameters:
  accountingPeriods -



setNewSourceLineCredit
public void setNewSourceLineCredit(KualiDecimal newSourceLineCredit)(Code)
This method sets the credit amount of the new accounting line that was added.
Parameters:
  newSourceLineCredit -



setNewSourceLineDebit
public void setNewSourceLineDebit(KualiDecimal newSourceLineDebit)(Code)
This method sets the debit amount of the new accounting line that was added.
Parameters:
  newSourceLineDebit -



setSelectedAccountingPeriod
public void setSelectedAccountingPeriod(String selectedAccountingPeriod)(Code)
This method sets the selectedAccountingPeriod.
Parameters:
  selectedAccountingPeriod -



setVoucherLineHelpers
public void setVoucherLineHelpers(List voucherLineHelpers)(Code)
This method sets the list of helper lines for the form.
Parameters:
  voucherLineHelpers -



validateCreditAndDebitAmounts
protected boolean validateCreditAndDebitAmounts(KualiDecimal debitAmount, KualiDecimal creditAmount, int index)(Code)
This method checks to make sure that there isn't a value in both the credit and debit columns for a given accounting line.
Parameters:
  creditAmount -
Parameters:
  debitAmount -
Parameters:
  index - if -1, it's a new line, if not -1, then its an existing line boolean False if both the credit and debit fields have a value, true otherwise.



Fields inherited from org.kuali.kfs.web.struts.form.KualiAccountingDocumentFormBase
protected FormFile sourceFile(Code)(Java Doc)
protected FormFile targetFile(Code)(Java Doc)

Methods inherited from org.kuali.kfs.web.struts.form.KualiAccountingDocumentFormBase
protected SourceAccountingLine createNewSourceAccountingLine(AccountingDocument financialDocument)(Code)(Java Doc)
protected TargetAccountingLine createNewTargetAccountingLine(AccountingDocument financialDocument)(Code)(Java Doc)
protected void customInitMaxUploadSizes()(Code)(Java Doc)
public Map getAccountingLineEditableFields()(Code)(Java Doc)
public String getAccountingLineImportInstructionsUrl()(Code)(Java Doc)
public SourceAccountingLine getBaselineSourceAccountingLine(int index)(Code)(Java Doc)
public List getBaselineSourceAccountingLines()(Code)(Java Doc)
public TargetAccountingLine getBaselineTargetAccountingLine(int index)(Code)(Java Doc)
public List getBaselineTargetAccountingLines()(Code)(Java Doc)
public String getCurrencyFormattedSourceTotal()(Code)(Java Doc)
public String getCurrencyFormattedTargetTotal()(Code)(Java Doc)
public Map getEditableAccounts()(Code)(Java Doc)
public AccountingDocument getFinancialDocument()(Code)(Java Doc)
public Map getForcedLookupOptionalFields()(Code)(Java Doc)
public boolean getHideDetails()(Code)(Java Doc)
public SourceAccountingLine getNewSourceLine()(Code)(Java Doc)
public TargetAccountingLine getNewTargetLine()(Code)(Java Doc)
public FormFile getSourceFile()(Code)(Java Doc)
public AccountingLineDecorator getSourceLineDecorator(int index)(Code)(Java Doc)
public List<AccountingLineDecorator> getSourceLineDecorators()(Code)(Java Doc)
public List<AccountingLineDecorator> getSourceLineDecorators(int minSize)(Code)(Java Doc)
public FormFile getTargetFile()(Code)(Java Doc)
public AccountingLineDecorator getTargetLineDecorator(int index)(Code)(Java Doc)
public List<AccountingLineDecorator> getTargetLineDecorators()(Code)(Java Doc)
public List<AccountingLineDecorator> getTargetLineDecorators(int minSize)(Code)(Java Doc)
public boolean hasBaselineSourceAccountingLine(int index)(Code)(Java Doc)
public boolean hasBaselineTargetAccountingLine(int index)(Code)(Java Doc)
public boolean isHideDetails()(Code)(Java Doc)
public void populate(HttpServletRequest request)(Code)(Java Doc)
protected void populateAccountingLines()(Code)(Java Doc)
public void populateSourceAccountingLine(SourceAccountingLine sourceLine)(Code)(Java Doc)
public void populateTargetAccountingLine(TargetAccountingLine targetLine)(Code)(Java Doc)
public void refreshEditableAccounts()(Code)(Java Doc)
public void resetSourceLineDecorators(int size)(Code)(Java Doc)
public void resetTargetLineDecorators(int size)(Code)(Java Doc)
public void setAccountingLineEditableFields(Map editableFields)(Code)(Java Doc)
public void setBaselineSourceAccountingLines(List baselineSourceAccountingLines)(Code)(Java Doc)
public void setBaselineTargetAccountingLines(List baselineTargetAccountingLines)(Code)(Java Doc)
public void setEditableAccounts(Map editableAccounts)(Code)(Java Doc)
public void setForcedLookupOptionalFields(Map fieldMap)(Code)(Java Doc)
public void setHideDetails(boolean hideDetails)(Code)(Java Doc)
public void setNewSourceLine(SourceAccountingLine newIncomeLine)(Code)(Java Doc)
public void setNewTargetLine(TargetAccountingLine newExpenseLine)(Code)(Java Doc)
public void setSourceFile(FormFile sourceFile)(Code)(Java Doc)
public void setSourceLineDecorators(List<AccountingLineDecorator> sourceLineDecorators)(Code)(Java Doc)
public void setTargetFile(FormFile targetFile)(Code)(Java Doc)
public void setTargetLineDecorators(List<AccountingLineDecorator> targetLineDecorators)(Code)(Java Doc)
protected void useDocumentAuthorizer(DocumentAuthorizer documentAuthorizer)(Code)(Java Doc)

w___w___w_.__j___a__v_a2_s__.__c_o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.