天津投入产出系统后端
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.

139 lines
3.9 KiB

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
{
/// <summary>
/// 系统锁定模型
/// 创建者:韩磊
/// 创建日期:2014.12.17
/// </summary>
public class SystemLockModel : QDGModel
{
/// <summary>
/// 构造函数
/// </summary>
public SystemLockModel()
{
StartTime = null;
EndTime = null;
}
/// <summary>
/// 公告主键
/// </summary>
[Description("主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.hidden)]
[DGColumn(Hidden = true, PrimaryKey = true)]
public string PID { get; set; }
/// <summary>
/// 开始时间
/// </summary>
[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; }
/// <summary>
/// 结束时间
/// </summary>
[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; }
/// <summary>
/// 锁定原因
/// </summary>
[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; }
/// <summary>
/// 是否有效
/// </summary>
[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; }
/// <summary>
/// 创建日期
/// </summary>
[Description("创建时间")]
[InputType(inputType.hidden)]
public DateTime CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[Description("创建人")]
[InputType(inputType.hidden)]
public string CreateUser { get; set; }
/// <summary>
/// 更新日期
/// </summary>
[InputType(inputType.hidden)]
[Description("更新时间")]
public DateTime UpdateTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
[InputType(inputType.hidden)]
[Description("更新人")]
public string UpdateUser { get; set; }
#region 非业务表扩充属性
/// <summary>
/// 用于页面显示系统锁定信息是否有效
/// </summary>
public bool IsValid
{
get
{
if (ValidFlg == "0")
{
return false;
}
else
{
return true;
}
}
set
{
if (value ==true)
{
ValidFlg = "1";
}
else
{
ValidFlg = "0";
}
}
}
#endregion
}
}