Newer
Older
1
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:2.0.50727.8935
// Support: http://www.cnblogs.com/huxj
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;
namespace Ces.Model
{
/// <summary>
/// 实体类CheckStockDetail 。(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Serializable]
public class CheckStockDetail : Entity
{
public CheckStockDetail():base("CheckStockDetail") {}
#region Model
private string _CheckStockID;
private Guid? _GoodsID;
private decimal? _ACount;
private decimal? _TotalJE;
/// <summary>
///
/// </summary>
public string CheckStockID
{
get{ return _CheckStockID; }
set
{
this.OnPropertyValueChange(_.CheckStockID,_CheckStockID,value);
this._CheckStockID=value;
}
}
/// <summary>
///
/// </summary>
public Guid? GoodsID
{
get{ return _GoodsID; }
set
{
this.OnPropertyValueChange(_.GoodsID,_GoodsID,value);
this._GoodsID=value;
}
}
/// <summary>
///
/// </summary>
public decimal? ACount
{
get{ return _ACount; }
set
{
this.OnPropertyValueChange(_.ACount,_ACount,value);
this._ACount=value;
}
}
/// <summary>
///
/// </summary>
public decimal? TotalJE
{
get{ return _TotalJE; }
set
{
this.OnPropertyValueChange(_.TotalJE,_TotalJE,value);
this._TotalJE=value;
}
}
#endregion
#region Method
/// <summary>
/// 获取列信息
/// </summary>
public override Field[] GetFields()
{
return new Field[] {
_.CheckStockID,
_.GoodsID,
_.ACount,
_.TotalJE};
}
/// <summary>
/// 获取值信息
/// </summary>
public override object[] GetValues()
{
return new object[] {
this._CheckStockID,
this._GoodsID,
this._ACount,
this._TotalJE};
}
/// <summary>
/// 给当前实体赋值
/// </summary>
public override void SetPropertyValues(IDataReader reader)
{
this._CheckStockID = DataUtils.ConvertValue<string>(reader["CheckStockID"]);
this._GoodsID = DataUtils.ConvertValue<Guid?>(reader["GoodsID"]);
this._ACount = DataUtils.ConvertValue<decimal?>(reader["ACount"]);
this._TotalJE = DataUtils.ConvertValue<decimal?>(reader["TotalJE"]);
}
/// <summary>
/// 给当前实体赋值
/// </summary>
public override void SetPropertyValues(DataRow row)
{
this._CheckStockID = DataUtils.ConvertValue<string>(row["CheckStockID"]);
this._GoodsID = DataUtils.ConvertValue<Guid?>(row["GoodsID"]);
this._ACount = DataUtils.ConvertValue<decimal?>(row["ACount"]);
this._TotalJE = DataUtils.ConvertValue<decimal?>(row["TotalJE"]);
}
#endregion
#region _Field
/// <summary>
/// 字段信息
/// </summary>
public class _
{
/// <summary>
/// *
/// </summary>
public readonly static Field All = new Field("*","CheckStockDetail");
/// <summary>
///
/// </summary>
public readonly static Field CheckStockID = new Field("CheckStockID","CheckStockDetail","CheckStockID");
/// <summary>
///
/// </summary>
public readonly static Field GoodsID = new Field("GoodsID","CheckStockDetail","GoodsID");
/// <summary>
///
/// </summary>
public readonly static Field ACount = new Field("ACount","CheckStockDetail","ACount");
/// <summary>
///
/// </summary>
public readonly static Field TotalJE = new Field("TotalJE","CheckStockDetail","TotalJE");
}
#endregion
}
}