개정판 dbac61ab
dev issue #1225 : model 구현 준비
Change-Id: I221e7dcac06178fab7286e9d6a86bcbf4ac02462
DTI_PID/APIDConverter/Model/PlantItem/Document.cs | ||
---|---|---|
1 | 1 |
using System; |
2 | 2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
|
4 | 3 |
using System.Text; |
4 |
using System.Linq; |
|
5 | 5 |
using System.Threading.Tasks; |
6 |
using System.Xml.Linq; |
|
6 | 7 |
using System.IO; |
8 |
using System.Data; |
|
7 | 9 |
|
8 | 10 |
namespace AVEVA.PID.CustomizationUtility.Model |
9 | 11 |
{ |
10 | 12 |
public class Document |
11 | 13 |
{ |
12 | 14 |
public bool Enabled = false; |
15 |
private DataTable ID2SymbolTypeDT; |
|
13 | 16 |
|
14 | 17 |
public List<Symbol> Symbols { get; set; } |
15 | 18 |
public List<Line> Lines { get; set; } |
16 | 19 |
public List<Equipment> Equipments { get; set; } |
17 | 20 |
|
18 |
public Document(string xmlPath) |
|
21 |
public Document(string xmlPath, DataTable ID2SymbolTypeDT)
|
|
19 | 22 |
{ |
23 |
this.ID2SymbolTypeDT = ID2SymbolTypeDT; |
|
24 |
|
|
20 | 25 |
Symbols = new List<Symbol>(); |
21 | 26 |
Lines = new List<Line>(); |
22 | 27 |
Equipments = new List<Equipment>(); |
... | ... | |
26 | 31 |
|
27 | 32 |
} |
28 | 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 |
} |
|
29 | 43 |
} |
30 | 44 |
} |
내보내기 Unified diff