kazelee
4 天以前 2d3ee03961d6cfbde70342e8a97bc7b05d0b0dc3
models/TN_Task.cs
@@ -55,12 +55,12 @@
        public string S_EQ_NO { get; set; }
        /// <summary>
        /// 任务状态:0等待 1已推送 2执行 3完成 4错误
        /// 任务状态:0等待 1已推送 2执行 3完成 4错误
        /// </summary>
        public string S_B_STATE { get; set; } = "等待";
        /// <summary>
        /// 任务状态:0等待 1已推送 2执行 3完成 4错误
        /// 任务状态:0等待 1已推送 2执行 3完成 4错误
        /// </summary>
        public int N_B_STATE { get; set; }
   
@@ -78,6 +78,10 @@
        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; }
@@ -88,11 +92,12 @@
        public string S_BS_TYPE { get; set; } = string.Empty;
        ///// <summary>
        ///// 是否强制出库:0不强制 1强制
        ///// 是否强制出库:0不强制 1强制
        ///// </summary>
        //public int N_FORCE { get; set; } = 0;
        internal static string GetStateStr(int state) {
        #region 非字段部分
        public static string GetStateStr(int state) {
            // 0等待 1已推送 2执行 3完成 4错误
            var status = "";
            switch (state) {
@@ -104,5 +109,6 @@
            }
            return status;
        }
        #endregion
    }
}