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

2

3

4

5



6


7

8

9

10



11


12

13


14

15

16

17



18



19



20

21

22

23


24

25

26

27



28

29



30

31



32

33

34

35


36

37

38

39



40

41



42

43



44

45

46

47


48

49

50

51



52

53



54

55



56

57

58

59


60

61

62

63



64

65



66

67



68

69

70

71


72

73

74

75



76

77



78

79



80

81

82

83


84

85

86

87



88

89



90

91



92

93

94

95


96

97

98

99



100

101



102

103



104

105

106

107


108

109



110

111

112



113

114

115

116

117

118

119

120

121

122

123

124

125

126
