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

当前位置:首页 > (完整版)基于asp_net在线购物网站设计(含源文件)毕业论文

(完整版)基于asp_net在线购物网站设计(含源文件)毕业论文

  • 62 次阅读
  • 3 次下载
  • 2025/6/13 17:28:04

·订单管理系统: 订单维护,修改订单,删除订单; ·留言管理系统: 留言维护、删除、回复;

4.2系统功能结构图

第五章 系统功能实现

根据软件开发的基本流程,在完成了系统需求、系统分析、系统设计后,就进入系统实现阶段了,本系统使用三层架构进行开发,以下是整个系统的功能实现,包括前台的页面展示和后台的代码剖析。

5.1数据访问层

public class DB {

private SqlConnection con; public DB() {

con = new SqlConnection(); con.ConnectionString =

ConfigurationManager.AppSettings[\].ToString(); }

public void open() {

if (con.State == ConnectionState.Closed) {

con.Open(); }

}

public void close() {

if (con.State == ConnectionState.Open) {

con.Close(); } }

public DataTable DT(string sqlStr) {

SqlDataAdapter sda = new SqlDataAdapter(sqlStr, con); DataSet ds = new DataSet(); sda.Fill(ds); return ds.Tables[0]; }

public DataSet DS(string sqlStr) {

SqlDataAdapter sda = new SqlDataAdapter(sqlStr, con); DataSet ds = new DataSet(); sda.Fill(ds); return ds; }

public bool ExeSql(string sqlStr) {

open();

SqlCommand cmd = new SqlCommand(sqlStr, con); int i = cmd.ExecuteNonQuery(); close(); if (i > 0) {

return true; }

return false;

}

public bool ExeCount(string sqlStr) {

open();

SqlCommand cmd = new SqlCommand(sqlStr, con); int i = Convert.ToInt32(cmd.ExecuteScalar()); close(); if (i > 0) {

return true; }

return false; }

public string FirstStr(string sqlStr) {

open();

SqlCommand cmd = new SqlCommand(sqlStr, con); string Str = Convert.ToString(cmd.ExecuteScalar()); close(); return Str; }

public DataTable DT(string SqlStr, SqlParameter[] prm, CommandType type) {

SqlCommand cmd = new SqlCommand(SqlStr, con); cmdmandType = type;

cmd.Parameters.AddRange(prm);

SqlDataAdapter sda = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); sda.Fill(ds);

return ds.Tables[0];}

5.2前台功能

5.2.1登录模块

系统将会根据登录用户的类型进入不同的操作页面。(普通会员登陆进

入购物网首页;管理员登陆进入网站后台管理)

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

共分享92篇相关文档

文档简介:

·订单管理系统: 订单维护,修改订单,删除订单; ·留言管理系统: 留言维护、删除、回复; 4.2系统功能结构图 第五章 系统功能实现 根据软件开发的基本流程,在完成了系统需求、系统分析、系统设计后,就进入系统实现阶段了,本系统使用三层架构进行开发,以下是整个系统的功能实现,包括前台的页面展示和后台的代码剖析。 5.1数据访问层 public class DB { private SqlConnection con; public DB() { con = new SqlConnection(); con.ConnectionString = ConfigurationManager.AppSetti

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价: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