프로젝트

일반

사용자정보

개정판 88e866e6

ID88e866e651275aa94701ea5f5f1d0dcda3fd8a2e
상위 019e0877
하위 dd3789e8

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

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

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