using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ConstructionMis.Dll.Bll;
using ConstructionMis.Dll.Entity;
namespace ConstructionMis.Web.Controllers
{
public class WorkExpController : Controller
{
//
// GET: /WorkExp/
WorkExpBll expBll = new WorkExpBll();
public ActionResult insert(int personId)
{//点?击÷添?加ó按恪?钮¥
ViewBag.editIndex = -1;
List<WorkExperience> list = expBll.select(personId);
return View("Index",list);
}
public ActionResult edit(int workId) {//点?击÷编括?辑-按恪?钮¥
int pId = expBll.getPId(workId);
ViewBag.personId = pId;
List<WorkExperience> list = expBll.select(pId);
ViewBag.editIndex = list.FindIndex(t => t.Id == workId);
return View("Index",list);
}
public ActionResult delete(int id)
{//点?击÷删?除y按恪?钮¥
expBll.delete(id);
List<WorkExperience> list = expBll.select(id);
return View("Index",list);
}
…………………………………………………………………………<p style="COLOR: red; FONT-SIZE: 16px"><strong>转载:<a target=_blank href="http://www.verydemo.com/demo_c104_i14550.html" target="_blank">http://www.verydemo.com/demo_c104_i14550.html</a></strong></p>