duheng
2024-10-14 05d57af48f51d2ac8292bc3faaa01ca753763790
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingForm.cs
@@ -1,10 +1,10 @@
using HStation.WinFrmUI.PhartRelation;
namespace HStation.WinFrmUI.Xhs
namespace HStation.WinFrmUI
{
    public partial class ValveSingleMatchingForm : DevExpress.XtraEditors.XtraUserControl
    public partial class ValveSingleMatchingCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public ValveSingleMatchingForm()
        public ValveSingleMatchingCtrl()
        {
            InitializeComponent();
            this.gridView1.SetNormalView();
@@ -27,7 +27,7 @@
        private List<ValveSingleMatchingViewModel> _allBindingList = null;
        private BLL.PumpMain _pumpBll = null;
        private BLL.AssetsPumpMain _pumpBll = null;
        private List<PhartViewModel> _allPhartList = null;
        private readonly Lazy<BLL.XhsPumpMainPhartMappingExtensions> _bll_ex = new();
@@ -38,9 +38,9 @@
        {
            _pumpMatchingViewModel = pumpMatchingViewModel;
            _allBindingList = new List<ValveSingleMatchingViewModel>();
            _pumpBll = new BLL.PumpMain();
            var allPumpMain = await _pumpBll.GetAll();
            foreach (var Main in allPumpMain)
            _pumpBll = new BLL.AssetsPumpMain();
            var allAssetsPumpMain = await _pumpBll.GetAll();
            foreach (var Main in allAssetsPumpMain)
            {
                _allBindingList.Add(new ValveSingleMatchingViewModel(Main));
            }
@@ -148,7 +148,7 @@
                InitChart(vmo);
                return;
            }
            this.xtrPerform2dChart1.SetBindingData(null, null, null, null, false);
            this.xtrPerform2dChart1.SetBindingData(null, null, null, null, true);
        }
    }
}