Ejemplo n.º 1
0
 public ActionResult Detail(string id, string staffId)
 {
     try
     {
         var model = CHK_HALL_STAT_M_DAL.GetRateError(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"));
     }
 }
Ejemplo n.º 2
0
        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.GetRateError(Convert.ToInt32(id), staffId);

                var model = new RateErrorViewModel()
                {
                    COR_MISTAKE_SVR_CNT = (int)item.COR_MISTAKE_SVR_CNT,
                    COR_VALID_SVR_CNT   = (int)item.COR_VALID_SVR_CNT,
                    HALL_NO             = item.HALL_NO,
                    STAT_MO             = item.STAT_MO
                };

                return(View(model));
            }
            catch (Exception ex)
            {
                LogHelper.ErrorLog("查看出错", ex);
                return(RedirectToAction("Error", "Home"));
            }
        }