public ActionResult Delete(int id) { DAL.RptCompanyOP op = new DAL.RptCompanyOP(); int i = op.Delete(id); return(Json(new { state = "success" })); }
public ActionResult GetCompanyList(string txtSearch = "") { DAL.RptCompanyOP op = new DAL.RptCompanyOP(); int total; //获取当前页码 int page = int.Parse(Request["page"]); var data = op.GetCompanyList(txtSearch, page, ConstInfo.PAGE_SIZE, out total); Hashtable ht = new Hashtable(); ht.Add("rows", data); ht.Add("total", total); return(Json(ht, JsonRequestBehavior.AllowGet)); }