/// <summary> /// 加载薪酬发放登记页面 /// </summary> /// <returns></returns> public ActionResult Index() { List <lei> list = new List <lei>(); lei le = new lei(); le.sid = 1; le.mc = "一级机构发放方式"; list.Add(le); lei le2 = new lei(); le2.sid = 2; le2.mc = "二级机构发放方式"; list.Add(le2); lei le3 = new lei(); le3.sid = 3; le3.mc = "三级机构发放方式"; list.Add(le3); SelectList sl = new SelectList(list, "sid", "mc", 0); ViewBag.s = sl; return(View()); }
public ActionResult Cha(lei sm) { int i = sm.sid; //string w = sm.mc; //return View(); if (i == 1) { return(RedirectToAction("YJJG")); } else if (i == 2) { return(RedirectToAction("EJJG")); } else if (i == 3) { return(RedirectToAction("SJJG")); } else { return(View()); } }