/// <summary> /// 保存登录状态 /// </summary> /// <param name="m">参见CookieModel</param> public static void SaveLoginState(CookieModel m) { ClearLoginState(); string str = ""; str += ClsStr.EncryptA01(m.UID, "DKIDLEKD") + ","; str += ClsStr.EncryptA01(m.userName, "DKIDLEKD") + ","; str += ClsStr.EncryptA01(m.trueName, "DKIDLEKD") + ","; str = ClsStr.EncryptA01(str, "LOKUDJIE"); System.Web.HttpContext.Current.Session["SpringerSystemSession"] = str; if (m.SaveType == "false") { } else { HttpCookie _cookie = new HttpCookie("SpringerSystem"); switch (m.SaveType) { case "true": _cookie.Expires = DateTime.Now.AddYears(1); //.AddDays(1); break; default: _cookie.Expires = DateTime.Now.AddMinutes(10); //.AddYears(1);//.AddMinutes(10);//保存10分钟 break; } _cookie.Values.Add("SpringerSystemCookie", str); HttpContext.Current.Response.Cookies.Add(_cookie); } }
/// <summary> /// 查询时,跳转页面 /// </summary> /// <returns>参见模型</returns> public ActionResult CollectCountquery() { string BYORGNO = Request.Params["BYORGNO"]; string TIMEBegin = Request.Params["TIMEBegin"]; string TIMEEnd = Request.Params["TIMEEnd"]; string HUNM = Request.Params["HUNM"]; string str = ClsStr.EncryptA01(BYORGNO + "|" + TIMEBegin + "|" + TIMEEnd + "|||", "kkkkkkkk"); return(Content(JsonConvert.SerializeObject(new Message(true, "", "/HUReport/CollectCount?trans=" + str)), "text/html;charset=UTF-8")); }
/// <summary> /// 搜索 /// </summary> /// <returns></returns> public ActionResult DocQuery() { string PageSize = Request.Params["PageSize"]; string Page = Request.Params["Page"]; string EMAILTITLE = Request.Params["TITLE"]; string tid = Request.Params["tid"]; pubViewBag(tid, tid, ""); string str = ClsStr.EncryptA01((PageSize + "|" + EMAILTITLE + "|" + tid), "kkkkkkkk"); return(Content(JsonConvert.SerializeObject(new Message(true, "", "/ArtDocument/DocIndex?trans=" + str + "&typeID=" + tid + "&page=" + Page)), "text/html;charset=UTF-8")); }