📄 syslog.cs
字号:
using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
using CRM.IDAL;
using CRM.Model;
namespace CRM.BLL
{
/// <summary>
/// SysLog 的摘要说明。
/// </summary>
public class SysLog : Common
{
#region ISysLog 成员
public static DataTable GetSysLogByUserId(string userId)
{
if(Common.CheckStrIsNull(userId))
return null;
ISysLog dal=CRM.DALFactory.SysLog.Create();
return dal.GetSysLogByUserId(userId);
}
public static DataTable GetAllSysLog()
{
ISysLog dal=CRM.DALFactory.SysLog.Create();
return dal.GetAllSysLog();
}
public static void Insert(SysLogInfo log)
{
if(!Common.CheckStrIsNull(log.UserId,log.OptState))
{
ISysLog dal=CRM.DALFactory.SysLog.Create();
dal.Insert(log);
}
}
public static DataTable GetSysLogByFuncId(string funcid)
{
if(Common.CheckStrIsNull(funcid))
return null;
ISysLog dal=CRM.DALFactory.SysLog.Create();
return dal.GetSysLogByFuncId(funcid);
}
public static SysLogInfo GetSysLogById(string logId)
{
if(Common.CheckStrIsNull(logId))
return null;
ISysLog dal=CRM.DALFactory.SysLog.Create();
return dal.GetSysLogById(logId);
}
public static void Delete(string logId)
{
if(!Common.CheckStrIsNull(logId))
{
ISysLog dal=CRM.DALFactory.SysLog.Create();
dal.Delete(logId);
}
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -