using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Mvc.Html; using QMAPP.Web; using QMFrameWork.WebUI; using QMFrameWork.WebUI.Attribute; namespace QMAPP.Web.Models.Sys { /// /// 系统锁定模型 /// 创建者:韩磊 /// 创建日期:2014.12.17 /// public class SystemLockModel : QDGModel { /// /// 构造函数 /// public SystemLockModel() { StartTime = null; EndTime = null; } /// /// 公告主键 /// [Description("主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.hidden)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PID { get; set; } /// /// 开始时间 /// [Description("开始时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.dateTimeBox)] [DGColumn(Hidden = false, Sortable = true, Width = 200, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")] public string StartTime { get; set; } /// /// 结束时间 /// [Description("结束时间")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 20)] [InputType(inputType.dateTimeBox)] [DGColumn(Hidden = false, Sortable = true, Width = 200, DataAlign = DataAlign.center,FormatDate="yyyy-MM-dd hh:mm:ss")] public string EndTime { get; set; } /// /// 锁定原因 /// [HTMLInput(UpdateRead = false, required = true, Width = 150, Height = 50, MaxLength = 150)] [InputType(inputType.textArea)] [Description("锁定原因")] [DGColumn(Hidden = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] public string LockReason { get; set; } /// /// 是否有效 /// [Description("是否有效")] [HTMLInput(UpdateRead = false, required = false, MaxLength = 1, Width = 155)] [InputType(inputType.combobox)] [DGColumn(Hidden = false, Sortable = true, Width = 200, DataAlign = DataAlign.center)] [ModelDictionary] public string ValidFlg { get; set; } /// /// 创建日期 /// [Description("创建时间")] [InputType(inputType.hidden)] public DateTime CreateTime { get; set; } /// /// 创建人 /// [Description("创建人")] [InputType(inputType.hidden)] public string CreateUser { get; set; } /// /// 更新日期 /// [InputType(inputType.hidden)] [Description("更新时间")] public DateTime UpdateTime { get; set; } /// /// 更新人 /// [InputType(inputType.hidden)] [Description("更新人")] public string UpdateUser { get; set; } #region 非业务表扩充属性 /// /// 用于页面显示系统锁定信息是否有效 /// public bool IsValid { get { if (ValidFlg == "0") { return false; } else { return true; } } set { if (value ==true) { ValidFlg = "1"; } else { ValidFlg = "0"; } } } #endregion } }