📄 useraction.h
字号:
/**
* <p> Title: 对用户对象进行增加,删除,修改,查询功能的子类 </p>
* <p> Description:提供对用户对象进行增加,删除,修改,查询功能的处理 </p>
* <p> Copyright: Copyright (c) 2005-12-21 </p>
* <p> Company: bjut </p>
* @author gaok
* @version 1.0
* @Created on 2005-12-21
*/
#if !defined(AFX_USERACTION_H__D2B68610_F4C6_450C_A70B_7D4DA662B662__INCLUDED_)
#define AFX_USERACTION_H__D2B68610_F4C6_450C_A70B_7D4DA662B662__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Action.h"
#include "LoginRSet.h"
#include "UserVariable.h"
class UserAction : public Action
{
CLoginRSet m_recordset;
CDatabase m_database; // 声明数据库对象
CString sSql; // SQL文
CString sUserName; // 用户名
CString sPassword; // 密码
bool bIsAdmin; // 是否是管理员,权限级别的区别
CString m_username; // 录入人,修改人,删除人
public:
UserAction(Variable* vSt);
void add(); // 增加
void modify(); // 修改
void del(); // 删除
void search(); // 查询
void view(); // 查看
bool isEmpty(); // 判断数据库中是否存在此用户
CRecordset* RefreshData(CString strSQL); // 刷新列表
virtual ~UserAction();
};
#endif // !defined(AFX_USERACTION_H__D2B68610_F4C6_450C_A70B_7D4DA662B662__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -