/// <summary> /// 获取多个表返回Json /// </summary> /// <param name="json"></param> /// <param name="proc"></param> /// <param name="userId"></param> /// <param name="entid"></param> /// <returns></returns> protected string ReturnDataSetJson(string json, string proc, string userId, string entId) { SqlParameter[] param = (JsonMethod.ListParameter(json, userId, entId)).ToArray();//动态解析json参数 SqlRun sql = new SqlRun(SqlRun.sqlstr); DataSet ds = sql.RunProDataSet(proc, param); string r_json; if (ds.Tables.Count > 0) { r_json = JsonMethod.DataSetToJson("0", ds); } else { string error = "无数据"; r_json = JsonMethod.GetError(1, error); } return(r_json); }