| | |
| | | public string OtherName { get; set; } |
| | | public int Importance { get; set; } |
| | | public int SortCode { get; set; } |
| | | public PhartDiagramExGraphList Diagram { get; set; } |
| | | public PhartDiagramExGraphListVmo Diagram { get; set; } |
| | | } |
| | | |
| | | private HydroPumpMatchingViewModel _pump_matching_vm = null; |
| | |
| | | private List<PhartViewModel> _phart_vm_list = null; |
| | | |
| | | private readonly Lazy<BLL.AssetsPumpMain> _pump_main_bll = new(); |
| | | private readonly Lazy<BLL.XhsPumpMainPhartMappingExtensions> _phart_ex_bll = new(); |
| | | private readonly Lazy<BLL.PhartDiagramRelation> _phart_ex_bll = new(); |
| | | |
| | | public event Action<HydroPumpMatchingViewModel> ReloadDataEvent; |
| | | |
| | |
| | | var pump_main = this.gridViewPumpMain.GetCurrentViewModel(_pump_mian_vm_list); |
| | | if (pump_main != null) |
| | | { |
| | | var phart_list = await _phart_ex_bll.Value.GetByPumpMainID(pump_main.ID); |
| | | var phart_list = await _phart_ex_bll.Value.GetExByObjectTypeAndObjectID(HStation.Assets.DataType.PumpMain, pump_main.ID); |
| | | if (phart_list != null && phart_list.Any()) |
| | | { |
| | | foreach (var item in phart_list) |
| | |
| | | } |
| | | |
| | | private bool OutPtList( |
| | | PhartDiagramExGraphList diagram, |
| | | PhartDiagramExGraphListVmo diagram, |
| | | out List<Yw.Geometry.Point2d> qh_pt_list, |
| | | out List<Yw.Geometry.Point2d> qe_pt_list, |
| | | out List<Yw.Geometry.Point2d> qp_pt_list |