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
|
{
|
/// <summary>
|
/// 招工订单
|
/// </summary>
|
[Description("招工订单")]
|
[CoderFirst]
|
public class Order : BaseModel
|
{
|
/// <summary>
|
/// 招工Id
|
/// </summary>
|
[SugarColumn(ColumnDescription = "招工Id", IsPrimaryKey = true, IsIdentity = true)]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 招工用户id
|
/// </summary>
|
[SugarColumn(ColumnDescription = "招工用户id")]
|
public int OrderUserId { get; set; }
|
|
/// <summary>
|
/// 招工名称
|
/// </summary>
|
[SugarColumn(ColumnDescription = "招工名称", ColumnDataType = "nvarchar(100)")]
|
public string OrderName { get; set; }
|
|
/// <summary>
|
/// 工作开始日期
|
/// </summary>
|
[Display(Name = "工作开始日期")]
|
[SugarColumn(ColumnDescription = "工作开始日期", IsNullable = true)]
|
public DateTime? WordStartTime { get; set; }
|
|
/// <summary>
|
/// 工作结束时间
|
/// </summary>
|
[Display(Name = "工作结束日期")]
|
[SugarColumn(ColumnDescription = "工作结束日期", IsNullable = true)]
|
public DateTime? WordEndTime { get; set; }
|
|
|
/// <summary>
|
/// 工作开始时间
|
/// </summary>
|
[Display(Name = "工作开始时间")]
|
[SugarColumn(ColumnDescription = "工作开始时间", IsNullable = true)]
|
public DateTime? StartTime { get; set; }
|
|
/// <summary>
|
/// 工作结束时间
|
/// </summary>
|
[Display(Name = "工作结束时间")]
|
[SugarColumn(ColumnDescription = "工作结束时间", IsNullable = true)]
|
public DateTime? EndTime { get; set; }
|
|
/// <summary>
|
/// 需求
|
/// </summary>
|
[SugarColumn(ColumnDescription = "需求", ColumnDataType = "nvarchar(2000)", IsNullable = true)]
|
public string Demand { get; set; }
|
|
/// <summary>
|
/// 招工人数
|
/// </summary>
|
[SugarColumn(ColumnDescription = "招工人数", IsNullable = true)]
|
public int? WorderCount { get; set; }
|
|
/// <summary>
|
/// 工作地点
|
/// </summary>
|
[SugarColumn(ColumnDescription = "工作地点", ColumnDataType = "nvarchar(500)", IsNullable = true)]
|
public string WorderAddress { get; set; }
|
|
|
/// <summary>
|
/// 联系电话
|
/// </summary>
|
[SugarColumn(ColumnDescription = "联系电话", ColumnDataType = "nvarchar(30)", IsNullable = true)]
|
public string ContactPhone { get; set; }
|
|
|
/// <summary>
|
/// 工作方式
|
/// </summary>
|
[SugarColumn(ColumnDescription = "工作方式", IsNullable = true)]
|
public int? WorkerType { get; set; }
|
|
|
/// <summary>
|
/// 工价
|
/// </summary>
|
[SugarColumn(ColumnDescription = "工价", Length = 18, DecimalDigits = 2, IsNullable = true)]
|
public decimal? WorkPrice { get; set; }
|
|
|
/// <summary>
|
/// 招工状态
|
/// </summary>
|
[SugarColumn(ColumnDescription = "招工状态", IsNullable = true)]
|
public int? OrderStatus { get; set; }
|
|
|
/// <summary>
|
/// 自行安排工作时间
|
/// </summary>
|
[SugarColumn(ColumnDescription = "自行安排工作时间", IsNullable = true,DefaultValue = "0")]
|
public bool? Zixinganpai { get; set; }
|
}
|
|
|
|
|
|
/// <summary>
|
/// 工作方式
|
/// </summary>
|
public enum WorkerTypes
|
{
|
/// <summary>
|
///计时
|
/// </summary>
|
time = 0,
|
/// <summary>
|
///计件
|
/// </summary>
|
count = 1
|
}
|
|
/// <summary>
|
/// 招工状态
|
/// </summary>
|
public enum OrderStatuses
|
{
|
/// <summary>
|
///发布
|
/// </summary>
|
fabu = 0,
|
/// <summary>
|
///招工完毕
|
/// </summary>
|
zhaogongwanbi = 1,
|
|
/// <summary>
|
///结算完毕
|
/// </summary>
|
jiesuanwanbi = 2
|
}
|
}
|