温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.net2.0电子商务网源码
当前文件路径:AspNetDianZiShangWu/BLL/Orders.cs

1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.ComponentModel; 5
using Jiaen.Components; 6
using Jiaen.Components.IDAL; 7
using Jiaen.SQLServerDAL; 8
9
namespace Jiaen.BLL 10
{ 11
[DataObjectAttribute] 12
public class Orders 13
{ 14
private static readonly IOrders orders = DataAccess.CreateOrders(); 15
16
/// <summary> 17
/// 获取订单 18
/// </summary> 19
/// <returns></returns> 20
public static IList<OrdersInfo> GetAllOrders() 21
{ 22
return orders.GetAllOrders(); 23
} 24
25
/// <summary> 26
/// 获取今日订单信息 27
/// </summary> 28
/// <returns></returns> 29
IList<OrdersInfo> GetTodayOrders() 30
{ 31
return orders.GetTodayOrders(); 32
} 33
34
public static IList<OrdersInfo> GetStatusOrders(int state) 35
{ 36
return orders.GetStatusOrders(state); 37
} 38
/// <summary> 39
/// 获取订单详细信息 40
/// </summary> 41
/// <param name="link"></param> 42
/// <returns></returns> 43
public static OrdersInfo GetOrdersByID(long orderID) 44
{ 45
return orders.GetOrdersByID(orderID); 46
} 47
48
/// <summary> 49
/// 获取时间年 50
/// </summary> 51
/// <returns></returns> 52
public static IList<OrdersInfo> GetYearOrders() 53
{ 54
return orders.GetYearOrders(); 55
} 56
57
/// <summary> 58
/// 添加订单信息 59
/// </summary> 60
/// <param name="link"></param> 61
public static void InsertOrders(OrdersInfo order) 62
{ 63
orders.InsertOrders(order); 64
} 65
66
/// <summary> 67
/// 获取订单产品信息 68
/// </summary> 69
/// <returns></returns> 70
public static IList<OrderDetailInfo> GetDerailByID(long orderID) 71
{ 72
return orders.GetDerailByID(orderID); 73
} 74
75
/// <summary> 76
/// 获取用户订单 77
/// </summary> 78
/// <returns></returns> 79
public static IList<OrdersInfo> GetUserOrders(string userName) 80
{ 81
return orders.GetUserOrders(userName); 82
} 83
84
/// <summary> 85
/// 获取用户订单 86
/// </summary> 87
/// <returns></returns> 88
public static IList<OrdersInfo> GetUserOrders() 89
{ 90
return orders.GetUserOrders(); 91
} 92
93
/// <summary> 94
/// 更新订单信息 95
/// </summary> 96
/// <returns></returns> 97
public static int UpdateOrderTypeByID(OrdersInfo order) 98
{ 99
return orders.UpdateOrderTypeByID(order); 100
} 101
102
/// <summary> 103
/// 更新订单状态 104
/// </summary> 105
/// <returns></returns> 106
public static int UpdateOrderStatusByID(int status, long orderID) 107
{ 108
return orders.UpdateOrderStatusByID(status, orderID); 109
} 110
111
/// <summary> 112
/// 更新订单状态 113
/// </summary> 114
/// <returns></returns> 115
public static int UpdateOrderPayByID(decimal money, long orderID) 116
{ 117
return orders.UpdateOrderPayByID(money, orderID); 118
} 119
120
public static int UpdateOrderDateByID(long orderID) 121
{ 122
return orders.UpdateOrderDateByID(orderID); 123
} 124
125
public static bool GetBookByID(int bookID, int status) 126
{ 127
return orders.GetBookByID(bookID,status); 128
} 129
} 130
} 131




[DataObjectAttribute]

}