📄 channel.h
字号:
// Channel.h: interface for the CChannel class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHANNEL_H__28C3F3DE_D40C_498E_B2F4_4677874C1100__INCLUDED_)
#define AFX_CHANNEL_H__28C3F3DE_D40C_498E_B2F4_4677874C1100__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ADOConn.h"
class CChannel : public ADOConn
{
private:
long UID;
CString Name;
CString Desc;
public:
CChannel();
virtual ~CChannel();
void SetUID(int iUID);
int GetUID();
CString GetName();
CString GetDesc();
void SetName(CString cName);
void SetDesc(CString cDesc);
//数据库操作
void ShowList(CListCtrl& listctrl,CString strSQL="");
void sql_insert(CString cName,CString cDesc,long& iFlg,CString& cMessage);
void sql_update(long iUID,CString cName,CString cDesc,long& iFlg,CString& cMessage);
void sql_delete(long iUID,long& iFlg,CString& cMessage);
//读取所有字段值
int GetIDByName(CString cName);
void GetData(int UID);
void GetAllChannel(CStringArray& allChannels,CString strSQL="");
int getUIDByChannelName(CString channelName);
};
#endif // !defined(AFX_CHANNEL_H__28C3F3DE_D40C_498E_B2F4_4677874C1100__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -