ERRNO.cs 4.28 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2
using FLY.OBJComponents.Common;
using System;
潘栩锋's avatar
潘栩锋 committed
3 4 5 6 7 8
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FLY.Thick.Base.Common
{
潘栩锋's avatar
潘栩锋 committed
9 10 11
    /// <summary>
    /// 异常常量
    /// </summary>
潘栩锋's avatar
潘栩锋 committed
12 13
    public static class ERRNOs
    {
潘栩锋's avatar
潘栩锋 committed
14
        static ERRNOs()
潘栩锋's avatar
潘栩锋 committed
15
        {
潘栩锋's avatar
潘栩锋 committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
            BASE_ERRNO_RINGTEST = new ERRNO() { Code = 1, Descrption = "报警测试" };
            BASE_ERRNO_AD_MIN = new ERRNO() { Code = 2, Descrption = "AD值太小" };
            BASE_ERRNO_AD_MAX = new ERRNO() { Code = 3, Descrption = "AD值太大" };
            BASE_ERRNO_EMERGENCY = new ERRNO() { Code = 4, Descrption = "急停" };
            BASE_ERRNO_LIMIT = new ERRNO() { Code = 5, Descrption = "限位" };
            BASE_ERRNO_FLYAD7DISCONNECTED = new ERRNO() { Code = 6, Descrption = "枫莱尔控制器连接断开" };
            BASE_ERRNO_LICENSE_TIP = new ERRNO() { Code = 7, Descrption = "授权将要过期" };
            BASE_ERRNO_LICENSE = new ERRNO() { Code = 8, Descrption = "授权限制" };
            BASE_ERRNO_FILE_ERR_RESTORE = new ERRNO() { Code = 9, Descrption = "数据文件异常,恢复不成功" };
            BASE_ERRNO_FILE_RESTORE = new ERRNO() { Code = 10, Descrption = "数据文件异常,恢复成功" };

            SCAN_ERRNO_OVERCTRL = new ERRNO() { Code = 11, Descrption = "扫描超控制报警" };
            SCAN_ERRNO_OVERTOL = new ERRNO() { Code = 12, Descrption = "扫描超规格报警" };

            BASE_ERRNO_DB = new ERRNO() { Code = 13, Descrption = "数据库异常,重建" };
            BASE_ERRNO_TIMEGRIDADV = new ERRNO() { Code = 14, Descrption = "AD卡版本太低,不能启动 [高级AD数据]" };

            SCAN_ERRNO_FATAL = new ERRNO() { Code = 20, Descrption = "扫描异常,致命错误 必须停止扫描" };
            SYNC_ERRNO_FATAL = new ERRNO() { Code = 21, Descrption = "同步异常,致命错误 必须停止扫描" };

            MEASURE_SYNC_ERRNO_FATAL = new ERRNO() { Code = 22, Descrption = "测量同步参数异常,致命错误 必须停止" };


潘栩锋's avatar
潘栩锋 committed
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
        }
        #region 基础报警类型
        /// <summary>
        /// 报警测试
        /// </summary>
        public static ERRNO BASE_ERRNO_RINGTEST;

        /// <summary>
        /// AD值太小
        /// </summary>
        public static ERRNO BASE_ERRNO_AD_MIN;

        /// <summary>
        /// AD值太大
        /// </summary>
        public static ERRNO BASE_ERRNO_AD_MAX;

        /// <summary>
        /// 急停
        /// </summary>
        public static ERRNO BASE_ERRNO_EMERGENCY;

        /// <summary>
        /// 限位
        /// </summary>
        public static ERRNO BASE_ERRNO_LIMIT;

        /// <summary>
        /// 枫莱尔控制器连接断开
        /// </summary>
        public static ERRNO BASE_ERRNO_FLYAD7DISCONNECTED;

        /// <summary>
        /// 授权限制,提醒
        /// </summary>
        public static ERRNO BASE_ERRNO_LICENSE_TIP;

        /// <summary>
        /// 授权限制
        /// </summary>
        public static ERRNO BASE_ERRNO_LICENSE;

        /// <summary>
        /// 数据文件加载出错
        /// </summary>
        public static ERRNO BASE_ERRNO_FILE_ERR_RESTORE;

        /// <summary>
        /// 数据文件加载出错
        /// </summary>
        public static ERRNO BASE_ERRNO_FILE_RESTORE;
潘栩锋's avatar
潘栩锋 committed
90 91 92 93 94 95 96 97 98 99

        /// <summary>
        /// 数据库异常,重建
        /// </summary>
        public static ERRNO BASE_ERRNO_DB;

        /// <summary>
        /// AD卡版本太低,不能启动 [高级AD数据]
        /// </summary>
        public static ERRNO BASE_ERRNO_TIMEGRIDADV;
潘栩锋's avatar
潘栩锋 committed
100 101 102 103 104
        #endregion



        /// <summary>
潘栩锋's avatar
潘栩锋 committed
105 106 107 108 109
        /// 扫描超控制报警
        /// </summary>
        public static ERRNO SCAN_ERRNO_OVERCTRL;
        /// <summary>
        /// 扫描超规格报警
潘栩锋's avatar
潘栩锋 committed
110
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
111
        public static ERRNO SCAN_ERRNO_OVERTOL;
潘栩锋's avatar
潘栩锋 committed
112 113

        /// <summary>
潘栩锋's avatar
潘栩锋 committed
114
        /// 扫描异常,致命错误 必须停止扫描
潘栩锋's avatar
潘栩锋 committed
115
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
116
        public static ERRNO SCAN_ERRNO_FATAL;
潘栩锋's avatar
潘栩锋 committed
117

潘栩锋's avatar
潘栩锋 committed
118 119 120 121 122 123 124 125 126
        /// <summary>
        /// 同步异常,致命错误 必须停止扫描
        /// </summary>
        public static ERRNO SYNC_ERRNO_FATAL;

        /// <summary>
        /// 获取同步参数异常,致命错误 必须停止
        /// </summary>
        public static ERRNO MEASURE_SYNC_ERRNO_FATAL;
潘栩锋's avatar
潘栩锋 committed
127 128 129
    }

}