#include "TCBondWnd.h" TCBondWnd::TCBondWnd(QWidget *parent) : QWidget(parent) { ui.setupUi(this); Init(); } TCBondWnd::~TCBondWnd() {} void TCBondWnd::Init() { m_manageDB = ns_db::CManageDB::GetInstance(); if (m_pProduct == nullptr) { return; } m_pProduct = m_manageDB->GetCProduct(); if (m_pProduct == nullptr) { return; } /**»ñÈ¡Êý¾Ý¿â */ std::vector vecTemperatureList = m_pProduct->GetAllTemperatureList(); int nSize = vecTemperatureList.size(); for (int i = 0; i < nSize; i++) { ui.tempComboBox->addItem(QString::number(i + 1)); } } void TCBondWnd::SetCurrentSelect(int nIndex) { //m_pProduct->GetTemperatureList(); }