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

#include <poitemTableModel.h>

Inheritance diagram for PoitemTableModel:
QSqlRelationalTableModel

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

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 Attributes

int _vendid
 
bool _vendrestrictpurch
 

Protected Slots

virtual void markDirty (QModelIndex, QModelIndex)
 

Protected Member Functions

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

Protected Attributes

QString _selectStatement
 

Constructor & Destructor Documentation

◆ PoitemTableModel()

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

Member Function Documentation

◆ currId()

virtual int PoitemTableModel::currId ( ) const
inlinevirtual

◆ flags()

Qt::ItemFlags PoitemTableModel::flags ( const QModelIndex &  index) const
virtual

◆ headId()

virtual int PoitemTableModel::headId ( ) const
inlinevirtual

◆ insertRowIntoTable()

bool PoitemTableModel::insertRowIntoTable ( const QSqlRecord &  record)
protectedvirtual

◆ isDirty()

bool PoitemTableModel::isDirty ( ) const
virtual

◆ itemId()

virtual int PoitemTableModel::itemId ( ) const
inlinevirtual

◆ markDirty

void PoitemTableModel::markDirty ( QModelIndex  ,
QModelIndex   
)
protectedvirtualslot

◆ removeRow()

bool PoitemTableModel::removeRow ( int  row,
const QModelIndex &  parent = QModelIndex() 
)
virtual

◆ select

bool PoitemTableModel::select ( )
virtualslot

◆ selectStatement()

QString PoitemTableModel::selectStatement ( ) const
protectedvirtual

◆ setCurrId

void PoitemTableModel::setCurrId ( const int  pId = -1)
virtualslot

◆ setHeadId

void PoitemTableModel::setHeadId ( const int  pId = -1)
virtualslot

◆ setItemId

void PoitemTableModel::setItemId ( const int  pId = -1)
virtualslot

◆ setTransDate

void PoitemTableModel::setTransDate ( const QDate  pDate)
virtualslot

◆ submitAll

bool PoitemTableModel::submitAll ( )
virtualslot

◆ transDate()

virtual QDate PoitemTableModel::transDate ( ) const
inlinevirtual

◆ updateRowInTable()

bool PoitemTableModel::updateRowInTable ( int  row,
const QSqlRecord &  record 
)
protectedvirtual

◆ validRow()

bool PoitemTableModel::validRow ( QSqlRecord &  record)
protectedvirtual

Member Data Documentation

◆ _selectStatement

QString PoitemTableModel::_selectStatement
protected

◆ _vendid

int PoitemTableModel::_vendid

◆ _vendrestrictpurch

bool PoitemTableModel::_vendrestrictpurch

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17