PlVcosQuery

PlVcosQuery

Superclass
Model

Subclasses
none

Referenced By
none

This class mimics the functions of QueryObject and extends its capabilities to meet the
special needs of handling PlVcos and PlVcosBudget tables in PnlVariableCostsValues.
A special class is needed for the following reasons:
1.  There should be a row of each table for each month.  If there isn't, a new row is
automatically created for each month that is not in the database.
2.  There should be a field called pnlEndingInventory, which does not exist in the above
two tables.  It can be obtained by getting the begInventory of the following month.
3.  The values returned are sums of all the months combined, except for begInventory, which
is the begInventory of the first month, and pnlEndingInventory, which is the begInventory
of the following month.
4.  The user should be able to change the tables.  In other words, it should have the
functionality to allow the user to save the data to the database.

Therefore the values of the query are changed so that a field is added and the correct
result calculated according to the above formulae.

Instance Variables:
plVcosCollection <SortedCollection of PlVcos or PlVcosBudget> The collection of the results of querying for the plVcos rows.
query <QueryObject> the query for obtaining the collection. result <Dictionary of String->Number> The results to be returned if asked for the values for each field name.
state <CatState>
table <Symbol> the name of the object

Contacts

Potential problems with this comment:
	Instance variable commented but not in class definition - 
		state
	Instance variable not commented - 
		selectionCriterion, result