Accounting Software
Small Business Software Estimating Software
Time Tracking SoftwareTime Management SoftwareTime Billing SoftwareProject Management SoftwareBookkeeping SoftwareContact Management SoftwareBusiness Management Software

Property Management Terms (Header)

Link to: source code | lists directory

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

This class manages property rental payment terms for the Goldenseal accounting software,
property management software and rental property management software.

class CPropertyTerms : public CPaymentTerm
{
public:
enum { col_date = 1 };

static CLASS_DESC *sDescriptor;
static DB_PersistentObject *MakeNew() { return TCS_NEW CPropertyTerms; }

CPropertyTerms();
virtual ~CPropertyTerms() {}
class CPropertyPaymentTerm_Desc : public CLASS_DESC
{
public:
CPropertyPaymentTerm_Desc()
: CLASS_DESC(id_PropertyTerm, id_PaymentTerm, CPropertyTerms::MakeNew) {}
virtual ~CPropertyPaymentTerm_Desc() {}

virtual Boolean GetTableColInfo(const TagType tag, const TableIndexT col,
STableColInfo *colInfo);
virtual SInt32 GetNumTableCols(const TagType /*tableTag*/) { return 1; }
};

virtual DBid GetDBClassID(void) const { return id_PropertyTerm; }

virtual void CopyFrom(DB_PersistentObject *source, const UInt8 copyFlags = 0);

virtual NeoSize GetFileLength(const CNeoFormat *aFormat) const;

virtual Boolean GetMemberValue(const NeoTag aTag, const NeoTag aType,
void *aValue) const;
virtual Boolean SetMemberValue(const NeoTag aTag, const NeoTag aType,
const void *aValue);
virtual void ReadObject(CNeoStream *aStream, const TagType aTag);
virtual void WriteObject(CNeoStream *aStream, const TagType aTag);

virtual void FillDataReport(CTCS_Table *table, CNeoStream *stream) const;

virtual void SetEndSafetyTag() { mEndSafetyTag = tag_endsafetytag; }

protected:

CMoney mDollarFee,
mPercentFee;

UInt8 mDollarFeeType,
mPercentFeeType;

// calculated members
TagType mEndSafetyTag;

enum
{
cCopyFileLength = 2*sizeof(CMoney) +
2*sizeof(UInt8),

cFileLength = cCopyFileLength +
sizeof(TagType)
};
};