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

Subassembly Tables (Header)

Link to: source code | tables directory

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

This class manages unit cost subassembly tables for the Goldenseal accounting software,
small business management software, construction project management software and
construction accounting software.

class CSubAssemblyTable : public CBreakdownTable
{
public:

CSubAssemblyTable(const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo,
DB_ClassDescriptor *desc,
CAssembly *assembly = nil);
virtual ~CSubAssemblyTable() {}

CAssembly *GetAssembly() const { return mAssembly; }
void SetAssembly(CAssembly *assembly) { mAssembly = assembly; }

virtual void ListenToMessage(MessageT inMessage, void *ioParam);

virtual void FillNewRowCells(const TableIndexT row);

virtual TagType GetAmountTestTag() const { return tag_amount; }
virtual TagType GetNameTestTag() const { return tag_costitem; }
virtual TagType GetDetailIDTag() const { return tag_costitem; } // TCS 11/18/99
virtual TagType GetFirstDataTag() const { return tag_costarea; } // TCS 12/12/01

virtual CMoney RecalcBreakdownRow(const TableIndexT row, const TagType changedCol);
virtual void UpdateItemDetails(const TableIndexT row);

virtual SInt32 GetColType(const TableIndexT row, const TableIndexT col) const;

virtual UInt8 GetDetailTransactionClass(const TableIndexT row) const;
virtual UInt8 GetRowCostArea(const TableIndexT row) const;

virtual Boolean RowUsesObjectID(const TableIndexT row) const;
virtual Boolean RowUsesUnitCost(const TableIndexT row) const;

protected:

CAssembly *mAssembly;

//virtual void UpdateRow(TableIndexT row);

virtual void ResetCostItem(const TableIndexT row, const SInt32 oldValue,
const SInt32 newValue);
virtual CTCS_CVField *CreateNewCellCVField(const TableCellT &inCell,
const SPaneInfo &inPaneInfo);
};