개정판 a15cba0c
Feature: AutoCAD 링크 기능 추가
Change-Id: I022b16dab8a274b25166560ad173eab5b9dfab2a
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
1492 | 1492 |
} |
1493 | 1493 |
else |
1494 | 1494 |
{ |
1495 |
string extension = string.Empty; |
|
1496 |
|
|
1495 |
string dwgExtension = ".dwg"; |
|
1497 | 1496 |
switch (e.Column.Name) |
1498 | 1497 |
{ |
1499 | 1498 |
case "AutoCADLink": |
1500 |
RadMessageBox.Show($"{e.Column.Name} 실행", Globals.Name, MessageBoxButtons.OK, RadMessageIcon.Info); |
|
1499 |
{ |
|
1500 |
if (e.Row.DataBoundItem is Documents doc) |
|
1501 |
{ |
|
1502 |
string ID2DrawingFolder = System.IO.Path.Combine(informations.FindID2LocalPath(doc.RefProjectCode), "drawings", "Native"); |
|
1503 |
string dwgFilePath = System.IO.Path.Combine(ID2DrawingFolder, $"{doc.DocumentNo}{dwgExtension}"); |
|
1504 |
System.Diagnostics.Process.Start(dwgFilePath); |
|
1505 |
} |
|
1506 |
} |
|
1501 | 1507 |
break; |
1502 | 1508 |
case "MarkupLink": |
1503 | 1509 |
{ |
내보내기 Unified diff