using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using XImagingXhandler.XDAL;
|
namespace XCoreBLL
|
{
|
/// <summary>
|
/// 审计操作日志处理类
|
/// </summary>
|
public class OperateAuditLogBll
|
{
|
/// <summary>
|
/// 构建一个新的审计操作对象
|
/// </summary>
|
/// <param name="OperateType">操作类型(添加、修改、删除)</param>
|
/// <param name="OperateContent">操作内容</param>
|
/// <param name="CreateName">创建人</param>
|
/// <param name="SourceContent">操作前内容</param>
|
/// <param name="TargetContent">操作后内容</param>
|
/// <param name="OperateObject">操作对象</param>
|
/// <param name="OperateResult">操作结果:成功;失败</param>
|
/// <returns></returns>
|
public OperateAuditLog GenerateOperateAuditLog(string OperateType="",string OperateContent = "", string CreateName = "",string FunctionModule="",
|
string SourceContent = "", string TargetContent = "", string OperateObject = "", string OperateResult = "")
|
{
|
OperateAuditLog operateAuditLog = new OperateAuditLog();
|
operateAuditLog.Id = Guid.NewGuid().ToString("N");
|
operateAuditLog.OperateType = OperateType;
|
operateAuditLog.OperateContent = OperateContent;
|
operateAuditLog.CreateName = CreateName;
|
operateAuditLog.CreateTime = DateTime.Now;
|
operateAuditLog.WorkflowTemplateId = FunctionModule;
|
operateAuditLog.SourceContent = SourceContent;
|
operateAuditLog.TargetContent = TargetContent;
|
operateAuditLog.OperateObject = OperateObject;
|
operateAuditLog.OperateResult = OperateResult;
|
return operateAuditLog;
|
}
|
}
|
}
|