public Dictionary <string, object> getLv(string orgcode, string systime) { //DataTable dt = db.getThreshold(); Dictionary <string, object> r = new Dictionary <string, object>(); try { //DataTable du = db.getNum(dt, orgcode, systime); DataTable du = db.getNum(orgcode, systime); if (du.Rows.Count > 0) { r["message"] = "成功"; r["code"] = 2000; r["items"] = du; } else { r["message"] = "成功"; r["code"] = 2000; r["total"] = 0; } } catch (Exception e) { r["message"] = e.Message; r["code"] = -1; } return(r); }