Ejemplo n.º 1
0
 /// <summary>
 /// 日志写入方法
 /// </summary>
 /// <param name="str"></param>
 public void SaveLogs(string username, string str)
 {
     if (webset.WebLogStatus == 0)
     {
         return;
     }
     DtCms.BLL.SystemLog   bll   = new DtCms.BLL.SystemLog();
     DtCms.Model.SystemLog model = new DtCms.Model.SystemLog();
     model.UserName = username;
     model.Title    = str;
     model.AddTime  = DateTime.Now;
     bll.Add(model);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 日志写入方法
 /// </summary>
 /// <param name="str"></param>
 protected void SaveLogs(string str)
 {
     if (webset.WebLogStatus == 0)
     {
         return;
     }
     DtCms.BLL.SystemLog   bll   = new DtCms.BLL.SystemLog();
     DtCms.Model.SystemLog model = new DtCms.Model.SystemLog();
     if (Session["AdminName"] != null)
     {
         model.UserName = Session["AdminName"].ToString();
     }
     model.Title   = str;
     model.AddTime = DateTime.Now;
     bll.Add(model);
 }