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.18 /// public class DataTaskPlanModel: QDGModel { /// /// 构造函数 /// public DataTaskPlanModel() { } #region 业务表属性 /// /// 计划主键 /// [Description("计划主键")] [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)] [InputType(inputType.hidden)] [DGColumn(Hidden = true, PrimaryKey = true)] public string PlanID { get; set; } /// /// 计划名称 /// [Description("计划名称")] [HTMLInput(UpdateRead = false, MaxLength = 100,Width=200, required=true)] [InputType(inputType.text)] [DGColumn(Hidden = false, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string PlanName { get; set; } /// /// 任务主键 /// [Description("作业内容")] [HTMLInput(UpdateRead = false, MaxLength = 36, Width = 348, required = true, JsonUtl = "/DataTaskPlan/GetTaskList")] [InputType(inputType.combobox)] [DGColumn(Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string TaskID { get; set; } /// /// 周期类型 /// [Description("周期类型")] [HTMLInput(UpdateRead = false,Width=60, JsonUtl = "/DataTaskPlan/GetPeriodTypeList")] [InputType(inputType.combobox)] [DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string PeriodType { get; set; } /// /// 执行间隔 /// [Description("执行间隔")] [HTMLInput(UpdateRead = false, Width = 60, MaxLength = 3, DataType = QDataType.number, NumberMax = 999, NumberMin = 1)] [InputType(inputType.text)] [DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public int DayPeriod { get; set; } /// /// 星期日 /// public bool Week1 { get; set; } /// /// 星期一 /// public bool Week2 { get; set; } /// /// 星期二 /// public bool Week3 { get; set; } /// /// 星期三 /// public bool Week4 { get; set; } /// /// 星期四 /// public bool Week5 { get; set; } /// /// 星期五 /// public bool Week6 { get; set; } /// /// 星期六 /// public bool Week7 { get; set; } /// /// 月周期模式 /// public string MonthMode { get; set; } /// /// 月周期开始天 /// [HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 31, NumberMin = 1)] [InputType(inputType.text)] public int MonthDay1 { get; set; } /// /// 月周期截至天 /// [HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 31, NumberMin = 1)] [InputType(inputType.text)] public int MonthDay2 { get; set; } /// /// 月周期1 /// [HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 12, NumberMin = 1)] [InputType(inputType.text)] public int MonthPeriod1 { get; set; } /// /// 月周期天间隔 /// [HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 31, NumberMin = 1)] [InputType(inputType.text)] public int MonthDay3 { get; set; } /// /// 月周期2 /// [HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 12, NumberMin = 1)] [InputType(inputType.text)] public int MonthPeriod2 { get; set; } /// /// 天周期模式 /// public string DayMode { get; set; } /// /// 执行天 /// [Description("执行天")] [HTMLInput(UpdateRead = false, Width = 155)] [InputType(inputType.text)] [DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string ExecuteDay { get; set; } /// /// 第一次执行时间 /// [Description("第一次执行时间")] [HTMLInput(UpdateRead = false, Width = 80,FormatDate="HH:mm:ss")] [InputType(inputType.dateTimeBox)] [DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string OnceTime { get; set; } /// /// 执行频率 /// [Description("执行频率")] [HTMLInput(UpdateRead = false, Width = 42, MaxLength = 2, DataType = QDataType.number, NumberMax = 31, NumberMin = 0)] [InputType(inputType.text)] [DGColumn(Hidden = false, Sortable = false, Width = 100, DataAlign = DataAlign.center)] public string Interval { get; set; } /// /// 频率类型 /// [Description("频率类型")] [HTMLInput(UpdateRead = false, Width = 54, JsonUtl = "/DataTaskPlan/GetIntervalTypeList")] [InputType(inputType.combobox)] [DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string IntervalType { get; set; } /// /// 执行开始时间 /// [Description("开始时间")] [HTMLInput(UpdateRead = false, Width = 80, FormatDate = "HH:mm:ss")] [InputType(inputType.dateTimeBox)] [DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string DayStartTime { get; set; } /// /// 执行截止时间 /// [Description("结束时间")] [HTMLInput(UpdateRead = false, Width = 80, FormatDate = "HH:mm:ss")] [InputType(inputType.dateTimeBox)] [DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string DayEndTime { get; set; } /// /// 计划开始时间 /// [Description("开始日期")] [HTMLInput(UpdateRead = false, Width = 125)] [InputType(inputType.datebox)] [DGColumn(Hidden = false, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string PlanStartDate { get; set; } /// /// 计划结束时间 /// [Description("结束日期")] [HTMLInput(UpdateRead = false, Width = 125)] [InputType(inputType.datebox)] [DGColumn(Hidden = false, Sortable = false, Width = 200, DataAlign = DataAlign.center)] public string PlanEndDate { get; set; } /// /// 结束日期模式 /// public string PlanDateMode { get; set; } /// /// 是否启用 /// [Description("是否启用")] [HTMLInput(UpdateRead = false,Width = 155)] [InputType(inputType.checkBox)] [DGColumn(Hidden = false, Sortable = false, Width = 60, DataAlign = DataAlign.center)] public string IsUse { get; set; } /// /// 是否启用 /// [Description("是否启用")] public bool IsUseFlg { get; set; } /// /// 备注 /// [Description(" 备注")] [HTMLInput(UpdateRead = false, Width = 390,Height=50)] [InputType(inputType.textArea)] [DGColumn(Sortable = false, Width = 150, DataAlign = DataAlign.center)] public string Remark { get; set; } #endregion } }