|
FactDev
0.1
|
The ContributoriesList class List of contributories. More...
#include <contributorieslist.h>
Public Member Functions | |
| ContributoriesList () | |
| ContributoriesList::ContributoriesList Construct a ContributoriesList. | |
| double | getPrice (bool isPaied=false) |
| getPrice Return the price of a contributories list More... | |
| double | getPrice (Models::Project *project) |
| getPrice Return price of project More... | |
| double | getSumQuantity () |
| ContributoriesList::getSumQuantity Return the sum of quantity (number of hours) of the Contributories. More... | |
| double | getSumQuantity (Models::Project *project) |
| ContributoriesList::getSumQuantity Return the sum of quantity (number of hours) of the Contributories of project. More... | |
| Models::Rate | getRate (Models::Project *project) |
| ContributoriesList::getRate. More... | |
| virtual void | commit () |
| ContributoriesList::commit Update or insert data into the database. | |
| void | addContributory (Models::Contributory &contributory) |
| ContributoriesList::addContributory Add a new contributory More... | |
| void | addProject (Project *p, Models::Rate rate) |
| ContributoriesList::addProject Add a Project p and it rate More... | |
| QList< Contributory > & | getContributories (Project *p) |
| ContributoriesList::getContributories Return a list of Contributories for the Project p More... | |
| int | getIdBilling () const |
| ContributoriesList::getIdBilling Return the Billing ID. More... | |
| void | setIdBilling (int idBilling) |
| ContributoriesList::setIdBilling Change the Billing id by the new idBilling More... | |
| void | setAllIdContributories (int idContributory) |
| ContributoriesList::setAllIdContributories Change all Contributory id with the same id. More... | |
| bool | isInsert () const |
| ContributoriesList::isInsert Return TRUE if an element is inserting else FALSE. More... | |
| void | setInsert (bool insert) |
| ContributoriesList::setInsert Change the state of insertion. More... | |
| int | getNbProjects () |
| ContributoriesList::getNbProjects Return the number of projects. More... | |
| QSharedPointer< Customer > | getCustomer () |
| ContributoriesList::getCustomer Return the Customers linked to theses contributories. More... | |
| QList< Project * > | getProjects () |
| ContributoriesList::getProjects List of Projects. More... | |
| QList< Contributory > * | getAllContributories () |
| ContributoriesList::getAllContributories List of all contributories (all contributories from all projects) More... | |
| QVariantList | getDataMap () |
| ContributoriesList::getDataMap Return a list of Billing and it value linked which indicates if it is inserting or not. More... | |
The ContributoriesList class List of contributories.
| void Models::ContributoriesList::addContributory | ( | Models::Contributory & | contributory | ) |
ContributoriesList::addContributory Add a new contributory
| contributory | Contributory to add |
| void Models::ContributoriesList::addProject | ( | Project * | p, |
| Models::Rate | rate | ||
| ) |
ContributoriesList::addProject Add a Project p and it rate
| QList< Contributory > * Models::ContributoriesList::getAllContributories | ( | ) |
ContributoriesList::getAllContributories List of all contributories (all contributories from all projects)
| QList< Contributory > & Models::ContributoriesList::getContributories | ( | Project * | p | ) |
ContributoriesList::getContributories Return a list of Contributories for the Project p
| p | Project |
| QSharedPointer< Customer > Models::ContributoriesList::getCustomer | ( | ) |
ContributoriesList::getCustomer Return the Customers linked to theses contributories.
| QVariantList Models::ContributoriesList::getDataMap | ( | ) |
ContributoriesList::getDataMap Return a list of Billing and it value linked which indicates if it is inserting or not.
| int Models::ContributoriesList::getIdBilling | ( | ) | const |
ContributoriesList::getIdBilling Return the Billing ID.
| int Models::ContributoriesList::getNbProjects | ( | ) |
ContributoriesList::getNbProjects Return the number of projects.
|
virtual |
| double Models::ContributoriesList::getPrice | ( | Models::Project * | project | ) |
getPrice Return price of project
| project | The project |
| QList< Project * > Models::ContributoriesList::getProjects | ( | void | ) |
ContributoriesList::getProjects List of Projects.
| Models::Rate Models::ContributoriesList::getRate | ( | Models::Project * | project | ) |
|
virtual |
ContributoriesList::getSumQuantity Return the sum of quantity (number of hours) of the Contributories.
Implements Models::Calculable.
| double Models::ContributoriesList::getSumQuantity | ( | Models::Project * | project | ) |
ContributoriesList::getSumQuantity Return the sum of quantity (number of hours) of the Contributories of project.
| project | The project |
| bool Models::ContributoriesList::isInsert | ( | ) | const |
ContributoriesList::isInsert Return TRUE if an element is inserting else FALSE.
| void Models::ContributoriesList::setAllIdContributories | ( | int | idContributory | ) |
ContributoriesList::setAllIdContributories Change all Contributory id with the same id.
| idContributory | the new Contributory id |
| void Models::ContributoriesList::setIdBilling | ( | int | idBilling | ) |
ContributoriesList::setIdBilling Change the Billing id by the new idBilling
| idBilling | Billind id |
| void Models::ContributoriesList::setInsert | ( | bool | insert | ) |
ContributoriesList::setInsert Change the state of insertion.
| insert | Boolean |