|
@@ -49,14 +49,16 @@ bool ImportDataUtil::importSystemData()
|
|
|
CNodeData nodeData;
|
|
|
QStringList nodeDataList = nodeList[i].split(",");
|
|
|
if (nodeDataList.size() > 1) {
|
|
|
- nodeData.id = nodeDataList[0].toInt();
|
|
|
- nodeData.projectId = nodeDataList[1].toInt();
|
|
|
- nodeData.indexType = nodeDataList[2].toInt();
|
|
|
- nodeData.number = nodeDataList[3].toInt();
|
|
|
- nodeData.pNumber = nodeDataList[4].toInt();
|
|
|
- nodeData.name = nodeDataList[5];
|
|
|
- nodeData.remark = nodeDataList[6];
|
|
|
- nodeData.dimension = nodeDataList[7];
|
|
|
+ nodeData.id = nodeDataList[0].toInt();
|
|
|
+ nodeData.projectId = nodeDataList[1].toInt();
|
|
|
+ nodeData.indexType = nodeDataList[2].toInt();
|
|
|
+ nodeData.number = nodeDataList[3].toInt();
|
|
|
+ nodeData.pNumber = nodeDataList[4].toInt();
|
|
|
+ nodeData.name = nodeDataList[5];
|
|
|
+ nodeData.remark = nodeDataList[6];
|
|
|
+ nodeData.dimension = nodeDataList[7];
|
|
|
+ nodeData.type = nodeDataList[8].toInt();
|
|
|
+ nodeData.isEffective = nodeDataList[9].toInt();
|
|
|
CNodeDataService().SaveCNodeData(nodeData);
|
|
|
}
|
|
|
}
|
|
@@ -82,15 +84,13 @@ bool ImportDataUtil::importSystemData()
|
|
|
user.writeTime = userInfoList[12];
|
|
|
user.projectId = userInfoList[13];
|
|
|
int retuser = UserService().AddUserInfo(user);
|
|
|
- qDebug() << "-------------retUser=" << retuser;
|
|
|
+ // qDebug() << "-------------retUser=" << retuser;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- qDebug() << "-------------保存流程信息开始";
|
|
|
//保存流程信息
|
|
|
QStringList schemeProcessList = schemeProcess.split(";");
|
|
|
for (int i = 0; i < schemeProcessList.size(); i++) {
|
|
|
- qDebug() << "-------------保存流程信息开始";
|
|
|
QStringList schemeList = schemeProcessList[i].split(",");
|
|
|
if (schemeList.size() > 1) {
|
|
|
SchemePlanManager::SchemeProcessInfo info;
|
|
@@ -106,7 +106,7 @@ bool ImportDataUtil::importSystemData()
|
|
|
info.isChecked = tempValue.toBool();
|
|
|
|
|
|
int retscheme = SchemeProcessService().SaveSchemeProcess(info);
|
|
|
- qDebug() << "-------------retscheme=" << retscheme;
|
|
|
+ // qDebug() << "-------------retscheme=" << retscheme;
|
|
|
}
|
|
|
}
|
|
|
ret = true;
|