listseriefacturaview.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Tomeu Borras Riera                              *
00003  *   tborras@conetxia.com                                                  *
00004  *   Copyright (C) 2006 by Fco. Javier M. C. (Porting to QT4)              *
00005  *   fcojavmc@todo-redes.com                                               *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  ***************************************************************************/
00022 
00023 #include <QMessageBox>
00024 #include <QWidget>
00025 #include <QComboBox>
00026 #include <QToolButton>
00027 #include <QTextStream>
00028 #include <QLayout>
00029 #include <QMessageBox>
00030 #include <fstream>
00031 
00032 #include "listseriefacturaview.h"
00033 #include "company.h"
00034 #include "configuracion.h"
00035 #include "busquedacliente.h"
00036 #include "busquedafecha.h"
00037 
00038 #include "funcaux.h"
00039 
00040 
00042 
00046 ListSerieFacturaView::ListSerieFacturaView(Company *comp, QWidget *parent)
00047         : FichaBf(comp, parent) {
00048     _depura("INIT_ListSerieFacturaView::ListSerieFacturaView", 1);
00049     setTitleName(tr("Serie de Factura"));
00050     setDBTableName("serie_factura");
00051     setAttribute(Qt::WA_DeleteOnClose);
00052     setupUi(this);
00053     mui_listado->setEmpresaBase(comp);
00054     mui_listado->cargar();
00055     meteWindow(windowTitle(), this);
00056     _depura("END_ListSerieFacturaView::ListSerieFacturaView", 1);
00057 }
00058 
00059 
00061 
00063 ListSerieFacturaView::~ListSerieFacturaView() {
00064     _depura("ListSerieFacturaView::~ListSerieFacturaView", 0);
00065     _depura("END ListSerieFacturaView::~ListSerieFacturaView", 0);
00066 }
00067 
00068 
00071 
00074 ListSerieFacturaSubForm::ListSerieFacturaSubForm(QWidget *parent) : SubForm2Bf(parent) {
00075     _depura("ListSerieFacturaSubForm::ListSerieFacturaSubForm", 0);
00076     setDBTableName("serie_factura");
00077     setDBCampoId("codigoserie_factura");
00078     addSHeader("codigoserie_facturaorig", DBCampo::DBvarchar, DBCampo::DBDupPrimaryKey | DBCampo::DBNoSave, SHeader::DBNoView | SHeader::DBBlockView, "codigoserie_factura");
00079     addSHeader("codigoserie_factura", DBCampo::DBvarchar, DBCampo::DBNotNull, SHeader::DBNone, tr("Codigo serie factura"));
00080     addSHeader("descserie_factura", DBCampo::DBvarchar, DBCampo::DBNotNull, SHeader::DBNone, tr("Descripcion serie factura"));
00081     setinsercion(TRUE);
00082     _depura("END ListSerieFacturaSubForm::ListSerieFacturaSubForm", 0);
00083 }
00084 

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