using cylsg.Core; using cylsg.Core.Attributes; using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cylsg.Model.OrderModel { /// /// 招工订单 /// [Description("招工订单")] [CoderFirst] public class Order : BaseModel { /// /// 招工Id /// [SugarColumn(ColumnDescription = "招工Id", IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 招工用户id /// [SugarColumn(ColumnDescription = "招工用户id")] public int OrderUserId { get; set; } /// /// 招工名称 /// [SugarColumn(ColumnDescription = "招工名称", ColumnDataType = "nvarchar(100)")] public string OrderName { get; set; } /// /// 工作开始时间 /// [Display(Name = "工作开始时间")] [SugarColumn(ColumnDescription = "工作开始时间", IsNullable = true)] public DateTime? WordStartTime { get; set; } /// /// 工作结束时间 /// [Display(Name = "工作结束时间")] [SugarColumn(ColumnDescription = "工作结束时间", IsNullable = true)] public DateTime? WordEndTime { get; set; } /// /// 需求 /// [SugarColumn(ColumnDescription = "需求", ColumnDataType = "nvarchar(2000)", IsNullable = true)] public string Demand { get; set; } /// /// 招工人数 /// [SugarColumn(ColumnDescription = "招工人数", IsNullable = true)] public int? WorderCount { get; set; } /// /// 工作地点 /// [SugarColumn(ColumnDescription = "工作地点", ColumnDataType = "nvarchar(500)", IsNullable = true)] public string WorderAddress { get; set; } /// /// 联系电话 /// [SugarColumn(ColumnDescription = "联系电话", ColumnDataType = "nvarchar(30)", IsNullable = true)] public string ContactPhone { get; set; } /// /// 工作方式 /// [SugarColumn(ColumnDescription = "工作方式", IsNullable = true)] public int? WorkerType { get; set; } /// /// 工价 /// [SugarColumn(ColumnDescription = "工价", Length = 18, DecimalDigits = 2, IsNullable = true)] public decimal? WorkPrice { get; set; } /// /// 招工状态 /// [SugarColumn(ColumnDescription = "招工状态", IsNullable = true)] public int? OrderStatus { get; set; } } /// /// 工作方式 /// public enum WorkerTypes { /// ///计时 /// time = 0, /// ///计件 /// count = 1 } /// /// 招工状态 /// public enum OrderStatuses { /// ///发布 /// fabu = 0, /// ///招工完毕 /// zhaogongwanbi = 1, /// ///结算完毕 /// jiesuanwanbi = 2 } }