Example #1
0
        /// <summary>
        /// 创建服务
        /// </summary>
        public ProjectService()
        {
            UserCookie        cookie        = new UserCookie();
            UserCookieService cookieService = DataCenter.UserCookieService;

            if (cookieService.GetCookie("PROJECT", ref cookie) > 0)
            {
                try
                {
                    m_projects = JsonConvert.DeserializeObject <List <ProjectInfo> >(AESHelper.Decrypt(cookie.m_value));
                }
                catch (Exception ex)
                {
                }
                if (m_projects == null)
                {
                    try
                    {
                        m_projects = JsonConvert.DeserializeObject <List <ProjectInfo> >(cookie.m_value);
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
        }
Example #2
0
        /// <summary>
        /// 创建服务
        /// </summary>
        public LevelService()
        {
            UserCookie        cookie        = new UserCookie();
            UserCookieService cookieService = DataCenter.UserCookieService;

            if (cookieService.GetCookie("LEVEL", ref cookie) > 0)
            {
                try
                {
                    m_levels = JsonConvert.DeserializeObject <List <LevelInfo> >(AESHelper.Decrypt(cookie.m_value));
                }
                catch (Exception ex)
                {
                }
                if (m_levels == null)
                {
                    try
                    {
                        m_levels = JsonConvert.DeserializeObject <List <LevelInfo> >(cookie.m_value);
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
        }
Example #3
0
        /// <summary>
        /// 创建服务
        /// </summary>
        public OpinionService()
        {
            UserCookie        cookie        = new UserCookie();
            UserCookieService cookieService = DataCenter.UserCookieService;

            if (cookieService.GetCookie("OPINION", ref cookie) > 0)
            {
                try
                {
                    m_opinions = JsonConvert.DeserializeObject <List <OpinionInfo> >(AESHelper.Decrypt(cookie.m_value));
                }
                catch (Exception ex)
                {
                }
                if (m_opinions == null)
                {
                    try
                    {
                        m_opinions = JsonConvert.DeserializeObject <List <OpinionInfo> >(cookie.m_value);
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
        }
Example #4
0
 /// <summary>
 /// 创建服务
 /// </summary>
 public BSStockService()
 {
     UserCookie cookie = new UserCookie();
     UserCookieService cookieService = DataCenter.UserCookieService;
     if (cookieService.GetCookie("BSSTOCK", ref cookie) > 0)
     {
         try
         {
             m_bsStocks = JsonConvert.DeserializeObject<List<BSStockInfo>>(AESHelper.Decrypt(cookie.m_value));
         }
         catch (Exception ex)
         {
         }
         if (m_bsStocks == null)
         {
             try
             {
                 m_bsStocks = JsonConvert.DeserializeObject<List<BSStockInfo>>(cookie.m_value);
             }
             catch (Exception ex)
             {
             }
         }
     }
 }
Example #5
0
        /// <summary>
        /// 创建服务
        /// </summary>
        public FollowService()
        {
            UserCookie        cookie        = new UserCookie();
            UserCookieService cookieService = DataCenter.UserCookieService;

            if (cookieService.GetCookie("FOLLOW", ref cookie) > 0)
            {
                try
                {
                    m_follows = JsonConvert.DeserializeObject <List <FollowInfo> >(AESHelper.Decrypt(cookie.m_value));
                }
                catch (Exception ex)
                {
                }
                if (m_follows == null)
                {
                    try
                    {
                        m_follows = JsonConvert.DeserializeObject <List <FollowInfo> >(cookie.m_value);
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
        }
Example #6
0
        /// <summary>
        /// 创建服务
        /// </summary>
        public CalendarService()
        {
            UserCookie        cookie        = new UserCookie();
            UserCookieService cookieService = DataCenter.UserCookieService;

            if (cookieService.GetCookie("CALENDAR", ref cookie) > 0)
            {
                try
                {
                    m_calendars = JsonConvert.DeserializeObject <Dictionary <String, CalendarInfo> >(AESHelper.Decrypt(cookie.m_value));
                }
                catch (Exception ex)
                {
                }
                if (m_calendars == null)
                {
                    try
                    {
                        m_calendars = JsonConvert.DeserializeObject <Dictionary <String, CalendarInfo> >(cookie.m_value);
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
        }
Example #7
0
        /// <summary>
        /// 创建服务
        /// </summary>
        public BusinessCardService()
        {
            UserCookie        cookie        = new UserCookie();
            UserCookieService cookieService = DataCenter.UserCookieService;

            if (cookieService.GetCookie("BUSINESSCARD", ref cookie) > 0)
            {
                try
                {
                    m_businessCards = JsonConvert.DeserializeObject <List <BusinessCardInfo> >(AESHelper.Decrypt(cookie.m_value));
                }
                catch (Exception ex)
                {
                }
                if (m_businessCards == null)
                {
                    try
                    {
                        m_businessCards = JsonConvert.DeserializeObject <List <BusinessCardInfo> >(cookie.m_value);
                    }
                    catch (Exception ex)
                    {
                    }
                }
            }
        }