fix(ui): 隐藏预测和敏感性分析中未接入的功能

- 预测仅保留多段产量算压力,隐藏未实现的选项
- 敏感性分析隐藏未接入参数及 PVT 分组
- 保留 Skin、C、Pi、k、h、φ 六类敏感性参数
develop
lh 2 days ago
parent 9c8b11fdf9
commit 1bf77b0d34

@ -150,10 +150,13 @@ void nmWxForecast::setupUI()
m_decliningPressureRadio = new QRadioButton(tr("Declining pressure (ramp)"), this);
m_multiplePressuresRadio = new QRadioButton(tr("Multiple pressures"), this);
m_multipleRatesRadio = new QRadioButton(tr("Multiple rates"), this);
// 求解器目前仅接通产量控制;压力控制保留入口但不允许生成。
// 目前仅开放产量算压力,暂时隐藏尚未实现的压力控制入口。
m_constantPressureRadio->setEnabled(false);
m_constantPressureRadio->hide();
m_decliningPressureRadio->setEnabled(false);
m_decliningPressureRadio->hide();
m_multiplePressuresRadio->setEnabled(false);
m_multiplePressuresRadio->hide();
m_forecastButtonGroup = new QButtonGroup(this);
m_forecastButtonGroup->addButton(m_constantPressureRadio, 0);
@ -164,15 +167,17 @@ void nmWxForecast::setupUI()
m_usePastHistoryCheck = new QCheckBox(tr("Use past history"), this);
m_surfacePressuresCheck = new QCheckBox(tr("Surface pressures"), this);
m_usePastHistoryCheck->setEnabled(false);
m_usePastHistoryCheck->hide();
m_surfacePressuresCheck->setEnabled(false);
m_surfacePressuresCheck->hide();
QGridLayout* optionsLayout = new QGridLayout();
optionsLayout->setHorizontalSpacing(16);
optionsLayout->setVerticalSpacing(8);
optionsLayout->addWidget(m_constantPressureRadio, 0, 0);
optionsLayout->addWidget(m_decliningPressureRadio, 0, 1);
optionsLayout->addWidget(m_multiplePressuresRadio, 1, 0);
optionsLayout->addWidget(m_multipleRatesRadio, 1, 1);
optionsLayout->addWidget(m_multipleRatesRadio, 0, 0);
optionsLayout->addWidget(m_constantPressureRadio, 0, 1);
optionsLayout->addWidget(m_decliningPressureRadio, 1, 0);
optionsLayout->addWidget(m_multiplePressuresRadio, 1, 1);
m_forecastOptionsLayout->addLayout(optionsLayout);
QHBoxLayout *checkBoxLayout = new QHBoxLayout();
@ -304,6 +309,7 @@ void nmWxForecast::setupUI()
m_resultPlotButton->setObjectName("nmForecastResultPlots");
m_cancelButton = new QPushButton(tr("Cancel"), this);
m_loadDataButton->setEnabled(false);
m_loadDataButton->hide();
m_generateButton->setIcon(zxLoadIcon("OK"));
m_cancelButton->setIcon(zxLoadIcon("Cancel"));

@ -2063,6 +2063,7 @@ void nmWxSensitive::populateTreeWidget()
child->setData(0, Qt::UserRole + 1, well->getWellCode());
child->setCheckState(0, Qt::Unchecked);
child->setDisabled(!isSupportedSamplingVariable(children[i]));
child->setHidden(!isSupportedSamplingVariable(children[i]));
}
}
@ -2081,6 +2082,7 @@ void nmWxSensitive::populateTreeWidget()
childItem->setCheckState(0, Qt::Unchecked);
childItem->setFlags(childItem->flags() | Qt::ItemIsUserCheckable);
childItem->setDisabled(!isSupportedSamplingVariable(reservoirChildren.at(i)));
childItem->setHidden(!isSupportedSamplingVariable(reservoirChildren.at(i)));
}
// ===== Pvt =====
@ -2094,6 +2096,7 @@ void nmWxSensitive::populateTreeWidget()
compressibilityItem->setCheckState(0, Qt::Unchecked);
compressibilityItem->setFlags(compressibilityItem->flags() | Qt::ItemIsUserCheckable);
compressibilityItem->setDisabled(true);
pvtItem->setHidden(true);
variablesTree->expandAll();
}

Loading…
Cancel
Save