개정판 66ea0700
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