Пример #1
0
 /// <summary>
 /// 添加日志
 /// </summary>
 /// <param name="content">日志内容</param>
 public static void addLog(string content)
 {
     ZhongLi.Model.sys_Logs log = new ZhongLi.Model.sys_Logs();
     log.UserID    = Convert.ToInt32(Utils.GetCookie("UserID"));
     log.Remark    = content;
     log.AddTime   = DateTime.Now + "";
     log.IpAddress = DTRequest.GetIP();
     new ZhongLi.Bll.sys_Logs().Add(log);
 }
Пример #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(ZhongLi.Model.sys_Logs model)
 {
     return(dal.Update(model));
 }
Пример #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(ZhongLi.Model.sys_Logs model)
 {
     return(dal.Add(model));
 }