protected string ReturnDataColumnToJson(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.DataColumnToJson(ds); } else { string error = "无数据"; r_json = JsonMethod.GetError(1, error); } return(r_json); }