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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bro.Common.Helper;
 
namespace Bro.Common.Model
{
    /// <summary>
    /// NG描述记录,包含PC<-->PLC通讯的错误码以及NG描述
    /// </summary>
    public class NGDesc : IComplexDisplay
    {
        [Category("NG描述设置")]
        [Description("NG代码,数字代码")]
        public int NGCode { get; set; }
 
        [Category("NG描述设置")]
        [Description("NG描述")]
        public string NGDescription { get; set; }
 
        public string GetDisplayText()
        {
            return NGCode + "--" + NGDescription;
        }
    }
}