00001 /*************************************************************************** 00002 * Copyright (C) 2006 by Arturo Martin Llado * 00003 * amartin@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 EFQTOOLBUTTON_IMPORTAR_H 00022 // #define EFQTOOLBUTTON_IMPORTAR_H 00023 00024 #include <QWidget> 00025 #include <QToolButton> 00026 #include <QString> 00027 #include <QtXml/QDomDocument> 00028 #include <QMap> 00029 #include <QString> 00030 #include "company.h" 00031 #include "funcaux.h" 00032 #include "blwidget.h" 00033 00034 00035 class EFQToolButtonImportar : public QToolButton, PEmpresaBase { 00036 Q_OBJECT 00037 00038 private: 00039 FacturasProveedorList *m_faclistado; 00040 00041 public: 00042 EFQToolButtonImportar(FacturasProveedorList *faclistado, QWidget *parent = 0); 00043 ~EFQToolButtonImportar(); 00044 void importa_factura_ubl(); 00045 QString obten_valor_nodo(QString nombre, QDomDocument *doc); 00046 QString obten_id_proveedor(QDomDocument *doc); 00047 QString obten_descuento_factura(QDomDocument *doc, QList< QMap<QString, QString> > &lista_descuentos); 00048 void obten_linea_factura(QDomDocument *doc, QMap<QString, QString> &mapa_lfactura, int i); 00049 00050 public slots: 00051 void click(); 00052 00053 };
1.5.1