1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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<ILterationManager>();
- 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");
- }
- /// <summary>
- /// 编辑窗口
- /// </summary>
- public ActionResult EditWindow(string ID, int Type)
- {
- ViewBag.type = Type;
- ViewBag.id = ID;
- return View();
- }
- /// <summary>
- /// 保存人员信息
- /// </summary>
- public int Save(LterationModel model, int type)
- {
- return lteration.Save(model,type);
- }
- /// <summary>
- /// 单个删除
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public int Delete(string id)
- {
- int r = lteration.Delete(id);
- return r;
- }
- }
- }
|