1 / 11
文档名称:

图书管理系统实验报告.doc

格式:doc   大小:39KB   页数:11页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

图书管理系统实验报告.doc

上传人:2028423509 2022/2/23 文件大小:39 KB

下载得到文件列表

图书管理系统实验报告.doc

相关文档

文档介绍

文档介绍:-
. z.
**
成绩
**
年级、班
师学院计算机与信息工程学院
期末作品报告书
指导教师:
题 目:图书管理系统
-
. (_variant_t)sql,(),adOpenKeyset,adLockOptimistic,adCmdTe*t);
if (m_pRs->RecordCount>0)
{
Flag = true;
username = m_pRs->GetCollect("name").bstrVal;
password = m_pRs->GetCollect("password").bstrVal;
-
. z.
//PostMessage(WM_CLOSE,0,0);
//EndDialog(0);
BookManMenu dlg;
();
}
else
{
username = ";
password = ";
MessageBo*("用户名或密码不正确.","提示",64);
return;
}
EndDialog(0);
// CDialog::OnCancel();
}

void OperatorDlg::OnAdd()
{
// TODO: Add your control notification handler code here
if (!InfoIsNull())
{
CString c_operator,c_password,c_level;
*t(c_operator);
*t(c_password);
*t(c_level);
int level= atoi(c_level);
CString sql;
("insert into tb_operator values ('%s','%s',%d)",c_operator,c_password,level);
if (m_pRs->State ==adStateOpen)
-
. z.
m_pRs->raw_Close();
try
{
m_pRs->Open((_bstr_t)sql,(),adOpenKeyset,adLockOptimistic,adCmdTe*t);
LoadOperatorInfo();
ClearInterface();
MessageBo*("操作成功.","提示",MB_OK);
}
catch(__error)
{
MessageBo*("操作失败.","提示",MB_OK|MB_ICONERROR);
}
}
else
MessageBo*("根底信息不能为空.","提示",MB_OK+MB_ICONINFORMATION);
}

void OperatorDlg::OnChangeope()
{
// TODO: Add your control notification handler code here
if (!InfoIsNull())
{
if (()!=-1)
{
if (MessageBo*("确实要修改数据吗","提示",MB_YESNO|MB_ICONINFORMATION)==IDYES)
{
CString c_operator,c_password,c_level;
-
. z.
*t(c_operator);
*t(c_password);
*t(c_level);
int level= atoi(c_level);
int i =