Link to: header | record viewer
directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
Comments
CLoanAccountViewer
This class manages loan accounts for the Goldenseal accounting software,
small business management software, construction
project management software and
construction estimating software.
SUPERCLASS = CAccountViewer
Constructor
/*********************************************************************************
constructor from structs
*********************************************************************************/
CLoanAccountViewer::CLoanAccountViewer(const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo)
: THE_SUPERCLASS(inPaneInfo, inViewInfo)
{
}
Source Code
/*********************************************************************************
GetReadyToUpdateFields TCS 4/15/99 split TCS 4/17/00
Do prep work before updating fields
*********************************************************************************/
void CLoanAccountViewer::GetReadyToUpdateFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject)
{
TCS_FailNILMsg(viewerObject, TCS_GetErrString(errID_BadObject));
// let's set up menu lists for account cv
DBClass accountClass = 0;
viewerObject->GetMemberValue(tag_securedbytype, type_objclass, &accountClass);
if (accountClass)
SetCVClassID(tag_securedby, 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 CLoanAccountViewer::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 4/15/99
a popup was clicked while in find mode, process the result
*********************************************************************************/
void CLoanAccountViewer::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_securedbytype:
SetCVClassID(tag_securedby, popupMenu->GetValue(), cEraseValue);
break;
default:
break;
}
THE_SUPERCLASS::HandleFindPopupClicked(popupMenu);
}/*********************************************************************************
HandlePopupChanged TCS 4/15/99
a popup was clicked, process the result
*********************************************************************************/
void CLoanAccountViewer::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_securedbytype:
SetCVClassID(tag_securedby, popupMenu->GetValue(), cEraseValue);
break;
default:
break;
}
THE_SUPERCLASS::HandlePopupChanged(popupMenu);
}
|