2012年最新毕业论文--图书管理系统(6)

2019-04-08 22:55

参考文献

[1] 天极网新技术研究室,ASP.NET完全入门,人民邮电出版社,2001年 [2] 启明工作室编著,ASP.NET网络应用系统开发与实例,人民邮电出版社,2005年

[3] ASP.NET程序设计项目教程,北京理工大学出版社,2010年 [4] 软件工程与UML,电子工业出版社,2009年

[5] ASP.NET程序教程案例,北京理工大学出版社,2008年

[6] ASP.NET程序设计教程 闫洪亮等 编著 上海交通大学出版社 2006年1月出版

[7] ASP.NET Web 服务高级编程. Russ Basiura等著 杨浩译 清华大学出版社, 2003.2

[8] ASP.NET程序设计项目教程 李国庆 主编 北京理工大学出版社 2010 .1

- 23 -

(附 录)

系统主要代码:

① 网站首页主要代码: using System; using System.Data;

using System.Configuration; using System.Collections; using System.Web;

using System.Web.Security; using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient;

public partial class user_index : System.Web.UI.Page {

protected void Page_Load(object sender, EventArgs e) {

if (Session[\] != null) {

bindBookInfo();

}

else

Response.Redirect(\); }

protected void bindBookInfo() {

string sql = \borrowSum desc\;

- 24 -

gvBookTaxis.DataSource = dataOperate.getDataset(sql, \); }

protected void gvBookTaxis_RowDataBound(object sender, GridViewRowEventArgs e) {

if (e.Row.RowIndex != -1) {

int id = e.Row.RowIndex + 1;

e.Row.Cells[0].Text = id.ToString(); }

if (e.Row.RowType == DataControlRowType.DataRow) {

string bookType = e.Row.Cells[3].Text.ToString(); string typeSql = \* from tb_bookType where TypeID=\ + bookType;

SqlDataReader typeSdr = dataOperate.getRow(typeSql); typeSdr.Read(); e.Row.Cells[3].Text = typeSdr[\].ToString(); string bookcase = e.Row.Cells[4].Text.ToString(); string caseSql = \bookcaseID=\ + bookcase;

SqlDataReader caseSdr = dataOperate.getRow(caseSql); caseSdr.Read(); e.Row.Cells[4].Text = caseSdr[\].ToString();

e.Row.Attributes.Add(\,

\tBlue'\);

e.Row.Attributes.Add(\, \); }

- 25 -

gvBookTaxis.DataBind();

} }

② 图书馆信息主要代码: using System; using System.Data;

using System.Configuration; using System.Collections; using System.Web;

using System.Web.Security; using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient;

public partial class user_tsgxx : System.Web.UI.Page {

protected void Page_Load(object sender, EventArgs e) {

if (Session[\] != null) {

if (getSet()) {

if (!IsPostBack) {

bindLibrary(); } } else

Response.Write(\您没有此权限');location='index.aspx';\); } else {

- 26 -

Response.Redirect(\); } }

protected void btnSave_Click(object sender, EventArgs e) {

string libraryName = txtLibraryName.Text; string curator = txtCurator.Text; string tel = txtTel.Text; string address = txtAddress.Text; string email = txtEmail.Text; string net = txtNet.Text;

string upbuildTime = txtUpbuildTime.Text; string remark = txtRemark.Text;

string sql = \ + libraryName + \ + curator + \ + tel + \ + address + \ + email + \ +

net + \ + upbuildTime + \ + remark + \;

if (dataOperate.execSQL(sql)) {

RegisterStartupScript(\, \保存成功!')\); } else {

RegisterStartupScript(\, \保存失败!')\); } }

public bool getSet() {

string userName = Session[\].ToString();

string sql = \ +

- 27 -


2012年最新毕业论文--图书管理系统(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:发酵豆粕常见指标检测方法

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: