duheng
2024-09-19 a72a2fafc5cd95d9fae4957d855929fabf594415
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace HStation.WinFrmUI.Xhs
{
    public partial class AssetsMainChoicePage : DevExpress.XtraEditors.XtraUserControl
    {
        public AssetsMainChoicePage()
        {
            InitializeComponent();
        }
 
        /// <summary>
        /// 初始化
        /// </summary>
        public AssetsAutoMatchingInputViewModel SetMatching(AssetsAutoMatchingInputViewModel input)
        {
            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;
        }
    }
}