00001 /*************************************************************************** 00002 mpatrimonialview.h - description 00003 ------------------- 00004 begin : mié sep 10 2003 00005 copyright : (C) 2003 by Tomeu Borrás Riera 00006 email : tborras@conetxia.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef MPATRIMONIALVIEW_H 00018 #define MPATRIMONIALVIEW_H 00019 00020 #include <qwidget.h> 00021 #include <mpatrimonialdlg.h> 00022 00023 #include "postgresiface2.h" 00024 00025 /***@author Tomeu Borrás Riera */ 00026 00027 class mpatrimonialview : public mpatrimonialdlg { 00028 Q_OBJECT 00029 public: 00030 postgresiface2 *conexionbase; // La base de la empresa con la que trabajamos 00031 QString idmpatrimonial; // El identificador de masa patrimonial. (Lo guardamos en forma de string pq es una prueba en la que no hay que hacer convesiones de tipos) 00032 public: 00033 mpatrimonialview(QWidget *parent=0, const char *name=0); 00034 ~mpatrimonialview(); 00035 int inicializa(postgresiface2 *); 00036 void inicializa1(QString); 00037 QString getidmasa() {return idmpatrimonial;} 00038 QString getnommasa(); 00039 00040 public slots: 00041 virtual void nuevasuma(); 00042 virtual void nuevaresta(); 00043 virtual void borrasuma(); 00044 virtual void borraresta(); 00045 virtual void accept(); 00046 virtual void buscampatrimonial(); 00047 }; 00048 00049 #endif