2023-07-25 19:20:18 +08:00

84 lines
2.8 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("SysJob")]
public class SysJob : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
/// <summary>
/// 任务名称
/// </summary>
[Display(Name = "SysJob.JobName", Description = "任务名称")]
[Required(ErrorMessage = "Validate.{0}required")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string JobName { get; set; }
/// <summary>
/// 任务组名
/// </summary>
[Display(Name = "SysJob.JobGroup", Description = "任务组名")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string JobGroup { get; set; }
/// <summary>
/// 任务方法
/// </summary>
[Display(Name = "SysJob.MethodName", Description = "任务方法")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MethodName { get; set; }
/// <summary>
/// 参数
/// </summary>
[Display(Name = "SysJob.MethodParams", Description = "参数")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MethodParams { get; set; }
/// <summary>
/// cron执行表达式
/// </summary>
[Display(Name = "SysJob.CronExpression", Description = "cron执行表达式")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
[Required(ErrorMessage = "Validate.{0}required")]
public string CronExpression { get; set; }
/// <summary>
/// 上次执行时间
/// </summary>
[Display(Name = "SysJob.LastFireTime", Description = "上次执行时间")]
public DateTime? LastFireTime { get; set; }
/// <summary>
/// 下次执行时间
/// </summary>
[Display(Name = "SysJob.NextFireTime", Description = "下次执行时间")]
public DateTime? NextFireTime { get; set; }
/// <summary>
/// 错误策略
/// </summary>
[Display(Name = "SysJob.MisfirePolicy", Description = "错误策略")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string MisfirePolicy { get; set; }
/// <summary>
/// 状态(1正常 0暂停)
/// </summary>
[Display(Name = "SysJob.Status", Description = "状态(1正常 0暂停)")]
public SysJobEnum Status { get; set; }
/// <summary>
/// 备注信息
/// </summary>
[Display(Name = "_Admin.Remark", Description = "备注")]
public string Remark { get; set; }
}
}