| | |
| | | this.dxErrorProvider1.SetError(this.txtName, "必填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.txtMaterial.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtMaterial, "必填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.txtCoefficient.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtCoefficient, "必填项"); |
| | |
| | | _vmo.Material = this.txtMaterial.Text.Trim(); |
| | | _vmo.Caliber = this.txtCaliber.EditValue == null ? null : double.Parse(this.txtCaliber.EditValue?.ToString()); |
| | | _vmo.MinorLoss = double.Parse(this.txtCoefficient.EditValue?.ToString()); |
| | | _vmo.Description = this.txtDescription.EditValue?.ToString(); |
| | | |
| | | var bol = await BLLFactory<HStation.BLL.AssetsValveFactor>.Instance.Update(_vmo); |
| | | if (!bol) |
| | | { |