| | |
| | | { |
| | | if (inputs == null || inputs.Count == 0) |
| | | return null; |
| | | var finishList = new List<ThreeLinkMatchingViewModel>(); |
| | | var resultList = new List<ThreeLinkMatchingViewModel>(); |
| | | foreach (var item in inputs) |
| | | { |
| | | var result = AsstesAutoMatchingHelper.AutoMatching(item, alllist); |
| | | if (result != null) |
| | | { |
| | | finishList.Add(result); |
| | | resultList.Add(result); |
| | | } |
| | | else |
| | | { |
| | | item.MatchingType = Xhs.eMatchingType.Error; |
| | | resultList.Add(result); |
| | | } |
| | | } |
| | | _allBindingList = finishList; |
| | | _allBindingList = resultList; |
| | | this.threeLinkMatchingViewModelBindingSource.DataSource = _allBindingList; |
| | | this.threeLinkMatchingViewModelBindingSource.ResetBindings(false); |
| | | return finishList; |
| | | return resultList; |
| | | } |
| | | } |
| | | } |