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