123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #if !defined(AFX_ANALOGSINGLEPROPERTYDLG_H_INCLUDED_)
- #define AFX_ANALOGSINGLEPROPERTYDLG_H_INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // AnalogPropertyDlg.h : header file
- //
- #include "BtnST.h"
- #include "DataComboBox.h"
- #include "DDXFields.h"
- /////////////////////////////////////////////////////////////////////////////
- // CAnalogSinglePropertyDlg dialog
- class CAnalogSinglePropertyDlg : public CDialog
- {
- // Construction
- public:
- CAnalogSinglePropertyDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CAnalogSinglePropertyDlg)
- enum { IDD = IDD_SINGLE_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,m_btnAdvanced;
- CArrayStringBox m_varTypeArray;
- CArrayStringBox m_funcCodeArray;
- int m_nStartBit, m_nEndBit;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAnalogSinglePropertyDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CAnalogSinglePropertyDlg)
- 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();
- 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 OnBnClickedBtnAdvanced();
- afx_msg void OnCbnSelendokComboVarType();
- afx_msg void OnBnClickedBtnSelAlarmVar();
- public:
- void JudgePermit();
- 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;
- CString GetInvalidMessage( CString sVarName,int iInitValue,int iMinValue,int iMaxValue,int iLowerValue,int iUpperValue,int iNormalValue,int iWarningLevel,int iIdentifyTime );//µÃµ½²»ºÏ·¨µÄ±äÁ¿ÎÊÌâ
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ANALOGSINGLEPROPERTYDLG_H_INCLUDED_)
|