Shuxia Ning
2024-10-25 5c77282b8a047c5b6667150120bdfe3a276e0812
WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-pump/01-Prop/PumpPropViewCtrl.cs
@@ -9,15 +9,13 @@
            InitializeComponent();
            this.gridView1.SetNormalView();
            this.gridView1.RegistCustomDrawRowIndicator();
            AddPumpPropDlg.ReloadRefreshData += RefreshData;
            PumpBarItem.ReloadRefreshData += RefreshData;
        }
        private List<PropGroupChoiceViewModel> _allBindingList;
        public static long _typeId;
        public long _pumpId;
        public static long _pumpId;
        public static Vmo.AssetsPumpMainVmo _assetsPumpMainVmo;
@@ -50,12 +48,15 @@
                return;
            }
            _typeId = catlog.First().TypeID;
            _allBindingList.Add(new PropGroupChoiceViewModel() { PropGroupName = "铭牌参数", PropName = "流量", Value = pump.RatedFlow.ToString() });
            _allBindingList.Add(new PropGroupChoiceViewModel() { PropGroupName = "铭牌参数", PropName = "流量", Value = pump.RatedFlow.ToString(), KeyWorldType = "Basic" });
            _allBindingList.Add(new PropGroupChoiceViewModel() { PropGroupName = "铭牌参数", PropName = "扬程", Value = pump.RatedHead.ToString(), KeyWorldType = "Basic" });
            _allBindingList.Add(new PropGroupChoiceViewModel() { PropGroupName = "铭牌参数", PropName = "功率", Value = pump.RatedPower.ToString(), KeyWorldType = "Basic" });
            _allBindingList.Add(new PropGroupChoiceViewModel() { PropGroupName = "铭牌参数", PropName = "转速", Value = pump.RatedSpeed.ToString(), KeyWorldType = "Basic" });
            foreach (var item in catlog)
            {
                foreach (var prop in item.PropList)
                {
                    _allBindingList.Add(new PropGroupChoiceViewModel() { PropGroupName = item.Name, PropName = prop.Name, ID = prop.ID });
                    _allBindingList.Add(new PropGroupChoiceViewModel() { PropGroupName = item.Name, PropName = prop.Name, ID = prop.ID, KeyWorldType = "Prop" });
                }
            }
            var propbll = new BLL.PumpPartPropContent();
@@ -75,7 +76,7 @@
            this.propGroupChoiceViewModelBindingSource.ResetBindings(false);
        }
        private void RefreshData()
        public void RefreshData()
        {
            SetBindingData(_pumpId.ToString());
        }