示例#1
0
        public ActionResult Edit(Int32 id)
        {
            BL.Emp emp = unitOfWork.EmpRepository.GetByID(id) as BL.Emp;
            IEnumerable <BL.Dep> DepList = unitOfWork.DivisionRepository.GetAll();

            ViewBag.DepList = DepList;
            return(View(emp));
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     BL.Emp newEmp = new BL.Emp();
     newEmp.DepId = 1;
     newEmp.PosId = 1;
     empBindingSource.DataSource = newEmp;
     empDataGridView.BeginEdit(false);
     EditMode = true;
 }
示例#3
0
 public ActionResult ShowPass(Int32 id)
 {
     BL.Emp emp = unitOfWork.EmpRepository.GetByID(id) as BL.Emp;
     return(PartialView(emp));
 }