public string Dels(HttpContext context) { try { int count = new BLL.SupplierType().DeleteList(context.Request.Params["cbx_select"]); return(count == 1 ? "删除成功。" : count == 0 ? "有供应商的类别未删除。" : "删除失败。"); } catch (Exception exc) { return(exc.Message); } }
public string Combobox(HttpContext context) { DataTable dt = new BLL.SupplierType().GetList().Tables[0]; return(DBUtility.JsonHelper.DataTable2Json_ValueText(dt, "value", "text")); }