using PMS.EntityModels.LterationModel; using PMS.Interface; using PMS.Interface.LterationManager; using PMS.WebUI.Controllers; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace PMS.WebUI.Controllers { public class lterationController : BaseController { ILterationManager lteration = InterfaceFactory.CreateBusinessInstance(); public ActionResult Index() { return View(); } public ActionResult GetList(string cp,int zt,string key,int page, int rows) { return Content(lteration.GetList(cp,zt,key, page,rows),"application/json"); } public ActionResult GetDataById(string id) { return Content(lteration.GetDataById(id), "application/json"); } /// /// 编辑窗口 /// public ActionResult EditWindow(string ID, int Type) { ViewBag.type = Type; ViewBag.id = ID; return View(); } /// /// 保存人员信息 /// public int Save(LterationModel model, int type) { return lteration.Save(model,type); } /// /// 单个删除 /// /// /// public int Delete(string id) { int r = lteration.Delete(id); return r; } } }