프로젝트

일반

사용자정보

개정판 f28a350a

IDf28a350ac026a09613d87b54a96424396189ec22
상위 5d2d88ca
하위 04f515d0, 360fd516

백흠경이(가) 5년 이상 전에 추가함

issue #663: setCurrentPidSource method 제거로 인한 오류 수정

Change-Id: Ia7c67a83ae51228dee1d13344dc300a3f10302bd

차이점 보기:

DTI_PID/SPPIDConverter/BaseModel/Document.cs
7 7
using System.Xml.Linq;
8 8
using System.Windows.Forms;
9 9
using Converter.SPPID.Util;
10
using System.Data;
10 11

  
11 12
namespace Converter.BaseModel
12 13
{
......
31 32
        private bool _MappingValidation;
32 33
        private string _ValidationMessage = string.Empty;
33 34
        bool validationResult = false;
35
        private DataTable ID2SymbolTypeDT;
34 36

  
35 37
        public string ValidationMessage { get => _ValidationMessage; set => _ValidationMessage = value; }
36 38

  
......
71 73

  
72 74
        StringBuilder validationStringBuilder = new StringBuilder();
73 75

  
74
        public Document(string xmlPath)
76
        public Document(string xmlPath, DataTable ID2SymbolTypeDT)
75 77
        {
78
            this.ID2SymbolTypeDT = ID2SymbolTypeDT;
76 79
            validationStringBuilder.AppendLine("Document Path : " + xmlPath);
77 80
            validationStringBuilder.AppendLine("");
78 81
            try
......
112 115
            foreach (XElement item in node.Elements("SYMBOL"))
113 116
            {
114 117
                string sType = item.Element("TYPE").Value;
118

  
119
                DataRow[] rows = ID2SymbolTypeDT.Select(string.Format("Type = '{0}'", sType.Replace("'", "''")));
120
                string sCategory = rows[0]["Category"].ToString();
121

  
115 122
                if (sType == "Segment Breaks")
116 123
                {
117 124
                    SpecBreak specBreak = new SpecBreak()
......
169 176

  
170 177
                    EndBreaks.Add(endBreak);
171 178
                }
172
                else if (sType == "Black Box System" ||
173
                    sType == "GGO_Equipment" ||
174
                    sType == "Heat Transfer Equipment" ||
175
                    sType == "Mechanical" ||
176
                    sType == "Other Equipment" ||
177
                    sType == "Vessels")
179
                else if (sCategory == "Equipment" ||
180
                    sCategory == "Equipment Components")
178 181
                {
179 182
                    Equipment equipment = new Equipment()
180 183
                    {

내보내기 Unified diff

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