| | |
| | | return true; |
| | | } |
| | | |
| | | feedBackMsg?.Invoke("正在进行产品匹配...", Color.Black); |
| | | hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroId); |
| | | var matchingParas = AssetsMatchingParasHelper.Create(hydroInfo); |
| | | if (await AssetsMatchingHelper.Matching(matchingParas)) |
| | | { |
| | | if (AssetsMatchingParasHelper.Apply(hydroInfo, matchingParas)) |
| | | { |
| | | feedBackMsg?.Invoke("产品匹配成功。。。", Color.Green); |
| | | } |
| | | else |
| | | { |
| | | feedBackMsg?.Invoke("产品匹配失败!!!", Color.Red); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | feedBackMsg?.Invoke("产品匹配失败!!!", Color.Red); |
| | | } |
| | | //feedBackMsg?.Invoke("正在进行产品匹配...", Color.Black); |
| | | //hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroId); |
| | | //var matchingParas = AssetsMatchingParasHelper.Create(hydroInfo); |
| | | //if (await AssetsMatchingHelper.Matching(matchingParas)) |
| | | //{ |
| | | // if (AssetsMatchingParasHelper.Apply(hydroInfo, matchingParas)) |
| | | // { |
| | | // feedBackMsg?.Invoke("产品匹配成功。。。", Color.Green); |
| | | // } |
| | | // else |
| | | // { |
| | | // feedBackMsg?.Invoke("产品匹配失败!!!", Color.Red); |
| | | // } |
| | | //} |
| | | //else |
| | | //{ |
| | | // feedBackMsg?.Invoke("产品匹配失败!!!", Color.Red); |
| | | //} |
| | | |
| | | feedBackMsg?.Invoke("水力结构文件解析成功。。。", Color.Green); |
| | | feedBackProgress?.Invoke(100, 30); |