//------------------------------------------------------------------------------
//
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
//
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using OpenAuth.Repository.Core;
namespace OpenAuth.Repository.Domain
{
///
/// 定时任务
///
[Table("OpenJob")]
public partial class OpenJob : StringEntity
{
public OpenJob()
{
this.JobName= string.Empty;
this.RunCount= 0;
this.ErrorCount= 0;
this.NextRunTime= DateTime.Now;
this.LastRunTime= DateTime.Now;
this.LastErrorTime= DateTime.Now;
this.JobType= 0;
this.JobCall= string.Empty;
this.JobCallParams= string.Empty;
this.Cron= string.Empty;
this.Status= 0;
this.Remark= string.Empty;
this.CreateTime= DateTime.Now;
this.CreateUserId= string.Empty;
this.CreateUserName= string.Empty;
this.UpdateTime= DateTime.Now;
this.UpdateUserId= string.Empty;
this.UpdateUserName= string.Empty;
this.OrgId= string.Empty;
}
///
/// 任务名称
///
[Description("任务名称")]
public string JobName { get; set; }
///
/// 任务执行次数
///
[Description("任务执行次数")]
public int RunCount { get; set; }
///
/// 异常次数
///
[Description("异常次数")]
public int ErrorCount { get; set; }
///
/// 下次执行时间
///
[Description("下次执行时间")]
public System.DateTime? NextRunTime { get; set; }
///
/// 最后一次执行时间
///
[Description("最后一次执行时间")]
public System.DateTime? LastRunTime { get; set; }
///
/// 最后一次失败时间
///
[Description("最后一次失败时间")]
public System.DateTime? LastErrorTime { get; set; }
///
/// 任务执行方式0:本地任务;1:外部接口任务
///
[Description("任务执行方式0:本地任务;1:外部接口任务")]
public int JobType { get; set; }
///
/// 任务地址
///
[Description("任务地址")]
public string JobCall { get; set; }
///
/// 任务参数,JSON格式
///
[Description("任务参数,JSON格式")]
public string JobCallParams { get; set; }
///
/// CRON表达式
///
[Description("CRON表达式")]
public string Cron { get; set; }
///
/// 任务运行状态(0:停止,1:正在运行,2:暂停)
///
[Description("任务运行状态(0:停止,1:正在运行,2:暂停)")]
public int Status { get; set; }
///
/// 备注
///
[Description("备注")]
public string Remark { get; set; }
///
/// 创建时间
///
[Description("创建时间")]
public System.DateTime CreateTime { get; set; }
///
/// 创建人ID
///
[Description("创建人ID")]
[Browsable(false)]
public string CreateUserId { get; set; }
///
/// 创建人
///
[Description("创建人")]
public string CreateUserName { get; set; }
///
/// 最后更新时间
///
[Description("最后更新时间")]
public System.DateTime? UpdateTime { get; set; }
///
/// 最后更新人ID
///
[Description("最后更新人ID")]
[Browsable(false)]
public string UpdateUserId { get; set; }
///
/// 最后更新人
///
[Description("最后更新人")]
public string UpdateUserName { get; set; }
///
/// 所属部门
///
[Description("所属部门")]
[Browsable(false)]
public string OrgId { get; set; }
}
}