Link to: source code | record
viewer directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
This class manages customer account viewers for the Goldenseal accounting software,
small business management software, construction
project management software and
construction estimating software.
class CCustomerAccountViewer : public CAccountViewer
{
public:
CCustomerAccountViewer(const SPaneInfo &inPaneInfo, const SViewInfo &inViewInfo);
virtual ~CCustomerAccountViewer() {}
virtual UInt8 GetSecondAccountRefClass() const // TCS 11/30/99
{ return id_EmployeeAccount; }
virtual DBid GetSecondAccountRefID() const
{ return GetFieldValue(tag_salesrep); }
protected:
virtual void HandleEditChanged(CTCS_EditField *editField);
virtual void HandleCheckboxClicked(CTCS_StdCheckbox *checkbox);
virtual void HandleDBButtonClicked(const TagType btnID);
virtual void FinishUpdatingFields(const UInt8 creationMethod,
DB_PersistentObject *viewerObject);
private:
void EnableDeliveryAddressFields(Boolean enable = true,
Boolean updateValues = true);
void EnableBillingAddressFields(Boolean enable = true,
Boolean updateValues = true);
void UpdateSecondaryAddressField(const TagType fieldTag);
}; |