| | |
| | | this.xhsPumpMainPhartListCtrl1.FocusedChangedEvent += XhsPumpMainPhartListCtrl1_FocusedChangedEvent; |
| | | } |
| | | |
| | | |
| | | private long _pump_main_id; |
| | | private Vmo.XhsPumpMainPhartMappingExtensions _xhs_phart_diagram_ex_std_dto = null; |
| | | private readonly BLL.XhsPumpMainPhartMappingExtensions _bll_ex = new(); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 初始化数据 |
| | | /// </summary> |
| | | /// </summary> |
| | | public void InitialDataSource(long pump_main_id) |
| | | { |
| | | _pump_main_id = pump_main_id; |
| | |
| | | return; |
| | | } |
| | | |
| | | var graph_qh = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.QH); |
| | | var graph_qe = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.QH); |
| | | var graph_qp = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.QH); |
| | | var graph_qh = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.PumpQH); |
| | | var graph_qe = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.PumpQH); |
| | | var graph_qp = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.PumpQH); |
| | | |
| | | if (graph_qp == null) |
| | | { |
| | |
| | | this.xtrPerform2dChart1.InitialChartData(); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 图表 |
| | | |
| | | #region 导入 |
| | | |
| | |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | | //图片 导入 |
| | | //图片 导入 |
| | | private void barBtnImportByPicture_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | XtraMessageBox.Show("待补充!"); |
| | |
| | | { |
| | | Name = other_name+"-QH", |
| | | GeometryStyle= HStation.PhartRelation.eGeometryStyle.FeatCurve, |
| | | GraphType= HStation.PhartRelation.eGraphType.QH, |
| | | GraphType= HStation.PhartRelation.eGraphType.PumpQH, |
| | | GeometryInfo=qh.ToDbString() |
| | | }, |
| | | new () |
| | | { |
| | | Name = other_name+"-QE", |
| | | GeometryStyle= HStation.PhartRelation.eGeometryStyle.FeatCurve, |
| | | GraphType= HStation.PhartRelation.eGraphType.QE, |
| | | GraphType= HStation.PhartRelation.eGraphType.PumpQE, |
| | | GeometryInfo=qe.ToDbString() |
| | | }, |
| | | new () |
| | | { |
| | | Name = other_name+"-QP", |
| | | GeometryStyle= HStation.PhartRelation.eGeometryStyle.FeatCurve, |
| | | GraphType= HStation.PhartRelation.eGraphType.QP, |
| | | GraphType= HStation.PhartRelation.eGraphType.PumpQP, |
| | | GeometryInfo=qp.ToDbString() |
| | | }, |
| | | } |
| | | }; |
| | | |
| | | |
| | | var mapping_id = await _bll_ex.Insert(input); |
| | | if (mapping_id < 1) |
| | |
| | | return true; |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 导入 |
| | | |
| | | #region 操作 |
| | | |
| | |
| | | return true; |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 删除 |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #endregion 操作 |
| | | } |
| | | } |