예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //任务栏消息更新为已读
            int AlertID = WebCommon.Public.ToInt(Request.QueryString["AlertID"]);

            if (AlertID > 0)
            {
                WebModels.Tbl_Alert alert = WebBLL.Tbl_AlertManager.GetTbl_AlertById(AlertID);
                alert.Status = "已读";
                WebBLL.Tbl_AlertManager.UpdateTbl_Alert(alert);
            }
        }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //任务栏消息更新为已读
         int AlertID = WebCommon.Public.ToInt(Request.QueryString["AlertID"]);
         if (AlertID > 0)
         {
             WebModels.Tbl_Alert alert = WebBLL.Tbl_AlertManager.GetTbl_AlertById(AlertID);
             AlertTitle = alert.AlertTitle;
             AlertType  = alert.AlertType;
             AddDate    = alert.AddDate.ToString("yyyy-MM-dd");
             AlertInfo  = alert.AlertInfo;
         }
     }
 }