using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMFrameWork.Data.Attributes;
using QMAPP.Entity;
using System.Data;
namespace QMAPP.FJC.Entity.EnergyManage
{
///
/// 模块名称:仪表读数
/// 作 者:张鹏
/// 编写日期:2017年10月16日
///
[DBTable(TableName = "T_EM_METER_READINGS")]
public class MeterReadings : BaseEntity
{
///
/// 主键
///
[DBColumn(ColumnName = "PID",DataType = DbType.String,IsKey = true)]
public string PID { get; set; }
///
/// 仪表ID
///
[DBColumn(ColumnName = "METER_PID",DataType = DbType.String)]
public string METER_PID { get; set; }
///
/// 表读数
///
[DBColumn(ColumnName = "READING", DataType = DbType.Decimal)]
public decimal READING { get; set; }
///
/// 读表时间
///
[DBColumn(ColumnName = "READ_TIME",DataType = DbType.DateTime)]
public DateTime READ_TIME { get; set; }
///
/// 与前次读表差额
///
[DBColumn(ColumnName = "DIFF_WITH_LAST", DataType = DbType.Decimal)]
public decimal DIFF_WITH_LAST { get; set; }
///
/// 读表结果
/// 0:失败
/// 1:成功--自动
/// 2:成功--手动
///
[DBColumn(ColumnName = "READ_RESULT",DataType = DbType.String)]
public string READ_RESULT { get; set; }
///
/// 错误信息
///
[DBColumn(ColumnName = "ERROR",DataType = DbType.String)]
public string ERROR { get; set; }
///
///能源表状态 0 作废 1 自动 2 手动
///
public string STATE { get; set; }
//[Description("查询日期")]
//[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime, DefaultValue = DataDefaultValue.SysDate)]
public string START_DATE { get; set; }
//[Description("至")]
//[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime, DefaultValue = DataDefaultValue.SysDate)]
public string END_DATE { get; set; }
///
///能源表类型
///
public string METER_TYPE { get; set; }
public string METER_TYPE_TXT { get; set; }
///
///能源表编码
///
public string METER_CODE { get; set; }
///
///能源表名称
/// 临时存设备名
///
public string METER_NAME { get; set; }
}
}