| | |
| | | |
| | | this._partInfoCtrl.OnEditMore += () => |
| | | { |
| | | EditPumpMore(); |
| | | EditPumpMoreInfo(); |
| | | }; |
| | | this._partInfoCtrl.OnChangePump += () => |
| | | { |
| | | ChangePumpEntity(); |
| | | }; |
| | | this._partInfoCtrl.OnGetMaxEtaPt += () => |
| | | { |
| | |
| | | if (eleInfo == null) |
| | | return; |
| | | }; |
| | | this._partInfoCtrl.OnChangePumpInfo += (rateParas) => |
| | | this._partInfoCtrl.OnChangeRatedParas += (rateParas) => |
| | | { |
| | | if (rateParas != this._ratedParas.ToJson()) |
| | | { |
| | |
| | | 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; |
| | |
| | | |
| | | private void bbi产ååæ°_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | EditPumpMore(); |
| | | EditPumpMoreInfo(); |
| | | } |
| | | private void EditPumpMore() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | private void EditPumpMoreInfo() |
| | | { |
| | | if (_currentPump == null) |
| | | return; |
| | |
| | | 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( |
| | |
| | | }; |
| | | dlg.Show(); |
| | | } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | private void ChangePumpEntity() |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |