namespace HStation.WinFrmUI { public partial class XhsProjectSimulationHydroInfoCtrl : DevExpress.XtraEditors.XtraUserControl { public XhsProjectSimulationHydroInfoCtrl() { InitializeComponent(); } /// /// 绑定数据 /// public async void SetBindingData(long projectId) { var projectSite = await BLLFactory.Instance.GetDefaultByProjectID(projectId); if (projectSite == null) { return; } var hydroRelation = await new Yw.BLL.HydroModelRelation().GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, HStation.Xhs.Purpose.Simulation); if (hydroRelation == null) { return; } var info = await new Yw.BLL.HydroModelInfo().GetByID(hydroRelation.ModelID); this.hydroParterListCtrl1.SetBindingData(info); } public void SetBindingData() { } } }