| | |
| | | namespace HStation.WinFrmUI |
| | | using DevExpress.Dialogs.Core.View; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class ThreeLinkMatchingCtrl : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | |
| | | this.gridView1.OptionsView.ShowDetailButtons = true; |
| | | this.gridView1.OptionsView.ShowGroupPanel = false; |
| | | } |
| | | |
| | | private BLL.AdaptingManage _adaptingBll; |
| | | |
| | | private List<ThreeLinkMatchingViewModel> _allBindingList = null; |
| | | |
| | | public List<ThreeLinkMatchingViewModel> SetBindingData(List<ThreeLinkMatchingViewModel> inputs) |
| | | { |
| | | var finishList = new List<ThreeLinkMatchingViewModel>(); |
| | | _adaptingBll = new BLL.AdaptingManage(); |
| | | var alllist = _adaptingBll.GetAll().Result; |
| | | foreach (var item in inputs) |
| | | { |
| | | var result = AdaptingAutoMatchingHelper.AutoMatching(item, alllist); |
| | | if (result != null) |
| | | { |
| | | finishList.Add(result); |
| | | } |
| | | else |
| | | { |
| | | } |
| | | } |
| | | _allBindingList = finishList; |
| | | this.threeLinkMatchingViewModelBindingSource.DataSource = _allBindingList; |
| | | this.threeLinkMatchingViewModelBindingSource.ResetBindings(false); |
| | | return finishList; |
| | | } |
| | | } |
| | | } |