| | |
| | | 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)) |
| | |
| | | } |
| | | 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) |
| | |
| | | { |
| | | MatchingFactor(); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |