| | |
| | | using DevExpress.Utils; |
| | | using DevExpress.XtraTreeList; |
| | | using HStation.WinFrmUI.Xhs; |
| | | using Timer = System.Threading.Timer; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsScheme, scheme.ID, HStation.Xhs.Purpose.Simulation); |
| | | if (schemeRelation != null) |
| | | { |
| | | if (!await BLLFactory<Yw.BLL.HydroModelRelation>.Instance.DeleteAllByID(schemeRelation.ID)) |
| | | if (!await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.DeleteByID(schemeRelation.ModelID)) |
| | | { |
| | | TipFormHelper.ShowError("项目方案模型删除失败,请重试!"); |
| | | return; |
| | |
| | | .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, HStation.Xhs.Purpose.Simulation); |
| | | if (hydroRelation != null) |
| | | { |
| | | if (!await BLLFactory<Yw.BLL.HydroModelRelation>.Instance.DeleteAllByID(hydroRelation.ID)) |
| | | if (!await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.DeleteByID(hydroRelation.ModelID)) |
| | | { |
| | | TipFormHelper.ShowError("项目模型删除失败,请重试!"); |
| | | return; |