using DevExpress.XtraBars.Ribbon;
|
using DevExpress.XtraEditors;
|
using Yw.DAL.Basic;
|
|
namespace Yw.WinFrmUI
|
{
|
public partial class ApplyHydroGradingDlg : XtraForm
|
{
|
public ApplyHydroGradingDlg()
|
{
|
InitializeComponent();
|
this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
|
this.layoutControl1.SetupLayoutControl();
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public event Action<List<HydroGradingApplyResultViewModel>> ReloadDataEvent;
|
|
/// <summary>
|
///
|
/// </summary>
|
public void SetBindingData
|
(
|
Func<Yw.Model.HydroModelInfo> hydroInfoFunc,
|
List<HydroGradingApplyViewModel> allApplyList,
|
List<IHydroCalcuResult> allCalcuResultList
|
)
|
{
|
this.applyHydroGradingPureCtrl1.SetBindingData(hydroInfoFunc, allApplyList, allCalcuResultList);
|
}
|
|
//确定
|
private async void btnOk_Click(object sender, EventArgs e)
|
{
|
var allResultList = await this.applyHydroGradingPureCtrl1.GetResultList();
|
this.ReloadDataEvent?.Invoke(allResultList);
|
this.DialogResult = DialogResult.OK;
|
this.Close();
|
}
|
|
}
|
}
|