listlinprevcobro.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 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 LISTLINPREVCOBRO_H
00022 #define LISTLINPREVCOBRO_H
00023 
00024 #include <QObject>
00025 #include <QList>
00026 #include <QMutableListIterator>
00027 
00028 #include "empresa.h"
00029 #include "postgresiface2.h"
00030 #include "linprevcobro.h"
00031 #include "fixed.h"
00032 #include "funcaux.h"
00033 
00034 class ListLinPrevCobro {
00035 public:
00036     Empresa *m_companyact;
00038 
00039 protected:
00040     QString mdb_idregistroiva;
00041     QString mfilt_idregistroiva;
00042     QString mfilt_tipoprevcobro;
00043     QString mfilt_codigocuentaprevcobro;
00044     QString mfilt_finprevcobro;
00045     QString mfilt_ffiprevcobro;
00046     QString mfilt_procesado;
00047 
00048 protected:
00049     QList<linprevcobro*> m_lista;
00050 
00051 public:
00052     Fixed totalCobro();
00053     Fixed totalPago();
00054     ListLinPrevCobro(Empresa *comp);
00055     ListLinPrevCobro();
00056     void inicializaVariables();
00057     void setcompany(Empresa *c) {
00058         m_companyact = c;
00059     };
00060     virtual ~ListLinPrevCobro();
00061     void guardaListLinPrevCobro();
00062     void vaciar();
00063     virtual void pintaListLinPrevCobro() {
00064         _depura("La funcion pintaListLinPrevCobro aun no ha sido implementada", 10);
00065     };
00066     int chargeBudgetLines();
00067     void borrar();
00068     void nuevalinea(QString, QString, QString, QString, QString, QString, QString, QString, QString, QString, QString, QString, QString, QString);
00069     linprevcobro *linpos(int);
00070     void borralinprevcobro(int);
00071     void setidregistroiva(QString id) {
00072         mdb_idregistroiva = id;
00073         linprevcobro *linea;
00074         QMutableListIterator<linprevcobro*> m_ilista(m_lista);
00076         m_ilista.toFront();
00078         while (m_ilista.hasNext()) {
00080             linea = m_ilista.next();
00081             linea->setidregistroiva(mdb_idregistroiva);
00082         } // end while
00083     };
00084 };
00085 
00086 #endif
00087 

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