duheng
2025-01-13 e7df5d1ece7ecabaa7a3943f24a6621649fdc455
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,7 +103,9 @@
            _vmo.Flags = this.setFlagsEditCtrl1.SelectedFlagList;
            _vmo.TagName = this.txtTagName.Text.Trim();
            _vmo.Description = this.txtDescription.Text.Trim();
            _vmo.ElbowType = (eElbowType)this.imageComboBoxEditConnectlenght.EditValue;
            _vmo.ElbowType = this.imageComboBoxEditConnectlenght.EditValue != null
            ? (eElbowType)Enum.Parse(typeof(eElbowType), this.imageComboBoxEditConnectlenght.EditValue.ToString())
            : (eElbowType?)null;
            _vmo.Angle = int.Parse(this.txtAngle.EditValue?.ToString());
            var id = await BLLFactory<HStation.BLL.AssetsElbowMain>.Instance.Insert(_vmo);
            if (id < 1)