username@email.com
2024-09-30 18590e3512d2d348e5149ee2bb3018c28c9a5b22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
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
    }
}