public JsonResult SearchAuditList(FormCollection fc) { AuditSearchParamModel pm = new AuditSearchParamModel(); SomeUtils.SetFieldValueToModel(fc, pm); var queryData = Request.Cookies["ele_au_qd"]; if (queryData == null) { queryData = new HttpCookie("ele_au_qd"); } queryData.Expires = DateTime.Now.AddDays(20); queryData.Value = SomeUtils.EncodeToUTF8(JsonConvert.SerializeObject(pm)); Response.AppendCookie(queryData); Wlog("审核列表查询:" + JsonConvert.SerializeObject(pm)); return(Json(new ApplySv().GetAuditList(currentUser.userId, pm), "text/html")); }
public JsonResult GetBillList(FormCollection fc) { SalerSearchParamModel pm = new SalerSearchParamModel(); SomeUtils.SetFieldValueToModel(fc, pm); var queryData = Request.Cookies["ele_sa_" + pm.billType + "_qd"]; if (queryData == null) { queryData = new HttpCookie("ele_sa_" + pm.billType + "_qd"); } queryData.Expires = DateTime.Now.AddDays(20); queryData.Value = SomeUtils.EncodeToUTF8(JsonConvert.SerializeObject(pm)); Response.AppendCookie(queryData); Wlog("获取列表数据:" + JsonConvert.SerializeObject(pm)); SetBillByType(pm.billType); return(Json(bill.GetBillList(pm, currentUser.userId), "text/html")); }