对象实体 参考标准
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 版权归原作者所有
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 版权归原作者所有
相关文章推荐
- 对象实体 参考标准
- JSP2.0九个标准隐含对象
- JavaScript Array 对象参考手册
- <六>面向对象分析之UML核心元素之业务实体
- CSS样式命名规则及参考命名标准
- 03-04 创建和编辑AutoCAD实体(四) 编辑二维命名对象 (2)
- DDD 领域驱动设计-三个问题思考实体和值对象
- Python: 对象与参考
- 借助fastjson 实体对象转map
- MyEclipse8.5 基于jax-ws的webservice对象(实体)传递的开发
- ASP中SQL语句参考及记录集对象
- 利用SharePreferences保存实体对象
- 03-04 创建和编辑AutoCAD实体(四) 编辑二维命名对象 (6)
- 后台规定的大实体怎么转化为json对象
- Java父类对象调用子类实体:方法重写与动态调用
- 面向对象软件设计原则(三) —— 软件实体的设计原则
- JavaScript 标准参考教程(alpha)
- Entity Framewok中获取实体对象的部分属性
- JavaSE 学习参考:匿名内部类和匿名对象
- 自定义可绑定数据的业务对象实体和强类型