namespace HStation.WinFrmUI.Xhs
|
{
|
public partial class PumpMainCurveChoiceDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public PumpMainCurveChoiceDlg()
|
{
|
InitializeComponent();
|
}
|
|
public event Action<long?, long?, Vmo.XhsPumpMainPhartMappingExtensions> SelectCurveInfoEvent;
|
|
public void SetBindingData(string dbId, string modelType, string curveDbId)
|
{
|
this.xtraUserControl11.SetBindingData(dbId, modelType, curveDbId);
|
}
|
|
//确定
|
private void btnComplete_Click(object sender, EventArgs e)
|
{
|
var model = this.xtraUserControl11.GetCurrentCurveinfo();
|
if (model.Dbid <= 0)
|
{
|
TipFormHelper.ShowError("泵型号选择错误");
|
return;
|
}
|
if (model.Curveid <= 0)
|
{
|
TipFormHelper.ShowError("曲线选择错误");
|
return;
|
}
|
SelectCurveInfoEvent.Invoke(model.Dbid, model.Curveid, model.Curveinfo);
|
}
|
}
|
}
|