Ejemplo n.º 1
0
        public ContentResult TrendsCount()
        {
            string stime  = string.IsNullOrEmpty(Request["stime"]) ? DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") : Request["stime"]; //开始时间
            string etime  = string.IsNullOrEmpty(Request["etime"]) ? DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") : Request["etime"]; //结束时间
            string a_name = string.IsNullOrEmpty(Request["a_name"]) ? "" : Request["a_name"];

            int userid = UserInfo.UserId;
            var list   = _TrendsService.FindPagedListByBp(userid, "", stime, etime, a_name);

            DataSet ds = JMP.TOOL.MdlList.ToDataSet(list.ToList());


            return(Content(JsonConvert.SerializeObject(new { Data = ds }), "application/json"));
        }