lixiaojun
2025-02-07 d107fd0519b4b84c31bc55bbd30cc0ba0af7507d
WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/03-factor/EditAssetsValveFactorDlg.cs
@@ -1,15 +1,4 @@
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Yw;
using Yw.DAL.Basic;
using Yw;
namespace HStation.WinFrmUI
{
@@ -55,11 +44,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.txtCoefficient.Text.Trim()))
            {
                this.dxErrorProvider1.SetError(this.txtCoefficient, "必填项");
@@ -83,6 +67,8 @@
            _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.Description = this.txtDescription.EditValue?.ToString();
            var bol = await BLLFactory<HStation.BLL.AssetsValveFactor>.Instance.Update(_vmo);
            if (!bol)
            {