using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XImagingXhandler.XDAL;
namespace XCoreBLL
{
///
/// 审计操作日志处理类
///
public class OperateAuditLogBll
{
///
/// 构建一个新的审计操作对象
///
/// 操作类型(添加、修改、删除)
/// 操作内容
/// 创建人
/// 操作前内容
/// 操作后内容
/// 操作对象
/// 操作结果:成功;失败
///
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;
}
}
}