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

#include <toitemTableModel.h>

Inheritance diagram for ToitemTableModel:
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 setShipDate (const QDate)
 
virtual void setSrcWhsId (const int pId=-1)
 
virtual void setTransDate (const QDate)
 
virtual bool submitAll ()
 

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
 

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

◆ ToitemTableModel()

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

Member Function Documentation

◆ currId()

virtual int ToitemTableModel::currId ( ) const
inlinevirtual

◆ flags()

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

◆ headId()

virtual int ToitemTableModel::headId ( ) const
inlinevirtual

◆ insertRowIntoTable()

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

◆ isDirty()

bool ToitemTableModel::isDirty ( ) const
virtual

◆ itemId()

virtual int ToitemTableModel::itemId ( ) const
inlinevirtual

◆ markDirty

void ToitemTableModel::markDirty ( QModelIndex  ,
QModelIndex   
)
protectedvirtualslot

◆ removeRow()

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

◆ select

bool ToitemTableModel::select ( )
virtualslot

◆ selectStatement()

QString ToitemTableModel::selectStatement ( ) const
protectedvirtual

◆ setCurrId

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

◆ setHeadId

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

◆ setItemId

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

◆ setShipDate

void ToitemTableModel::setShipDate ( const QDate  pDate)
virtualslot

◆ setSrcWhsId

void ToitemTableModel::setSrcWhsId ( const int  pId = -1)
virtualslot

◆ setTransDate

void ToitemTableModel::setTransDate ( const QDate  pDate)
virtualslot

◆ shipDate()

virtual QDate ToitemTableModel::shipDate ( ) const
inlinevirtual

◆ srcWhsId()

virtual int ToitemTableModel::srcWhsId ( ) const
inlinevirtual

◆ submitAll

bool ToitemTableModel::submitAll ( )
virtualslot

◆ transDate()

virtual QDate ToitemTableModel::transDate ( ) const
inlinevirtual

◆ updateRowInTable()

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

◆ validRow()

bool ToitemTableModel::validRow ( QSqlRecord &  record)
protectedvirtual

Member Data Documentation

◆ _selectStatement

QString ToitemTableModel::_selectStatement
protected

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