|
@@ -121,14 +121,14 @@ void AnalysisTableWidget::paintMatrixTable(QList<NodeMatrixInfo *> nodeValueInfo
|
|
|
ConsistencyCheck cc(nodes, nxn);
|
|
|
for (int r = 0; r < row; ++r) {
|
|
|
model->setItem(r, col + 1,
|
|
|
- new QStandardItem(QString::number(cc.getWieghts().at(r)) == "nan"
|
|
|
+ new QStandardItem(QString::number(cc.getWeights().at(r)) == "nan"
|
|
|
? ""
|
|
|
- : QString::number(cc.getWieghts().at(r))));
|
|
|
+ : QString::number(cc.getWeights().at(r))));
|
|
|
model->item(r, col + 1)->setTextAlignment(Qt::AlignCenter);
|
|
|
model->item(r, col + 1)->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
|
|
}
|
|
|
QStringList nodeList = cc.getNodes();
|
|
|
- QVector<qreal> weights = cc.getWieghts();
|
|
|
+ QVector<qreal> weights = cc.getWeights();
|
|
|
// qDebug() << weights;
|
|
|
QList<DemandWeight *> list;
|
|
|
for (int i = 0; i < weights.length(); i++) {
|
|
@@ -310,12 +310,12 @@ void AnalysisTableWidget::paintCompositeMatrixTable(QList<NodeMatrixInfo *> node
|
|
|
}
|
|
|
ConsistencyCheck cc(nodes, nxn);
|
|
|
for (int r = 0; r < row; ++r) {
|
|
|
- model->setItem(r, col + 1, new QStandardItem(QString::number(cc.getWieghts().at(r))));
|
|
|
+ model->setItem(r, col + 1, new QStandardItem(QString::number(cc.getWeights().at(r))));
|
|
|
model->item(r, col + 1)->setTextAlignment(Qt::AlignCenter);
|
|
|
model->item(r, col + 1)->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
|
|
}
|
|
|
QStringList nodeList = cc.getNodes();
|
|
|
- QVector<qreal> weights = cc.getWieghts();
|
|
|
+ QVector<qreal> weights = cc.getWeights();
|
|
|
QList<DemandWeight *> list;
|
|
|
for (int i = 0; i < weights.length(); i++) {
|
|
|
DemandWeight *demandWeight = new DemandWeight();
|
|
@@ -475,16 +475,16 @@ void AnalysisTableWidget::paintSecondMatrixTable(QList<NodeMatrixInfo *> nodeVal
|
|
|
ConsistencyCheck cc(nodes, nxn);
|
|
|
for (int r = 0; r < row; ++r) {
|
|
|
model->setItem(r, col + 1,
|
|
|
- new QStandardItem(QString::number(cc.getWieghts().at(r)) == "nan"
|
|
|
+ new QStandardItem(QString::number(cc.getWeights().at(r)) == "nan"
|
|
|
? ""
|
|
|
- : QString::number(cc.getWieghts().at(r))));
|
|
|
+ : QString::number(cc.getWeights().at(r))));
|
|
|
model->item(r, col + 1)->setTextAlignment(Qt::AlignCenter);
|
|
|
model->item(r, col + 1)->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
|
|
qreal firstWeight = 0;
|
|
|
if (m_firstTableWeight.size() > 0) {
|
|
|
firstWeight = m_firstTableWeight.at(index - 1)->nodeWeight;
|
|
|
}
|
|
|
- qreal value = cc.getWieghts().at(r) * firstWeight;
|
|
|
+ qreal value = cc.getWeights().at(r) * firstWeight;
|
|
|
model->setItem(r, col + 2,
|
|
|
new QStandardItem(QString::number(value) == "nan" ? "" : QString::number(value)));
|
|
|
model->item(r, col + 2)->setTextAlignment(Qt::AlignCenter);
|
|
@@ -492,7 +492,7 @@ void AnalysisTableWidget::paintSecondMatrixTable(QList<NodeMatrixInfo *> nodeVal
|
|
|
}
|
|
|
// 校验成功持久化数据
|
|
|
QStringList nodeList = cc.getNodes();
|
|
|
- QVector<qreal> weights = cc.getWieghts();
|
|
|
+ QVector<qreal> weights = cc.getWeights();
|
|
|
QList<DemandWeight *> list;
|
|
|
QList<DemandWeight *> firstList;
|
|
|
// DBServiceSet().QueryByTableIndexAndTableMsg(&firstList, m_expertId, m_engineerId, 0, m_table_msg);
|