using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc.Html; using QMFrameWork.WebUI.Attribute; using QMFrameWork.WebUI; namespace QMAPP.FJC.Web.Models.EnergyManage { /// /// 模块编号: /// 作 用: /// 作 者: /// 编写日期:2017年10月19日 /// public class MeterReadingsModel : QDGModel { /// ///PID /// [Description("")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden=true, PrimaryKey = true)] public string PID { get; set; } /// ///能源表ID /// [Description("能源表ID")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] //[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string METER_PID { get; set; } [Description("能源表编码")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string METER_CODE { get; set; } [Description("能源表名称")] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string METER_NAME { get; set; } [Description("能源表类型")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string METER_TYPE_TXT { get; set; } /// ///能源表读数 /// [Description("能源表读数")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 9)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public decimal READING { get; set; } /// ///读取时间 /// [Description("读取时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.datebox)] [DGColumn(frozenColumns = false, Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime READ_TIME { get; set; } /// ///与前一次差额 /// [Description("与前一次差额")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 9)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public decimal DIFF_WITH_LAST { get; set; } /// ///能源表状态 0 作废 1 自动 2 手动 /// [Description("维护状态")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 6)] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string STATE { get; set; } [Description("查询日期")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.datebox)] public string START_DATE { get; set; } [Description("至")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.datebox)] public string END_DATE { get; set; } } }