public ActionResult Detail(string id, string staffId) { try { var model = CHK_HALL_STAT_M_DAL.GetRateSatisfaction(Convert.ToInt32(id), staffId); ViewBag.HALL_NAM = Halldao.GetEntity("HALL_NO", staffId).HALL_NAM; ViewBag.STAT_MO = id; return(View(model)); } catch (Exception ex) { LogHelper.ErrorLog("查看出错", ex); return(RedirectToAction("Error", "Home")); } }
public ActionResult Edit(string id, string staffId) { ViewBag.HALL_NAM = Halldao.GetEntity("HALL_NO", staffId).HALL_NAM; ViewBag.STAT_MO = id; try { var item = CHK_HALL_STAT_M_DAL.GetRateSatisfaction(Convert.ToInt32(id), staffId); var model = new RateSatisfactionViewModel() { COR_EVAL_DISSATISFY_CNT = (int)item.COR_EVAL_DISSATISFY_CNT, COR_VALID_EVAL_CNT = item.COR_VALID_EVAL_CNT == null?0:(int)item.COR_VALID_EVAL_CNT, HALL_NO = item.HALL_NO, STAT_MO = item.STAT_MO }; return(View(model)); } catch (Exception ex) { LogHelper.ErrorLog("查看出错", ex); return(RedirectToAction("Error", "Home")); } }