123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #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<ns_db::TEMPERATURE_LIST_STRUCT> 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();
- }
|