개정판 88e866e6
Fix: 유사도 평가를 수행하기 전에 그리드의 EndEdit() 함수 호출
Change-Id: Ie15fb1af4f2de6ddc3b0b3d0d2be67a3ec5af41a
ID2.Manager/ID2.Manager/Controls/Classify.cs | ||
---|---|---|
239 | 239 |
|
240 | 240 |
var DrawingGroupColl = new List<DrawingGroup>(); |
241 | 241 |
|
242 |
this.radGridViewDocument.EndEdit(); |
|
242 | 243 |
var docs = this.radGridViewDocument.Rows.Where(x => Convert.ToBoolean(x.Cells["Checked"].Value)) |
243 | 244 |
.Select(x => x.DataBoundItem as ID2.Manager.Data.Models.Documents) |
244 | 245 |
#region 파일이 존재하는 도면만 선택 |
... | ... | |
396 | 397 |
this.radGridViewDocument.ViewRowFormatting += RadGridViewDocument_ViewRowFormatting; |
397 | 398 |
this.radGridViewDocument.ViewCellFormatting += RadGridViewDocument_ViewCellFormatting; |
398 | 399 |
this.radGridViewDocument.GroupSummaryEvaluate += RadGridViewDocument_GroupSummaryEvaluate; |
399 |
this.radGridViewDocument.CellClick += RadGridViewDocument_CellClick; |
|
400 | 400 |
|
401 | 401 |
this.radButtonReset.Click += RadButtonReset_Click; |
402 | 402 |
} |
403 | 403 |
|
404 |
private void RadGridViewDocument_CellClick(object sender, GridViewCellEventArgs e) |
|
405 |
{ |
|
406 |
if (e.RowIndex < 0) |
|
407 |
return; |
|
408 |
|
|
409 |
if(e.Column.Name == "Checked") |
|
410 |
{ |
|
411 |
if(e.Row.Cells["Checked"].Value == null || (e.Row.Cells["Checked"].Value != null && (bool)e.Row.Cells["Checked"].Value == false)) |
|
412 |
e.Row.Cells["Checked"].Value = true; |
|
413 |
else |
|
414 |
e.Row.Cells["Checked"].Value = false; |
|
415 |
} |
|
416 |
} |
|
417 |
|
|
418 |
|
|
419 |
|
|
420 | 404 |
/// <summary> |
421 | 405 |
/// 사용자 확인 후 유사도를 초기화한다. |
422 | 406 |
/// </summary> |
... | ... | |
424 | 408 |
/// <param name="e"></param> |
425 | 409 |
private void RadButtonReset_Click(object sender, EventArgs e) |
426 | 410 |
{ |
427 |
if(DialogResult.Yes == RadMessageBox.Show("Do you want to reset simularity?", "Qeustion", MessageBoxButtons.YesNo))
|
|
411 |
if(DialogResult.Yes == RadMessageBox.Show("Do you want to reset simularity?", "Question", MessageBoxButtons.YesNo))
|
|
428 | 412 |
{ |
429 | 413 |
var docs = this.radGridViewDocument.Rows.Select(x => x.DataBoundItem as ID2.Manager.Data.Models.Documents).ToList(); |
430 | 414 |
bool bSimularity = this.radDropDownListFieldName.SelectedItem != null && this.radDropDownListFieldName.SelectedItem.Text == "유사도" ? true : false; |
내보내기 Unified diff