2018-06-01 09:36:01 +00:00
|
|
|
#ifndef QTELSALEPOLICYINFOINPUTWIDGET_H
|
|
|
|
#define QTELSALEPOLICYINFOINPUTWIDGET_H
|
|
|
|
|
|
|
|
#include <vector>
|
2018-06-02 09:47:28 +00:00
|
|
|
#include <QtWidgets/QtWidgets>
|
2018-06-01 09:36:01 +00:00
|
|
|
#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();
|
2018-06-15 02:19:41 +00:00
|
|
|
|
|
|
|
/************************************************
|
|
|
|
* \brief 读取礼品列表
|
|
|
|
* \param giftList
|
|
|
|
************************************************/
|
2018-06-01 09:36:01 +00:00
|
|
|
void readGiftTable( vector<TelSalePolicyGift> & giftList );
|
|
|
|
|
|
|
|
private:
|
2018-06-15 02:19:41 +00:00
|
|
|
string salerCode;
|
|
|
|
string salerName;
|
|
|
|
string salerDeptCode;
|
|
|
|
string salerDeptName;
|
|
|
|
string salerOfficeCode;
|
|
|
|
string salerOfficeName;
|
|
|
|
string autoTraderCode;
|
|
|
|
string autoTraderName;
|
|
|
|
|
|
|
|
vector<TelSalePolicyGift> giftsList;
|
2018-06-01 09:36:01 +00:00
|
|
|
|
|
|
|
bool m_initing;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QTELSALEPOLICYINFOINPUTWIDGET_H
|