List of all members | Public Member Functions | Public Slots | Protected Attributes | Protected Member Functions | Protected Slots
ToitemTableModel Class Reference

#include <toitemTableModel.h>

Public Member Functions

 ToitemTableModel (QObject *parent=0, QSqlDatabase=QSqlDatabase())
 
virtual int currId () const
 
virtual Qt::ItemFlags flags (const QModelIndex &) const
 
virtual int headId () const
 
virtual bool isDirty () const
 
virtual int itemId () const
 
virtual bool removeRow (int, const QModelIndex &=QModelIndex())
 
virtual QDate shipDate () const
 
virtual int srcWhsId () const
 
virtual QDate transDate () const
 

Public Slots

virtual bool select ()
 
virtual void setCurrId (const int pId=-1)
 
virtual void setHeadId (const int pId=-1)
 
virtual void setItemId (const int pId=-1)
 
virtual void setShipDate (const QDate)
 
virtual void setSrcWhsId (const int pId=-1)
 
virtual void setTransDate (const QDate)
 
virtual bool submitAll ()
 

Protected Attributes

QString _selectStatement
 

Protected Member Functions

virtual bool insertRowIntoTable (const QSqlRecord &)
 
virtual QString selectStatement () const
 
virtual bool updateRowInTable (int, const QSqlRecord &)
 
virtual bool validRow (QSqlRecord &)
 

Protected Slots

virtual void markDirty (QModelIndex, QModelIndex)
 

Constructor & Destructor Documentation

ToitemTableModel::ToitemTableModel ( QObject parent = 0,
QSqlDatabase  db = QSqlDatabase() 
)

Member Function Documentation

virtual int ToitemTableModel::currId ( ) const
inlinevirtual
Qt::ItemFlags ToitemTableModel::flags ( const QModelIndex &  index) const
virtual
virtual int ToitemTableModel::headId ( ) const
inlinevirtual
bool ToitemTableModel::insertRowIntoTable ( const QSqlRecord &  record)
protectedvirtual
bool ToitemTableModel::isDirty ( ) const
virtual
virtual int ToitemTableModel::itemId ( ) const
inlinevirtual
void ToitemTableModel::markDirty ( QModelIndex  ,
QModelIndex   
)
protectedvirtualslot
bool ToitemTableModel::removeRow ( int  row,
const QModelIndex &  parent = QModelIndex() 
)
virtual
bool ToitemTableModel::select ( )
virtualslot
QString ToitemTableModel::selectStatement ( ) const
protectedvirtual
void ToitemTableModel::setCurrId ( const int  pId = -1)
virtualslot
void ToitemTableModel::setHeadId ( const int  pId = -1)
virtualslot
void ToitemTableModel::setItemId ( const int  pId = -1)
virtualslot
void ToitemTableModel::setShipDate ( const QDate  pDate)
virtualslot
void ToitemTableModel::setSrcWhsId ( const int  pId = -1)
virtualslot
void ToitemTableModel::setTransDate ( const QDate  pDate)
virtualslot
virtual QDate ToitemTableModel::shipDate ( ) const
inlinevirtual
virtual int ToitemTableModel::srcWhsId ( ) const
inlinevirtual
bool ToitemTableModel::submitAll ( )
virtualslot
virtual QDate ToitemTableModel::transDate ( ) const
inlinevirtual
bool ToitemTableModel::updateRowInTable ( int  row,
const QSqlRecord &  record 
)
protectedvirtual
bool ToitemTableModel::validRow ( QSqlRecord &  record)
protectedvirtual

Member Data Documentation

QString ToitemTableModel::_selectStatement
protected

The documentation for this class was generated from the following files:

Generated on Fri Oct 7 2016 15:38:01 xTuple ERP Programmer Reference, Version 4.5.0 doxygen 1.8.10