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 #ifndef RUTACOMERCIALLIST_H 00022 #define RUTACOMERCIALLIST_H 00023 00024 #include <QLineEdit> 00025 00026 #include "company.h" 00027 #include "busquedacliente.h" 00028 #include "busquedaarticulo.h" 00029 #include "subform2bf.h" 00030 #include "listado.h" 00031 00032 class RutaComercialListSubForm : public SubForm2Bf { 00033 Q_OBJECT 00034 00035 public: 00036 RutaComercialListSubForm(QWidget *parent = 0); 00037 ~RutaComercialListSubForm() {} 00038 ; 00039 00040 public slots: 00041 virtual void cargar() { 00042 _depura("RutaComercialListSubForm::cargar\n", 0); 00043 QString SQLQuery = "SELECT * FROM presupuesto"; 00044 SubForm3::cargar(SQLQuery); 00045 }; 00046 virtual void cargar(QString query) { 00047 _depura("RutaComercialListSubForm::cargar\n", 0); 00048 SubForm3::cargar(query); 00049 }; 00050 }; 00051 00052 00053 #include "ui_rutacomerciallistbase.h" 00054 00055 00056 class RutaComercialList : public Listado, public Ui_RutaComercialListBase { 00057 Q_OBJECT 00058 00059 private: 00060 00061 QString m_idpresupuesto; 00062 00063 public: 00064 RutaComercialList(QWidget *parent = 0); 00065 RutaComercialList(Company *comp = NULL, QWidget *parent = 0); 00066 ~RutaComercialList(); 00067 void presenta(); 00068 00069 QString idpresupuesto(); 00070 00071 void setEmpresaBase(Company *comp); 00072 void imprimir(); 00073 void setidcliente(QString val); 00074 QString generaFiltro(); 00075 void editar(int); 00076 00077 public slots: 00078 00079 00080 virtual void on_mui_crear_clicked(); 00081 virtual void on_mui_borrar_clicked(); 00082 00083 00084 00085 signals: 00086 void selected(QString); 00087 }; 00088 00089 #endif 00090
1.5.1