tx
2025-04-22 e0b138b3e057de6f57021e6c8963868f5c5acc5a
TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/MainPageÐÔÄܲâÊÔ/FeatTestViewMainPage_»ù±¾ÐÅÏ¢.cs
@@ -26,7 +26,11 @@
                this._partInfoCtrl.OnEditMore += () =>
                {
                    EditPumpMore();
                    EditPumpMoreInfo();
                };
                this._partInfoCtrl.OnChangePump += () =>
                {
                    ChangePumpEntity();
                };
                this._partInfoCtrl.OnGetMaxEtaPt += () =>
                {
@@ -61,7 +65,7 @@
                    if (eleInfo == null)
                        return; 
                };
                this._partInfoCtrl.OnChangePumpInfo += (rateParas) =>
                this._partInfoCtrl.OnChangeRatedParas += (rateParas) =>
                {
                    if (rateParas != this._ratedParas.ToJson())
                    {
@@ -82,18 +86,13 @@
                this.tabPagePartInfo.Controls.Add(this._partInfoCtrl);
            }
            if (this._currentPump == null)
            {
                this._partInfoCtrl.Enabled = false;
            }
            else
            {
                this._partInfoCtrl.SetBindingData(
          this._partInfoCtrl.SetBindingData(
                this._currentPump,
                this._currentMotor,
                this._currentPart,
                this._featTestItem.ElectricInfo);
            }
        }
        //PumpTestBimfaceViewCtrl _model3dCtrl = null;
@@ -197,9 +196,12 @@
        private void bbi产品参数_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            EditPumpMore();
            EditPumpMoreInfo();
        }
        private void EditPumpMore()
        /// <summary>
        ///
        /// </summary>
        private void EditPumpMoreInfo()
        {
            if (_currentPump == null)
                return;
@@ -208,12 +210,21 @@
            TProduct.WinFrmUI.Data4Factory.EditProductPumpDlg
                dlg = new Data4Factory.EditProductPumpDlg();
            dlg.Shown += delegate { WaitFrmHelper.HideWaitForm(); };
            dlg.SetBindingData(this._currentPump);
            dlg.ReloadDataEvent += (pump, isChangePart, motor) =>
            dlg.SetBindingData(this._currentPump,this._currentPart==null?0:this._currentPart.ID);
            dlg.IsEditChangedAble( false);
            dlg.ReloadDataEvent += (isChangePart, pump, motor,part) =>
            {
                this._currentPump.Reset(pump);
                if (part != null)
                {
                    this._currentPart = part;
                }
                this._currentPump.Reset(pump);
                this._ratedParas = TProduct.Model.RatedParas4Pump.ToModel(pump.RatedParas);
                JudgeTestResult();
                this._chartMainCtrl.RefreshRatedParas(this._ratedParas, this._testJudgeItems);
                ShowCmdOperateInfo("更新成功!");
                XtraMessageBox.Show("更新成功!");
                if (this._partInfoCtrl != null)
                {
                    this._partInfoCtrl.SetBindingData(
@@ -230,5 +241,12 @@
            };
            dlg.Show();
        }
        /// <summary>
        ///
        /// </summary>
        private void ChangePumpEntity()
        {
        }
    }
}