| | |
| | | /// <summary> |
| | | /// 初始化 |
| | | /// </summary> |
| | | public void SetMatching(AssetsAutoMatchingInputViewModel input) |
| | | public AssetsAutoMatchingInputViewModel SetMatching(AssetsAutoMatchingInputViewModel input) |
| | | { |
| | | this.pumpMatchingCtrl1.SetBindingData(input.PumpMatchingModels, out List<PumpMatchingViewModel> pumpErrors); |
| | | var assetsAutoMatching = new AssetsAutoMatchingInputViewModel(); |
| | | var pumpMatching = this.pumpMatchingCtrl1.SetBindingData(input.PumpMatchingModels, out List<PumpMatchingViewModel> pumpErrors); |
| | | var threeLinkMatching = this.threeLinkMatchingCtrl1.SetBindingData(input.ThreeLinkMatchingModels); |
| | | |
| | | assetsAutoMatching.PumpMatchingModels = pumpMatching; |
| | | assetsAutoMatching.ThreeLinkMatchingModels = threeLinkMatching; |
| | | return assetsAutoMatching; |
| | | } |
| | | } |
| | | } |