From f10f00cf1739b49fe51abfbb96093a2a2f66a65c Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期日, 19 一月 2025 17:56:36 +0800 Subject: [PATCH] 赋值问题报错修改 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/03-factor/AddAssetsElbowFactorDlg.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/03-factor/AddAssetsElbowFactorDlg.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/03-factor/AddAssetsElbowFactorDlg.cs index d9d505a..5763e20 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/03-factor/AddAssetsElbowFactorDlg.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/03-factor/AddAssetsElbowFactorDlg.cs @@ -75,7 +75,7 @@ _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.Angle = int.Parse(this.txtAngle.EditValue?.ToString()); + _vmo.Angle = this.txtAngle.EditValue == null ? null : int.Parse(this.txtAngle.EditValue?.ToString()); _vmo.Description = this.txtDescription.Text.Trim(); var id = await BLLFactory<HStation.BLL.AssetsElbowFactor>.Instance.Insert(_vmo); if (id < 1) -- Gitblit v1.9.3