天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
6.7 KiB

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
{
///<summary>
///
///</summary>
[Description("")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.text)]
[DGColumn(Hidden=true, PrimaryKey = true)]
public string PID { get; set; }
///<summary>
///获取方式 1 自动 2 手动
///</summary>
[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; }
///<summary>
///能源表名称
///</summary>
[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; }
///<summary>
///能源表编码
///</summary>
[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; }
///<summary>
///设备编码
///</summary>
[Description("设 备")]
[HTMLInput(UpdateRead = true, required = false, MaxLength = 50, JsonUtl = "/Meter/GetMachineListComboxSource")]
[InputType(inputType.combobox)]
public string EQPT_CODE { get; set; }
///<summary>
///设备编码
///</summary>
[Description("设 备")]
[DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)]
public string MACHINENAME { get; set; }
///<summary>
///能源表类型 0 电 1 水
///</summary>
[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; }
///<summary>
///能源表网络地址
///</summary>
[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; }
///<summary>
///能源表网络标识
///</summary>
[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; }
///<summary>
///互感器倍率
///</summary>
[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; }
///<summary>
///工厂编码
///</summary>
//[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; }
///<summary>
///设备名称
///</summary>
//[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; }
///<summary>
///耗电量
///</summary>
//[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; }
///<summary>
///工作中心
///</summary>
//[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; }
/// <summary>
/// 创建时间
/// </summary>
//[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; }
/// <summary>
/// 至
/// </summary>
//[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; }
}
}