hytos / DTI_PID / APIDConverter / Model / PlantItem / Document.cs @ 5598104a
이력 | 보기 | 이력해설 | 다운로드 (1.03 KB)
1 | 6ec631d2 | gaqhf | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Text; |
||
4 | dbac61ab | gaqhf | using System.Linq; |
5 | 6ec631d2 | gaqhf | using System.Threading.Tasks; |
6 | dbac61ab | gaqhf | using System.Xml.Linq; |
7 | 6ec631d2 | gaqhf | using System.IO; |
8 | dbac61ab | gaqhf | using System.Data; |
9 | 6ec631d2 | gaqhf | |
10 | namespace AVEVA.PID.CustomizationUtility.Model |
||
11 | { |
||
12 | public class Document |
||
13 | { |
||
14 | public bool Enabled = false; |
||
15 | dbac61ab | gaqhf | private DataTable ID2SymbolTypeDT; |
16 | 6ec631d2 | gaqhf | |
17 | public List<Symbol> Symbols { get; set; } |
||
18 | public List<Line> Lines { get; set; } |
||
19 | public List<Equipment> Equipments { get; set; } |
||
20 | |||
21 | dbac61ab | gaqhf | public Document(string xmlPath, DataTable ID2SymbolTypeDT) |
22 | 6ec631d2 | gaqhf | { |
23 | dbac61ab | gaqhf | this.ID2SymbolTypeDT = ID2SymbolTypeDT; |
24 | |||
25 | 6ec631d2 | gaqhf | Symbols = new List<Symbol>(); |
26 | Lines = new List<Line>(); |
||
27 | Equipments = new List<Equipment>(); |
||
28 | |||
29 | if (File.Exists(xmlPath)) |
||
30 | { |
||
31 | |||
32 | } |
||
33 | } |
||
34 | dbac61ab | gaqhf | |
35 | private void SetSymbol(XElement node) |
||
36 | { |
||
37 | foreach (XElement item in node.Elements("SYMBOL")) |
||
38 | { |
||
39 | string sType = item.Element("TYPE").Value; |
||
40 | |||
41 | } |
||
42 | } |
||
43 | 6ec631d2 | gaqhf | } |
44 | } |