47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "def.h"
|
|
#include "script.h"
|
|
|
|
class CStatusInfo : public CScript
|
|
{
|
|
public:
|
|
CStatusInfo(void);
|
|
~CStatusInfo(void);
|
|
|
|
private:
|
|
WORD m_wStateID;
|
|
CString m_strType;
|
|
CString m_strStateName;
|
|
WORD m_wNameCode;
|
|
WORD m_wDescCode;
|
|
WORD m_wIconCode;
|
|
WORD m_wByType;
|
|
|
|
//Get Method
|
|
public:
|
|
inline WORD GetStateID(){return m_wStateID;}
|
|
inline CString GetType(){return m_strType;}
|
|
inline CString GetStateName(){return m_strStateName;}
|
|
inline WORD GetNameCode(){return m_wNameCode;}
|
|
inline WORD GetDescCode(){return m_wDescCode;}
|
|
inline WORD GetIconInfo(){return m_wIconCode;}
|
|
inline WORD GetByType(){return m_wByType;}
|
|
CString GetItem(int nCol);
|
|
|
|
//Set Method
|
|
BOOL SetStateID(VARIANT value, int& nErrorCode);
|
|
BOOL SetType(VARIANT value, int& nErrorCode);
|
|
BOOL SetStateName(VARIANT value, int& nErrorCode);
|
|
BOOL SetNameCode(VARIANT value, int& nErrorCode);
|
|
BOOL SetDescCode(VARIANT value, int& nErrorCode);
|
|
BOOL SetIconInfo(VARIANT value, int& nErrorCode);
|
|
BOOL SetByType(VARIANT value, int& nErrorCode);
|
|
|
|
//General Method
|
|
public:
|
|
CString GetContentsAll();
|
|
BOOL SaveData(int nCol,COleVariant value, int& nErrorCode);
|
|
|
|
};
|