Beispiel #1
0
        //cyear-----权限(begin year)
        //iyear-----登录年(取数据库名)
        private void Setting()
        {
            string UFDBName = _U8LoginClass.UfDbName;

            if (UFDBName == null || UFDBName == string.Empty)
            {
                return;
            }

            this.UfDataCnnString = HandleConnectionString(_U8LoginClass.UFDataConnstringForNet);
            this.UfMetaCnnString = HandleConnectionString(_U8LoginClass.UFMetaConnstringForNet);
            string metaname = "UFMeta_" + _U8LoginClass.get_cAcc_Id();

            this.UfSystCnnString = Decrypte(this._UfMetaCnnString).Replace(metaname, "UFSystem");
            this.TempDBCnnString = Decrypte(this._UfMetaCnnString).Replace(metaname, "tempdb");
            this._LocaleID       = _U8LoginClass.LanguageRegion;
            //this._appserver			= _U8LoginClass.cServer.ToString().Split(':')[0].Trim();
            this._appserver = _U8LoginClass.cServer.ToString().Trim();
            this._usertoken = _U8LoginClass.userToken;
            this._caccid    = _U8LoginClass.get_cAcc_Id();
            this._year      = _U8LoginClass.cBeginYear;
            this._userid    = _U8LoginClass.cUserId;
            this._taskid    = _U8LoginClass.get_TaskId();
            this._subid     = _U8LoginClass.cSub_Id;
            this._iyear     = _U8LoginClass.CurDate.Year;
            this._imonth    = _U8LoginClass.CurDate.Month;
            this._iday      = _U8LoginClass.CurDate.Day;
            this._time      = _U8LoginClass.CurDate.ToLongTimeString();
            this._date      = _U8LoginClass.CurDate.ToShortDateString();
            object dbname = null;

            _U8LoginClass.GetAccInfo(401, ref dbname);
            _accdbname = dbname.ToString();
        }