public JsonResult CodeTypeDelete(string codetype) { var item = COD.FindItemByParam <CodeTypeItem>(new DbParam().Add("CodeType", codetype), "*"); COD.Delete(item); return(Json(new { result = "success" }, JsonRequestBehavior.AllowGet)); }
public JsonResult CodeTypeUpdate(string codetype, FormCollection formValues) { var item = COD.FindItemByParam <CodeTypeItem>(new DbParam().Add("CodeType", codetype), "*"); UpdateModel(item); COD.Update(item); return(Json(new { result = "success" }, JsonRequestBehavior.AllowGet)); }
public ActionResult CodeUpdateFor(string code) { var item = COD.FindItemByParam <CodeItem>(new DbParam().Add("Code", code), "*"); var commonParam = new CommonParam(); commonParam.Add("Item", item); commonParam.Add("state", MvcUtil.GetSelectList(item.State, "REG=REG,DEL=DEL")); return(PartialView("~/Views/Dev/Partial/CodeList/CodeUpdatePartial.cshtml", commonParam)); }