#if !defined(AFX_ANALOGPROPERTYDLG_H__F2F714D0_8B12_4A66_9D89_433433F3FF2C__INCLUDED_) #define AFX_ANALOGPROPERTYDLG_H__F2F714D0_8B12_4A66_9D89_433433F3FF2C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // AnalogPropertyDlg.h : header file // #include "BtnST.h" #include "DataComboBox.h" #include "DDXFields.h" ///////////////////////////////////////////////////////////////////////////// // CAnalogPropertyDlg dialog class CAnalogPropertyDlg : public CDialog { // Construction public: CAnalogPropertyDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CAnalogPropertyDlg) enum { IDD = IDD_ANALOGPRO }; //}}AFX_DATA public: CADORecordset* m_pSet; CDDXFields m_DDXFields; enum {EDIT, COPY, NEW,EDITMORE}; enum {DATA_NUM, DATA_STR, DATA_BIT, DATA_BOOL, DATA_FLOAT}; int m_operation; CDataComboBox m_cmbVarType; CDataComboBox m_cmbFuncCode; CButtonST m_btnSave,m_btnCancel, m_btnSetStatus, m_btnDatePlan; CArrayStringBox m_varTypeArray; CArrayStringBox m_funcCodeArray; int m_nStartBit, m_nEndBit; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAnalogPropertyDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CAnalogPropertyDlg) virtual BOOL OnInitDialog(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: void ChangeCtrlInfo(); void ChangeCtrlInfoForEditMore(); void InitCtrlInfo(int nType); void InitCtrlInfoForEditMore(); void InsertToVariantManager(); void EditVariant(int nVarID); int CheckDataValid(); void InitRs232Combo(); CString GetInvalidMessage( CString sVarName,int iInitValue,int iMinValue,int iMaxValue,int iLowerValue,int iUpperValue,int iNormalValue,int iWarningLevel,int iIdentifyTime );//得到不合法的变量问题 public: afx_msg void OnBnClickedBtnCancel(); afx_msg void OnBnClickedBtnSave(); afx_msg void OnBnClickedBtnSelDev(); afx_msg void OnBnClickedBtnSelReg(); afx_msg void OnBnClickedBtnSelBit(); afx_msg void OnBnClickedBtnSetStatus(); afx_msg void OnBnClickedBtnDatePlan(); afx_msg void OnCbnSelendokComboVarType(); afx_msg void OnBnClickedBtnSelAlarmVar(); CString m_sVarName; CString m_sUid; int m_nVarID; //for EditMore void SetControlStatusForEditMore(); void EditMoreVar(); void GetVarForEditMore(); void GetVarForEditMoreOld(); CUIntArray m_nArrayListID; int m_nVarSaveNum; CString m_sVarSave[500]; int m_nVarSaveNumOld; CString m_sVarSaveOld[500]; int m_nPrevRow; }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_ANALOGPROPERTYDLG_H__F2F714D0_8B12_4A66_9D89_433433F3FF2C__INCLUDED_)