프로젝트

일반

사용자정보

개정판 dbac61ab

IDdbac61ab38f5b73ed54d9e06b650cd0f91580fa8
상위 bdefe8a5
하위 8bc888c1

gaqhf 이(가) 5년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)