|
|
|
@ -9,6 +9,8 @@
|
|
|
|
|
|
|
|
|
|
#include "nmSubWndUtils.h"
|
|
|
|
|
#include "nmDataLogFile.h"
|
|
|
|
|
#include <vector>
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
iSubWnd* nmSubWndUtils::createSubWnd(iRibbonXmlCmd* pCmdInfo)
|
|
|
|
|
{
|
|
|
|
@ -22,12 +24,10 @@ iSubWnd* nmSubWndUtils::createSubWnd(QString sID, QString sExt)
|
|
|
|
|
{
|
|
|
|
|
iSubWnd* pSubWnd = NULL;
|
|
|
|
|
int nID = sID.toInt();
|
|
|
|
|
if (nID == 5001) {
|
|
|
|
|
#ifdef MY_OWN_GRID
|
|
|
|
|
pSubWnd = new iSubWndGrid(NULL, sExt);
|
|
|
|
|
#else
|
|
|
|
|
if (nID == 5101) {
|
|
|
|
|
// TODO,先弹窗做输入,做PVT的检查,做PVT的新建和选择
|
|
|
|
|
// 基于IDlgBase
|
|
|
|
|
pSubWnd = new nmSubWndDemo(NULL, sExt);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
if (NULL != pSubWnd) {
|
|
|
|
|
// TODO 此处根据需要设置 改变 标识
|
|
|
|
@ -38,10 +38,9 @@ iSubWnd* nmSubWndUtils::createSubWnd(QString sID, QString sExt)
|
|
|
|
|
|
|
|
|
|
bool nmSubWndUtils::isEnableOfID_Common(QString sID, QString sName, const bool bLicensed)
|
|
|
|
|
{
|
|
|
|
|
nmDataLogFile::getInstance()->writeLog(sID + " " + sName);
|
|
|
|
|
if (_isSame(sName, "NmDemo")) {
|
|
|
|
|
return (bLicensed);
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
nmDataLogFile::getInstance()->writeLog("isEnableOfID " + sID + " " + sName);
|
|
|
|
|
if (sID.toInt() == 5101) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|