| | |
| | | |
| | | private BLL.ValveMain _valveMain = null; |
| | | |
| | | public void SetBindingData(AssetsAutoMatchingInputViewModel inputViewModel) |
| | | { |
| | | this.elbowsMatchingCtrl1.SetBindingData(inputViewModel.ElbowsMatchingModels); |
| | | this.pipeLineMatchingCtrl1.SetBindingData(inputViewModel.PipeLineMatchingModels); |
| | | this.pumpMatchingCtrl1.SetBindingData(inputViewModel.PumpMatchingModels); |
| | | this.threeLinkMatchingCtrl1.SetBindingData(inputViewModel.ThreeLinkMatchingModels); |
| | | this.fourLinkMatchingCtrl1.SetBindingData(inputViewModel.FourLinkMatchingModels); |
| | | this.valveMatchingCtrl1.SetBindingData(inputViewModel.ValveMatchingModels); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 初始化 |
| | | /// </summary> |
| | |
| | | var allValve = await _valveMain.GetAll(); |
| | | var assetsAutoMatching = new AssetsAutoMatchingInputViewModel(); |
| | | //泵匹配 |
| | | var pumpMatching = await this.pumpMatchingCtrl1.SetBindingData(input.PumpMatchingModels, allPump); |
| | | var pumpMatching = await this.pumpMatchingCtrl1.SetMatching(input.PumpMatchingModels, allPump); |
| | | //三通匹配 |
| | | var threeLinkMatching = this.threeLinkMatchingCtrl1.SetBindingData(input.ThreeLinkMatchingModels, allAdapting); |
| | | var threeLinkMatching = this.threeLinkMatchingCtrl1.SetMatching(input.ThreeLinkMatchingModels, allAdapting); |
| | | //四通匹配 |
| | | var fourLinkMatching = this.fourLinkMatchingCtrl1.SetBindingData(input.FourLinkMatchingModels, allAdapting); |
| | | var fourLinkMatching = this.fourLinkMatchingCtrl1.SetMatching(input.FourLinkMatchingModels, allAdapting); |
| | | //管道匹配 |
| | | var PipeLineMatching = this.pipeLineMatchingCtrl1.SetBindingData(input.PipeLineMatchingModels, allPipeLine); |
| | | var PipeLineMatching = this.pipeLineMatchingCtrl1.SetMatching(input.PipeLineMatchingModels, allPipeLine); |
| | | //阀门匹配 |
| | | var ValveMatching = this.valveMatchingCtrl1.SetBindingData(input.ValveMatchingModels, allValve); |
| | | var ValveMatching = this.valveMatchingCtrl1.SetMatching(input.ValveMatchingModels, allValve); |
| | | assetsAutoMatching.PumpMatchingModels = pumpMatching; |
| | | assetsAutoMatching.ThreeLinkMatchingModels = threeLinkMatching; |
| | | return assetsAutoMatching; |