lixiaojun
2022-08-22 cd280a9457eda95433896e3e9e3aa5164bdd64a0
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
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  class ProductInspectionContentViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public ProductInspectionContentViewModel() { }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="rhs"></param>
        public ProductInspectionContentViewModel(ProductInspectionContentItem rhs)
        {
            this.ItemID = rhs.ID;
            this.GroupID = rhs.GroupID;
            this.ItemName = rhs.Name;
            this.ValueType = (int)rhs.ValueType;
            this.ValueNullAble = (int)rhs.ValueNullAble;
            this.ValueRangeMin = rhs.ValueRangeMin;
            this.ValueRangeMax = rhs.ValueRangeMax;
            this.TipInfo = rhs.TipInfo;
            this.MonitorPointID = rhs.MonitorPointID;
            this.ProductID = rhs.ProductID;
           // this.ValueList = rhs.ValueList;
        }
        #region Model
        /// <summary>
        /// 标识
        /// </summary>    
        public long ItemID { get; set; }
 
        
        /// <summary>
        /// 标识
        /// </summary>    
        public long ProductID { get; set; }
        /// <summary>
        /// 测点标识
        /// </summary>    
        public long MonitorPointID { get; set; }
 
        /// <summary>
        /// 分组标识
        /// </summary>    
        public long GroupID { get; set; }
 
 
 
        /// <summary>
        /// 名称
        /// </summary>    
        public string GroupName { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>    
        public string ItemName { get; set; }
 
        /// <summary>
        /// 值类型(数值,文字,枚举)
        /// </summary>    
        public int ValueType { get; set; }
 
        /// <summary>
        /// (是否可空)
        /// </summary>
        public int ValueNullAble { get; set; }   
 
        /// <summary>
        /// 值上限(数值)
        /// </summary>     
        public double? ValueRangeMin { get; set; } = null;
 
        /// <summary>
        /// 值下限(数值)
        /// </summary>     
        public double? ValueRangeMax { get; set; } = null;
 
        /// <summary>
        /// (提示信息)
        /// </summary>     
        public string TipInfo { get; set; }
 
        /// <summary>
        /// (待选列表)
        /// </summary>     
        public List<Model.ProductInspectionContentValue.BaseInfo> ValueList { get; set; }
        #endregion
 
 
    }
}