|
@@ -66,6 +66,8 @@ DataCollectionWidget::DataCollectionWidget(ProjectInfo *proj, QWidget *parent) :
|
|
|
connect(m_configExpert, &ConfigExpertDataWidget::sigImportData, this, &DataCollectionWidget::slotImportData);
|
|
|
connect(m_configExpert, &ConfigExpertDataWidget::sigConfigSelected, this,
|
|
|
&DataCollectionWidget::slotConfigSelected);
|
|
|
+ connect(m_configScheme, &ConfigSchemeDataWidget::sigAddScheme, this, &DataCollectionWidget::slotAddScheme);
|
|
|
+ connect(m_configMeasure, &ConfigMeasureDataWidget::sigAddData, this, &DataCollectionWidget::slotAddData);
|
|
|
}
|
|
|
|
|
|
void DataCollectionWidget::setType(int type)
|
|
@@ -127,7 +129,7 @@ void DataCollectionWidget::setupTabWidget()
|
|
|
|
|
|
DataTableWidget *table = new DataTableWidget(importEffiEvalDataProcess, this);
|
|
|
table->mind1()->setNodeList(nodeListMap[i]);
|
|
|
- // table->setupModels();
|
|
|
+ table->setupModels();
|
|
|
m_tab->addTab(table, indexName + " - " + "收集效能评估数据");
|
|
|
}
|
|
|
|
|
@@ -146,7 +148,7 @@ void DataCollectionWidget::setupTabWidget()
|
|
|
if (i == ProjectManager::TechIndex) {
|
|
|
table->mind2()->setNodeList(nodeListMap[ProjectManager::AbilityIndex]);
|
|
|
}
|
|
|
- // table->setupModels();
|
|
|
+ table->setupModels();
|
|
|
|
|
|
QString processName = SchemePlanManager::processName(process);
|
|
|
m_tab->addTab(table, indexName + " - " + processName);
|
|
@@ -191,6 +193,11 @@ void DataCollectionWidget::slotCalc()
|
|
|
if (table == nullptr) {
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ GreyClusteringConfigWidget *gc = dynamic_cast<GreyClusteringConfigWidget *>(m_tab->currentWidget());
|
|
|
+ if (gc != nullptr) {
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << "gc" << endl;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void DataCollectionWidget::slotImportData(UserConfig *config)
|
|
@@ -343,3 +350,19 @@ void DataCollectionWidget::slotConfigSelected(UserConfig *config)
|
|
|
qDebug() << __FUNCTION__ << __LINE__ << config->engineerId << config->userId << indexName << data.size() << endl;
|
|
|
table->setData(data);
|
|
|
}
|
|
|
+
|
|
|
+void DataCollectionWidget::slotAddScheme()
|
|
|
+{
|
|
|
+ DataTableWidget *table = (DataTableWidget *)m_tab->currentWidget();
|
|
|
+ QString indexName = ProjectManager::nameOfIndexType((ProjectManager::IndexType)table->process().indexType);
|
|
|
+ QString processName = SchemePlanManager::processName(table->process());
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << indexName << processName << endl;
|
|
|
+}
|
|
|
+
|
|
|
+void DataCollectionWidget::slotAddData()
|
|
|
+{
|
|
|
+ DataTableWidget *table = (DataTableWidget *)m_tab->currentWidget();
|
|
|
+ QString indexName = ProjectManager::nameOfIndexType((ProjectManager::IndexType)table->process().indexType);
|
|
|
+ QString processName = SchemePlanManager::processName(table->process());
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << indexName << processName << endl;
|
|
|
+}
|