建设局项目总结(一)

   

           

           

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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值