예제 #1
0
        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);
        }
예제 #2
0
        public string getJson(string id, Object obj, string headstr)
        {
            DataSet ds = dao.getDataSet(id, obj);

            return(DsUtil.toJson(ds, headstr));
        }
예제 #3
0
        public string getJson(string id, string sql, string headstr)
        {
            DataSet ds = dao.getDataSet(id, sql);

            return(DsUtil.toJson(ds, headstr));
        }