Link to: source code | record
viewer directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
This class manages billing rates for the Goldenseal accounting software,
small business management software, construction
project management software and
construction estimating software.
// EQUIPMENT BILLING RATE VIEWER
class CEquipRateViewer : public DB_RecordViewer
{
public:
enum { class_ID = 'BRTV' };
CEquipRateViewer(const SPaneInfo &inPaneInfo, const SViewInfo &inViewInfo)
: DB_RecordViewer(inPaneInfo, inViewInfo) {}
virtual ~CEquipRateViewer() {}
void FormatRateField(const SInt32 calcMethod, const SInt32 rateIndex);
Boolean CheckForVariable();
Boolean CheckForDependency(const TagType tag);
protected:
virtual void HandleCheckboxClicked(CTCS_StdCheckbox *checkbox);
void HandlePopupChanged(CTCS_StdPopupMenu *popupMenu);
virtual void FinishUpdatingFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject);
void ShowRateAndType(SInt32 rateIndex, Boolean show = true);
}; // SUBS AND LABOR BILLING RATE VIEWER
class CPersonRateViewer : public DB_RecordViewer
{
public:
enum { class_ID = 'PNRV' };
CPersonRateViewer(const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo)
: DB_RecordViewer(inPaneInfo, inViewInfo) {}
virtual ~CPersonRateViewer() {}
void HandlePopupChanged(CTCS_StdPopupMenu *popupMenu);
void FormatRateField(const SInt32 calcMethod,
const TagType rateTag = tag_billingrate,
const TagType timeTag = tag_timeunit);
Boolean CheckForVariable();
protected:
virtual void FinishUpdatingFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject);
}; |