private string getJson(string id, Object obj, string headstr, int count) { DataSet ds = dao.getDataSet(id, obj); string rtn = DsUtil.toJson(ds, headstr); if (count <= 0) { rtn = rtn.Replace("#recordcount#", ds.Tables[0].Rows.Count.ToString()); } else { rtn = rtn.Replace("#recordcount#", count.ToString()); } return(rtn); }
public string getJson(string id, Object obj, string headstr) { DataSet ds = dao.getDataSet(id, obj); return(DsUtil.toJson(ds, headstr)); }
public string getJson(string id, string sql, string headstr) { DataSet ds = dao.getDataSet(id, sql); return(DsUtil.toJson(ds, headstr)); }