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

#include <poitemTableModel.h>

Public Attributes

int _vendid
 
bool _vendrestrictpurch
 

Public Member Functions

 PoitemTableModel (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 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 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

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

Member Function Documentation

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

Member Data Documentation

QString PoitemTableModel::_selectStatement
protected
int PoitemTableModel::_vendid
bool PoitemTableModel::_vendrestrictpurch

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

Generated on Fri Oct 7 2016 14:23:30 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10