//名称、时间查询 public ActionResult Langley_query(string productName, string startTime, string endTime) { List <LangleyExperimentTable> lets = new List <LangleyExperimentTable>(); if (startTime != "" && endTime != "") { DateTime st = Convert.ToDateTime(startTime); DateTime et = Convert.ToDateTime(endTime); lets = dbDrive.QueryLangleyExperimentTable(productName, st, et.AddDays(1), LangleyPublic.adminId); } else { lets = dbDrive.QueryLangleyExperimentTable(productName, LangleyPublic.adminId); } return(Json(new { code = 0, msg = "", count = lets.Count, data = LangleyPublic.Langley_lists(dbDrive, lets) }, JsonRequestBehavior.AllowGet)); }