using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; namespace IStation.Model { /// /// 自定义实时任务 /// public class CustomRealJob : System.ICloneable { /// /// /// public CustomRealJob() { } /// /// /// public CustomRealJob(CustomRealJob rhs) { this.ID = rhs.ID; this.NO = rhs.NO; this.Name = rhs.Name; this.Interval = rhs.Interval; 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(CustomRealJob rhs) { this.ID = rhs.ID; this.NO = rhs.NO; this.Name = rhs.Name; this.Interval = rhs.Interval; 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; } /// /// 间隔 (秒数) /// public int Interval { 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 CustomRealJob Clone() { return (CustomRealJob)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }