00001 /*************************************************************************** 00002 * Copyright (C) 2004 by Tomeu Borras Riera * 00003 * tborras@conetxia.com * 00004 * http://www.iglues.org * 00005 * * 00006 * This program is free software; you can redistribute it and/or modify * 00007 * it under the terms of the GNU General Public License as published by * 00008 * the Free Software Foundation; either version 2 of the License, or * 00009 * (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License * 00017 * along with this program; if not, write to the * 00018 * Free Software Foundation, Inc., * 00019 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00020 ***************************************************************************/ 00021 00022 #ifndef COMPANY_H 00023 #define COMPANY_H 00024 00025 #include <QObject> 00026 #include <QAssistantClient> 00027 #include <QLibraryInfo> 00028 00029 #include "postgresiface2.h" 00030 #include "listventanas.h" 00031 #include "qworkspace2.h" 00032 #include "empresabase.h" 00033 #include "splashscreen.h" 00034 00035 class ProveedorList; 00036 class ClientsList; 00037 class ClienteView; 00038 class ArticuloList; 00039 class orderslist; 00040 class PresupuestoList; 00041 class AlbaranClienteList; 00042 class FacturasList; 00043 class PedidosClienteList; 00044 class PedidosProveedorList; 00045 class AlbaranesProveedor; 00046 class CobrosList; 00047 class FacturasProveedorList; 00048 class PagosList; 00049 class PresupuestoView; 00050 class FacturaView; 00051 class FacturaProveedorView; 00052 class PedidoProveedorView; 00053 class ArticuloView; 00054 class CobroView; 00055 class PagoView; 00056 class AlbaranClienteView; 00057 class AlbaranProveedorView; 00058 class PedidoClienteView; 00059 class TipoArticuloList; 00060 class ProveedorView; 00061 class FamiliasView; 00062 class ListTipoIVAView; 00063 00064 class Bulmafact; 00065 00067 00070 class Company : public EmpresaBase { 00071 private: 00073 Bulmafact *m_bulmafact; 00075 ProveedorList *m_providerslist; 00077 ClientsList *m_clientsList; 00079 ArticuloList *m_articleslist; 00081 PresupuestoList *m_presupuestosList; 00083 AlbaranClienteList *m_clientDelivNotesList; 00085 FacturasList *m_facturasList; 00087 PedidosClienteList *m_pedidosclienteList; 00089 PedidosProveedorList *m_pedidosproveedorList; 00091 AlbaranesProveedor *m_albaranesproveedor; 00093 CobrosList *m_cobrosList; 00095 FacturasProveedorList *m_facturasproveedorlist; 00097 PagosList *m_pagosList; 00098 00099 public: 00100 Company(Bulmafact *bges); 00101 virtual ~Company(); 00102 FacturasProveedorList *facturasProveedorList(); 00103 PresupuestoList *presupuestoList(); 00104 void listproviders(); 00105 void listClients(); 00106 void listarticles(); 00107 void listorders(); 00108 void lAlbaranesProveedor(); 00109 void listBudgets(); 00110 void listClientDelivNotes(); 00111 void newClientDelivNote(); 00112 void newPedidoCliente(); 00113 ClienteView *newClienteView(); 00114 ProveedorView *newProveedorView(); 00115 ArticuloView *newArticuloView(); 00116 void createMainWindows(Splash *); 00117 void refreshArticles(); 00118 void refreshPresupuestos(); 00119 void refreshCobrosCliente(); 00120 void refreshPedidosCliente(); 00121 void refreshPedidosProveedor(); 00122 void refreshClientDelivNotes(); 00123 void refreshAlbaranesCliente(); 00124 void refreshAlbaranesProveedor(); 00125 void refreshFacturas(); 00126 void refreshFacturasProveedor(); 00127 void refreshClientes(); 00128 void refreshProveedores(); 00129 void s_FPago(); 00130 void s_Familias(); 00131 void s_trabajadores(); 00132 void s_bancos(); 00133 void s_seriesFactura(); 00134 void s_listPedidosCli(); 00135 void s_listFacturasCli(); 00136 void s_listPedidosPro(); 00137 void s_listFacturasPro(); 00138 void s_newFacturaPro(); 00139 void s_newAlbaranPro(); 00140 void s_newPedidoPro(); 00141 void s_newPresupuestoCli(); 00142 void s_newPedidoClienteView(); 00143 void s_newPedidoProveedorView(); 00144 void s_newAlbaranClienteView(); 00145 void s_newAlbaranProveedorView(); 00146 void s_newFacturaCli(); 00147 void s_newArticulo(); 00148 void s_newCobroView(); 00149 void s_newPagoView(); 00150 void s_newClienteView(); 00151 void s_newProveedorView(); 00152 void s_newListConfiguracionView(); 00153 void s_newTipoArticuloList(); 00154 void s_newfamiliasview(); 00155 void s_almacenes(); 00156 void viewPagosList(); 00157 void viewCobrosList(); 00158 void s_TipoIVAView(); 00159 void s_TasaIVAView(); 00160 void guardaConf(); 00161 void cargaConf(); 00162 FacturaProveedorView *newFacturaProveedorView(); 00163 PresupuestoView *nuevoPresupuestoView(); 00164 PedidoProveedorView *nuevoPedidoProveedorView(); 00165 FacturaView *newFacturaView(); 00166 CobroView *newCobroView(); 00167 PagoView *newPagoView(); 00168 AlbaranClienteView *newAlbaranClienteView(); 00169 AlbaranProveedorView *newAlbaranProveedorView(); 00170 PedidoClienteView *newPedidoClienteView(); 00171 TipoArticuloList *newTipoArticuloList(QWidget *parent = 0, bool modoConsulta = FALSE); 00172 FamiliasView *newfamiliasview(QWidget *parent = 0, bool modoConsulta = FALSE); 00173 }; 00174 00175 #endif 00176
1.5.1