contratoview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 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 CONTRATOVIEW_H
00022 #define CONTRATOVIEW_H
00023 
00024 #include <QLineEdit>
00025 #include <QLabel>
00026 #include <QCheckBox>
00027 
00028 
00029 #include "contrato.h"
00030 #include "busquedacliente.h"
00031 #include "busquedafecha.h"
00032 #include "busquedaformapago.h"
00033 #include "busquedaseriefactura.h"
00034 #include "busquedaalmacen.h"
00035 #include "dialogchanges.h"
00036 #include "fichabf.h"
00037 
00038 
00039 class company;
00040 
00042 
00043 class FacturasContratoListSubForm : public SubForm2Bf {
00044     Q_OBJECT
00045 public:
00046     FacturasContratoListSubForm(QWidget *parent = 0, const char *name = 0);
00047     ~FacturasContratoListSubForm() {}
00048 
00049 public slots:
00050     virtual void cargar(QString query) {
00051         SubForm3::cargar(query);
00052     }
00053 };
00054 
00055 
00056 #include "ui_contratobase.h"
00058 
00059 class ContratoView : public Contrato, public Ui_ContratoBase {
00060     Q_OBJECT
00061 
00062 public:
00063     ContratoView(Company *, QWidget *parent = 0);
00064     ~ContratoView();
00065     void inicializar();
00066     void pintaidcliente(QString id);
00067     void pintafincontrato(QString id);
00068     void pintaffincontrato(QString id);
00069     void pintadescontrato(QString id);
00070     void pintarefcontrato(QString id);
00071     void pintanomcontrato(QString id);
00072     void pintaperiodicidadcontrato(QString id);
00073     void pintaloccontrato(QString id);
00074 
00076     virtual int guardar();
00077     virtual int cargar(QString id);
00078     virtual int borrar() {
00079         return Contrato::borrar();
00080     };
00081 
00082 public slots:
00083     virtual void on_subform2_itemDoubleClicked(QTableWidgetItem *);
00084     virtual void on_m_cliente_valueChanged(QString id);
00085     virtual void on_mui_facturar_clicked();
00086 };
00087 
00088 #endif
00089 

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