프로젝트

일반

사용자정보

개정판 66ea0700

ID66ea0700a5d58f0ba71e5c33706f0b564eb0776d
상위 b8090c60
하위 abd666df

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

Fix: AVEVA P&ID가 없을때 오류 처리

Change-Id: I4d28a1fe9ed8bf58908d172d136f33198ebb6c7a

차이점 보기:

ID2.Manager/ID2.Manager/Controls/Verification.cs
234 234

  
235 235
        public void DocumentSelection(Documents selectedDoc)
236 236
        {
237
            var selectedRow = this.radGridViewDocument.Rows.Where(o => (o.DataBoundItem as Documents).DocID.Equals(selectedDoc.DocID)).FirstOrDefault();
238

  
237
            var selectedRow = this.radGridViewDocument.Rows.FirstOrDefault(o => (o.DataBoundItem as Documents).DocID.Equals(selectedDoc.DocID));
239 238
            if (selectedRow != null)
240 239
            {
241 240
                this.radGridViewDocument.CurrentRow = selectedRow;
......
265 264
                    catch (Exception ex)
266 265
                    {
267 266
                        RadMessageBox.Show(ex.Message, Globals.Name, MessageBoxButtons.OK, RadMessageIcon.Error);
267
                        return;
268 268
                    }
269 269

  
270 270
                    var AddEntities = new List<Entity>();
......
485 485
                    AVEVAPIDFilePath = System.IO.Path.Combine(AVEVAPIDFolder, $"{doc.DocumentNo}{dwgExtension}");
486 486
                    ShowAVEVAPIDFile(AVEVAPIDFilePath);
487 487

  
488
                    devDept.Eyeshot.Translators.ReadAutodesk ra = new devDept.Eyeshot.Translators.ReadAutodesk(AVEVAPIDFilePath);
489
                    ra.DoWork();
490
                    ra.AddToScene(this.designCompare);
488
                    if (System.IO.File.Exists(AVEVAPIDFilePath))
489
                    {
490
                        devDept.Eyeshot.Translators.ReadAutodesk ra = new devDept.Eyeshot.Translators.ReadAutodesk(AVEVAPIDFilePath);
491
                        ra.DoWork();
492
                        ra.AddToScene(this.designCompare);
493
                    }
491 494
                }
492 495

  
493 496
                if(System.IO.File.Exists(dwgFilePath) && System.IO.File.Exists(AVEVAPIDFilePath))

내보내기 Unified diff

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