개정판 3a946eec
issue #0000
document compare 버튼 클릭 시
- verification 의 해당 row 선택 후 compare 실행
Change-Id: I8a23583b658e06a3fc9a1ea744f0c61b8bd51b65
ID2.Manager/ID2.Manager/Controls/Verification.cs | ||
---|---|---|
232 | 232 |
} |
233 | 233 |
} |
234 | 234 |
|
235 |
public void DocumentSelection(Documents selectedDoc) |
|
236 |
{ |
|
237 |
var selectedRow = this.radGridViewDocument.Rows.Where(o => (o.DataBoundItem as Documents).DocID.Equals(selectedDoc.DocID)).FirstOrDefault(); |
|
238 |
|
|
239 |
if (selectedRow != null) |
|
240 |
{ |
|
241 |
this.radGridViewDocument.CurrentRow = selectedRow; |
|
242 |
this.radGridViewDocument.CurrentRow.IsSelected = true; |
|
243 |
} |
|
244 |
} |
|
245 |
|
|
235 | 246 |
/// <summary> |
236 | 247 |
/// 도면을 선택했을때 두 도면을 비교한다. |
237 | 248 |
/// </summary> |
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
1406 | 1406 |
} |
1407 | 1407 |
break; |
1408 | 1408 |
case "Compare": |
1409 |
MessageBox.Show($"{e.Column.Name} 실행"); |
|
1409 |
try |
|
1410 |
{ |
|
1411 |
if (e.Row.DataBoundItem is Documents selectedDoc) |
|
1412 |
{ |
|
1413 |
if (!string.IsNullOrEmpty(selectedDoc.DocID)) |
|
1414 |
{ |
|
1415 |
DockMainTabStrip.SelectedTab = DockValidation; |
|
1416 |
var verification = this.LayoutValidation.Controls[0] as Verification; |
|
1417 |
verification.DocumentSelection(selectedDoc); |
|
1418 |
} |
|
1419 |
} |
|
1420 |
} |
|
1421 |
catch (Exception ex) |
|
1422 |
{ |
|
1423 |
RadMessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, RadMessageIcon.Error); |
|
1424 |
} |
|
1410 | 1425 |
break; |
1411 | 1426 |
} |
1412 | 1427 |
} |
내보내기 Unified diff