lixiaojun
2025-03-02 4ce9d8c856dc2f0e580e92b74f399c80f27f080a
WinFrmUI/HStation.WinFrmUI.PhartRelation.Core/02-universal/03-import/01-excel/UniversalChartExcelImportCtrl.cs
@@ -1,6 +1,4 @@
using Yw.WinFrmUI.Phart;
namespace HStation.WinFrmUI
namespace HStation.WinFrmUI
{
    public partial class UniversalChartExcelImportCtrl : DevExpress.XtraEditors.XtraUserControl
    {
@@ -22,7 +20,7 @@
            {
                XtraMessageBox.Show(err_msg);
                return;
            }
            }
            this.universalChartExcelEditCtrl.SetBindingData(curve_type, list);
        }
@@ -37,13 +35,18 @@
            var ds_stirng = pt_list.ToDbString(_curve_type, feat_type);
            if (string.IsNullOrEmpty(ds_stirng))
                return default;
            var geometry_paras = new Yw.WinFrmUI.Phart.CurveGeometryParasViewModel();
            geometry_paras.DefinePoints = pt_list;
            var vmo = new Yw.Vmo.PhartDiagramExGraphListVmo();
            vmo.DiagramType = (int)HStation.PhartRelation.eDiagramType.Feat;
            vmo.GraphList = new List<Yw.Vmo.PhartGraphVmo>()
            {
                new Yw.Vmo.PhartGraphVmo()
                new ()
                {
                      GraphType =(int) _curve_type,
                      Name ="默认",
                      GraphType =(int) _curve_type,
                      GeometryParas= geometry_paras.ToJson(),
                      GeometryStyle = (int) HStation.PhartRelation.eGeometryStyle.FeatCurve,
                      GeometryInfo = ds_stirng
                }