lss
3 天以前 17e3ef45fe0a6b6f8a147b50740834ac734f9317
HH.WCS.Mobox3/HH.WCS.Mobox3.DaYang/models/WMSTask.cs
@@ -13,22 +13,22 @@
        public DateTime? T_END_TIME { get; set; }
        public string S_CNTR_CODE { get; set; }
        /// <summary>
        /// 0 等待/1 执行/2 完成/3 错误/4 启劢失败 /5 暂停启劢
        /// 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; } = "等待";
        public string S_B_STATE { get; set; } = "等待";
        /// <summary>
        /// 1空托回库 2出库 3入库
        /// 1空托回库 2物料出库 3 物料入库
        /// </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; }
@@ -51,18 +51,18 @@
        public DateTime? T_LAST_FAIL { get; set; }
        /// <summary>
        /// 0 等待/1 执行/2 完成/3 错误/4 启劢失败 /5 暂停启劢
        /// 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;
                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;
        }
@@ -70,8 +70,8 @@
        internal static string GetTypeStr(int v) {
            var str = "";
            switch (v) {
                case 1: str = "入库"; break;
                case 2: str = "出库"; break;
                case 1: str = "���"; break;
                case 2: str = "����"; break;
            }
            return str;
        }