天津大学成人高等教育专科毕业设计(论文)
{ }
System.Console.WriteLine(ex.ToString());
}*/
public void getConnection() { }
public SqlDataReader getDataReader(string sql) {
try { }
catch(Exception ex)
13
//
// TODO: 在此处添加构造函数逻辑 //
strFile = new StreamReader(\myConn=new SqlConnection(strConn); try { }
catch(Exception ex) { }
System.Console.WriteLine(ex.ToString()); if(myConn.State==ConnectionState.Closed) { }
myConn.Open();
strConn = strFile.ReadLine();
/*comm.CommandText=sql; comm.Connection=myConn;*/ getConnection();
comm=new SqlCommand(sql,myConn);
/*SqlDataReader */reader=comm.ExecuteReader(); return reader;
天津大学成人高等教育专科毕业设计(论文)
}
{ }
return null;
System.Console.WriteLine(ex.ToString());
public bool doUpdate(string sql) { }
public int doExecuteScalar(string sql) {
int record=0; try { }
catch(Exception ex) {
return 0;
14
try { }
catch(Exception ex) { }
System.Console.WriteLine(ex.ToString()); return false; getConnection();
comm=new SqlCommand(sql,myConn); result=comm.ExecuteNonQuery(); if(result!=0)
return true; return false; else
getConnection();
comm=new SqlCommand(sql,myConn);
record=Convert.ToInt32(comm.ExecuteScalar().ToString()); return record;
天津大学成人高等教育专科毕业设计(论文)
}
}
public DataSet getDataSet(string sql,string table) { }
public DataSet getDataSet(string sql,int start,int size,string table) { }
public void closeConnection() {
15
try { }
catch(Exception ex) { }
System.Console.WriteLine(ex.ToString()); return null; getConnection();
SqlDataAdapter da=new SqlDataAdapter(sql,myConn); DataSet ds=new DataSet(); da.Fill(ds,table); return ds;
try { }
catch(Exception ex) { }
System.Console.WriteLine(ex.ToString()); return null; getConnection();
SqlDataAdapter da=new SqlDataAdapter(sql,myConn); DataSet ds=new DataSet(); da.Fill(ds,start,size,table); return ds;
}
}
}
天津大学成人高等教育专科毕业设计(论文)
try { if(myConn.State==ConnectionState.Open)
myConn.Close();
}
catch(Exception ex) { System.Console.WriteLine(ex.ToString()); myConn.Close();
} finally { myConn.Close();
}
16
天津大学成人高等教育专科毕业设计(论文)
第四章 系统详细设计与实现
4.1系统详细设计 4.1.1系统需求定义
作为读者对图书管理系统的要求有:
1. 能按各种方式(比如书名、编号、作者)查询图书馆的藏书情况。 2. 能够方便地借阅图书、续借图书、归还图书。 3. 能够查询自己的基本资料、借阅图书情况。 4. 能够熟悉图书管理系统的使用。 作为图书管理员对图书信息管理系统的要求有:
能快速更新图书信息,及时处理图书的借出,图书的返还,方便其他读者的借阅图书。 作为系统管理员,他们对图书管理系统的要求有:
1.能够方便地对新的读者进行注册,删除或更改读者的信息(基本信息,借阅信息)。 2.能够随时发布一些读者借阅图书超期情况、馆内藏书情况等信息。 3.能随时添加图书,更改图书信息或删除过期图书。
4.1.2系统功能说明
系统功能分析是在系统开发的总体任务的基础上完成。本系统需要完成的功能主要有5部分:
(1)图书基本情况的添加,修改,删除等基本操作。
1.书籍类别标准的制定,类别信息的输入,包括类别编号,类别名称,关键词,备注信息等。
2.书籍信息的查询,修改,包括类别编号,类别名称,关键词,备注信息等。 3.书籍信息的输入,包括书籍编号,书籍名称,书籍类别,作者名称,出版社名称,出版日期,书籍页数,关键词,登记日期,备注信息等。 (2)办理读者借书卡模块。
1.新读者的注册。
2.老读者信息的更改。 3.老读者的信息注销。 (3)实现借书功能。
1.借书信息的输入,包括借书信息编号,读书编号,读者姓名,书籍编号,书籍名称,借书日期,备注信息等。
2.借书信息的查询,修改,包括借书信息编号,读者编号,读者姓名,书籍编号,书
17
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库冶金图书管理系统(终)(5)在线全文阅读。
相关推荐: