您的位置:首页 > 其它

对象实体 参考标准

2008-05-02 22:12 232 查看
1

using System;

2

using System.Data;

3


4

namespace Framework.Components

5





{

6



/**//// <summary>

7

/// 公告通知实体

8

/// </summary>

9

public class NoticeInfo

10





{

11



基础信息-------------------------------------------------------#region 基础信息-------------------------------------------------------

12

private int _ID;

13



/**//// <summary>

14

/// 获取或设置公告的名称(ID)

15

/// </summary>

16

public int ID

17





{

18



get

{ return _ID; }

19



set

{ _ID = value; }

20

}

21


22

private string _Title;

23



/**//// <summary>

24

/// 获取或设置公告的标题

25

/// </summary>

26

public string Title

27





{

28

get

29





{ return _Title; }

30

set

31





{ _Title = value; }

32

}

33


34

private int _Type;

35



/**//// <summary>

36

/// 获取或设置公告的类型(ID)

37

/// </summary>

38

public int Type

39





{

40

get

41





{ return _Type; }

42

set

43





{ _Type = value; }

44

}

45


46

private DateTime _SendTime;

47



/**//// <summary>

48

/// 获取或设置公告的开始日期

49

/// </summary>

50

public DateTime SendTime

51





{

52

get

53





{ return _SendTime; }

54

set

55





{ _SendTime = value; }

56

}

57


58

private int _FromID;

59



/**//// <summary>

60

/// 获取或设置公告的发布人

61

/// </summary>

62

public int FromID

63





{

64

get

65





{ return _FromID; }

66

set

67





{ _FromID = value; }

68

}

69


70

private string _PubDept;

71



/**//// <summary>

72

/// 获取或设置发布单位

73

/// </summary>

74

public string PubDept

75





{

76

get

77





{ return _PubDept; }

78

set

79





{ _PubDept = value; }

80

}

81


82

private string _ToID;

83



/**//// <summary>

84

/// 获取或设置公告的接收人ID

85

/// </summary>

86

public string ToID

87





{

88

get

89





{ return _ToID; }

90

set

91





{ _ToID = value; }

92

}

93


94

private string _Content;

95



/**//// <summary>

96

/// 获取或设置公告的内容

97

/// </summary>

98

public string Content

99





{

100

get

101





{ return _Content; }

102

set

103





{ _Content = value; }

104

}

105

#endregion

106


107



构造函数#region 构造函数

108

public NoticeInfo()

109





{ }

110


111

public NoticeInfo(DataRow dataRow)

112





{

113

this.ID = Convert.ToInt32(dataRow["ID"]);

114

this.Title = dataRow["Title"].ToString();

115

this.Type = Convert.ToInt32(dataRow["Type"]);

116

this.SendTime = Convert.ToDateTime(dataRow["SendTime"]);

117

this.FromID = Convert.ToInt32(dataRow["FromID"]);

118

this.PubDept = dataRow["PubDept"].ToString();

119

this.ToID = dataRow["ToID"].ToString();

120

this.Content = dataRow["Content"].ToString();

121

}

122

#endregion

123


124

}

125

}

126


文章来源于 http://www.cnblogs.com/wf225 版权归原作者所有
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: