| | |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors; |
| | | using HStation.Dto; |
| | | using Org.BouncyCastle.Asn1.X509; |
| | | |
| | | namespace HStation.WinFrmUI.Phart |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | 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) |
| | |
| | | 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() |
| | | { |
| | |
| | | |
| | | //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(); |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | private void barBtnAddText_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |