프로젝트

일반

사용자정보

개정판 30ba9ae0

ID30ba9ae0825b6a2c43a82d3e5531fe991be20deb
상위 e5da13c6
하위 2800c367

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

dev issue #000 : fix Log && ValidationCheck

Change-Id: I1a2436b89fd7d74081a481a0ce8e2c9eb999a859

차이점 보기:

DTI_PID/SPPIDConverter/SPPIDModel/SPPID_Document.cs
487 487

  
488 488
            return true;
489 489
        }
490

  
491
        public void CheckModelingResult()
492
        {
493
            StringBuilder sb = new StringBuilder();
494
            sb.AppendLine("Modeling Result");
495
            foreach (var item in Equipments)
496
            {
497
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
498
                    sb.AppendLine("Fail Equipment Modeling UID : " + item.UID);
499
            }
500
            foreach (var item in SYMBOLS)
501
            {
502
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
503
                    sb.AppendLine("Fail Symbol Modeling UID : " + item.UID);
504
                foreach (var child in item.ChildSymbols)
505
                {
506
                    if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
507
                    {
508
                        sb.AppendLine("Fail Child Symbol Modeling UID : " + item.UID);
509
                        sb.AppendLine("Fail Child Symbol Name : " + child.NAME);
510
                    }
511
                    loop(child, item, sb);
512
                }
513
            }
514
            foreach (var item in LINES)
515
            {
516
                if (string.IsNullOrEmpty(item.SPPID.ModelItemId))
517
                    sb.AppendLine("Fail Line Modeling UID : " + item.UID);
518
            }
519
            foreach (var item in LINENUMBERS)
520
            {
521
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
522
                    sb.AppendLine("Fail Line Number Modeling UID : " + item.UID);
523
            }
524
            foreach (var item in NOTES)
525
            {
526
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
527
                    sb.AppendLine("Fail Note Text Modeling UID : " + item.UID);
528
            }
529
            foreach (var item in TEXTINFOS)
530
            {
531
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
532
                    sb.AppendLine("Fail Text Modeling UID : " + item.UID);
533
            }
534
            foreach (var item in EndBreaks)
535
            {
536
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
537
                    sb.AppendLine("Fail End Break Modeling UID : " + item.UID);
538
            }
539
            foreach (var item in SpecBreaks)
540
            {
541
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
542
                    sb.AppendLine("Fail SpecBreak Modeling UID : " + item.UID);
543
            }
544
            sb.AppendLine("End Modeling Result");
545
            Log.Write(sb.ToString());
546
        }
547

  
548
        private void loop(ChildSymbol childLoop, Symbol item, StringBuilder sb)
549
        {
550
            foreach (var childLoopLoop in childLoop.ChildSymbols)
551
            {
552
                if (string.IsNullOrEmpty(item.SPPID.RepresentationId))
553
                {
554
                    sb.AppendLine("Fail Child Symbol Modeling UID : " + item.UID);
555
                    sb.AppendLine("Fail Child Symbol Name : " + childLoopLoop.NAME);
556
                }
557
                loop(childLoop, item, sb);
558
            }
559
        }
490 560
    }
491 561
}

내보내기 Unified diff

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