lixiaojun
2025-01-22 46f64905a3c309a50c0f245b3350cdeb8dd699c6
WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/02-main/AddAssetsElbowMainDlg.cs
@@ -52,7 +52,6 @@
                this.txtDescription.EditValue = _last.Description;
            }
            this.imageComboBoxEditConnectlenght.Properties.AddEnum(typeof(eElbowType));
            this.imageComboBoxEditConnectlenght.SelectedIndex = 1;
        }
        //验证
@@ -104,8 +103,10 @@
            _vmo.Flags = this.setFlagsEditCtrl1.SelectedFlagList;
            _vmo.TagName = this.txtTagName.Text.Trim();
            _vmo.Description = this.txtDescription.Text.Trim();
            _vmo.ElbowType = (eElbowType)this.imageComboBoxEditConnectlenght.EditValue;
            _vmo.Angle = int.Parse(this.txtAngle.EditValue?.ToString());
            _vmo.ElbowType = this.imageComboBoxEditConnectlenght.EditValue != null
            ? (eElbowType)Enum.Parse(typeof(eElbowType), this.imageComboBoxEditConnectlenght.EditValue.ToString())
            : (eElbowType?)null;
            _vmo.Angle = this.txtAngle.EditValue == null ? null : int.Parse(this.txtAngle.EditValue?.ToString());
            var id = await BLLFactory<HStation.BLL.AssetsElbowMain>.Instance.Insert(_vmo);
            if (id < 1)
            {