tangxu
2023-03-20 3bf8bf5179de8b83bbd6ad997e82d98302abd1c3
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
using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
 
namespace IStation.Model
{
    /// <summary>
    /// 报警等级
    /// </summary>    
    public partial class AlarmLevel : System.ICloneable 
    {
        /// <summary>
        /// 
        /// </summary>
        public AlarmLevel() { }
 
        /// <summary>
        /// 
        /// </summary>
        public AlarmLevel(AlarmLevel rhs)
        {
            this.ID = rhs.ID;
            this.CorpID = rhs.CorpID;
            this.Name = rhs.Name;
            this.Color = rhs.Color;
            this.Grade = rhs.Grade;
            this.Description = rhs.Description;
        }
 
        /// <summary>
        /// 
        /// </summary>
        public void Reset(AlarmLevel rhs)
        {
            this.ID = rhs.ID;
            this.CorpID = rhs.CorpID;
            this.Name = rhs.Name;
            this.Color = rhs.Color;
            this.Grade = rhs.Grade;
            this.Description = rhs.Description;
        }
 
        /// <summary>
        /// 标识
        /// </summary>    
        public long ID { get; set; }
 
        /// <summary>
        /// 公司标识
        /// </summary>    
        public long CorpID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>    
        public string Name { get; set; }
 
        /// <summary>
        /// 显示颜色
        /// </summary>    
        public string Color { get; set; }
 
        /// <summary>
        /// 报警等级
        /// </summary>    
        public int Grade { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>    
        public string Description { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public AlarmLevel Clone()
        {
            return (AlarmLevel)this.MemberwiseClone();
        }
 
        object ICloneable.Clone()
        {
            return this.MemberwiseClone();
        }
    }
 
}