aspnet天天书屋毕业设计(编辑修改稿)内容摘要:

NULL 7 第四章 系统 功能模块 系统各 功能模块划分 《 天天书屋 系统》 属综合性系统,数据量大,数据间的处理复杂。 为了更好的实现购物系统所需的功能,将本系统划分为 4 个系统模块: 商品管理系统: 客户可挑选网站内所有商品并订购, 管理员对商品进行添加、维护; 用户 管理系统: 管理员可对普通用户 的账户信息进行修改, 新闻管理系统: 新闻显示,新闻发布,新闻维护; 订单管理系统: 生成订单 显示, 订单发送 , 订单 维护; 系统 功能 结构图 8 第五章 系统功能实现 根据软件开发的基本流程 ,在完成了 系统需求、 系统分析、系统设计后,就 进 入 系统实现阶段了, 本系统使用三层架构进行开发 , 以下是整个系统的功能实现,包括前台的页面展示和后台的代码剖析。 首页 商品分类 新书展示 公告 新书动态 详细公告 新书 新书分类 新书展示 新书详情 购物车 商品选购 结账付款 登陆系统 账号登陆 注册账号 注册系统 后台管理 用户管理 商品管理 公告管理 退出 商品管理 商品添加 添加公告 公告管理 用户管理 前台功能 充值系统 注册账号 登录账号 返回主页 新书详情 账号充值 生成订单 订单管理 添加订单 订单管理 9 5. 1 数据访问层 public class DB { private SqlConnection con。 public DB() { con = new SqlConnection()。 = [conStr].ToString()。 } public void open() { if ( == ) { ()。 } } public void close() { if ( == ) { ()。 } } public DataTable DT(string sqlStr) { SqlDataAdapter sda = new SqlDataAdapter(sqlStr, con)。 DataSet ds = new DataSet()。 (ds)。 return [0]。 } public DataSet DS(string sqlStr) { SqlDataAdapter sda = new SqlDataAdapter(sqlStr, con)。 DataSet ds = new DataSet()。 (ds)。 return ds。 } public bool ExeSql(string sqlStr) { open()。 10 SqlCommand cmd = new SqlCommand(sqlStr, con)。 int i = ()。 close()。 if (i 0) { return true。 } return false。 } public bool ExeCount(string sqlStr) { open()。 SqlCommand cmd = new SqlCommand(sqlStr, con)。 int i = (())。 close()。 if (i 0) { return true。 } return false。 } public string FirstStr(string sqlStr) { open()。 SqlCommand cmd = new SqlCommand(sqlStr, con)。 string Str = (())。 close()。 return Str。 } public DataTable DT(string SqlStr, SqlParameter[] prm, CommandType type) { SqlCommand cmd = new SqlCommand(SqlStr, con)。 = type。 (prm)。 SqlDataAdapter sda = new SqlDataAdapter(cmd)。 DataSet ds = new DataSet()。 (ds)。 return [0]。 } 5. 2 前台功能 登录模块 系统会根据不同的用户登录进行不同的操作; 11 string code =。 if ( != 0) { if ( != 0) { if ([CheckCode].Value == code) { string SqlStr = select Count(*) from 用户表 where name=@userName and password=@passWord。 SqlParameter[] prm ={ new SqlParameter(@userName, ), new SqlParameter(@passWord, ) }。 prm[0].SqlValue = ()。 prm[1].SqlValue = ()。 if ((SqlStr, prm)) { string str = select nickname from 用户表 where name=39。 + () + 39。 Session[UserName] = (str).Rows[0][0].ToString()。 ()。 } 用户 登陆进入 页 面: 用户 登陆后 就可以 查看、购买 12 商品分类 充值系统 13 if ( != 0) { if ( != 0) { if ( != 0) { string sql = update 用户表 set money=money+ + () + where nickname=39。 + Session[Nickname].ToString() + 39。 if ((sql) == true) { = 充值成功。 你充值的金额为 + ()。 } } } 购物车 14 private void BindShoppingCart() { if (Session[cart] != null) { cart = (DataTa。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。