schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
        }
    }
}