/// <summary> /// 保存信息 /// </summary> public void Save() { UserCookie cookie = new UserCookie(); cookie.m_key = "BSSTOCK"; cookie.m_value = AESHelper.Encrypt(JsonConvert.SerializeObject(m_bsStocks)); UserCookieService cookieService = DataCenter.UserCookieService; cookieService.AddCookie(cookie); }
/// <summary> /// 保存信息 /// </summary> public void Save() { UserCookie cookie = new UserCookie(); cookie.m_key = "CALENDAR"; cookie.m_value = AESHelper.Encrypt(JsonConvert.SerializeObject(m_calendars)); UserCookieService cookieService = DataCenter.UserCookieService; cookieService.AddCookie(cookie); }
/// <summary> /// 保存信息 /// </summary> public void Save() { UserCookie cookie = new UserCookie(); cookie.m_key = "BUSINESSCARD"; cookie.m_value = AESHelper.Encrypt(JsonConvert.SerializeObject(m_businessCards)); UserCookieService cookieService = DataCenter.UserCookieService; cookieService.AddCookie(cookie); }
/// <summary> /// 设置COOKIE /// </summary> /// <param name="var">变量</param> /// <returns>结果</returns> private double SETCOOKIE(CVariable var) { String cookieName = m_indicator.GetText(var.m_parameters[0]); UserCookieService cookieService = DataCenter.UserCookieService; UserCookie cookie = new UserCookie(); cookie.m_key = cookieName; cookie.m_value = m_indicator.GetText(var.m_parameters[1]); return(cookieService.AddCookie(cookie)); }
/// <summary> /// 保存信息 /// </summary> public void Save() { UserCookie cookie = new UserCookie(); cookie.m_key = "DIMENSION"; cookie.m_value = AESHelper.Encrypt(JsonConvert.SerializeObject(m_dimensions)); UserCookieService cookieService = DataCenter.UserCookieService; cookieService.AddCookie(cookie); }
/// <summary> /// 保存信息 /// </summary> public void Save() { UserCookie cookie = new UserCookie(); cookie.m_key = "PERSONAL"; cookie.m_value = AESHelper.Encrypt(JsonConvert.SerializeObject(m_personals)); UserCookieService cookieService = DataCenter.UserCookieService; cookieService.AddCookie(cookie); }
/// <summary> /// 保存信息 /// </summary> public void Save() { UserCookie cookie = new UserCookie(); cookie.m_key = "USERSECURITY"; cookie.m_value = JsonConvert.SerializeObject(m_codes); UserCookieService cookieService = DataCenter.UserCookieService; cookieService.AddCookie(cookie); }