lixiaojun
2024-09-14 e4f7633712f12fed7f6477a4316e1ba5d7b4c33e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
namespace HStation.WinFrmUI
{
    public partial class XhsProjectSimulationHydroInfoCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public XhsProjectSimulationHydroInfoCtrl()
        {
            InitializeComponent();
        }
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        public async void SetBindingData(long projectId)
        {
            var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.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()
        {
 
        }
 
 
 
    }
}