Example #1
0
        public ActionResult Experiment_query(string cpmc, string startdate, string stopdate)
        {
            List <UpDownExperiment> udes = dbDrive.GetUpDownExperiments(LangleyPublic.adminId);

            if (startdate != "" && stopdate != "")
            {
                DateTime st = Convert.ToDateTime(startdate);
                DateTime et = Convert.ToDateTime(stopdate);
                udes = dbDrive.QueryExperimentTable(cpmc, st, et.AddDays(1), LangleyPublic.adminId);
            }
            else
            {
                udes = dbDrive.QueryExperimentTable(cpmc, LangleyPublic.adminId);
            }
            return(Json(new { code = 0, msg = "", fenye = 5, count = udes.Count, data = LiftingPublic.GetQueryModels(dbDrive, udes) }, JsonRequestBehavior.AllowGet));
        }