lixiaojun
2025-01-20 6e1306ab578ed1ad79fc33b0bb7e496b897bf4a4
WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/03-factor/AddAssetsValveFactorDlg.cs
@@ -46,11 +46,6 @@
                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.txtMinorLoss.Text.Trim()))
            {
                this.dxErrorProvider1.SetError(this.txtMinorLoss, "必填项");
@@ -74,6 +69,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.txtMinorLoss.EditValue?.ToString());
            _vmo.Description = this.txtDescription.EditValue?.ToString();
            var id = await BLLFactory<HStation.BLL.AssetsValveFactor>.Instance.Insert(_vmo);
            if (id < 1)
            {