Beispiel #1
0
 public ActionResult Detail(string id, string staffId)
 {
     try
     {
         var model = CHK_HALL_STAT_M_DAL.GetRateComplaint(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"));
     }
 }
Beispiel #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.GetRateComplaint(Convert.ToInt32(id), staffId);

                var model = new RateComplaintViewModel()
                {
                    COR_COMPLAIN_CNT   = (int)item.COR_COMPLAIN_CNT,
                    COR_HALL_STAFF_CNT = (int)item.COR_HALL_STAFF_CNT,
                    HALL_NO            = item.HALL_NO,
                    STAT_MO            = item.STAT_MO
                };

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