You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "iDlgBase.h"
|
|
|
|
|
|
|
|
|
|
#include "mGuiDataLoad_global.h"
|
|
|
|
|
#include "ZxDataOtherItem.h"
|
|
|
|
|
|
|
|
|
|
class M_GUI_DATA_LOAD_EXPORT iWxDataShow : public iDlgBase
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
iWxDataShow(QWidget *parent = 0);
|
|
|
|
|
iWxDataShow(vecAccessItem vecItem,
|
|
|
|
|
bool IsOher = false,
|
|
|
|
|
int nNum = 3,
|
|
|
|
|
QWidget *parent = 0);
|
|
|
|
|
~iWxDataShow();
|
|
|
|
|
|
|
|
|
|
// 传递参数及Items
|
|
|
|
|
void setBasicInfos(vecAccessItem vecItem, \
|
|
|
|
|
bool IsOher = false, \
|
|
|
|
|
int nNum = 3);
|
|
|
|
|
|
|
|
|
|
//填充数据
|
|
|
|
|
void fillData(QStringList listField, VecVariant vecData);
|
|
|
|
|
|
|
|
|
|
//初始化
|
|
|
|
|
virtual void initUI();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
//添加所有的字段及数据项
|
|
|
|
|
void addWxUI();
|
|
|
|
|
|
|
|
|
|
//找字段对应的位置
|
|
|
|
|
bool getNdexByField(QString s, QStringList listField, int& ndex);
|
|
|
|
|
|
|
|
|
|
//添加每一项
|
|
|
|
|
void addWxItemUI(QGridLayout* pGridLayout, int nRow, int nCol,
|
|
|
|
|
zxDataOtherItem* pItem);
|
|
|
|
|
//
|
|
|
|
|
void fillEditByType(QString sField, QLineEdit* pEdit, QVariant var);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
//布局
|
|
|
|
|
QVBoxLayout* m_pMainLayout;
|
|
|
|
|
//item
|
|
|
|
|
vecAccessItem m_vecItem;
|
|
|
|
|
//数据填写
|
|
|
|
|
QVector<QLineEdit*> m_vecEdit;
|
|
|
|
|
//总列数
|
|
|
|
|
int m_nNum;
|
|
|
|
|
//是否仅仅显示Other的数据
|
|
|
|
|
bool m_bShowOtherOnly;
|
|
|
|
|
};
|