iva.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Tomeu Borras Riera                              *
00003  *   tborras@conetxia.com                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef IVA_H
00022 #define IVA_H
00023 
00024 #include "dbrecord.h"
00025 
00026 
00027 class Empresa;
00028 
00029 
00030 class Iva : public DBRecord {
00031 private:
00032     Empresa *m_companyact;
00033     void definetabla();
00034 
00035 public:
00036     Iva(Empresa *);
00037     Iva(Empresa *, QString);
00038     Iva(Empresa *, cursor2 *);
00039     virtual ~Iva();
00040     virtual void pintaIva() {}
00041     ;
00042     void guardaIva();
00043     void vaciaIva();
00044     inline QString idiva() {
00045         return DBvalue("idiva");
00046     };
00047     inline QString idtipoiva() {
00048         return DBvalue("idtipoiva");
00049     };
00050     inline QString idregistroiva() {
00051         return DBvalue("idregistroiva");
00052     };
00053     inline QString idcuenta() {
00054         return DBvalue("idcuenta");
00055     };
00056     inline QString codigo() {
00057         return DBvalue("codigo");
00058     };
00059     inline QString nombretipoiva() {
00060         return DBvalue("nombretipoiva");
00061     };
00062     inline QString baseiva()  {
00063         return DBvalue("baseiva");
00064     };
00065     inline QString ivaiva() {
00066         return DBvalue("ivaiva");
00067     };
00068     inline void setidiva(QString val) {
00069         setDBvalue("idiva", val);
00070     };
00071     void setidtipoiva(const QString &val);
00072     inline void setidregistroiva(QString val) {
00073         setDBvalue("idregistroiva", val);
00074     };
00075     inline void setbaseiva(QString val)  {
00076         setDBvalue("baseiva", val);
00077     };
00078     inline void setivaiva(QString val) {
00079         setDBvalue("ivaiva", val);
00080     };
00081     int borrar();
00082 };
00083 
00084 #endif
00085 

Generated on Sat Dec 15 00:00:59 2007 for BulmaGes by  doxygen 1.5.1