프로젝트

일반

사용자정보

개정판 4b4dbca9

ID4b4dbca9d12f023aab8a8921ea996cabe5e2e371
상위 ac78b508
하위 7c990804, a30d7077

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

dev issue #000 : child Symbol Modeling

Change-Id: I26536f33fec33160b1efaf92f4fc5b45ccd48f9b

차이점 보기:

DTI_PID/SPPIDConverter/ConverterForm.cs
35 35

  
36 36

  
37 37
        private DataTable _ID2SymbolDT = new DataTable();
38
        private DataTable _ID2ChildSymbolDT = new DataTable();
38 39
        private DataTable _ID2LineDT = new DataTable();
39 40
        private DataTable _ID2AttributeDT = new DataTable();
40 41
        private DataTable _ID2LinePropertyDT = new DataTable();
......
42 43

  
43 44

  
44 45
        private List<SymbolMapping> symbolMappings = new List<SymbolMapping>();
46
        private List<ChildSymbolMapping> childSymbolMappings = new List<ChildSymbolMapping>();
45 47
        private List<LineMapping> lineMappings = new List<LineMapping>();
46 48
        private List<LineNumberMapping> lineNumberMappings = new List<LineNumberMapping>();
47 49
        private List<AttributeMapping> attributeMappings = new List<AttributeMapping>();
......
321 323
                        SPPIDSYMBOLNAME = row["SPPID_SYMBOL_PATH"] == null ? "" : row["SPPID_SYMBOL_PATH"].ToString(),
322 324
                    });
323 325
                }
326

  
327
                MergeID2ChildSymbol();
328
            }
329
        }
330

  
331
        private void MergeID2ChildSymbol()
332
        {
333
            using (DataTable childSymbolDT = Project_DB.SelectProjectChildSymbol())
334
            {
335
                childSymbolMappings.Clear();
336
                _ID2ChildSymbolDT = childSymbolDT;
337
                _ID2ChildSymbolDT.Columns.Add("Clear");
338
                _ID2ChildSymbolDT.Columns["Clear"].Caption = "";
339
                foreach (DataRow row in childSymbolDT.Rows)
340
                {
341
                    childSymbolMappings.Add(new ChildSymbolMapping()
342
                    {
343
                        UID = row["UID"] == null ? "" : row["UID"].ToString(),
344
                        SYMBOLNAME = row["Name"] == null ? "" : row["Name"].ToString(),
345
                        SPPIDSYMBOLNAME = row["SPPID_SYMBOL_PATH"] == null ? "" : row["SPPID_SYMBOL_PATH"].ToString(),
346
                    });
347
                }
348

  
349
                _ID2SymbolDT.Merge(_ID2ChildSymbolDT);
324 350
            }
325 351
        }
326 352

  
......
523 549
            //SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\zIsocynates-325_Page75.xml");
524 550
            SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\Isocynates-325_Page49.xml");
525 551
            document.SymbolMappings = symbolMappings;
552
            document.ChildSymbolMappings = childSymbolMappings;
526 553
            document.LineMappings = lineMappings;
527 554
            document.LineNumberMappings = lineNumberMappings;
528 555
            document.AttributeMappings = attributeMappings;

내보내기 Unified diff

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