pagoview.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 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 #include <QMessageBox>
00022 #include <QWidget>
00023 #include <QObject>
00024 #include <QComboBox>
00025 #include <QToolButton>
00026 #include <QTextStream>
00027 #include <QLayout>
00028 #include <QMessageBox>
00029 #include <QCloseEvent>
00030 
00031 #include <fstream>
00032 
00033 #include "pagoview.h"
00034 #include "company.h"
00035 #include "configuracion.h"
00036 #include "busquedaproveedor.h"
00037 #include "busquedafecha.h"
00038 
00039 #include "funcaux.h"
00040 
00041 
00043 
00047 PagoView::PagoView(Company *comp, QWidget *parent)
00048         :  FichaBf(comp, parent) {
00049     _depura("PagoView::PagoView", 0);
00050     try {
00051         setAttribute(Qt::WA_DeleteOnClose);
00052         setupUi(this);
00054         mui_idproveedor->setEmpresaBase(comp);
00055         mui_refpago->setEmpresaBase(comp);
00056         mui_idbanco->setEmpresaBase(comp);
00057 
00058         setTitleName(tr("Pago"));
00059         setDBTableName("pago");
00060         setDBCampoId("idpago");
00061         addDBCampo("idpago", DBCampo::DBint, DBCampo::DBPrimaryKey, QApplication::translate("Pago", "Id pago"));
00062         addDBCampo("idproveedor", DBCampo::DBint, DBCampo::DBNotNull, QApplication::translate("Pago", "Id proveedor"));
00063         addDBCampo("previsionpago", DBCampo::DBboolean, DBCampo::DBNothing, QApplication::translate("Pago", "Previcion de pago"));
00064         addDBCampo("fechapago", DBCampo::DBdate, DBCampo::DBNothing, QApplication::translate("Pago", "Fecha de pago"));
00065         addDBCampo("refpago", DBCampo::DBvarchar, DBCampo::DBNothing, QApplication::translate("Pago", "Referencia de pago"));
00066         addDBCampo("cantpago", DBCampo::DBnumeric, DBCampo::DBNotNull, QApplication::translate("Pago", "Cantidad"));
00067         addDBCampo("comentpago", DBCampo::DBvarchar, DBCampo::DBNothing, QApplication::translate("Pago", "Comentario del pago"));
00068         addDBCampo("idbanco", DBCampo::DBint, DBCampo::DBNothing, QApplication::translate("Pago", "Banco"));
00069 
00070         meteWindow(windowTitle(), this, FALSE);
00071         pintar();
00072         dialogChanges_cargaInicial();
00073     } catch (...) {
00074         mensajeInfo(tr("Error al crear el pago"));
00075     } // end try
00076     _depura("Fin de la inicializacion de PagoView\n", 0);
00077     _depura("END PagoView::PagoView", 0);
00078 }
00079 
00080 
00082 
00084 PagoView::~PagoView() {
00085     _depura("PagoView::~PagoView", 0);
00086     _depura("END PagoView::~PagoView", 0);
00087 }
00088 

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