duheng
2024-09-26 a6c50c87d1ba3f5c8785dcc9e8ea640b5a43209f
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
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);
        }
    }
}