00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef AH3_H
00025 #define AH3_H
00026
00027 # include <QMainWindow>
00028 # include "QcjData/QcjDataStatics.h"
00029 # include "QcjData/QcjDataConfigure.h"
00030 # include "customerentrydialog.h"
00031 # include "about.h"
00032 # include "ui_ah3.h"
00033
00034 extern QcjDataConfigure *pConfigDlg;
00035
00036 class Ah3 : public QMainWindow
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 Ah3();
00042 void setDatabase();
00043
00044 public slots:
00045 void close();
00046 void refresh();
00047 void saveCurrentForm();
00048
00049 void haveSearchVendorBtn();
00050 void haveVendorRowSelected(QSqlRecord*);
00051 void haveClearVendorBtn();
00052
00053 void haveSearchPartsBtn();
00054 void havePartRowSelected(QSqlRecord*);
00055 void havePartsRecordSelected(QSqlRecord *);
00056 void haveClearPartsBtn();
00057 void haveNewPart2Vendor();
00058 void haveAllParts2VendorBtnChanged(int state);
00059
00060 void haveShowAllWoBtnChanged(int);
00061 void haveWoSelected(QSqlRecord *rec);
00062 void haveWoActivated(QSqlRecord *rec);
00063 void haveSearchWoBtn();
00064 void haveClearWoBtn();
00065 void haveNewWoBtn();
00066 void haveUpdateWoBtn();
00067 void haveCancelWoBtn();
00068 void haveDeleteWoBtn();
00069 void havePreviewWoBtn();
00070 void haveCloseWoBtn();
00071 void haveEditCustomer()
00072 {
00073 printf("Ah3::haveEditCustomer(): Enter\n");
00074 CustomerEntryDialog dlg(false, this);
00075 dlg.setDatabase();
00076 int customer = dlg.exec();
00077 printf("Ah3::haveEditCustomer(): Exit- customer %d selected\n", customer);
00078 fflush(stdout);
00079 };
00080 void haveWoLaborRequest();
00081 void haveWoPartsRequest();
00082
00083
00084
00085
00086
00087
00088 void haveNewJobBtn();
00089 void haveDeleteJobBtn();
00090 void haveSaveJobBtn();
00091 void haveSearchJobBtn();
00092 void haveClearJobBtn();
00093 void haveNewJobPartBtn();
00094 void haveDeleteJobPartBtn();
00095 void haveSaveJobPartBtn();
00096 void refreshAutoJobForm(QSqlRecord*);
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106 protected slots:
00107 void haveAbout()
00108 {
00109 AboutDlg dlg;
00110 dlg.exec();
00111 };
00112 void haveConfigure()
00113 {
00114
00115 pConfigDlg->exec();
00116 };
00117 void calcTotals();
00118
00119 void haveExit()
00120 {
00121 close();
00122 };
00123
00124 void openConfigurationDialog(int conf);
00125
00126 protected:
00127
00128 private:
00129 Ui::Ah3 ui;
00130 };
00131
00132 #endif