개정판 1c955e70
dev issue #1230 : add mapping info
Change-Id: Id85ef778f303b6eb8a65d3fdd147de8408f3e791
DTI_PID/APIDConverter/AvevaInfo.cs | ||
---|---|---|
15 | 15 |
static AvevaInfo avevaInfo; |
16 | 16 |
|
17 | 17 |
public DataTable AvevaSymbolTable { get; set; } |
18 |
|
|
18 |
public List<SymbolInfo> SymbolInfo { get; set; } |
|
19 |
public List<AttributeInfo> AttributeInfo { get; set; } |
|
19 | 20 |
|
20 | 21 |
public static AvevaInfo GetInstance() |
21 | 22 |
{ |
... | ... | |
29 | 30 |
|
30 | 31 |
public static void Refresh() |
31 | 32 |
{ |
33 |
if (avevaInfo == null) |
|
34 |
avevaInfo = new AvevaInfo(); |
|
35 |
|
|
32 | 36 |
avevaInfo.AvevaSymbolTable = Project_DB.SelectSymbolTable(); |
37 |
SetSymbolInfo(); |
|
38 |
SetAttributeInfo(); |
|
39 |
} |
|
40 |
|
|
41 |
private static void SetSymbolInfo() |
|
42 |
{ |
|
43 |
avevaInfo.SymbolInfo = new List<SymbolInfo>(); |
|
33 | 44 |
|
34 | 45 |
} |
46 |
|
|
47 |
private static void SetAttributeInfo() |
|
48 |
{ |
|
49 |
avevaInfo.AttributeInfo = new List<AttributeInfo>(); |
|
50 |
|
|
51 |
} |
|
52 |
} |
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
public class SymbolInfo |
|
57 |
{ |
|
58 |
public string UID { get; set; } |
|
59 |
public string NAME { get; set; } |
|
60 |
public string APID_SYMBOL { get; set; } |
|
61 |
public string DATA1 { get; set; } |
|
35 | 62 |
} |
63 |
|
|
64 |
public class AttributeInfo |
|
65 |
{ |
|
66 |
public string UID { get; set; } |
|
67 |
public string APID_ATTRIBUTE { get; set; } |
|
68 |
public string APID_ATTRIBUTE_TYPE { get; set; } |
|
69 |
} |
|
70 |
|
|
36 | 71 |
} |
내보내기 Unified diff