duheng
2024-12-27 1c3e5bc50d3045d51cb9a9f747d53442b82d9e2c
WinFrmUI/HStation.WinFrmUI.Assets.Core/03-valve/02-main/AddAssetsValveMainDlg.cs
@@ -40,6 +40,7 @@
            var flags = await BLLFactory<Yw.BLL.SysFlag>.Instance.GetBySysType(HStation.Assets.DataType.ValveMain);
            this.setFlagsEditCtrl1.SetBindingData(flags?.Select(x => x.Name).ToList(), null);
            this.TextEditType.Properties.AddEnum(typeof(HStation.Assets.eValveType));
            this.TextEditType.SelectedIndex = 0;
            if (_last != null)
            {
                this.txtName.EditValue = _last.Name;
@@ -60,11 +61,6 @@
            if (string.IsNullOrEmpty(this.txtName.Text.Trim()))
            {
                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()))