프로젝트

일반

사용자정보

개정판 102082a3

ID102082a3892fb97fc0717cac04efc23396379859
상위 09cd0112
하위 ac381ab9, f6157514

유성호이(가) 12달 전에 추가함

issue #0000
자동 filter rollback

Change-Id: I31362ffdfa6d586df6179cf633277a20790a6934

차이점 보기:

ID2.Manager/ID2.Manager/Controls/Classify.cs
520 520
                }
521 521
            }
522 522
        }
523
        //public void DocumentListBinding(List<ID2.Manager.Data.Models.Documents> docs)
524
        //{
525
        //    this.radGridViewDocument.FilterDescriptors.Clear();
526
        //    foreach(var doc in docs)
527
        //    {
528
        //        string PrjName = Path.GetFileNameWithoutExtension(informations.FindID2LocalPath(doc.RefProjectCode));
529
        //        if(PrjName != null) doc.LocalDrawingFolder = Path.Combine(this.radBrowseEditorLocalDrawingFolder.Value, PrjName);
530
        //    }
531
        //    this.radGridViewDocument.DataSource = new BindingList<ID2.Manager.Data.Models.Documents>(docs);
532
        //}
533

  
534
        public void DocumentListBinding(object filterDatas)
523
        public void DocumentListBinding(List<ID2.Manager.Data.Models.Documents> docs)
535 524
        {
536 525
            this.radGridViewDocument.FilterDescriptors.Clear();
537

  
538
            var docs = new BindingList<Documents>();
539

  
540
            if (filterDatas is RadDataView<GridViewRowInfo>)
526
            foreach (var doc in docs)
541 527
            {
542
                var docDatas = filterDatas as RadDataView<GridViewRowInfo>;
543

  
544
                foreach (var docData in docDatas)
545
                {
546
                    if (docData.DataBoundItem is Documents doc)
547
                    {
548
                        docs.Add(doc);
549
                        string PrjName = Path.GetFileNameWithoutExtension(informations.FindID2LocalPath(doc.RefProjectCode));
550
                        if (PrjName != null) doc.LocalDrawingFolder = Path.Combine(this.radBrowseEditorLocalDrawingFolder.Value, PrjName);
551
                    }
552
                }
553

  
554
                if (this.radGridViewDocument.DataSource != null)
555
                    this.radGridViewDocument.DataSource = null;
556

  
557
                this.radGridViewDocument.DataSource = docs;
528
                string PrjName = Path.GetFileNameWithoutExtension(informations.FindID2LocalPath(doc.RefProjectCode));
529
                if (PrjName != null) doc.LocalDrawingFolder = Path.Combine(this.radBrowseEditorLocalDrawingFolder.Value, PrjName);
558 530
            }
531
            this.radGridViewDocument.DataSource = new BindingList<ID2.Manager.Data.Models.Documents>(docs);
559 532
        }
560 533
    }
561 534
}

내보내기 Unified diff

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