listzonacomercialview.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 <fstream>
00030 
00031 #include "listzonacomercialview.h"
00032 #include "company.h"
00033 #include "configuracion.h"
00034 #include "busquedacliente.h"
00035 #include "busquedafecha.h"
00036 
00037 #include "funcaux.h"
00038 
00039 
00041 
00045 ListZonaComercialView::ListZonaComercialView(Company *comp, QWidget *parent)
00046         : FichaBf (comp, parent) {
00047     _depura("INIT_ListZonaComercialView::ListZonaComercialView", 0);
00048     setAttribute(Qt::WA_DeleteOnClose);
00049     setupUi(this);
00050     mui_listado->setEmpresaBase(comp);
00051     mui_listado->cargar();
00052     meteWindow(windowTitle(), this);
00053     _depura("END_ListZonaComercialView::ListZonaComercialView", 0);
00054 }
00055 
00056 
00058 
00060 ListZonaComercialView::~ListZonaComercialView() {
00061     _depura("ListZonaComercialView::~ListZonaComercialView", 0);
00062     empresaBase()->sacaWindow(this);
00063     _depura("ListZonaComercialView::~ListZonaComercialView", 0);
00064 }
00065 
00066 
00069 
00072 ListZonaComercialSubForm::ListZonaComercialSubForm(QWidget *parent) : SubForm2Bf(parent) {
00073     _depura("ListZonaComercialSubForm::ListZonaComercialSubForm", 0);
00074     setDBTableName("zonacomercial");
00075     setDBCampoId("idzonacomercial");
00076     addSHeader("idzonacomercial", DBCampo::DBint, DBCampo::DBPrimaryKey, SHeader::DBNoView, tr("ID zona comercial"));
00077     addSHeader("nomzonacomercial", DBCampo::DBvarchar, DBCampo::DBNotNull, SHeader::DBNone, tr("Nombre de la zona comercial"));
00078     setinsercion(TRUE);
00079     _depura("END ListZonaComercialSubForm::ListZonaComercialSubForm", 0);
00080 }
00081 

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