51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
#ifndef QTELSALEPOLICYINFOINPUTWIDGET_H
|
|
#define QTELSALEPOLICYINFOINPUTWIDGET_H
|
|
|
|
#include <vector>
|
|
#include <QtWidgets/QtWidgets>
|
|
#include "DataManipulation.h"
|
|
#include "ui_QTelSalePolicyInfoInputWidget.h"
|
|
|
|
class QTelSalePolicyInfoInputWidget : public QWidget, public Ui::QTelSalePolicyInfoInputWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QTelSalePolicyInfoInputWidget(QWidget *parent = 0);
|
|
~QTelSalePolicyInfoInputWidget();
|
|
|
|
public Q_SLOTS:
|
|
void onSalerCodeChanged();
|
|
void onQuerySalerName();
|
|
void onAutoTraderCodeChanged();
|
|
void onQueryAutoTraderName();
|
|
void onSavePolicy();
|
|
void onResetGiftsTable();
|
|
void onGiftTableItemChanged( int row, int column );
|
|
void onReset();
|
|
|
|
private:
|
|
void init();
|
|
void initWidget();
|
|
void initSignal();
|
|
void initData();
|
|
void InitGiftTable();
|
|
void readGiftTable( vector<TelSalePolicyGift> & giftList );
|
|
|
|
private:
|
|
string m_strSalerCode;
|
|
string m_strSalerName;
|
|
string m_strSalerDeptCode;
|
|
string m_strSalerDeptName;
|
|
string m_strSalerOfficeCode;
|
|
string m_strSalerOfficeName;
|
|
string m_strAutoTraderCode;
|
|
string m_strAutoTraderName;
|
|
|
|
vector<TelSalePolicyGift> m_giftsList;
|
|
|
|
bool m_initing;
|
|
};
|
|
|
|
#endif // QTELSALEPOLICYINFOINPUTWIDGET_H
|