lixiaojun
2023-04-12 2be5d90e96f163c67101571f6865b17effcb0f3f
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
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 MeterBaseInfo : Model.ProductBase, System.ICloneable
    {
        public MeterBaseInfo() { }
        public MeterBaseInfo(ProductBase rhs) : base(rhs)
        {
 
        }
        public MeterBaseInfo(MeterBaseInfo rhs):base(rhs)
        {
            this.ID = rhs.ID;
            this.Catalog = rhs.Catalog;
            this.Name = rhs.Name;
            this.NO = rhs.NO;
            this.Code = rhs.Code;
            this.ManufacturerName = rhs.ManufacturerName;
            this.Elevation = rhs.Elevation;
            this.PiepDia = rhs.PiepDia;
            this.Position = rhs.Position;
            this.Address = rhs.Address;
            this.PipeSiteID = rhs.PipeSiteID;
            this.IsRemote = rhs.IsRemote;
            this.MapInfoID = rhs.MapInfoID;
        }
 
        public MeterBaseInfo(ProductBase product, DmaPipeSite pipeSite, MapInfoBase mapInfo):base(product)
        {
 
            if (pipeSite != null)
            {
                this.PipeSiteID = pipeSite.ID;
                if (pipeSite.PiepDia != null)
                    this.PiepDia = pipeSite.PiepDia.Value;
                if (pipeSite.Elevation != null)
                    this.Elevation = pipeSite.Elevation.Value;
            }
 
            if (mapInfo != null)
            {
                this.MapInfoID = mapInfo.ID;
                this.Position = mapInfo.Position;
               // this.Address = mapInfo.Address;
            }
        }
 
        /// <summary>
        /// ManufacturerName
        /// </summary>    
        [Display(Name = "ManufacturerName")]
        public string ManufacturerName { get; set; }
 
        /// <summary>
        /// Elevation
        /// </summary>    
        [Display(Name = "Elevation")]
        public double Elevation { get; set; }
 
        /// <summary>
        /// PiepDia
        /// </summary>    
        [Display(Name = "PiepDia")]
        public double PiepDia { get; set; }
 
        /// <summary>
        /// Position
        /// </summary>    
        [Display(Name = "Position")]
        public string Position { get; set; }
 
        /// <summary>
        /// Address
        /// </summary>    
        //[Display(Name = "Address")]
        //public string Address { get; set; }
 
        /// <summary>
        /// PipeSiteID
        /// </summary>    
        [Display(Name = "PipeSiteID")]
        public long PipeSiteID { get; set; }
 
        /// <summary>
        /// MapInfoID
        /// </summary>    
        [Display(Name = "MapInfoID")]
        public long MapInfoID { get; set; }
 
        /// <summary>
        /// 是否远程
        /// </summary>
        [Display(Name = "IsRemote")]
        public bool IsRemote { get; set; }
 
 
        public new MeterBaseInfo Clone()
        {
            return (MeterBaseInfo)this.MemberwiseClone();
        }
 
        object ICloneable.Clone()
        {
            return this.MemberwiseClone();
        }
 
 
    }
 
}