hytos / DTI_PID / APIDConverter / Model / PlantItem / Document.cs @ 5598104a
이력 | 보기 | 이력해설 | 다운로드 (1.03 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Text; |
4 |
using System.Linq; |
5 |
using System.Threading.Tasks; |
6 |
using System.Xml.Linq; |
7 |
using System.IO; |
8 |
using System.Data; |
9 |
|
10 |
namespace AVEVA.PID.CustomizationUtility.Model |
11 |
{ |
12 |
public class Document |
13 |
{ |
14 |
public bool Enabled = false; |
15 |
private DataTable ID2SymbolTypeDT; |
16 |
|
17 |
public List<Symbol> Symbols { get; set; } |
18 |
public List<Line> Lines { get; set; } |
19 |
public List<Equipment> Equipments { get; set; } |
20 |
|
21 |
public Document(string xmlPath, DataTable ID2SymbolTypeDT) |
22 |
{ |
23 |
this.ID2SymbolTypeDT = ID2SymbolTypeDT; |
24 |
|
25 |
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 |
|
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 |
} |
44 |
} |