FactDev  0.1
Gui::Dialogs::AddQuoteDialog Class Reference

The AddQuoteDialog class Window to add or modify a Quote. More...

#include <addquotedialog.h>

Inheritance diagram for Gui::Dialogs::AddQuoteDialog:

Public Slots

void updateBtn (void)
 
void changeDocType ()
 

Public Member Functions

 AddQuoteDialog (bool isBilling, int idCustomer=0, int id=0, bool copy=false, QWidget *parent=0)
 AddQuoteDialog::AddQuoteDialog Construct a windows AddQuoteDialog. More...
 
void fillFields ()
 AddQuoteDialog::Fill line edits with the data of the quote.
 
int getNumber ()
 AddQuoteDialog::getNumber return the number of bill or quote. More...
 
void accept ()
 AddQuoteDialog::accept Valid data inputed by user and add these data in Database.
 
bool getCopy () const
 AddQuoteDialog::getCopy return if AddQuoteDialog is an add by copy of Billing/quote or if it's edition or add of Billing/quote. More...
 
void setCopy (bool copy)
 AddQuoteDialog::setCopy Change the _copy value to define if it's a copy of a Billing/quote or if it's a new Billing or a Billing edition. More...
 
int getIdCustomer () const
 AddQuoteDialog::getIdCustomer get the id of the customer changing his quote/billing. More...
 
void fillQuoteBilling (bool isBilling)
 AddQuoteDialog::fillQuoteBilling fill fields for a Billing or a quote. More...
 
void fillQuoteBillingCopy (bool isBilling)
 AddQuoteDialog::fillQuoteBilling fill fields if it's a Billing or a quote for a copy.
 
void setQuoteIdNumber (int id, int idCustomer, bool isBilling)
 AddQuoteDialog::setQuoteIdNumber set id and number of the _quote More...
 

Detailed Description

The AddQuoteDialog class Window to add or modify a Quote.

Author

Constructor & Destructor Documentation

Gui::Dialogs::AddQuoteDialog::AddQuoteDialog ( bool  isBilling,
int  idCustomer = 0,
int  id = 0,
bool  copy = false,
QWidget *  parent = 0 
)
explicit

AddQuoteDialog::AddQuoteDialog Construct a windows AddQuoteDialog.

Parameters
isBillingdisplaying of a quote or a Billing
idCustomerthe id of the Customer
idthe id of the quote or the billing of the Customer's Project
editif it's an edition or a copy of a quote/Billing
parentQWidget of the current windows

Member Function Documentation

void Gui::Dialogs::AddQuoteDialog::fillQuoteBilling ( bool  isBilling)

AddQuoteDialog::fillQuoteBilling fill fields for a Billing or a quote.

Parameters
isBillingif it's a quote or a Billing
bool Gui::Dialogs::AddQuoteDialog::getCopy ( ) const

AddQuoteDialog::getCopy return if AddQuoteDialog is an add by copy of Billing/quote or if it's edition or add of Billing/quote.

Returns
if it's a copy or not
int Gui::Dialogs::AddQuoteDialog::getIdCustomer ( ) const

AddQuoteDialog::getIdCustomer get the id of the customer changing his quote/billing.

Returns
the id of the customer
int Gui::Dialogs::AddQuoteDialog::getNumber ( )

AddQuoteDialog::getNumber return the number of bill or quote.

Returns
int
void Gui::Dialogs::AddQuoteDialog::setCopy ( bool  copy)

AddQuoteDialog::setCopy Change the _copy value to define if it's a copy of a Billing/quote or if it's a new Billing or a Billing edition.

Parameters
copy
void Gui::Dialogs::AddQuoteDialog::setQuoteIdNumber ( int  id,
int  idCustomer,
bool  isBilling 
)

AddQuoteDialog::setQuoteIdNumber set id and number of the _quote

Parameters
idthe id of the Billing
idCustomerthe id of the customer to set the number
isBillingif it's a quote or a Billing

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