| | |
| | | this.gridView1.OptionsView.ShowDetailButtons = true; |
| | | this.gridView1.OptionsView.ShowGroupPanel = false; |
| | | } |
| | | |
| | | private List<ElbowsMatchingViewModel> _allBindingList = null; |
| | | |
| | | public List<ElbowsMatchingViewModel> SetBindingData(List<ElbowsMatchingViewModel> inputs, List<AdaptingManageVmo> alllist) |
| | | { |
| | | if (inputs == null || inputs.Count == 0) |
| | | return null; |
| | | var resultList = new List<ElbowsMatchingViewModel>(); |
| | | foreach (var item in inputs) |
| | | { |
| | | var result = AsstesAutoMatchingHelper.AutoMatching(item, alllist); |
| | | if (result != null) |
| | | { |
| | | resultList.Add(result); |
| | | } |
| | | else |
| | | { |
| | | item.MatchingType = Xhs.eMatchingType.Error; |
| | | resultList.Add(result); |
| | | } |
| | | } |
| | | _allBindingList = resultList; |
| | | this.elbowsMatchingViewModelBindingSource.DataSource = _allBindingList; |
| | | this.elbowsMatchingViewModelBindingSource.ResetBindings(false); |
| | | return resultList; |
| | | } |
| | | } |
| | | } |