温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.net2.0电子商务网源码
当前文件路径:AspNetDianZiShangWu/BLL/Poll.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 Poll 13
{ 14
private static readonly IPoll polls = DataAccess.CreatePoll(); 15
16
/// <summary> 17
/// 获取投票 18
/// </summary> 19
/// <returns></returns> 20
public static IList<PollInfo> GetPoll() 21
{ 22
return polls.GetPoll(); 23
} 24
25
/// <summary> 26
/// 获取投票 27
/// </summary> 28
/// <returns></returns> 29
public static IList<PollInfo> GetTopPoll(int type) 30
{ 31
return polls.GetTopPoll(type); 32
} 33
34
/// <summary> 35
/// 获取特定投票 36
/// </summary> 37
/// <param name="link"></param> 38
/// <returns></returns> 39
public static PollInfo GetPollByID(int pollID) 40
{ 41
return polls.GetPollByID(pollID); 42
} 43
44
/// <summary> 45
/// 增加投票 46
/// </summary> 47
/// <param name="link"></param> 48
public static void InsertPoll(PollInfo poll) 49
{ 50
polls.InsertPoll(poll); 51
} 52
53
/// <summary> 54
/// 更新投票 55
/// </summary> 56
/// <param name="link"></param> 57
/// <returns></returns> 58
public static int UpdatePoll(PollInfo poll) 59
{ 60
return polls.UpdatePoll(poll); 61
} 62
63
/// <summary> 64
/// 更新投票 65
/// </summary> 66
/// <param name="link"></param> 67
/// <returns></returns> 68
public static int UpdatePollNum(PollInfo poll) 69
{ 70
return polls.UpdatePollNum(poll); 71
} 72
73
/// <summary> 74
/// 删除投票 75
/// </summary> 76
/// <param name="link"></param> 77
/// <returns></returns> 78
public static int DeletePoll(int pollID) 79
{ 80
return polls.DeletePoll(pollID); 81
} 82
} 83
} 84




[DataObjectAttribute]

}