2025-04-26 19:04:50 +08:00
|
|
|
|
using JiShe.CollectBus.Common.Enums;
|
|
|
|
|
|
using System;
|
2025-04-24 19:31:28 +08:00
|
|
|
|
using System.Collections.Generic;
|
2025-04-26 19:04:50 +08:00
|
|
|
|
using System.Data;
|
2025-04-24 19:31:28 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace JiShe.CollectBus.Protocol.Contracts.Protocol.Dto
|
|
|
|
|
|
{
|
|
|
|
|
|
public class AnalysisBaseDto
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否有效数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool ValidData { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-05-12 16:09:53 +08:00
|
|
|
|
/// 数据项类型
|
2025-04-24 19:31:28 +08:00
|
|
|
|
/// </summary>
|
2025-05-12 16:09:53 +08:00
|
|
|
|
public string ItemType { get; set; } = null!;
|
2025-04-24 19:31:28 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 错误码信息
|
|
|
|
|
|
/// </summary>
|
2025-04-26 19:04:50 +08:00
|
|
|
|
public string? ErrorCodeMsg { get; set; }
|
2025-04-24 19:31:28 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 字段名
|
|
|
|
|
|
/// </summary>
|
2025-04-26 19:04:50 +08:00
|
|
|
|
public string? FiledName { get; set; }
|
2025-04-24 19:31:28 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 字段描述
|
|
|
|
|
|
/// </summary>
|
2025-04-26 19:04:50 +08:00
|
|
|
|
public string? FiledDesc { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 数据时标
|
|
|
|
|
|
/// </summary>
|
2025-04-29 11:43:16 +08:00
|
|
|
|
public DateTime? TimeSpan { get; set; }
|
2025-04-26 19:04:50 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 项目Id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int ProjectId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-05-07 11:53:50 +08:00
|
|
|
|
/// 设备ID(电表ID,水表ID,气表ID,集中器ID等)
|
2025-04-26 19:04:50 +08:00
|
|
|
|
/// </summary>
|
2025-05-07 11:53:50 +08:00
|
|
|
|
public int DeviceId { get; set; }
|
2025-04-26 19:04:50 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-05-07 11:53:50 +08:00
|
|
|
|
/// 设备类型
|
2025-04-26 19:04:50 +08:00
|
|
|
|
/// </summary>
|
2025-05-07 11:53:50 +08:00
|
|
|
|
public MeterTypeEnum DeviceType { get; set;}
|
2025-04-26 19:04:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 数据业务库ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int DatabaseBusiID { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-05-08 09:25:41 +08:00
|
|
|
|
/// 设备地址(电表地址,水表地址,气表地址,集中器地址等)
|
2025-04-26 19:04:50 +08:00
|
|
|
|
/// </summary>
|
2025-05-08 09:25:17 +08:00
|
|
|
|
public string DeviceAddress { get; set; } = null!;
|
2025-04-26 19:04:50 +08:00
|
|
|
|
|
2025-05-12 16:48:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 集中器ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int FocusId { get; set; }
|
2025-04-24 19:31:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class AnalysisBaseDto<T> : AnalysisBaseDto
|
|
|
|
|
|
{
|
2025-05-08 15:12:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 抄读值
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public T? DataValue { get; set; } = default;
|
2025-04-24 19:31:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|