DefectData.cs
1.28 KB
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
namespace OS.Spin.ViewModle.Models
{
/// <summary>
/// 记录瑕疵种类的实体类
/// </summary>
public class DefectData
{
private string _defectType; //瑕疵类别
private int _status; //该瑕疵的状态(选中或未选中:如果0标识未选中1标识已选中)
private int _score; //该瑕疵的扣分规则
public DefectData() { }
public DefectData(string _defectType, int _status, int _score)
{
this._defectType = _defectType;
this._status = _status;
this._score = _score;
}
public string defectType
{
get { return _defectType; }
set
{
_defectType = value;
}
}
public int status
{
get { return _status; }
set
{
_status = value;
}
}
public int score
{
get { return _score; }
set
{
_score = value;
}
}
public override string ToString()
{
return string.Format("_defectType:{0},_status:{1},_score:{2}", this._defectType, this._status, this._score);
}
}
}