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

265 lines
8.6 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.18
/// </summary>
public class DataTaskPlanModel: QDGModel
{
/// <summary>
/// 构造函数
/// </summary>
public DataTaskPlanModel()
{
}
#region 业务表属性
/// <summary>
/// 计划主键
/// </summary>
[Description("计划主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.hidden)]
[DGColumn(Hidden = true, PrimaryKey = true)]
public string PlanID { get; set; }
/// <summary>
/// 计划名称
/// </summary>
[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; }
/// <summary>
/// 任务主键
/// </summary>
[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; }
/// <summary>
/// 周期类型
/// </summary>
[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; }
/// <summary>
/// 执行间隔
/// </summary>
[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; }
/// <summary>
/// 星期日
/// </summary>
public bool Week1 { get; set; }
/// <summary>
/// 星期一
/// </summary>
public bool Week2 { get; set; }
/// <summary>
/// 星期二
/// </summary>
public bool Week3 { get; set; }
/// <summary>
/// 星期三
/// </summary>
public bool Week4 { get; set; }
/// <summary>
/// 星期四
/// </summary>
public bool Week5 { get; set; }
/// <summary>
/// 星期五
/// </summary>
public bool Week6 { get; set; }
/// <summary>
/// 星期六
/// </summary>
public bool Week7 { get; set; }
/// <summary>
/// 月周期模式
/// </summary>
public string MonthMode { get; set; }
/// <summary>
/// 月周期开始天
/// </summary>
[HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 31, NumberMin = 1)]
[InputType(inputType.text)]
public int MonthDay1 { get; set; }
/// <summary>
/// 月周期截至天
/// </summary>
[HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 31, NumberMin = 1)]
[InputType(inputType.text)]
public int MonthDay2 { get; set; }
/// <summary>
/// 月周期1
/// </summary>
[HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 12, NumberMin = 1)]
[InputType(inputType.text)]
public int MonthPeriod1 { get; set; }
/// <summary>
/// 月周期天间隔
/// </summary>
[HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 31, NumberMin = 1)]
[InputType(inputType.text)]
public int MonthDay3 { get; set; }
/// <summary>
/// 月周期2
/// </summary>
[HTMLInput(UpdateRead = false, Width = 40, MaxLength = 3, DataType = QDataType.number, NumberMax = 12, NumberMin = 1)]
[InputType(inputType.text)]
public int MonthPeriod2 { get; set; }
/// <summary>
/// 天周期模式
/// </summary>
public string DayMode { get; set; }
/// <summary>
/// 执行天
/// </summary>
[Description("执行天")]
[HTMLInput(UpdateRead = false, Width = 155)]
[InputType(inputType.text)]
[DGColumn(Hidden = true, Sortable = false, Width = 200, DataAlign = DataAlign.center)]
public string ExecuteDay { get; set; }
/// <summary>
/// 第一次执行时间
/// </summary>
[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; }
/// <summary>
/// 执行频率
/// </summary>
[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; }
/// <summary>
/// 频率类型
/// </summary>
[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; }
/// <summary>
/// 执行开始时间
/// </summary>
[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; }
/// <summary>
/// 执行截止时间
/// </summary>
[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; }
/// <summary>
/// 计划开始时间
/// </summary>
[Description("开始日期")]
[HTMLInput(UpdateRead = false, Width = 125)]
[InputType(inputType.datebox)]
[DGColumn(Hidden = false, Sortable = false, Width = 200, DataAlign = DataAlign.center)]
public string PlanStartDate { get; set; }
/// <summary>
/// 计划结束时间
/// </summary>
[Description("结束日期")]
[HTMLInput(UpdateRead = false, Width = 125)]
[InputType(inputType.datebox)]
[DGColumn(Hidden = false, Sortable = false, Width = 200, DataAlign = DataAlign.center)]
public string PlanEndDate { get; set; }
/// <summary>
/// 结束日期模式
/// </summary>
public string PlanDateMode { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Description("是否启用")]
[HTMLInput(UpdateRead = false,Width = 155)]
[InputType(inputType.checkBox)]
[DGColumn(Hidden = false, Sortable = false, Width = 60, DataAlign = DataAlign.center)]
public string IsUse { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Description("是否启用")]
public bool IsUseFlg { get; set; }
/// <summary>
/// 备注
/// </summary>
[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
}
}