| | |
| | | using Yw.WinFrmUI.Phart; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class UniversalChartExcelImportCtrl : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | |
| | | { |
| | | XtraMessageBox.Show(err_msg); |
| | | return; |
| | | } |
| | | } |
| | | this.universalChartExcelEditCtrl.SetBindingData(curve_type, list); |
| | | } |
| | | |
| | |
| | | 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 |
| | | } |