云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 数据库课程设计报告(员工培训管理系统)

数据库课程设计报告(员工培训管理系统)

  • 62 次阅读
  • 3 次下载
  • 2025/6/15 0:08:30

}

m_pRecordset->Close(); m_pConnection->Close(); return ;

//判断该课是否已有学生选择 str = \

m_pRecordset.CreateInstance(\m_pRecordset = m_pConnection->Execute(str.AllocSysString

(),NULL,adCmdText);

UpdateData(TRUE); OK=0;

while( !m_pRecordset->adoEOF ) { } if( OK ){ //

AfxMessageBox(\该课程已有学生选择,如要删除该课程,请先对选 pcid = m_pRecordset->GetCollect(\CString tmp1 = (LPCSTR)(_bstr_t)pcid; if( strcmp(m_Edit1_cid,tmp1)==0 ){ }

m_pRecordset->MoveNext();

OK=1; break;

课结果表进行修改\

if(::MessageBox(NULL,\该课程已有学生选择,如要删除该课程,

是否到选课管理进行删除?\提示\

this->ShowWindow(SW_HIDE);

DailogForMGResultC* dlg = new DailogForMGResultC

(userName,LinkSql); }

}

}

//以下删除数据 _variant_t ra;

_bstr_t strAdd = \

AfxMessageBox(strAdd); }

m_pRecordset->Close(); m_pConnection->Close(); return ;

dlg->DoModal();

this->ShowWindow(SW_SHOW);

m_pConnection->Execute(strAdd,&ra,adCmdText); m_pConnection->Close();

m_adodc1.SetRecordSource(\ m_adodc1.Refresh(); UpdateData(FALSE); AfxMessageBox(\成功删除\

void DailogForMGcourse::OnUPDATE() {

// TODO: Add your control notification handler code here UpdateData(TRUE);

_ConnectionPtr m_pConnection;

::CoInitialize(NULL);

try {

m_pConnection.CreateInstance(\

}

catch (_com_error e) {

::CoUninitialize();

_bstr_t strConn=LinkSql.AllocSysString();

m_pConnection->Open(strConn,\

//if(m_pConnection->State == adStateOpen) MessageBox(\成功连接数据库\

AfxMessageBox(e.ErrorMessage());

}

return;

//以下更新数据

_variant_t ra; int ok=0;

CString strAdd = \ \

if(m_Edit9_cscode!=\{ }

if(m_Edit1_cid==\{ } else {

if(m_Edit2_cname!=\{ }

if(m_Edit3_personid!=\

if(ok) else {

strAdd+=\ok=1;

strAdd += \strAdd += \ok=1;

AfxMessageBox(\请输入课程号\return ;

AfxMessageBox(\状态输入有误,请确认!\return ;

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

} m_pRecordset->Close(); m_pConnection->Close(); return ; //判断该课是否已有学生选择 str = \m_pRecordset.CreateInstance(\m_pRecordset = m_pConnection->Execute(str.AllocSysString (),NULL,adCmdText); UpdateData(TRUE); OK=0; while( !m_pRecordset->adoEOF ) {

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com