| | |
| | | |
| | | |
| | | |
| | | this.selPumpSeriesCtrl.SetBindingData( SeriesID); |
| | | if (ProductID > 0 && SeriesID>0) |
| | | this.selPumpSeriesCtrl.SetBindingData(SeriesID); |
| | | if (ProductID > 0 && SeriesID > 0) |
| | | { |
| | | var series = _allSeries.Find(x=>x.ID == SeriesID); |
| | | var series = _allSeries.Find(x => x.ID == SeriesID); |
| | | if (series != null) |
| | | { |
| | | this.selectProductCtrl.SetBindingData4Series(series, ProductID); |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.imageComboTestStandard.Properties.Items.Clear(); |
| | |
| | | return; |
| | | } |
| | | |
| | | if (SelProductPump == null) |
| | | if (checkEditä»»æäº§å.Checked) |
| | | { |
| | | XtraMessageBox.Show("è¯·éæ©æµè¯åå·ï¼"); |
| | | return; |
| | | |
| | | } |
| | | else |
| | | { |
| | | if (SelProductPump == null) |
| | | { |
| | | XtraMessageBox.Show("è¯·éæ©æµè¯åå·ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (imageComboTestStandard.SelectedIndex < 0) |
| | |
| | | ProductType = TProduct.Model.eProductType.Pump, |
| | | CreateTime = DateTime.Now, |
| | | CreateUserID = user_id, |
| | | SeriesID = this.SelProductSeries.ID, |
| | | ProductID = this.SelProductPump.ID, |
| | | PartID = this._selPart.ID, |
| | | SeriesID = this.SelProductSeries == null ? 0 : this.SelProductSeries.ID, |
| | | ProductID = this.SelProductPump == null ? 0 : this.SelProductPump.ID, |
| | | PartID = this._selPart == null ? 0 : this._selPart.ID, |
| | | IsFixed = false, |
| | | UseStatus = TProduct.Model.eUseStatus.Enable, |
| | | Name = textEditName.Text, |
| | |
| | | |
| | | |
| | | |
| | | if (_isAddPart) |
| | | if (_isAddPart && SelProductPump != null) |
| | | { |
| | | _selPart = new TProduct.Model.PartBase(); |
| | | if (string.IsNullOrEmpty(this.TextEditPartCode.Text)) |
| | |
| | | else |
| | | { |
| | | //妿æä¸ä¸ªå±æ§æ¹ååä¿®æ¹ |
| | | if (!String.Equals(this.TextEditPartName.Text, _selPart.Name) || |
| | | !String.Equals(this.TextEditPartCode.Text, _selPart.Code) || |
| | | !String.Equals(this.MemoEditNote.Text, _selPart.Note) || |
| | | !String.Equals(manufactureTime, _selPart.ManufactureTime) || |
| | | !String.Equals(sendTime, _selPart.SendTime) || |
| | | selManufacture.ID != _selPart.ManufacturerID || |
| | | selSender.ID != _selPart.SenderID) |
| | | if(_selPart != null) |
| | | { |
| | | _selPart.Code = this.TextEditPartCode.Text.Trim(); |
| | | _selPart.Name = this.TextEditPartName.Text.Trim(); |
| | | _selPart.ManufacturerID = selManufacture.ID; |
| | | _selPart.SenderID = selSender.ID; |
| | | _selPart.Note = this.MemoEditNote.Text.Trim(); |
| | | _selPart.ManufactureTime = manufactureTime; |
| | | _selPart.SendTime = sendTime; |
| | | var bll = new BLL.PartBase(); |
| | | return bll.Update(_selPart); |
| | | if (!String.Equals(this.TextEditPartName.Text, _selPart.Name) || |
| | | !String.Equals(this.TextEditPartCode.Text, _selPart.Code) || |
| | | !String.Equals(this.MemoEditNote.Text, _selPart.Note) || |
| | | !String.Equals(manufactureTime, _selPart.ManufactureTime) || |
| | | !String.Equals(sendTime, _selPart.SendTime) || |
| | | selManufacture.ID != _selPart.ManufacturerID || |
| | | selSender.ID != _selPart.SenderID) |
| | | { |
| | | _selPart.Code = this.TextEditPartCode.Text.Trim(); |
| | | _selPart.Name = this.TextEditPartName.Text.Trim(); |
| | | _selPart.ManufacturerID = selManufacture.ID; |
| | | _selPart.SenderID = selSender.ID; |
| | | _selPart.Note = this.MemoEditNote.Text.Trim(); |
| | | _selPart.ManufactureTime = manufactureTime; |
| | | _selPart.SendTime = sendTime; |
| | | var bll = new BLL.PartBase(); |
| | | return bll.Update(_selPart); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | return true; |
| | |
| | | { |
| | | SearchLookUpEditPressMeter.Enabled = !checkEditæ ¹æ®æµç¹è®¾ç½®åºå£åå.Checked; |
| | | } |
| | | |
| | | private void checkEditä»»æäº§å_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | if (checkEditä»»æäº§å.Checked) |
| | | { |
| | | selPumpSeriesCtrl.Enabled = false; |
| | | selectProductCtrl.Enabled = false; |
| | | imageComboPart.Enabled = false; |
| | | } |
| | | else |
| | | { |
| | | selPumpSeriesCtrl.Enabled = true; |
| | | selectProductCtrl.Enabled = true; |
| | | imageComboPart.Enabled = true; |
| | | } |
| | | } |
| | | } |
| | | } |