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 { public class MeterModel : QDGModel { /// /// /// [Description("")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden=true, PrimaryKey = true)] public string PID { get; set; } /// ///获取方式 1 自动 2 手动 /// [Description("获取方式")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 6, JsonUtl = "/Meter/GetStateComboxSource")] [InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string STATE { get; set; } [Description("获取方式")] [DGColumn(frozenColumns = false, Sortable = false, Width = 100, DataAlign = DataAlign.center)] public string STATE_TXT { get; set; } /// ///能源表名称 /// [Description("能源表名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 100)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string METER_NAME { get; set; } /// ///能源表编码 /// [Description("能源表编码")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = false, Width = 100, DataAlign = DataAlign.center)] public string METER_CODE { get; set; } /// ///设备编码 /// [Description("设 备")] [HTMLInput(UpdateRead = true, required = false, MaxLength = 50, JsonUtl = "/Meter/GetMachineListComboxSource")] [InputType(inputType.combobox)] public string EQPT_CODE { get; set; } /// ///设备编码 /// [Description("设 备")] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string MACHINENAME { get; set; } /// ///能源表类型 0 电 1 水 /// [Description("能源表类型")] [HTMLInput(UpdateRead = true, required = true, MaxLength = 6, JsonUtl = "/Meter/GetTypeComboxSource")] [InputType(inputType.combobox)] public string METER_TYPE { 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 = false, MaxLength = 100)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string NET_ADDR { get; set; } /// ///能源表网络标识 /// [Description("能源表网络标识")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 100)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string NET_ID { get; set; } /// ///互感器倍率 /// [Description("互感器倍率")] [HTMLInput(UpdateRead = false, required = false,NumberMin=0)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public double RATIO { get; set; } /// ///工厂编码 /// //[Description("工厂编码")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 10, JsonUtl = "/Dict/GetNewFactoryComboxSource")] //[InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string FACTORY_CODE { get; set; } /// ///设备名称 /// //[Description("设备名称")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 10)] //[InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] //public string EQPT_NAME { get; set; } /// ///耗电量 /// //[Description("耗电量")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 10)] //[InputType(inputType.text)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string CONSUME { get; set; } /// ///工作中心 /// //[Description("工作中心")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 40, JsonUtl = "/Dict/GetAllWorkCenterComboxSource")] //[InputType(inputType.combobox)] //[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string WORKCENTER_CODE { get; set; } /// /// 创建时间 /// //[Description("创建时间")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] //[InputType(inputType.dateTimeBox)] public string ONLINETIMESTART { get; set; } /// /// 至 /// //[Description("至")] //[HTMLInput(UpdateRead = false, required = true, MaxLength = 7, Width = 151, FormatDate = "yyyy-MM-dd HH:mm:ss")] //[InputType(inputType.dateTimeBox)] public string ONLINETIMEEND { get; set; } } }