#region
|
|
using System;
|
using System.Data;
|
using CSFrameworkV5.Common;
|
using CSFrameworkV5.Core;
|
using CSFrameworkV5.DataAccess;
|
using CSFrameworkV5.Interfaces;
|
using CSFrameworkV5.WebRef.CommonService;
|
|
#endregion
|
|
namespace CSFrameworkV5.Business
|
{
|
/// <summary>
|
/// 【系统操作日志】管理界面业务逻辑层, 支持高级查询
|
/// </summary>
|
public class bllLog : ISupportAdvancedSearch
|
{
|
private IBridge_Log _Log;
|
|
public bllLog()
|
{
|
_Log = CreateLogData();
|
}
|
|
public object AdvancedSearch(string whereSQL)
|
{
|
return null;
|
}
|
|
public object AdvancedSearch(string whereSQL,
|
DbParameterModel[] parameters)
|
{
|
if (BridgeFactory.IsADODirect)
|
return (_Log as dalLog).AdvancedSearch(whereSQL, parameters);
|
|
throw new Exception("此案例没实现WCF接口,请使用直连模式!");
|
}
|
|
public AdvancedSearchResult ResultType { get; set; } =
|
AdvancedSearchResult.DbParamList;
|
|
private IBridge_Log CreateLogData()
|
{
|
if (BridgeFactory.IsADODirect)
|
return new dalLog(Loginer.CurrentUser);
|
|
if (BridgeFactory.IsWCFBridge) return new WCF_OperateLog();
|
|
throw new CustomException(BridgeFactory.UNKNOW_BRIDGE_TYPE);
|
}
|
|
public int DeleteLoginLog(string isids)
|
{
|
return _Log.DeleteLoginLog(isids);
|
}
|
|
public int DeleteOperateLog(string isids)
|
{
|
return _Log.DeleteOperateLog(isids);
|
}
|
|
public DataSet GetDynamicReport(string[] years)
|
{
|
return _Log.GetDynamicReport(years);
|
}
|
|
public DataTable QueryLoginLog(string loginType, string loginUser,
|
string loginIP, string loginMAC,
|
DateTime LoginD1, DateTime LoginD2)
|
{
|
return _Log.QueryLoginLog(loginType, loginUser, loginIP, loginMAC,
|
LoginD1, LoginD2);
|
}
|
|
public DataTable QueryOperateLog(string Content, DateTime Date1,
|
DateTime Date2, string OperateType,
|
string User)
|
{
|
return _Log.QueryOperateLog(Content, Date1, Date2, OperateType,
|
User);
|
}
|
}
|
}
|