Link to: header | record viewer
directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
Comments
CEscrowAccountViewer
This class manages escrow accounts for the Goldenseal accounting software,
small business management software, construction
project management software and
construction estimating software.
a viewer for escrow accounts. We handle checkbooks.
SUPERCLASS = CAccountViewer
Constructor
/*********************************************************************************
constructor from structs
*********************************************************************************/
CEscrowAccountViewer::CEscrowAccountViewer(const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo)
: THE_SUPERCLASS(inPaneInfo, inViewInfo)
{
}
Source Code
/*********************************************************************************
GetReadyToUpdateFields split TCS 4/17/00
Do prep work before updating fields
*********************************************************************************/
void CEscrowAccountViewer::GetReadyToUpdateFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject)
{
// let's set up menu lists for account cv
DBClass accountClass = 0;
viewerObject->GetMemberValue(tag_accounttype, type_objclass, &accountClass);
if (accountClass)
SetCVClassID(tag_account, accountClass);
// the superclass handles basic field updating
THE_SUPERCLASS::GetReadyToUpdateFields(creationMethod, viewerObject);
}
/*********************************************************************************
FinishUpdatingFields TCS 5/5/03
Finish prep work after updating fields from an object, but before displaying them
*********************************************************************************/
void CEscrowAccountViewer::FinishUpdatingFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject)
{
// the superclass handles basic field updating
THE_SUPERCLASS::FinishUpdatingFields(creationMethod, viewerObject);
// fetch the checkbook member table and update it
CMemberTable *table =
TCS_SAFE_CAST(FindPaneByID(tag_checknumbertable), CMemberTable);
if (table)
table->Refresh();
}
#if CAN_USE_MARK
#pragma mark -
#endif
/*********************************************************************************
HandleFindPopupClicked TCS 9/15/98
a popup was clicked while in find mode, process the result
*********************************************************************************/
void CEscrowAccountViewer::HandleFindPopupClicked(CTCS_StdPopupMenu *popupMenu)
{
// sanity check
TCS_FailNILMsg(popupMenu, TCS_GetErrString(errID_BadPopup));
// what we do depends on what was clicked
switch (popupMenu->GetPaneID())
{
case tag_accounttype:
SetCVClassID(tag_account, popupMenu->GetValue(), cEraseValue);
break;
default:
break;
}
THE_SUPERCLASS::HandleFindPopupClicked(popupMenu);
}/*********************************************************************************
HandlePopupChanged
a popup was clicked, process the result
*********************************************************************************/
void CEscrowAccountViewer::HandlePopupChanged(CTCS_StdPopupMenu *popupMenu)
{
// sanity check
TCS_FailNILMsg(popupMenu, TCS_GetErrString(errID_BadPopup));
// what we do depends on what was clicked
switch (popupMenu->GetPaneID())
{
case tag_accounttype:
SetCVClassID(tag_account, popupMenu->GetValue(), cEraseValue);
break;
default:
break;
}
THE_SUPERCLASS::HandlePopupChanged(popupMenu);
}
|