set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[CheckCustomer]
@strCustomerName varchar(50)
AS
SELECT customerName,customerPass,customerTrueName,customerAddress,customerPostCode,customerPhone,customerEmail,customerRegDate,customerQuestion,customerAnswer
FROM tb_Customer
WHERE customerName = @strCustomerName
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[CustomerLogin]
@strCustomerName varchar(50),
@strPWD char(30)
AS
SELECT customerName,customerPass FROM tb_Customer
WHERE customerName = @strCustomerName AND customerPass = @strPWD
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[DeleteCustomer]
@strCustomerName varchar(50)
AS
DELETE FROM tb_Customer
WHERE customerName = @strCustomerName
RETURN
et ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
--根据商品ID删除商品
ALTER PROCEDURE [dbo].[DeleteGoods]
@intGoodsID int --商品ID
AS
DELETE FROM tb_Goods
WHERE goodsID = @intGoodsID
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[DeleteGoodsType]
@intGoodsTypeID int
AS
DELETE FROM tb_GoodsType
WHERE goodsTypeID = @intGoodsTypeID
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[DeleteOrder]
@intOrderID int
AS
BEGIN TRANSACTION
DELETE FROM tb_Order
WHERE orderID = @intOrderID
DELETE FROM tb_OrderDetail
WHERE orderID = @intOrderID
COMMIT TRANSACTION
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[DeleteOrderDetail]
@intOrderID int,
@intgoodsID int
AS
DELETE FROM tb_OrderDetail
WHERE orderID = @intOrderID AND goodsID = @intgoodsID
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetAllCustomers]
AS
SELECT * FROM tb_Customer
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetAllGoods]
AS
SELECT A.goodsID,A.goodsName,A.goodsTypeID,A.goodsDescript,A.goodsUnitPrice,A.goodsImageName,A.goodsDate,B.goodsTypeName
FROM tb_Goods AS A
INNER JOIN tb_GoodsType AS B
ON A.goodsTypeID = B.goodsTypeID
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetAllGoodsType]
AS
SELECT goodsTypeID,goodsTypeName FROM tb_GoodsType
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetAllOrder]
AS
SELECT * FROM tb_Order ORDER BY orderDate DESC
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetCustomerByName]
@strCustomerName varchar(50)
AS
SELECT customerName,customerPass,customerTrueName,customerAddress,customerPostCode,customerPhone,customerEmail,customerRegDate,customerQuestion,customerAnswer
FROM tb_Customer
WHERE customerName like '%' + @strCustomerName + '%'
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetGoodsByID]
@intGoodsID int
AS
SELECT goodsID,goodsName,goodsTypeID,goodsDescript,goodsUnitPrice,goodsImageName,goodsDate
FROM tb_Goods
WHERE goodsID = @intGoodsID
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
--按商品名称或者类型ID进行查询,不输入条件时获取全部
ALTER PROCEDURE [dbo].[GetGoodsByNameAndType]
@strGoodsName nvarchar(50), --商品名称
@intGoodsType int --商品种类ID
AS
SELECT A.goodsID,A.goodsName,A.goodsTypeID,A.goodsDescript,A.goodsUnitPrice,A.goodsImageName,A.goodsDate,B.goodsTypeName
FROM tb_Goods AS A
INNER JOIN tb_GoodsType AS B
ON A.goodsTypeID = B.goodsTypeID
WHERE (A.goodsName like '%' + @strGoodsName + '%') AND (a.goodsTypeID = @intGoodsType OR @intGoodsType = -1)
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetGoodsListByOrderID]
@intOrderID int
AS
/* SET NOCOUNT ON */
SELECT * FROM tb_Goods where goodsID IN (SELECT goodsID FROM tb_OrderDetail where orderID =@intOrderID)
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetGoodsTypeByID]
@intGoodsTypeID int
AS
SELECT goodsTypeID,goodsTypeName
FROM tb_GoodsType
WHERE goodsTypeID = @intGoodsTypeID
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetOrderByCustomer]
@strCustomerID nvarchar(20)
AS
/* SET NOCOUNT ON */
SELECT * FROM tb_order where customerName = @strCustomerID
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetOrderByID]
@intOrderID int
AS
/* SET NOCOUNT ON */
SELECT * FROM tb_Order WHERE orderID = @intOrderID
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[GetPopGoods]
AS
SELECT TOP 5 * FROM tb_Goods
ORDER BY sellCount DESC
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[InsertCustomer]
@strCustomerName nvarchar(20),
@strCustomerPass varchar(50),
@strCustomerTrueName nvarchar(10),
@strCustomerAddress nvarchar(100),
@strCustomerPostCode char(6),
@strCustomerPhone varchar(20),
@strCustomerEmail varchar(50),
@strCustomerQuestion nvarchar(100),
@strCustomerAnswer nvarchar(100)
AS
INSERT INTO tb_Customer(customerName,customerPass,customerTrueName,customerAddress,customerPostCode,customerPhone,customerEmail,customerQuestion,customerAnswer)
VALUES(@strCustomerName,@strCustomerPass,@strCustomerTrueName,@strCustomerAddress,@strCustomerPostCode,@strCustomerPhone,@strCustomerEmail,@strcustomerQuestion,@strcustomerAnswer)
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
--新增一种商品
ALTER PROCEDURE [dbo].[InsertGoods]
@strGoodsName nvarchar(50), --商品名称
@intGoodsTypeID int, --商品类型的ID
@strGoodsDescript nvarchar(max), --商品描述
@moneyGoodsUnitPrice money, --商品单价
@strGoodsImage nvarchar(50) --商品图片的文件名
AS
INSERT INTO tb_Goods(goodsName,goodsTypeID,goodsDescript,goodsUnitPrice,goodsImageName)
VALUES(@strGoodsName,@intGoodsTypeID,@strGoodsDescript,@moneyGoodsUnitPrice,@strGoodsImage)
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[InsertGoodsType]
@strGoodsTypeName nvarchar(50)
AS
INSERT INTO tb_GoodsType (goodsTypeName) VALUES(@strGoodsTypeName)
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[InsertOrder]
@strCustomerID nvarchar(20),
@totalMoney money,
@identity int output
AS
INSERT INTO tb_Order(customerName,totalMoney,orderDate,orderState)
VALUES(@strCustomerID,@totalMoney,getdate(),'0')
SELECT @identity = IDENT_CURRENT('tb_Order')
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[InsertOrderDetail]
@intOrderID int,
@intGoodsID int
AS
INSERT INTO tb_OrderDetail (orderID,goodsID)
VALUES(@intOrderID,@intGoodsID)
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[ManagerLogin]
@strManagerName nvarchar(20),
@strManagerPwd varchar(50)
AS
SELECT managerName,managerPWD
FROM tb_Manage
WHERE managerName = @strManagerName AND managerPWD = @strManagerPWD
RETURN
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[UpdateCustomer]
@strCustomerName nvarchar(20),
@strCustomerPass varchar(50),
@strCustomerTrueName nvarchar(50),
@strCustomerAddress nvarchar(100),
@strCustomerPostCode char(6),
@strCustomerPhone varchar(20),
@strCustomerEmail varchar(50),
@strCustomerQuestion nvarchar(100),
@strCustomerAnswer nvarchar(100)
AS
UPDATE tb_Customer set
customerPass = @strCustomerPass,
customerTrueName = @strCustomerTrueName,
customerAddress = @strCustomerAddress,
customerPostCode = @strCustomerPostCode,
customerPhone = @strCustomerPhone,
customerEmail = @strCustomerEmail,
c
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ajax .net asp asp.net c# SQl2005 最新基础技术构建的,三层架构分类写的,可以给初学Web开发分层的同道参考!特别还希望有在方面特长的高手指教!这次我把数据库全部上传上来,SQL2005的分页存储过程!
资源推荐
资源详情
资源评论
收起资源包目录
网上购物商城网站源代码,ajax .net asp asp.net c# SQl2005 最新基础技术构建的,三层架构分类写的. (115个子文件)
regCustomer.aspx 7KB
goodsEdit.aspx 6KB
default.aspx 6KB
customerManage.aspx 4KB
shoppingCart.aspx 4KB
orderDeal.aspx 4KB
orderManage.aspx 4KB
goodsTypeEdit.aspx 3KB
orderDetail.aspx 3KB
managelogin.aspx 3KB
account.aspx 3KB
changePassword.aspx 3KB
ordersInfo.aspx 3KB
FindPwd.aspx 2KB
goodsDetail.aspx 2KB
help.aspx 629B
logout.aspx 389B
ResolveAssemblyReference.cache 17KB
Web.config 6KB
DataAccess.cs 28KB
BusinessFacade.cs 11KB
regCustomer.aspx.designer.cs 7KB
goodsEdit.aspx.cs 7KB
shoppingCart.aspx.cs 6KB
goodsEdit.aspx.designer.cs 6KB
regCustomer.aspx.cs 5KB
default.aspx.designer.cs 4KB
default.aspx.cs 4KB
goodsTypeEdit.aspx.cs 4KB
goodsTypeEdit.aspx.designer.cs 3KB
managelogin.aspx.designer.cs 3KB
account.aspx.cs 3KB
changePassword.aspx.designer.cs 3KB
MasterPage.Master.designer.cs 3KB
FindPwd.aspx.designer.cs 3KB
orderDeal.aspx.cs 3KB
customerManage.aspx.cs 2KB
goodsDetail.aspx.cs 2KB
shoppingCart.aspx.designer.cs 2KB
orderManage.aspx.cs 2KB
MasterPage.Master.cs 2KB
orderDetail.aspx.cs 2KB
FindPwd.aspx.cs 2KB
customerManage.aspx.designer.cs 2KB
orderManage.aspx.designer.cs 2KB
orderDeal.aspx.designer.cs 2KB
account.aspx.designer.cs 2KB
Manager.Master.designer.cs 2KB
AssemblyInfo.cs 1KB
orderDetail.aspx.designer.cs 1KB
ordersInfo.aspx.designer.cs 1KB
goodsDetail.aspx.designer.cs 1KB
ordersInfo.aspx.cs 1KB
Common.cs 1KB
changePassword.aspx.cs 1KB
managelogin.aspx.cs 1KB
logout.aspx.designer.cs 977B
logout.aspx.cs 702B
help.aspx.designer.cs 633B
Manager.Master.cs 469B
help.aspx.cs 454B
OnlineShop.csproj 11KB
style.css 3KB
Thumbs.db 53KB
Thumbs.db 22KB
AjaxControlToolkit.dll 764KB
AspNetPager.dll 108KB
DataSet1.Designer.cs.dll 60KB
onlineshop.dll 52KB
onlineshop.dll 52KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
AjaxControlToolkit.resources.dll 5KB
login.gif 6KB
tab_04.gif 2KB
search.gif 1KB
search.gif 1KB
zc.gif 461B
btn1.gif 452B
btn2.gif 432B
tab_02.gif 424B
tab_03.gif 219B
more.gif 164B
point.gif 139B
bg2.gif 99B
Winter.jpg 103KB
top12.jpg 14KB
bg11.jpg 10KB
product.jpg 8KB
tab_01.jpg 3KB
共 115 条
- 1
- 2
Alex_Yu
- 粉丝: 12
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IMG_20240915_221334.jpg
- 程序员问卷调查表的内容
- 以下是 VB 入门教程及一个简单的开发案例
- 以下是一个 Web 开发入门教程,包括前端和后端基础知识,以及一个简单的开发案例
- SQL (Structured Query Language) 是用于管理和操作关系型数据库的标准语言
- STM32储能逆变器资料,提供原理图,pcb,源代码 基于STM32F103设计,具有并网充电、放电;并网离网自动切换;485
- Scratch 是一个基于图形化编程的工具,专门设计用于帮助儿童和初学者学习编程概念
- 逆变器光伏逆变器,3.6kw储能逆变器全套资料 STM32储能逆变器 BOOST 全桥 基于STM32F103设计,具有并网充
- 基于python+opencv的手势识别系统,可控制灯的亮度,智能家居,智能小车 基于python+opencv的手势识别系统
- VSC下垂控制策略仿真模型,支持MATLAB2014a及以上版本
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页