using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
namespace IStation.Model
{
///
/// 自定义计划任务
///
public class CustomCronJob : System.ICloneable
{
///
///
///
public CustomCronJob() { }
///
///
///
public CustomCronJob(CustomCronJob rhs)
{
this.ID = rhs.ID;
this.NO = rhs.NO;
this.Name = rhs.Name;
this.Expression = rhs.Expression;
this.Repeat = rhs.Repeat;
this.Execution = rhs.Execution;
this.UseStatus = rhs.UseStatus;
this.Description = rhs.Description;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime = rhs.UpdateTime;
}
///
/// 重置
///
public void Reset(CustomCronJob rhs)
{
this.ID = rhs.ID;
this.NO = rhs.NO;
this.Name = rhs.Name;
this.Expression = rhs.Expression;
this.Repeat = rhs.Repeat;
this.Execution = rhs.Execution;
this.UseStatus = rhs.UseStatus;
this.Description = rhs.Description;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime = rhs.UpdateTime;
}
///
/// id
///
public long ID { get; set; }
///
/// 编号
///
public string NO { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// Cron表达式
///
public string Expression { get; set; }
///
/// 重置 (分钟)
///
public int Repeat { get; set; }
///
/// 执行文件
///
public string Execution { get; set; }
///
/// 使用状态
///
public eUseStatus UseStatus { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
/// 创建用户id
///
public long CreateUserID { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 更新用户id
///
public long? UpdateUserID { get; set; }
///
/// 更新时间
///
public DateTime? UpdateTime { get; set; }
///
///
///
public CustomCronJob Clone()
{
return (CustomCronJob)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}