using System; using System.Collections.Generic; using System.Linq; using System.Web; using QMFrameWork.WebUI.Attribute; using QMFrameWork.WebUI; using System.Web.Mvc.Html; namespace QMAPP.FJC.Web.Models.WIPManage { /// /// 模块编号:M7-4 /// 作 用:低储报警信息页面模型 /// 作 者:王丹丹 /// 编写日期:2015年06月19日 /// public class StorageAlarmModel : QDGModel { /// ///低储报警记录主键 /// [Description("低储报警记录主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.text)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// ///工序类别 /// [Description("工序类别")] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/StorageAlarm/GetComboxSource", MaxLength = 2)] [InputType(inputType.combobox)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string PROCESSTYPE { get; set; } /// ///工序低储值设置 /// [Description("工序低储值设置")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 4)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.right)] public int MINVALUE { get; set; } /// ///生产最小批次设置 /// [Description("生产最小批次设置")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 4)] [InputType(inputType.text)] [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.right)] public int PRODUCEMINVALUE { get; set; } /// ///当前存储值 /// [Description("当前存储值")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 4)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.right)] public int CURRENTSTORAGE { get; set; } /// ///记录状态(0:未处理 1:已处理 2:已忽略) /// [Description("记录状态")] [HTMLInput(UpdateRead = false, required = true, JsonUtl = "/Dict/GetFixedComboxSource?kind=ALARMSTATUS", MaxLength = 1)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string ALARMSTATUS { get; set; } /// ///班次信息名称 /// [Description("班次名称")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)] public string PRODUCESHIFTNAME { get; set; } /// ///班次信息编号 /// [Description("班次编号")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 50)] [InputType(inputType.text)] [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center)] public string PRODUCESHIFTTCODE { get; set; } /// ///生产线 /// [Description("生产线")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.text)] public string PRODUCELINE { get; set; } /// /// 创建用户 /// [Description("创建用户")] public string CREATEUSER { get; set; } /// /// 创建时间 /// [Description("报警时间")] [DGColumn(Sortable = true, Width = 150, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public DateTime CREATEDATE { get; set; } /// /// 更新用户 /// [Description("更新用户")] public string UPDATEUSER { get; set; } /// /// 更新时间 /// [Description("更新时间")] public DateTime UPDATEDATE { get; set; } /// /// 报警开始时间 /// [Description("报警开始时间")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.dateTimeBox)] public string CREATEDATESTART { get; set; } /// /// 报警结束时间 /// [Description("至")] [HTMLInput(UpdateRead = true, MaxLength = 20)] [InputType(inputType.dateTimeBox)] public string CREATEDATEEND { get; set; } } }