tx
9 天以前 e0b138b3e057de6f57021e6c8963868f5c5acc5a
TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/InfoDlg/PartInfoCtrl.cs
@@ -42,7 +42,10 @@
            )
        {
            if (part == null || pump == null)
                return;
            {
                SetEmptyPump(); return;
            }
            this._pump = pump;
            this._pumpPart = part;
@@ -167,6 +170,14 @@
            }
        }
        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();
@@ -175,8 +186,9 @@
        }
        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)
@@ -310,9 +322,9 @@
            #endregion
            if (OnChangePumpInfo != null)
            if (OnChangeRatedParas != null)
            {
                OnChangePumpInfo(_ratedParasPump.ToJson());
                OnChangeRatedParas(_ratedParasPump.ToJson());
            }
            MessageBox.Show("已修改");
@@ -468,8 +480,7 @@
        }
        private void bbi修改电流比_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
        {
            if (this._currenEleInfo != null)
            {
                int v = 0;
@@ -486,5 +497,11 @@
            MessageBox.Show("已修改");
        }
        private void bbiOnChangePump_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if(OnChangePump != null)
            OnChangePump.Invoke();
        }
    }
}