hytos / DTI_PID / BaseModel / Model / Note.cs @ 4b4dbca9
이력 | 보기 | 이력해설 | 다운로드 (1.59 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace Converter.BaseModel |
8 |
{ |
9 |
public class Note |
10 |
{ |
11 |
private string _UID; |
12 |
private string _ATTRIBUTEVALUE; |
13 |
private string _NAME; |
14 |
private string _LOCATION; |
15 |
private string _VALUE; |
16 |
private double _ANGLE; |
17 |
private string _WIDTH; |
18 |
private string _HEIGHT; |
19 |
private string _AREA; |
20 |
private SPPIDSymbolInfo _SPPID; |
21 |
|
22 |
public string UID { get => _UID; set => _UID = value; } |
23 |
public string ATTRIBUTEVALUE { get => _ATTRIBUTEVALUE; set => _ATTRIBUTEVALUE = value; } |
24 |
public string NAME { get => _NAME; set => _NAME = value; } |
25 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
26 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
27 |
public double ANGLE |
28 |
{ |
29 |
get |
30 |
{ |
31 |
return _ANGLE; |
32 |
} |
33 |
set |
34 |
{ |
35 |
if (value == 1.57) |
36 |
value = 90 * Math.PI / 180; |
37 |
else if (value == 3.14) |
38 |
value = Math.PI; |
39 |
else if (value == 4.71) |
40 |
value = 270 * Math.PI / 180; |
41 |
|
42 |
_ANGLE = value; |
43 |
} |
44 |
} |
45 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
46 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
47 |
public string AREA { get => _AREA; set => _AREA = value; } |
48 |
public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; } |
49 |
} |
50 |
} |