프로젝트

일반

사용자정보

통계
| 개정판:

hytos / DTI_PID / BaseModel / Model / Note.cs @ 4b4dbca9

이력 | 보기 | 이력해설 | 다운로드 (1.59 KB)

1 96a2080c gaqhf
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 aadf6821 gaqhf
    public class Note
10 96a2080c gaqhf
    {
11 60244a8b gaqhf
        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 6b298450 gaqhf
        private SPPIDSymbolInfo _SPPID;
21 60244a8b gaqhf
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 6b298450 gaqhf
        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 60244a8b gaqhf
        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 6b298450 gaqhf
        public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; }
49 96a2080c gaqhf
    }
50
}
클립보드 이미지 추가 (최대 크기: 500 MB)