| | |
| | | { |
| | | var vm = new EtaDeviationDayContent(); |
| | | vm.Time = record.DataTime.ToString("HH:mm:ss"); |
| | | vm.HZr = record.HZa;//新增字段 nsx |
| | | |
| | | vm.Qr = Math.Round(record.Qa.Value, 2); |
| | | vm.Hr = Math.Round(record.Ha.Value, 2); |
| | |
| | | |
| | | return vmList; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | /// 时间 |
| | | /// </summary> |
| | | public string Time { get; set; } |
| | | /// <summary> |
| | | /// 频率(原始) |
| | | /// </summary> |
| | | public double HZr { get; set; } |
| | | /// <summary> |
| | | /// 流量(原始) |
| | | /// </summary> |
| | |
| | | this.OtherName = rhs.OtherName; |
| | | this.SortCode = rhs.SortCode; |
| | | this.IsWorking = rhs.IsWorking; |
| | | this.ReliabilityStatus = rhs.ReliabilityStatus; |
| | | this.PointQH = rhs.CurveInfo?.CurveQH?.GetFitPoints(20)?.Select(x=>new CurvePointDto(x.X,x.Y)).ToList(); |
| | | this.PointQP = rhs.CurveInfo?.CurveQP?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList(); |
| | | this.PointQE = rhs.CurveInfo?.CurveQE?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList(); |
| | |
| | | public bool IsWorking { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 可信度 |
| | | /// </summary> |
| | | public Model.PumpCurve.eReliabilityStatus ReliabilityStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public List<CurvePointDto> PointQH { get; set; } |
| | |
| | | this.OtherName = rhs.OtherName; |
| | | this.SortCode = rhs.SortCode; |
| | | this.IsWorking = rhs.IsWorking; |
| | | this.ReliabilityStatus = rhs.ReliabilityStatus; |
| | | this.PointQH = rhs.CurveInfo?.CurveQH?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList(); |
| | | this.PointQP = rhs.CurveInfo?.CurveQP?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList(); |
| | | this.PointQE = rhs.CurveInfo?.CurveQE?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList(); |
| | |
| | | public bool IsWorking { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 可信度 |
| | | /// </summary> |
| | | public Model.PumpCurve.eReliabilityStatus ReliabilityStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public List<CurvePointDto> PointQH { get; set; } |
| | |
| | | throw Oops.Oh(ErrorCodes.D002, $"测点:{monitorId}", "未配置公式参数"); |
| | | } |
| | | |
| | | var getMonitorPoint = new Func<long, Model.MonitorPoint_Signal_SignalType>(x => { |
| | | var getMonitorPoint = new Func<long, Model.MonitorPoint_Signal_SignalType>(x => |
| | | { |
| | | return new Service.MonitorPoint().GetExSignalWithSignalTypeByID(corpId, x); |
| | | }); |
| | | var getLastRecord = new Func<long, long, Model.MonitorBasicRecord>((x, y) => { |
| | | var getLastRecord = new Func<long, long, Model.MonitorBasicRecord>((x, y) => |
| | | { |
| | | return new Service.MonitorDayRecord().GetBySignalIDOfDay(corpId, x, y, startDay.AddDays(-1)); |
| | | }); |
| | | var getRecordList = new Func<long, long,Model.Monitor.eCronType, DateTime,DateTime, List<Model.MonitorBasicRecord>>((x, y,cy, st,et) => { |
| | | var getRecordList = new Func<long, long, Model.Monitor.eCronType, DateTime, DateTime, List<Model.MonitorBasicRecord>>((x, y, cy, st, et) => |
| | | { |
| | | switch (cy) |
| | | { |
| | | case Model.Monitor.eCronType.Real: |
| | |
| | | var bol = new Service.MonitorDayRecord().InsertsAgain(recordList); |
| | | return new AnalyAgainMonitorGeneralDayRecordOfDayRangeResultDto(bol, msg); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>D:\WorkData\git\istation\webapi\v4\Entry\IStation.WebApi.Entry\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\WorkData\IStation\IStationV4.1\Core\Service.V4.1\Entry\IStation.WebApi.Entry\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <ActiveDebugProfile>IIS Express</ActiveDebugProfile> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |