| | |
| | | this.gridView1.OptionsView.ShowGroupPanel = false; |
| | | } |
| | | |
| | | private List<ThreeLinkMatchingViewModel> _allBindingList = null; |
| | | private List<ThreeLinkFormViewModel> _allBindingList = new List<ThreeLinkFormViewModel>(); |
| | | |
| | | /// <summary> |
| | | /// 点击事件 |
| | |
| | | { |
| | | if (threeLinkMatchingViewModels != null) |
| | | { |
| | | _allBindingList = threeLinkMatchingViewModels; |
| | | this.threeLinkMatchingViewModelBindingSource.DataSource = _allBindingList; |
| | | foreach (var item in threeLinkMatchingViewModels) |
| | | { |
| | | _allBindingList.Add(new ThreeLinkFormViewModel(item)); |
| | | } |
| | | this.threeLinkFormViewModelBindingSource.DataSource = _allBindingList; |
| | | } |
| | | } |
| | | |
| | |
| | | var resultList = new List<ThreeLinkMatchingViewModel>(); |
| | | foreach (var item in inputs) |
| | | { |
| | | var result = AsstesAutoMatchingHelper.AutoMatching(item, alllist); |
| | | var result = AsstesAutoMatchingHelper.ThreeLinkAutoMatching(item, alllist); |
| | | if (result != null) |
| | | { |
| | | resultList.Add(result); |
| | | } |
| | | else |
| | | { |
| | | item.MatchingType = Xhs.eMatchingType.Error; |
| | | resultList.Add(result); |
| | | resultList.Add(item); |
| | | } |
| | | } |
| | | _allBindingList = resultList; |
| | | this.threeLinkMatchingViewModelBindingSource.ResetBindings(false); |
| | | _allBindingList.Clear(); |
| | | foreach (var item in resultList) |
| | | { |
| | | _allBindingList.Add(new ThreeLinkFormViewModel(item)); |
| | | } |
| | | this.threeLinkFormViewModelBindingSource.ResetBindings(false); |
| | | return resultList; |
| | | } |
| | | |