VehicleSummaryReport

VehicleSummaryReport

Superclass
SummaryReportModel

Subclasses
none

Referenced By
InternalTransfersValues

This class is used to present a summary report based upon vehicles. The main difference
between this and regular summary reports is that this class is developed with Vehicles in
mind, thus giving the user the ability to view detailed information for a selected model
number.

It has been customized to handle either reporting on models by marketing companies or
reporting on models by manufacturers. It is currently being used for Net Sales and
Variable Costs summary reports.  The primary thing that was done here was write the
supporting methods that takes the current reportQuery and builds up what you want the
SummaryReportView to be.  It still uses the SummaryReportView as is but we build up the
2-D list, labels etc.

You open this by creating a new instance of it and initializing the baseQuery,
reportQuery, state, and repCols and then sending the openReport method as shown below:
		(VehicleSummaryReport new
				baseQuery: tmpBaseQuery
				reportQuery: (self
						reportTableQueryWith: reportQuery
						selectionExpression: 
							(self createSelectionExpressionFor: reportQuery
								 selectingResult: selectedVehicles selectedModels)
						mkId: selectedVehicles selectedMktCo
						allmkt: tempBox marketingCompanies
						mfgSrc: selectedVehicles selectedMfgSrc)
				state: state
				repCols: (repCols isEmpty
						ifTrue: [marketCos remove: 'OTHER' ifAbsent: [marketCos]; yourself]
						ifFalse: [repCols])) openReport.

Instance Variables
reportQuery <QueryObject> [This is the query used for the actual report]
aSelectionInList <SelectionInList> [This is the collection of values that are actually being displayed in the report]
repCols <OrderedCollection of String> [This is a collection of the columns being presented in the report] Class Variables none Contacts yoder@cat.ncsa.uiuc.edu