clientdelivnote.h

Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Alvaro de Miguel                                *
00003  *   alvaro.demiguel@gmail.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 #ifndef CLIENTDELIVNOTE_H
00021 #define CLIENTDELIVNOTE_H
00022 
00023 // PRESUPUESTOS.
00024 
00025 #include "clientdelivnotebase.h"
00026 #include "postgresiface2.h"
00027 
00029 class company;
00030 
00031 
00032 class ClientDelivNote : public ClientDelivNoteBase {
00033 Q_OBJECT
00034 private:
00035         company *companyact;
00036         QString m_idalbaran;
00037         QString m_idclient;
00038         QString m_initialValues;
00039         QString m_idalmacen;
00040         cursor2 *m_cursorcombo;
00041         
00042 public:
00043         ClientDelivNote(company *, QWidget *, const char *);
00044         ~ClientDelivNote();
00045         void chargeClientDelivNote(QString);
00046         void chargeClientDelivNoteLines(QString);
00047          void chargeClientDelivNoteDiscounts(QString);
00048          void inicialize();
00049          void manageArticle(int);
00050          QString searchArticle();
00051         
00052          
00053 private:
00054         int saveClientDelivNote();
00055         int saveClientDelivNoteLines();
00056         int saveClientDelivNoteDiscountLines();
00057         int insertClientDelivNoteLine(int);
00058         int updateClientDelivNoteLine(int);
00059         int deleteClientDelivNoteLine(int);
00060         int insertClientDelivNoteDiscountLine(int);
00061         int updateClientDelivNoteDiscountLine(int);
00062         int deleteClientDelivNoteDiscountLine(int);
00063         void nextCell(QObject *);
00064         void antCell(QObject *);
00065         void duplicateCell(QObject *);
00066         void calculateImports();
00067         QString retrieveValues(QString);
00068         QString calculateValues();
00069         void cargarcomboformapago(QString);
00070         void buscarAlmacen();
00071         QString newDelivNoteNumber();
00072                 
00073 protected:
00074         bool eventFilter( QObject *, QEvent *);
00075          
00076 public slots:
00077    virtual void s_searchClient();
00078         virtual void s_clientDelivNoteDateLostFocus();
00079         virtual void s_newClientDelivNoteLine();
00080         virtual void s_removeClientDelivNoteLine();
00081         virtual void s_newClientDelivNoteDiscountLine();
00082         virtual void s_removeClientDelivNoteDiscountLine();
00083         virtual void s_valueClientDelivNoteLineChanged(int, int);
00084         virtual void s_valueClientDelivNoteDiscountLineChanged(int, int);
00085         virtual void s_accept();
00086         virtual void s_cancel();
00087         virtual void s_saveClientDelivNote();
00088         virtual void s_removeClientDelivNote();
00089         virtual void s_contextMenu(int, int, int, const QPoint &);
00090         virtual void s_contextMenuDiscount(int, int, int, const QPoint &);
00091         virtual void s_almacenLostFocus();
00092 
00093 };
00094 
00095 #endif

Generado el Sat May 21 00:04:44 2005 para BulmaGes por  doxygen 1.4.2