duheng
2024-12-27 1c3e5bc50d3045d51cb9a9f747d53442b82d9e2c
WinFrmUI/HStation.WinFrmUI.Assets.Core/20-exchanger/02-main/AddAssetsExchangerMainDlg.cs
@@ -71,17 +71,12 @@
                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, "必填项");
                return false;
            }
             var tagname = this.txtTagName.Text.Trim();
            var tagname = this.txtTagName.Text.Trim();
            if (!string.IsNullOrEmpty(tagname))
            {
                if (await BLLFactory<HStation.BLL.AssetsExchangerMain>.Instance.IsExistTagName(tagname))
@@ -143,12 +138,13 @@
            }
            return _allFactorList;
        }
        private List<AssetsExchangerFactorVmo> _allFactorList = null;
        //匹配系数
        private async void MatchingFactor()
        {
            if (this.txtMinorLoss.EditValue == null )
            if (this.txtMinorLoss.EditValue == null)
            {
                var allFactorList = await GetAllFactorList();
                if (allFactorList != null && allFactorList.Count > 0)
@@ -183,7 +179,5 @@
        {
            MatchingFactor();
        }
    }
}