|
@@ -149,6 +149,7 @@ void ExportReportManager::insertProjectInfo()
|
|
|
void ExportReportManager::insertDemandAlg()
|
|
|
{
|
|
|
// bmWeightAlg bmEvalAlg
|
|
|
+ // bmWeightAlgDscpt bmEvalAlgDscpt
|
|
|
QList<SchemePlanManager::SchemeProcessInfo> processList;
|
|
|
bool processRet = SchemeProcessService().QueryAllByProjectIdAndIndexType(processList, m_proj->id, 1);
|
|
|
if (processRet == false) {
|
|
@@ -158,8 +159,10 @@ void ExportReportManager::insertDemandAlg()
|
|
|
for (int i = 0; i < processList.size(); ++i) {
|
|
|
if (processList[i].type == SchemePlanManager::CalculateWeight) {
|
|
|
SchemePlanManager::Algorithm alg = processList[i].algorithm;
|
|
|
- QString algStr = SchemePlanManager::stringFromAlgorithm(alg);
|
|
|
+ QString algStr = SchemePlanManager::nameOfAlgorithm(alg);
|
|
|
insertText("bmWeightAlg", algStr);
|
|
|
+ QString dscrpt = SchemePlanManager::descriptionOfAlgorithm(alg);
|
|
|
+ insertText("bmWeightAlgDscpt", dscrpt);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -171,8 +174,10 @@ void ExportReportManager::insertDemandAlg()
|
|
|
for (int i = 0; i < processList.size(); ++i) {
|
|
|
if (processList[i].type == SchemePlanManager::RunEvaluate) {
|
|
|
SchemePlanManager::Algorithm alg = processList[i].algorithm;
|
|
|
- QString algStr = SchemePlanManager::stringFromAlgorithm(alg);
|
|
|
+ QString algStr = SchemePlanManager::nameOfAlgorithm(alg);
|
|
|
insertText("bmEvalAlg", algStr);
|
|
|
+ QString dscrpt = SchemePlanManager::descriptionOfAlgorithm(alg);
|
|
|
+ insertText("bmEvalAlgDscpt", dscrpt);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -859,6 +864,7 @@ void ExportReportManager::insertSchemeData()
|
|
|
void ExportReportManager::insertSchemeAlgInfo()
|
|
|
{
|
|
|
// bmWeightAlg bmEvalAlg
|
|
|
+ // bmWeightAlgDscpt bmEvalAlgDscpt
|
|
|
QList<SchemePlanManager::SchemeProcessInfo> processList;
|
|
|
bool processRet = SchemeProcessService().QueryAllByProjectIdAndIndexType(processList, m_proj->id, 4);
|
|
|
if (processRet == false) {
|
|
@@ -868,13 +874,17 @@ void ExportReportManager::insertSchemeAlgInfo()
|
|
|
for (int i = 0; i < processList.size(); ++i) {
|
|
|
if (processList[i].type == SchemePlanManager::CalculateWeight) {
|
|
|
SchemePlanManager::Algorithm alg = processList[i].algorithm;
|
|
|
- QString algStr = SchemePlanManager::stringFromAlgorithm(alg);
|
|
|
+ QString algStr = SchemePlanManager::nameOfAlgorithm(alg);
|
|
|
insertText("bmWeightAlg", algStr);
|
|
|
+ QString dscrpt = SchemePlanManager::descriptionOfAlgorithm(alg);
|
|
|
+ insertText("bmWeightAlgDscpt", dscrpt);
|
|
|
}
|
|
|
if (processList[i].type == SchemePlanManager::RunEvaluate) {
|
|
|
SchemePlanManager::Algorithm alg = processList[i].algorithm;
|
|
|
- QString algStr = SchemePlanManager::stringFromAlgorithm(alg);
|
|
|
+ QString algStr = SchemePlanManager::nameOfAlgorithm(alg);
|
|
|
insertText("bmEvalAlg", algStr);
|
|
|
+ QString dscrpt = SchemePlanManager::descriptionOfAlgorithm(alg);
|
|
|
+ insertText("bmEvalAlgDscpt", dscrpt);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1084,6 +1094,7 @@ void ExportReportManager::insertEffiIndex()
|
|
|
void ExportReportManager::insertEffiAlgInfo()
|
|
|
{
|
|
|
// bmWeightAlg bmEvalAlg
|
|
|
+ // bmWeightAlgDscpt bmEvalAlgDscpt
|
|
|
QList<SchemePlanManager::SchemeProcessInfo> processList;
|
|
|
bool processRet = SchemeProcessService().QueryAllByProjectIdAndIndexType(processList, m_proj->id, 8);
|
|
|
if (processRet == false) {
|
|
@@ -1093,8 +1104,10 @@ void ExportReportManager::insertEffiAlgInfo()
|
|
|
for (int i = 0; i < processList.size(); ++i) {
|
|
|
if (processList[i].type == SchemePlanManager::CalculateWeight) {
|
|
|
SchemePlanManager::Algorithm alg = processList[i].algorithm;
|
|
|
- QString algStr = SchemePlanManager::stringFromAlgorithm(alg);
|
|
|
+ QString algStr = SchemePlanManager::nameOfAlgorithm(alg);
|
|
|
insertText("bmWeightAlg", algStr);
|
|
|
+ QString dscrpt = SchemePlanManager::descriptionOfAlgorithm(alg);
|
|
|
+ insertText("bmWeightAlgDscpt", dscrpt);
|
|
|
}
|
|
|
if (processList[i].type == SchemePlanManager::RunEvaluate) {
|
|
|
SchemePlanManager::Algorithm alg = processList[i].algorithm;
|
|
@@ -1103,8 +1116,10 @@ void ExportReportManager::insertEffiAlgInfo()
|
|
|
} else {
|
|
|
m_schemeType = 2;
|
|
|
}
|
|
|
- QString algStr = SchemePlanManager::stringFromAlgorithm(alg);
|
|
|
+ QString algStr = SchemePlanManager::nameOfAlgorithm(alg);
|
|
|
insertText("bmEvalAlg", algStr);
|
|
|
+ QString dscrpt = SchemePlanManager::descriptionOfAlgorithm(alg);
|
|
|
+ insertText("bmEvalAlgDscpt", dscrpt);
|
|
|
}
|
|
|
}
|
|
|
}
|