Link to: header | tables
directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
This class manages property rental unit tables for the Goldenseal accounting software,
property management software and rental
property management software.
Comments
CRentalUnitTable
the table for rental units, in real estate accounts. Each rental
unit takes up one line on the table. Note that this table is different
than most member tables, because the data is stored in separate objects
rather than via a member array. This table is a key part of the Goldenseal
Property Management Software.
SUPERCLASS = CMemberTable
Constructor
/*********************************************************************************
constructor
*********************************************************************************/
CRentalUnitTable::CRentalUnitTable(const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo)
: CMemberTable(inPaneInfo, inViewInfo)
{
}
Source Code
/*********************************************************************************
FillNewRowCells
fill in default values
*********************************************************************************/
void CRentalUnitTable::FillNewRowCells(const TableIndexT row)
{
THE_SUPERCLASS::FillNewRowCells(row);
SetCellText(row, CRealEstateAccount::col_unitnumber, row);
}
/*********************************************************************************
HandleNonEditCellDblClicked TCS 5/8/00
user has double-clicked in a non-editable cell. Show the rental unit
*********************************************************************************/
void CRentalUnitTable::HandleNonEditCellDblClicked(const TableCellT &inCell)
{
DBid itemID = GetCellValue(ROW(inCell), CRealEstateAccount::col_unitid);
if (itemID)
{
UInt8 success = CListEditor::EditOneItem(id_RentalUnit, itemID);
if (success == save_success)
{
CRealEstateViewer *viewer = TCS_SAFE_CAST(mRecordViewer, CRealEstateViewer);
if (viewer)
viewer->UpdateRentalUnitTable();
}
}
else
ReportMissingObject(id_RentalUnit, itemID);
}
|