duheng
2024-09-06 caf0bf69009cdaee31f2e1cfdac647077aff340d
WinFrmUI/HStation.WinFrmUI.PhartRelation.Core/01-pump-main/XhsPumpMainPhartPanel.cs
@@ -10,15 +10,13 @@
            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;
@@ -57,9 +55,9 @@
                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)
            {
@@ -88,7 +86,7 @@
            this.xtrPerform2dChart1.InitialChartData();
        }
        #endregion
        #endregion 图表
        #region 导入
@@ -104,7 +102,7 @@
            dlg.ShowDialog();
        }
        //图片 导入
        //图片 导入
        private void barBtnImportByPicture_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraMessageBox.Show("待补充!");
@@ -133,26 +131,25 @@
                    {
                        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)
@@ -164,7 +161,7 @@
            return true;
        }
        #endregion
        #endregion 导入
        #region 操作
@@ -249,10 +246,8 @@
            return true;
        }
        #endregion
        #endregion 删除
        #endregion
        #endregion 操作
    }
}