91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

自己做的數據庫 課設代碼+報告 nuaa 做的不好 僅供參考

資源截圖

代碼片段和文件信息

//?AdmADDCDialog.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“Student.h“
#include?“AdmADDCDialog.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CAdmADDCDialog?dialog


CAdmADDCDialog::CAdmADDCDialog(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAdmADDCDialog::IDD?pParent)
{
//{{AFX_DATA_INIT(CAdmADDCDialog)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
}


void?CAdmADDCDialog::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAdmADDCDialog)
//?NOTE:?the?ClassWizard?will?add?DDX?and?DDV?calls?here
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAdmADDCDialog?CDialog)
//{{AFX_MSG_MAP(CAdmADDCDialog)
ON_BN_CLICKED(IDC_ADMADDC?OnAdmAddc)
ON_BN_CLICKED(IDC_ADMCANCLES?OnAdmcancles)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CAdmADDCDialog?message?handlers

void?CAdmADDCDialog::OnAdmAddc()?
{
//?TODO:?Add?your?control?notification?handler?code?here
CDatabase?db;
db.OpenEx(“DSN=Student“);
CString?strSQL;
CRecordset?rs(&db);

CString?temp1temp2temp3temp4temp5;

GetDlgItemText(IDC_EDIT1temp1);
GetDlgItemText(IDC_EDIT2temp2);
GetDlgItemText(IDC_EDIT3temp3);
GetDlgItemText(IDC_EDIT4temp4);
GetDlgItemText(IDC_EDIT5temp5);

if(temp1.IsEmpty())
{
AfxMessageBox(“課程編號不能為空!“);
return;
}

strSQL.Format(“select?*?from?Course?where?courseNum=‘%s‘“temp1);
rs.Open(CRecordset::snapshotstrSQL);
int?i=rs.GetRecordCount();
if(i!=0)
{
AfxMessageBox(“課程編號已經存在!“);
SetDlgItemText(IDC_EDIT1““);
return;
}

strSQL.Format(“insert?into?Course(courseNumcourseNamecourseTimecourseScorecourseBeforehand)?values(‘%s‘‘%s‘‘%s‘‘%s‘‘%s‘)“temp1temp2temp3temp4temp5);
db.ExecuteSQL(strSQL);

AfxMessageBox(“添加課程成功!“);

SetDlgItemText(IDC_EDIT1““);
SetDlgItemText(IDC_EDIT2““);
SetDlgItemText(IDC_EDIT3““);
SetDlgItemText(IDC_EDIT4““);
SetDlgItemText(IDC_EDIT5““);
}

void?CAdmADDCDialog::OnAdmcancles()?
{
//?TODO:?Add?your?control?notification?handler?code?here
SendMessage(WM_CLOSE);
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2344??2011-06-14?08:26??數據庫040830317金龍\Student\AdmADDCDialog.cpp

?????文件???????1294??2010-03-04?14:23??數據庫040830317金龍\Student\AdmADDCDialog.h

?????文件???????2402??2011-06-14?08:28??數據庫040830317金龍\Student\AdmADDSDialog.cpp

?????文件???????1292??2010-03-04?20:08??數據庫040830317金龍\Student\AdmADDSDialog.h

?????文件???????1444??2011-06-14?10:06??數據庫040830317金龍\Student\AdmCcDialog.cpp

?????文件???????1302??2011-06-14?10:06??數據庫040830317金龍\Student\AdmCcDialog.h

?????文件???????4460??2011-06-14?15:35??數據庫040830317金龍\Student\AdmChangecDialog.cpp

?????文件???????1339??2010-03-04?15:49??數據庫040830317金龍\Student\AdmChangecDialog.h

?????文件???????4253??2011-06-14?15:31??數據庫040830317金龍\Student\AdmChangesDialog.cpp

?????文件???????1343??2010-03-04?15:18??數據庫040830317金龍\Student\AdmChangesDialog.h

?????文件???????1954??2011-06-14?08:26??數據庫040830317金龍\Student\AdmCourseDialog.cpp

?????文件???????1280??2010-03-03?21:20??數據庫040830317金龍\Student\AdmCourseDialog.h

?????文件???????4501??2011-06-14?15:17??數據庫040830317金龍\Student\AdmDeletecDialog.cpp

?????文件???????1338??2010-03-04?14:46??數據庫040830317金龍\Student\AdmDeletecDialog.h

?????文件???????4332??2011-06-14?15:16??數據庫040830317金龍\Student\AdmDeletesDialog.cpp

?????文件???????1341??2010-03-04?15:34??數據庫040830317金龍\Student\AdmDeletesDialog.h

?????文件???????5012??2011-06-14?13:38??數據庫040830317金龍\Student\AdmDialog.cpp

?????文件???????1769??2011-06-14?13:36??數據庫040830317金龍\Student\AdmDialog.h

?????文件???????4820??2011-06-14?08:28??數據庫040830317金龍\Student\AdmStudentDialog.cpp

?????文件???????1432??2010-03-04?14:21??數據庫040830317金龍\Student\AdmStudentDialog.h

?????文件???????4748??2011-06-14?15:20??數據庫040830317金龍\Student\ChangeCourseDialog.cpp

?????文件???????1390??2011-06-14?15:20??數據庫040830317金龍\Student\ChangeCourseDialog.h

?????文件???????2376??2010-03-05?19:21??數據庫040830317金龍\Student\ChangeKey.cpp

?????文件???????1264??2010-03-05?19:21??數據庫040830317金龍\Student\ChangeKey.h

?????文件???????4573??2011-06-14?15:03??數據庫040830317金龍\Student\ChangeStudentDialog.cpp

?????文件???????1401??2011-06-14?14:49??數據庫040830317金龍\Student\ChangeStudentDialog.h

?????文件???????2588??2010-03-07?11:03??數據庫040830317金龍\Student\CJDialog.cpp

?????文件???????1216??2010-03-07?11:03??數據庫040830317金龍\Student\CJDialog.h

?????文件???????5046??2011-06-14?08:26??數據庫040830317金龍\Student\CourseDialog.cpp

?????文件???????1377??2010-03-04?14:20??數據庫040830317金龍\Student\CourseDialog.h

............此處省略129個文件信息

評論

共有 條評論