jinxin
2025-06-04 b10bf189ab080730b605754b6035da26b17f5d08
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
using HH.WCS.Mobox3.KeKou.models;
using SqlSugar;
using System;
 
namespace HH.WCS.Mobox3.KeKou
{
    [SugarTable("TN_Operation")]
    public class WMSTask : BaseModel
    {
 
        public string S_CODE { get; set; }
        public string S_TYPE { get; set; }
        public string S_NOTE { get; set; }
        public DateTime? T_START_TIME { get; set; }
        public DateTime? T_END_TIME { get; set; }
        public string S_CNTR_CODE { get; set; }
        /// <summary>
        /// 0 µÈ´ý/1 Ö´ÐÐ/2 Íê³É/3 ´íÎó/4 Æô۽ʧ°Ü /5 ÔÝÍ£ÆôÛ½
        /// </summary>
        public int N_B_STATE { get; set; }
        public string S_ERR { get; set; }
        public string S_EXT_DATA { get; set; }
        /// <summary>
        /// ÐèÒª¸ù¾Ý³£Á¿×Ô¶¯×ª»»
        /// </summary>
        public string S_B_STATE { get; set; } = "µÈ´ý";
        /// <summary>
        /// 1Èë¿â 2³ö¿â
        /// </summary>
        public int N_TYPE { get; set; }
        public string S_OP_DEF_NAME { get; set; }
        /// <summary>
        /// Ó¦¸Ã¸ù¾Ý»õλ²éÕÒ²Ö¿â¶ÔÓ¦µÄ¹¤³§
        /// </summary>
        public string S_FACTORY { get; set; } = util.Settings.FacCode;
        public int N_PRIORITY { get; set; }
        public string S_OP_DEF_CODE { get; set; }
        public string S_START_WH { get; set; }
        public string S_START_AREA { get; set; }
        public string S_START_LOC { get; set; }
        public string S_END_WH { get; set; }
        public string S_END_AREA { get; set; }
        public string S_END_LOC { get; set; }
        public string S_BS_TYPE { get; set; }
        public string S_BS_NO { get; set; }
        public string S_STATE_PRE { get; set; }
        public int N_REVIEW_RESULT { get; set; }
        /// <summary>
        /// Èë¿âվ̨ 1£ºÎ÷£»2£º¶«£»
        /// </summary>
      //  public string S_STATION_LOC { get; set; } = "1";
        public int N_LASTE_B_STATE { get; set; }
        public string C_NEED_SORTING { get; set; } = "N";
        public int N_FAIL_COUNT { get; set; }
        public int N_FAIL_MAX { get; set; }
        public DateTime? T_LAST_FAIL { get; set; }
        /// <summary>
        /// È·ÈÏÈë¿â
        /// </summary>
        //public string S_STORE { get; set; } = "Y";
       // public int N_TRAY_WEIGHT { get; set; } = 0;
 
        /// <summary>
        /// 0 µÈ´ý/1 Ö´ÐÐ/2 Íê³É/3 ´íÎó/4 Æô۽ʧ°Ü /5 ÔÝÍ£ÆôÛ½
        /// </summary>
        /// <returns></returns>
        internal static string GetStateStr(int state)
        {
            var status = "";
            switch (state)
            {
                case 0: status = "µÈ´ý"; break;
                case 1: status = "Ö´ÐÐ"; break;
                case 2: status = "Íê³É"; break;
                case 3: status = "´íÎó"; break;
                case 4: status = "Æô¶¯Ê§°Ü"; break;
                case 5: status = "ÔÝÍ£Æô¶¯"; break;
            }
            return status;
        }
 
        internal static string GetTypeStr(int v)
        {
            var str = "";
            switch (v)
            {
                case 1: str = "Èë¿â"; break;
                case 2: str = "³ö¿â"; break;
            }
            return str;
        }
    }
}