duheng
2024-08-01 df724e202d16eda69bf8a67c683e2b70ccaca4f7
WinFrmUI/HStation.WinFrmUI.Phart.Core/XhsPumpCurveMainPanel.cs
@@ -1,4 +1,6 @@
using DevExpress.XtraEditors;
using DevExpress.XtraEditors;
using HStation.Dto;
using Org.BouncyCastle.Asn1.X509;
namespace HStation.WinFrmUI.Phart
{
@@ -11,13 +13,13 @@
        }
        private Model.PumpMain _pump_main = null;
        private HStation.Dto.Assets.PumpMainDto _pump_main = null;
        private Dto.XhsPumpPhartMappingExtensionsStdDto _xhs_phart_diagram_ex_dto = null;
        private BLL.XhsPumpPhartMappingExtensions _bll_ex = new();
        private BLL.XhsPumpPhartMappingExtensions _bll_ex = new();
        private BLL.XhsPumpPhartMappingExtensionsStd _bll_ex_std = new();
        public async void InitialDataSource(Model.PumpMain pump_main)
        public async void InitialDataSource(HStation.Dto.Assets.PumpMainDto pump_main)
        {
            _pump_main = pump_main;
            if (_pump_main == null)
@@ -74,7 +76,7 @@
            var is_calc_disp_paras = string.IsNullOrWhiteSpace(disp_paras);
            this.cubicSpline2dChart1.SetBindingData(cubic_spline_qh, cubic_spline_qe, cubic_spline_qp, disp_paras, is_calc_disp_paras);
        }
        //清空图表数据
        private void ClearChart()
        {
@@ -83,11 +85,11 @@
        //Excel 导入
        private void barBtnImportByExcel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var dlg = new Yw.WinFrmUI.Phart.Cubic.ImportCurveByExcelDlg();
        {
            var dlg = new HStation.WinFrmUI.Phart.ImportCurveByExcelDlg();
            dlg.ReloadDataEvent += async (other_name, qh, qe, qp) =>
            {
                var bol = await Import(other_name,qh,qe,qp);
            {
                var bol = await Import(other_name, qh, qe, qp);
                return bol;
            };
            dlg.ShowDialog();
@@ -187,6 +189,9 @@
            return true;
        }
        private void barBtnAddText_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
        }
    }
}