private string GetTreeChildren() { XT_ZZJG_BMBM bll = new XT_ZZJG_BMBM(this.Request); string where = string.Empty; object[] values = new object[1]; string id = Request["id"]; if (id != null && !string.IsNullOrEmpty("id")) { where += " and PARENTID=:PARENTID"; values[0] = id; } DataSet ds = bll.GetTreeChildren(where, values); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { return("{\"total\":0,\"rows\":" + JsonHelper.JsonString(ds.Tables[0]) + "}"); } return(ReturnString.JsonToString(Prompt.error, "该单位还未设置部门", null)); }