Accounting Software
Small Business Software Estimating Software
Construction Estimating SoftwareBookkeeping SoftwareInventory SoftwareInventory Control SoftwareInventory Tracking SoftwareInventory Management SoftwareBusiness Management Software

Subcontractor Account Viewer (Header)

Link to: source code | record viewer directory

Copyright Turtle Creek Software 1996-2006. All Rights Reserved.

This class manages subcontractor accounts for the Goldenseal accounting software,
small business management software, construction project management software and
construction estimating software.

class CSubcontractorAccountViewer : public CAccountViewer
{
public:

CSubcontractorAccountViewer(const SPaneInfo &inPaneInfo, const SViewInfo &inViewInfo);
virtual ~CSubcontractorAccountViewer() {}

virtual void HandleDBButtonClicked(const TagType btnID);

protected:
virtual void GetReadyToUpdateFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject);
virtual void FinishUpdatingFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject);

virtual void HandlePopupChanged(CTCS_StdPopupMenu *popupMenu);
virtual void HandleCVChanged(CTCS_CVField *cvField);

void FormatCompField(const SInt32 termType);
void FormatLiabilityField(const SInt32 termType);
void FormatWageField(const TagType fieldTag, const DBid rateID,
const Boolean updateValue = false);

Boolean FetchVariableWage(const DBid rateID, CMoney &rateValue);
UInt8 FetchCalcMethod(const DBid rateID, CMoney &rateValue);
void FormatRateField(const TagType fieldTag, const DBid rateID,
const Boolean updateValue = false);

};