| | |
| | | #include "MsgDlg.h" |
| | | #include "InputDialog.h" |
| | | #include "RecipeDeviceBindDlg.h" |
| | | #include "DeviceRecipeParamDlg.h" |
| | | |
| | | |
| | | // CPageRecipe 对话框 |
| | |
| | | return; |
| | | } |
| | | |
| | | CString strText = m_listPPID.GetItemText(nItem, 2); |
| | | CString strRecipeID = m_listPPID.GetItemText(nItem, 2); |
| | | CString strRecipeName = m_listPPID.GetItemText(nItem, 3); |
| | | CComboBox* pComboBox = (CComboBox*)GetDlgItem(IDC_COMBO_EQUIPMENT); |
| | | int nEqSel = pComboBox->GetCurSel(); |
| | | if (nEqSel == CB_ERR) { |
| | | return; |
| | | } |
| | | |
| | | int nRecipeID = _ttoi(strRecipeID); |
| | | SERVO::CEquipment* pEq = (SERVO::CEquipment*)pComboBox->GetItemDataPtr(nEqSel); |
| | | if (pEq == nullptr) { |
| | | return; |
| | | } |
| | | |
| | | CDeviceRecipeParamDlg dlg(this); |
| | | dlg.setDeviceRecipeID(nRecipeID); |
| | | dlg.setDeviceRecipeName(strRecipeName); |
| | | dlg.setEquipment(pEq); |
| | | dlg.DoModal(); |
| | | } |
| | | |
| | | void CPageRecipe::OnCbnSelchangeComboEquipment() |