温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:衣购网站项目(三层开发)源码
当前文件路径:ClothesShop/BLL/relay.cs

1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using ClothesShop.DALFactory; 5
using ClothesShop.IDAL; 6
using System.Data; 7
using System.Data.OleDb; 8
namespace ClothesShop.BLL 9
{ 10
public class relay 11
{ 12
private static readonly Irelay rel = DataAccess.Createrelay(); 13
14
/// <summary> 15
/// 添加一条回复 16
/// </summary> 17
/// <param name="Relay_Content"></param> 18
/// <param name="Messages_ID"></param> 19
/// <param name="MUser_ID"></param> 20
public int createrelay(String Relay_Content, Int32 Messages_ID, Int32 MUser_ID) 21
{ 22
return rel.createrelay(Relay_Content, Messages_ID, MUser_ID); 23
} 24
25
/// <summary> 26
/// 更新回复 27
/// </summary> 28
/// <param name="Messages_ID"></param> 29
/// <param name="Relay_Content"></param> 30
/// <param name="MUser_ID"></param> 31
public int updaterelay(Int32 Messages_ID, String Relay_Content, Int32 MUser_ID) 32
{ 33
return rel.updaterelay(Messages_ID, Relay_Content, MUser_ID); 34
} 35
36
/// <summary> 37
/// 删除一条回复 38
/// </summary> 39
/// <param name="Relay_ID"></param> 40
public int deleterelay(int Relay_ID) 41
{ 42
return rel.deleterelay(Relay_ID); 43
} 44
45
/// <summary> 46
/// 留言是否有回复 47
/// </summary> 48
/// <param name="Message_ID"></param> 49
/// <returns></returns> 50
public bool isRelay(int Message_ID) 51
{ 52
return rel.isRelay(Message_ID); 53
} 54
55
/// <summary> 56
/// 根据留言ID获得回复内容 57
/// </summary> 58
/// <param name="Message_ID"></param> 59
/// <returns></returns> 60
public string getrelaybymessageid(int Message_ID) 61
{ 62
return rel.getrelaybymessageid(Message_ID); 63
} 64
} 65
} 66





}