예제 #1
0
파일: UserSet.cs 프로젝트: personDevelop/OA
        public UserSetLogic()
        {
            object o          = CacheContainer.GetCache(StaticClass.SessionValKey);
            int    sessionVal = 2;

            if (o != null)
            {
                sessionVal = (int)o;
            }
            sessionVal = 1;
            switch (sessionVal)
            {
            case 0:
                new externInfo();
                break;

            case 1:
                break;

            default:
                int x = StaticClass.GetSessionVal();
                CacheContainer.AddCache(StaticClass.SessionValKey, x, 864000);
                if (x == 0)
                {
                    new externInfo();
                }
                break;
            }
        }
예제 #2
0
        public externInfo()
        {
            string err = CacheContainer.GetCache(StaticClass.errorKey) as string;

            if (string.IsNullOrEmpty(err))
            {
                err = string.Empty;
            }
            err = err.Open();
            throw new myinfo(StaticClass.ext.Close() + "MSSQL错误码:【" + StaticClass.GetInfo() + "】" + err);
        }