| | |
| | | MessageBox.Show("è¿æªè®¾ç½®itemåæ°"); |
| | | return; |
| | | } |
| | | if (pump == null) |
| | | { |
| | | MessageBox.Show("è¿æªè®¾ç½®pumpåæ°"); |
| | | return; |
| | | } |
| | | if (part == null) |
| | | { |
| | | MessageBox.Show("è¿æªè®¾ç½®partåæ°"); |
| | | return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(pump.RatedParas)) |
| | | { |
| | | MessageBox.Show("è¿æªè®¾ç½®æ³µçé¢å®åæ°"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | this._workBenchInfo = workBench; |
| | | this._testItem = item; |
| | | this._currentPump = pump; |
| | | this._currentPart = part; |
| | | this._ratedParas = TProduct.Model.RatedParas4Pump.ToModel(pump.RatedParas); |
| | | if (_currentPump.MotorMainID.HasValue && _currentPump.MotorMainID > 0) |
| | | if (_currentPump != null) |
| | | { |
| | | _currentMotor = new BLL.ProductMotor().GetExByProductID((long)_currentPump.MotorMainID); |
| | | this._ratedParas = TProduct.Model.RatedParas4Pump.ToModel(pump.RatedParas); |
| | | if (_currentPump.MotorMainID.HasValue && _currentPump.MotorMainID > 0) |
| | | { |
| | | _currentMotor = new BLL.ProductMotor().GetExByProductID((long)_currentPump.MotorMainID); |
| | | } |
| | | this._currentPumpSeries = new BLL.ProductSeries().GetByID(this._currentPump.SeriesID); |
| | | if (this._currentPumpSeries == null) |
| | | { |
| | | MessageBox.Show("å½å泵对åºç³»åæªæ¾å°"); |
| | | return; |
| | | } |
| | | } |
| | | this._currentPumpSeries = new BLL.ProductSeries().GetByID(this._currentPump.SeriesID); |
| | | if (this._currentPumpSeries == null) |
| | | { |
| | | MessageBox.Show("å½å泵对åºç³»åæªæ¾å°"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | if (TProduct.CorpSetting.PumpTest.IsRefreshAdditionInfo) |
| | | { |
| | |
| | | ribbonPageGroupå¼åæº.Visible = false; |
| | | |
| | | bsiOperateInfo.Caption = ""; |
| | | this._isInnerMotor = _currentPumpSeries.IsInnerMotor == 1 ? true : false; |
| | | if(_currentPumpSeries != null) |
| | | { |
| | | this._isInnerMotor = _currentPumpSeries.IsInnerMotor == 1 ? true : false; |
| | | |
| | | //åå§åæä½æç¤º |
| | | InitialNoticeList(); |
| | | //åå§åæä½æç¤º |
| | | InitialNoticeList(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | _monitorValveIngRecordHelper = new MonitorValveIngRecordHelper(); |
| | | _monitorValveIngRecordHelper.Initial( |
| | | TProduct.Model.eProductType.Pump, |
| | | this._currentPumpSeries.ID, |
| | | this._currentPump.ID, |
| | | this._currentPart.ID, |
| | | this._currentPumpSeries == null ? 0 : this._currentPumpSeries.ID, |
| | | this._currentPump == null ? 0 : this._currentPump.ID, |
| | | this._currentPart == null ? 0 : this._currentPart.ID, |
| | | this._testItem, |
| | | this._workBenchInfo, |
| | | this._allMonitorPointList); |
| | |
| | | //é讯æ¥å¿(æ¾å¨æå) |
| | | InitialLinkLogCtrl(); |
| | | |
| | | bbiPumpName.Caption = string.Format("æ³µID:{0},åå·:{1}", pump.ID, pump.Name); |
| | | TProduct.LogHelper.Test(string.Format("å¼å§è¿è¡æ§è½æµè¯,æ³µåå·:{0}", pump.Name)); |
| | | if(pump == null) |
| | | { |
| | | bbiPumpName.Caption = string.Format("æ³µID:{0},åå·:{1}", 0, "æªç¥"); |
| | | TProduct.LogHelper.Test(string.Format("å¼å§è¿è¡æ§è½æµè¯,æ³µåå·:{0}", "æªç¥")); |
| | | } |
| | | else |
| | | { |
| | | bbiPumpName.Caption = string.Format("æ³µID:{0},åå·:{1}", pump.ID, pump.Name); |
| | | TProduct.LogHelper.Test(string.Format("å¼å§è¿è¡æ§è½æµè¯,æ³µåå·:{0}", pump.Name)); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | private void InitialNoticeList() |
| | | { |
| | | bbi注æäºé¡¹.Enabled = false; |
| | | if (this._currentPumpSeries == null) { return; } |
| | | var productStyle = new BLL.ProductStyle().GetByID(this._currentPumpSeries.ProductStyleID); |
| | | if (productStyle == null) |
| | | return; |