| | |
| | | ) |
| | | { |
| | | if (part == null || pump == null) |
| | | return; |
| | | { |
| | | SetEmptyPump(); return; |
| | | } |
| | | |
| | | this._pump = pump; |
| | | this._pumpPart = part; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | private void SetEmptyPump() |
| | | { |
| | | layoutControlGroup2.Enabled = false; |
| | | bbi修改泵参数.Enabled = false; |
| | | bbi修改电机参数.Enabled= false; |
| | | bbi修改电流比.Enabled = false; |
| | | |
| | | } |
| | | private void btnGaochaView_Click(object sender, EventArgs e) |
| | | { |
| | | var HelpDlg = new TProduct.WinFrmUI.Data4Factory.NpshGaoChaHelpDlg(); |
| | |
| | | } |
| | | public Action< TProduct.Model.PrjItemElectricInfo> OnChangeElectricInfo = null; |
| | | public Action<TProduct.Model.ProductMainExMotor > OnChangeMotorInfo = null; |
| | | public Action<string> OnChangePumpInfo = null; |
| | | public Action<string> OnChangeRatedParas = null; |
| | | public Action OnEditMore = null; |
| | | public Action OnChangePump = null; |
| | | private void bbi修改电机参数_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (this._currentMotor != null) |
| | |
| | | #endregion |
| | | |
| | | |
| | | if (OnChangePumpInfo != null) |
| | | if (OnChangeRatedParas != null) |
| | | { |
| | | OnChangePumpInfo(_ratedParasPump.ToJson()); |
| | | OnChangeRatedParas(_ratedParasPump.ToJson()); |
| | | } |
| | | |
| | | MessageBox.Show("已修改"); |
| | |
| | | } |
| | | |
| | | private void bbi修改电流比_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | |
| | | { |
| | | if (this._currenEleInfo != null) |
| | | { |
| | | int v = 0; |
| | |
| | | |
| | | MessageBox.Show("已修改"); |
| | | } |
| | | |
| | | private void bbiOnChangePump_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if(OnChangePump != null) |
| | | OnChangePump.Invoke(); |
| | | } |
| | | } |
| | | } |