using System; using System.Web.Mvc.Html; using QMFrameWork.WebUI; using QMFrameWork.WebUI.Attribute; using QMFrameWork.WebUI.DataSource; namespace QMAPP.FJC.Web.Models.EM { public class EmMeterReadingsModel : QDGModel { //public EmMeterReadingsModel() //{ // //设置页尺寸 // this.pageSize = MvcApplication.PageSize.ToString(); //} /// ///主键 /// [Description("")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// ///能源表编码 /// //[Description("能源表编码")] public string METER_PID { get; set; } /// ///能源表名称 /// [Description("能源表名称")] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string METER_NAME { get; set; } /// ///能源表编码 /// [Description("能源表编码")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string METER_CODE { get; set; } /// ///电量 /// [Description("电量")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 18)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public decimal READING { get; set; } /// /// 设备编号 /// [Description("设 备")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 20)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string EQPT_CODE { get; set; } /// ///能源表名称 /// //[Description("设备名称")] //[DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string MACHINENAME { get; set; } /// /// 读取时间 /// //[Description("读取时间")] public DateTime READ_TIME { get; set; } //[Description("统计时间")] public string RTIME { get; set; } /// ///统计标识 /// [Description("统计标识")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, JsonUtl = "/EmMeterReadings/GetFlagTimeComboxSource")] [InputType(inputType.combobox)] public string FLAG_TIME { get; set; } /// ///累计电量 /// //[Description("累计电量")] public decimal DIFF_WITH_LAST { get; set; } /// ///状态 1:成功 0:失败 /// //[Description("状态")] public string READ_RESULT { get; set; } /// ///错误 /// //[Description("错误")] public string ERROR { get; set; } /// /// 工厂编号 /// //[Description("工厂编号")] public string FACTORY_CODE { get; set; } /// ///描述 /// //[Description("描  述")] public string REMARK { get; set; } /// /// 创建用户 /// //[Description("创建用户")] public string CREATEUSR { get; set; } /// /// 创建用户 /// //[Description("创建用户")] public string CREATEUSERNAME { get; set; } /// /// 创建时间 /// //[Description("创建时间")] public DateTime CREATEDATE { get; set; } [Description("查询日期")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 8, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.dateTimeBox)] public string STARTCREATEDATE { get; set; } [Description("至")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 8, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] [InputType(inputType.dateTimeBox)] public string ENDCREATEDATE { get; set; } /// /// 更新用户 /// //[Description("更新用户")] public string UPDATEUSR { get; set; } /// /// 更新用户 /// //[Description("更新用户")] public string UPDATEUSERNAME { get; set; } /// /// 更新时间 /// //[Description("更新时间")] public DateTime UPDATEDATE { get; set; } } }