00001 /*************************************************************************** 00002 * Copyright (C) 2005 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 LISTLTARIFAVIEW_H 00022 #define LISTLTARIFAVIEW_H 00023 00024 #include "qtable2.h" 00025 #include "subform2bf.h" 00026 #include "blwidget.h" 00027 00028 00029 class ListLTarifaView : public SubForm2Bf { 00030 Q_OBJECT 00031 00032 public: 00033 QString mdb_idarticulo; 00034 ListLTarifaView(QWidget *parent = 0); 00035 ~ListLTarifaView() {} 00036 ; 00037 00038 public slots: 00039 virtual void cargar(QString idarticulo) { 00040 _depura("ListLTarifaView::cargaListCompArticulo\n", 0); 00041 mdb_idarticulo=idarticulo; 00042 QString SQLQuery = "SELECT * FROM (SELECT * FROM almacen, tarifa) AS t2 LEFT JOIN (SELECT * FROM articulo WHERE idarticulo = " + mdb_idarticulo + ") AS t3 ON 1 = 1 "; 00043 SQLQuery += " LEFT JOIN (SELECT * FROM ltarifa WHERE idarticulo = " + mdb_idarticulo + ") as t1 ON t1.idtarifa = t2.idtarifa AND t1.idalmacen = t2.idalmacen "; 00044 SubForm2Bf::cargar(SQLQuery); 00045 _depura("END ListLTarifaView::cargaListCompArticulo\n", 0); 00046 }; 00047 }; 00048 00049 00050 class ListLTarifaView1 : public SubForm2Bf { 00051 Q_OBJECT 00052 00053 public: 00054 ListLTarifaView1(QWidget *parent = 0); 00055 ~ListLTarifaView1() {} 00056 ; 00057 00058 public slots: 00059 virtual void cargar(QString SQLQuery) { 00060 _depura("ListCompArticulo::cargar\n", 0); 00061 SubForm2Bf::cargar(SQLQuery); 00062 }; 00063 }; 00064 00065 00066 #include "bulmafact.h" 00067 00068 00071 class myplugin1 : public QObject, public PEmpresaBase { 00072 Q_OBJECT 00073 00074 public: 00075 Bulmafact *m_bges; 00076 public: 00077 myplugin1(); 00078 ~myplugin1(); 00079 void inicializa(Bulmafact *); 00080 00081 public slots: 00082 void elslot(); 00083 }; 00084 00085 #endif 00086
1.5.1