| | |
| | | using DevExpress.XtraCharts; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.IO; |
| | | using Yw; |
| | | using Yw.Vmo; |
| | | |
| | | namespace PBS.WinFrmUI |
| | | { |
| | |
| | | File.Delete(filePath); |
| | | } |
| | | } |
| | | |
| | | public static packageCurveViewModel GetFacilityCurve(long facilityId) |
| | | { |
| | | string rootDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Package_Curve"); |
| | | |
| | | string filePath = Path.Combine(rootDirectory, $"{facilityId}.json"); |
| | | if (!Directory.Exists(filePath)) |
| | | { |
| | | var json = File.ReadAllText(filePath); |
| | | return JsonHelper.Json2Object<packageCurveViewModel>(json); |
| | | } |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | public class PumpInfo |