| | |
| | | this.txtDescription.EditValue = _last.Description; |
| | | } |
| | | this.imageComboBoxEditConnectlenght.Properties.AddEnum(typeof(eElbowType)); |
| | | this.imageComboBoxEditConnectlenght.SelectedIndex = 1; |
| | | } |
| | | |
| | | //验证 |
| | |
| | | _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) |