public ActionResult TimelyMsgModel(int ID)
 {
     ViewBag.lishow   = lishow;
     ViewBag.LfetShow = LfetShow;
     ViewBag.ashow    = "TimelyMsg";
     ViewBag.location = "所在位置:<a href='" + Url.Content("~/Warning/TimelyMsg") + "'>报警管理</a>>><a href='" + Url.Content("~/Charater/TimelyMsg?ID=" + ID) + "'>报警详细</a>";
     try
     {
         BKBJ.WarningInfo warinfo = new DAL.WarningDAL().PwDetailsDal(ID);
         ViewBag.warinfo = warinfo;
         return(View());
     }
     catch (SqlException ex)
     {
         Logger.ErrorLog(ex, new Dictionary <string, string>()
         {
             { "Function", "Warning.PWDetails(int ID)" }
         });
         return(Content("<script>alert('操作超时,请稍后再试');history.go(-1);parent.closeDiv();</script>"));
     }
     catch (Exception ex)
     {
         Logger.ErrorLog(ex, new Dictionary <string, string>()
         {
             { "Function", "Warning.PWDetails(int ID)" }
         });
         return(Content("<script>alert('操作超时,请稍后再试');history.go(-1);parent.closeDiv();</script>"));
     }
 }
Beispiel #2
0
 protected override void SetDAL()
 {
     dal = new DAL.WarningDAL();
     dao = dal as DAL.WarningDAL;
 }