kazelee
昨天 fc6dd85a865c4cadae0b9a07d56e2988d2262f10
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
using System;
 
using SqlSugar;
 
namespace HH.WCS.Mobox3.DSZSH.models {
    [SugarTable("TN_Task")]
    public class TN_Task : BaseModel {
        public string S_CODE { get; set; }
        public string S_TYPE { get; set; }
        public string S_START_AREA { get; set; }
        public string S_END_AREA { get; set; }
        public string S_START_LOC { get; set; }
        public string S_END_LOC { get; set; }
        public DateTime T_START_TIME { get; set; }
        public DateTime T_END_TIME { get; set; }
 
        /// <summary>
        /// AGV 车号  
        /// </summary>
        public string S_EQ_NO { get; set; }
 
        /// <summary>
        /// 任务状态: 0等待 1已推送 2执行 3完成 4错误
        /// </summary>
        public string S_B_STATE { get; set; } = "等待";
 
        /// <summary>
        /// 任务状态: 0等待 1已推送 2执行 3完成 4错误
        /// </summary>
        public int N_B_STATE { get; set; } = 0;
   
        /// <summary>
        /// 0无 1NDC 2天目 3国自 4PLC 5杭奥
        /// </summary>
        public int N_SCHEDULE_TYPE { get; set; }
     
        /// <summary>
        /// 任务优先级
        /// </summary>
        public int N_PRIORITY { get; set; }
     
 
        public string S_EQ_TASK_CODE { get; set; }
 
        public string S_CNTR_CODE { get; set; }
        /// <summary>
        /// 作业编码
        /// </summary>
        public string S_OP_CODE { get; set; }
        public string S_OP_NAME { get; set; }
    
        public int N_START_LAYER { get; internal set; }
        public int N_END_LAYER { get; internal set; }
        public int N_CNTR_COUNT { get; internal set; }
 
        public string S_BS_NO { get; set; } = string.Empty;
        public string S_BS_TYPE { get; set; } = string.Empty;
 
        ///// <summary>
        ///// 是否强制出库:0不强制 1强制
        ///// </summary>
        //public int N_FORCE { get; set; } = 0;
 
        #region 非字段部分
        public static string GetStateStr(int state) {
            // 0等待 1已推送 2执行 3完成 4错误
            var status = "";
            switch (state) {
                case 0: status = "等待"; break;
                case 1: status = "已推送"; break;
                case 2: status = "执行"; break;
                case 3: status = "完成"; break;
                case 4: status = "错误"; break;
            }
            return status;
        }
        #endregion
    }
}