| | |
| | | return true; |
| | | } |
| | | |
| | | var hydroId = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.Save(hydroInfo); |
| | | if (hydroId < 1) |
| | | { |
| | | feedBackMsg?.Invoke("水力结构信息保存失败!!!", Color.Red); |
| | | feedBackMsg?.Invoke("项目导入结束。。。", Color.Blue); |
| | | feedBackProgress?.Invoke(100, 100); |
| | | return true; |
| | | } |
| | | |
| | | feedBackMsg?.Invoke("正在进行产品匹配...", Color.Black); |
| | | hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroId); |
| | | var matchingParas = AssetsMatchingParasHelper.Create(hydroInfo, null); |
| | | if (AssetsMatchingHelper.Matching(matchingParas, out string error)) |
| | | { |
| | |
| | | { |
| | | feedBackMsg?.Invoke("产品匹配失败!!!", Color.Red); |
| | | } |
| | | hydroId = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.Save(hydroInfo); |
| | | feedBackMsg?.Invoke("正在保存水力结构信息...", Color.Black); |
| | | var hydroId = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.Save(hydroInfo); |
| | | if (hydroId < 1) |
| | | { |
| | | feedBackMsg?.Invoke("水力结构信息保存失败!!!", Color.Red); |
| | | feedBackMsg?.Invoke("项目导入结束。。。", Color.Blue); |
| | | feedBackProgress?.Invoke(100, 100); |
| | | return true; |
| | | } |
| | | feedBackMsg?.Invoke("水力结构信息保存成功。。。", Color.Green); |
| | | |
| | | feedBackMsg?.Invoke("水力结构文件解析成功。。。", Color.Green); |
| | | feedBackProgress?.Invoke(100, 40); |