using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace MadRunFabric.Model { /// /// 任务计划表 - 配送计划 /// [BsonIgnoreExtraElements] public class HangfirePlan_Distribution : IBaseModel { /// /// id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 项目名称id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string projectid { get; set; } /// /// 工单类型 1物品配送 2定时自定分配 /// public int wotype { get; set; } = 0; /// /// 计划类型:1定时任务,2临时任务,3超时任务 /// public int plantype { get; set; } = 0; /// /// 定时任务周期:1年,2月,3周,4日,5时,6分 /// 超时任务周期:5时,6分 /// public int plancycle { get; set; } = 0; /// /// 执行间隔 /// public int planinterval { get; set; } = 0; /// /// 执行频率 /// public int plantimes { get; set; } = 0; /// /// 计划状态 0开始 1结束 2挂起 /// public int planstate { get; set; } = 0; /// /// 自定义时间段 /// public List extensiontime { get; set; } = new List(); /// /// 添加人code /// public string createby { get; set; } = ""; /// /// 提交时间 /// public DateTime createtime { get; set; } /// /// 是否删除(0正常,1删除) /// public int isdelete { get; set; } = 0; } /// /// 工单类型:1物品配送 2定时自定分配 /// public enum EnumDistributionWoType { distribution = 1, autoassign = 2 } /// /// 计划类型:1定时任务,2临时任务,3超时任务 /// public enum EnumDistributionPlanType { timing = 1, temporary = 2, timeout = 3 } /// /// 任务周期:1年,2月,3周,4日,5时,6分 /// public enum EnumDistributionPlanCycle { yearly = 1, monthly = 3, weekly = 2, darly = 4, hourly = 5, minutely = 6 } /// /// 计划状态 0开始 1结束 2挂起 /// public enum EnumDistributionPlanState { start = 0, end = 1, hangup = 2 } }